/* Backend RTL overrides. Loaded only for RTL WordPress languages. */
#bookly-tbs {
  direction: rtl;
}

#bookly-tbs input:not([type="checkbox"]):not([type="radio"]),
#bookly-tbs textarea {
  direction: rtl;
  text-align: right;
  background-position: left;
  background-position-x: 12px !important;
  padding: .375rem .75rem;
}

#bookly-tbs .text-right {
  text-align: left !important;
}

#bookly-tbs select[size],
#bookly-tbs select[multiple] {
  height: auto;
}

#bookly-tbs .date-label {
  margin: auto 6px 6px 6px !important;
}

.bookly-modals-container #bookly-appointment-dialog,
#bookly-appointment-dialog .bookly-modal,
.bookly-modals-container #bookly-customer-dialog,
#bookly-customer-dialog .bookly-modal,
.bookly-modals-container #bookly-payment-details-dialog,
#bookly-payment-details-dialog .bookly-modal {
  overflow: visible !important;
}

#bookly-appointment-dialog .bookly-modal .modal-dialog,
#bookly-customer-dialog .bookly-modal .modal-dialog,
#bookly-payment-details-dialog .bookly-modal .modal-dialog {
  max-height: calc(100vh - 2rem);
  margin: 1rem auto;
  display: flex;
  flex-direction: column;
}

#bookly-appointment-dialog .bookly-modal .modal-content,
#bookly-customer-dialog .bookly-modal .modal-content,
#bookly-payment-details-dialog .bookly-modal .modal-content {
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#bookly-appointment-dialog .bookly-modal .modal-body,
#bookly-customer-dialog .bookly-modal .modal-body,
#bookly-payment-details-dialog .bookly-modal .modal-body {
  overflow-y: auto !important;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 120px;
  max-height: 100%;
}

#bookly-payment-details-dialog .bookly-modal.bookly-show {
  display: block !important;
}

#bookly-payment-details-dialog .bookly-loading {
  min-height: 100px;
}

/* Appointment save — notification queue step: single scroll on modal-body */
#bookly-appointment-dialog .modal-body .form-group:has(input[id^="bookly-notification-"]) {
  max-height: none;
  overflow: visible;
  margin-bottom: 1rem;
}

#bookly-appointment-dialog .bookly-modal .modal-footer,
#bookly-customer-dialog .bookly-modal .modal-footer {
  flex-shrink: 0;
}

#bookly-notifications-queue-dialog .bookly-modal {
  z-index: 100060 !important;
}

.bookly-modals-container #bookly-notifications-queue-dialog,
#bookly-notifications-queue-dialog .bookly-modal {
  overflow: visible !important;
}

#bookly-notifications-queue-dialog .bookly-modal .modal-dialog {
  max-height: calc(100vh - 2rem);
  margin: 1rem auto;
  display: flex;
  flex-direction: column;
  width: calc(100% - 2rem);
  max-width: 36rem;
}

#bookly-notifications-queue-dialog .bookly-modal .modal-content {
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

#bookly-notifications-queue-dialog .bookly-modal .modal-body {
  overflow-y: auto !important;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
}

/* One scrollbar only — list grows inside modal-body */
#bookly-notifications-queue-dialog .modal-body .form-group {
  max-height: none;
  overflow: visible;
  margin-bottom: 0;
  padding-bottom: 0;
}

#bookly-notifications-queue-dialog .bookly-modal .modal-footer {
  flex-shrink: 0;
}

#bookly-notifications-queue-dialog .bookly-modal-backdrop,
.bookly-modals-container #bookly-notifications-queue-dialog ~ .bookly-modal-backdrop {
  z-index: 100055 !important;
}

#bookly-notifications-queue-dialog .bookly-modal.bookly-show {
  display: block !important;
}

#bookly-tbs .bookly-modal.bookly-show .modal-body {
  overflow-y: auto !important;
}

#bookly-tbs .jCalMo .aday,
#bookly-tbs .jCalMo .day,
#bookly-tbs .jCalMo .dow,
#bookly-tbs .jCalMo .invday,
#bookly-tbs .jCalMo .overDay,
#bookly-tbs .jCalMo .pday,
#bookly-tbs .jCalMo .selectedDay {
  float: right;
  margin-right: 0;
  margin-left: -1px;
  text-align: center !important;
}

#bookly-tbs .iti .form-control.iti__tel-input {
  text-align: left !important;
  direction: ltr !important;
  padding-left: 55px !important;
  padding-right: .75rem;
}

[dir="rtl"] .iti--allow-dropdown .iti__country-container {
  left: 0 !important;
  right: auto !important;
}

[dir="rtl"] .iti__dropdown-content {
  left: 0 !important;
}

[dir="rtl"] .iti__search-input,
[dir="rtl"] .iti__country-list {
  text-align: left !important;
  direction: ltr !important;
}

#bookly-customer-dialog .iti__dropdown-content,
.bookly-modals-container #bookly-customer-dialog .iti__dropdown-content,
#bookly-staff-edit-modal .iti__dropdown-content,
.bookly-modals-container #bookly-staff-edit-modal .iti__dropdown-content,
body > .iti--container .iti__dropdown-content {
  z-index: 100080 !important;
}

#bookly-customer-dialog .iti,
#bookly-staff-edit-modal .iti {
  width: 100%;
  display: block;
}

#bookly-staff-edit-modal .iti {
  position: relative;
}

#bookly-customer-dialog .iti__country-container {
  z-index: 2;
}

#bookly-staff-edit-modal .iti__country-container {
  z-index: 3;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#bookly-staff-edit-modal .iti .form-control.iti__tel-input,
#bookly-staff-edit-modal .iti .bookly-user-phone.iti__tel-input {
  text-align: left !important;
  direction: ltr !important;
  padding-left: 55px !important;
  padding-right: .75rem;
}

input.iti__tel-input[type="tel"]::placeholder{
  color: #b8b8b8 !important;
}

#bookly-customer-dialog .iti__country-list,
#bookly-staff-edit-modal .iti__country-list {
  max-height: 220px;
  overflow-y: auto;
}

#bookly-staff-edit-modal .iti__country-list {
  direction: ltr;
  text-align: left;
}

#bookly-tbs .card .card-body .bookly-user-phone.iti__tel-input {
  text-align: left;
  direction: ltr;
  padding: 6px 5px 5px 48px !important;
}

#bookly-tbs .card .card-body td span.bookly-team-tel-ltr {
  direction: ltr !important;
  unicode-bidi: bidi-override !important;
  display: inline-block;
}

#bookly-tbs .daterangepicker .bookly-daterange-side-label {
  margin-bottom: 4px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

#bookly-tbs .daterangepicker select.monthselect option:disabled,
#bookly-tbs .daterangepicker select.yearselect option:disabled {
  color: #adb5bd !important;
}

#bookly-tbs .daterangepicker .calendar-table tr th.prev.available,
#bookly-tbs .daterangepicker .calendar-table tr th.next.available,
#bookly-tbs .bookly-js-holidays-nav .btn-group .bookly-js-jCalBtn i {
  rotate: 180deg !important;
}

#bookly-tbs .daterangepicker td.start-date {
  border-radius: 0 4px 4px 0;
}

#bookly-tbs .daterangepicker td.end-date {
  border-radius: 4px 0 0 4px;
}

#bookly-tbs .daterangepicker .calendar-table table,
#bookly-tbs .daterangepicker .ranges {
  direction: rtl !important;
}

.calendar-table .table-condensed .month .monthselect,
.calendar-table .table-condensed .month .yearselect {
  padding-right: 26px !important;
  min-width: 71px !important;
  padding-left: 0 !important;
  margin: auto 1px !important;
}

.bookly-dt-filters-drawer #bookly-appointments-datatables-filters .daterangepicker {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.bookly-dt-filters-drawer #bookly-appointments-datatables-filters .daterangepicker .drp-calendars {
  display: flex !important;
  flex-direction: column !important;
  float: none !important;
  width: 100% !important;
}

.bookly-dt-filters-drawer #bookly-appointments-datatables-filters .daterangepicker .drp-calendar.left,
.bookly-dt-filters-drawer #bookly-appointments-datatables-filters .daterangepicker .drp-calendar.right {
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: 100% !important;
}

.bookly-dt-filters-drawer #bookly-appointments-datatables-filters .daterangepicker .ranges {
  float: none !important;
  width: 100% !important;
}

#bookly-tbs .ec .ec-main .ec-body .ec-events .ec-event {
  padding-right: 10px !important;
}

#bookly-tbs .ec .ec-main .ec-body .ec-events::before {
  right: unset !important;
  left: 0 !important;
}

#bookly-tbs .bookly-ace-editor.ace_editor,
#bookly-tbs .bookly-ace-editor .ace_scroller,
#bookly-tbs .bookly-ace-editor .ace_content,
#bookly-tbs .bookly-ace-editor .ace_text-layer,
#bookly-tbs .bookly-ace-editor .ace_cursor-layer {
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: plaintext;
}

#bookly-tbs .bookly-ace-editor .ace_text-layer {
  width: 100% !important;
  max-width: 100% !important;
  direction: ltr !important;
  text-align: left !important;
}

#bookly-tbs .bookly-ace-editor .ace_text-layer > .ace_line_group,
#bookly-tbs .bookly-ace-editor .ace_text-layer > .ace_line_group > .ace_line {
  left: 0 !important;
  right: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  direction: ltr !important;
  text-align: left !important;
}

#bookly-tbs .bookly-ace-editor .ace_line {
  color: #212529 !important;
}

#bookly-tbs .bookly-ace-editor .ace_cursor {
  color: #212529 !important;
}

#bookly-tbs .bookly-ace-editor .ace_bookly_code {
  color: #005cc5 !important;
}

.bookly-js-done-settings .alert-info .mr-3 {
  margin-right: unset !important;
  margin-left: 1rem !important;
}

#bookly-tbs #bookly-cloud-register-button i,
#bookly-tbs #bookly-cloud-login-button i {
  margin-right: unset;
  margin-left: .5rem !important;
}

#bookly-tbs .card-body .card .mr-4 img {
  margin-right: unset;
  margin-left: 1.5rem;
}

#bookly-tbs .bookly-collapse-with-arrow .bookly-collapse-title::after,
#bookly-tbs .bookly-collapse-with-arrow a[data-toggle="bookly-collapse"]::after {
  margin-left: unset;
  margin-right: .5em;
}

#bookly-tbs img.bookly-js-gateway-logo {
  width: 30px !important;
  height: 30px !important;
}

/* SMS panel + payment gateways: provider logo to the right of the title (RTL) */
#bookly-tbs #bookly_settings_smspanel .bookly-collapse-with-arrow > .card-header > img.bookly-js-gateway-logo,
#bookly-tbs #smspanel .bookly-collapse-with-arrow > .card-header > img.bookly-js-gateway-logo,
#bookly-tbs #bookly_settings_payments .bookly-collapse-with-arrow > .card-header > img.bookly-js-gateway-logo {
  order: -2;
  margin-right: 8px !important;
  margin-left: 8px !important;
}

#bookly-tbs #bookly_settings_smspanel .bookly-collapse-with-arrow > .card-header > .bookly-js-draghandle,
#bookly-tbs #smspanel .bookly-collapse-with-arrow > .card-header > .bookly-js-draghandle,
#bookly-tbs #bookly_settings_payments .bookly-collapse-with-arrow > .card-header > .bookly-js-draghandle {
  order: -3;
}

#bookly-tbs #bookly_settings_smspanel .bookly-collapse-with-arrow > .card-header > .bookly-js-gateway-title::after,
#bookly-tbs #smspanel .bookly-collapse-with-arrow > .card-header > .bookly-js-gateway-title::after,
#bookly-tbs #bookly_settings_payments .bookly-collapse-with-arrow > .card-header > .bookly-js-gateway-title::after,
#bookly-tbs #bookly_settings_smspanel .bookly-collapse-with-arrow > .card-header > a[data-toggle="bookly-collapse"]::after,
#bookly-tbs #smspanel .bookly-collapse-with-arrow > .card-header > a[data-toggle="bookly-collapse"]::after,
#bookly-tbs #bookly_settings_payments .bookly-collapse-with-arrow > .card-header > a[data-toggle="bookly-collapse"]::after {
  display: none !important;
  content: none !important;
}

#bookly-tbs #bookly_settings_smspanel .bookly-collapse-with-arrow > .card-header > .bookly-js-gateway-title,
#bookly-tbs #smspanel .bookly-collapse-with-arrow > .card-header > .bookly-js-gateway-title,
#bookly-tbs #bookly_settings_payments .bookly-collapse-with-arrow > .card-header > .bookly-js-gateway-title,
#bookly-tbs #bookly_settings_smspanel .bookly-collapse-with-arrow > .card-header > a[data-toggle="bookly-collapse"],
#bookly-tbs #smspanel .bookly-collapse-with-arrow > .card-header > a[data-toggle="bookly-collapse"],
#bookly-tbs #bookly_settings_payments .bookly-collapse-with-arrow > .card-header > a[data-toggle="bookly-collapse"] {
  order: -1;
  margin-left: 0 !important;
  cursor: default;
  pointer-events: none;
}

#bookly-tbs #bookly_settings_smspanel .bookly-sms-panel-website-link,
#bookly-tbs #smspanel .bookly-sms-panel-website-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  color: #6c757d;
  text-decoration: none;
  pointer-events: auto;
  vertical-align: middle;
}

#bookly-tbs #bookly_settings_smspanel .bookly-sms-panel-website-link:hover,
#bookly-tbs #smspanel .bookly-sms-panel-website-link:hover {
  color: #0d6efd;
}

#bookly-tbs #bookly_settings_smspanel .bookly-sms-panel-website-link-icon,
#bookly-tbs #smspanel .bookly-sms-panel-website-link-icon {
  font-size: 0.85em;
  line-height: 1;
}

#bookly-tbs #bookly_settings_smspanel .bookly-collapse-with-arrow > .card-header > img:not(.bookly-js-gateway-logo),
#bookly-tbs #bookly_settings_payments .bookly-collapse-with-arrow > .card-header > img:not(.bookly-js-gateway-logo) {
  order: -2;
  margin-right: 8px !important;
  margin-left: 8px !important;
  width: 30px;
  height: 30px;
}

#bookly-tbs #bookly_settings_smspanel .bookly-js-gateway-header .bookly-js-header-enabled,
#bookly-tbs #smspanel .bookly-js-gateway-header .bookly-js-header-enabled,
#bookly-tbs #bookly_settings_payments .bookly-js-gateway-header .bookly-js-header-enabled {
  order: 0;
  margin-right: auto !important;
  margin-left: 0 !important;
}

#bookly-tbs #bookly_settings_smspanel .bookly-js-gateway-header .bookly-js-header-enabled .form-group,
#bookly-tbs #smspanel .bookly-js-gateway-header .bookly-js-header-enabled .form-group,
#bookly-tbs #bookly_settings_payments .bookly-js-gateway-header .bookly-js-header-enabled .form-group {
  margin-bottom: 0;
}

#bookly-tbs #bookly_settings_smspanel .bookly-js-gateway-header .bookly-js-header-enabled select,
#bookly-tbs #smspanel .bookly-js-gateway-header .bookly-js-header-enabled select,
#bookly-tbs #bookly_settings_payments .bookly-js-gateway-header .bookly-js-header-enabled select {
  width: auto;
  min-width: 110px;
  max-width: 220px;
}

#bookly-tbs .card .card-body .bookly-btn.bookly-inline-block,
#bookly-tbs .card .card-body .bookly-nav-steps .bookly-right,
#bookly-tbs .card .card-body .bookly-nav-steps .bookly-right .bookly-time-next,
#bookly-tbs .card .card-body .bookly-nav-steps .bookly-right .bookly-time-prev,
#bookly-tbs .card .card-body .bookly-service-step .bookly-time-range,
.bookly\:group .bookly\:snap-start.bookly-dt-phone,
.bookly\:group .bookly\:snap-start.bookly-dt-mail,
.bookly-slot-calendar .bookly-date-wrap .d-flex.py-2 {
  direction: ltr !important;
}

#bookly-tbs .bookly-service-step .bookly-week-days .bookly-form-group {
  margin: auto 5px !important;
}

#bookly-tbs .bookly-service-step .bookly-week-days .bookly-form-group label {
  font-size: 0.85em;
  white-space: nowrap;
}

.bookly-triangle .bookly-icon-sm {
  margin-left: unset !important;
  margin-right: -2px !important;
}

.bookly-service-step .bookly-available-date {
  margin-right: 0 !important;
  margin-left: 14px !important;
}

.bookly-css-root input[type=checkbox].bookly\:checkbox:checked {
  border-color: #2563eb !important;
  background-color: #2563eb !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 0 1 0 1.414l-8 8a1 1 0 0 1-1.414 0l-4-4a1 1 0 1 1 1.414-1.414L8 12.586l7.293-7.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 75% 75% !important;
}

#bookly-tbs .card .card-body .bookly-btn,
#bookly-tbs .card .card-body .ec-main .ec-no-events,
#bookly-tbs #bookly_settings_holidays .bookly-js-annual-calendar .day,
#bookly-tbs #bookly_settings_holidays .bookly-js-annual-calendar .dow,
#bookly-tbs .bookly-js-calendar .ec-toolbar .ec-prev,
#bookly-tbs .bookly-js-calendar .ec-toolbar .ec-next,
#bookly-tbs .daterangepicker .calendar-table tr th,
#bookly-tbs .daterangepicker .calendar-table tr td,
#bookly-tbs .ec .ec-main .ec-header .ec-col-head,
#bookly-tbs .ec .ec-main .ec-body .ec-day,
#bookly-tbs #bookly-modern-appearance .card .card-body .appearance-editable button,
#bookly-tbs .bookly-js-payment-gateways-intersected .bookly-js-payment-tips div.bookly-btn,
#bookly-tbs .bookly\:card .bookly\:card-body #bookly-appointments-datatables table thead tr th,
#bookly-tbs .bookly\:card .bookly\:card-body #bookly-appointments-datatables table tbody tr td div,
#bookly-appearance .bookly-pagination li a,
.bookly-repeat-step .bookly-js-variant-daily.bookly-col-1.bookly-text-center.bookly-margin-top.bookly-col-label,
.bookly-repeat-step .bookly-col-1.bookly-col-label.bookly-margin-top.bookly-js-until,
.bookly-details-step .bookly-js-files .bookly-btn.bookly-inline-block,
.bookly-week-days .bookly-form-group,
.bookly-nav-steps .bookly-btn,
.bookly-js-calendar .ec-header .ec-day,
.bookly-js-schedule-container .bookly-js-schedule-slots .bookly-schedule-row div:first-child,
table[data-range-calendar-grid] thead[data-range-calendar-grid-head] tr[data-range-calendar-grid-row] th[data-range-calendar-head-cell] {
  text-align: center !important;
}

#bookly-tbs .form-group .form-row.form-group.bookly-js-range-row .bookly-js-range-times > .bookly-js-range-field {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 160px !important;
  width: 160px;
}

#bookly-services-schedule .bookly-js-range-row:not(:has(.bookly-js-range-times)) .form-row .col .form-row .col,
#bookly-staff-edit-modal #bookly-schedule-container .bookly-js-range-row:not(:has(.bookly-js-range-times)) .form-row .col .form-row .col,
#bookly-tbs.bookly-staff-cabinet-schedule .bookly-js-range-row:not(:has(.bookly-js-range-times)) .form-row .col .form-row .col {
  max-width: 160px !important;
}

.ladda-button[data-style="zoom-in"] .ladda-spinner {
  left: calc(50% - 24px) !important;
}

#bookly-appointment-dialog .modal-body select#bookly-provider,
#bookly-appointment-dialog .modal-body select#bookly-service,
#bookly-appointment-dialog .modal-body select#bookly-location {
  display: inline-block !important;
  visibility: visible !important;
  position: relative !important;
  width: auto !important;
  height: auto !important;
  max-width: 720px !important;
  margin: 0 20px 4px 0 !important;
  min-height: calc(1.5em + 0.75rem + 2px);
  opacity: 1 !important;
  clip: auto !important;
  clip-path: none !important;
  pointer-events: auto !important;
}

#bookly-tbs #canvas,
.wp-dashboard #canvas {
  font-family: inherit;
}

#bookly-tbs select.custom-select option,
#bookly-tbs select.bookly-js-repeat-variant option,
#bookly-tbs select.bookly-time-zone-switcher option,
#bookly-tbs #bookly-js-birthday select option {
  font-family: Tahoma !important;
}

#bookly-tbs .bookly-dt-search-group .bookly-dt-search-input input {
  padding-right: 2rem !important;
  padding-left: 8px !important;
}

#bookly-tbs .bookly-dt-search-group .bookly-dt-search-input:has(> button.bookly\:absolute) input {
  padding-left: 2rem !important;
}

#bookly-tbs .bookly-dt-search-group .bookly-dt-search-input > .bookly\:absolute.bookly\:pointer-events-none {
  left: unset !important;
  right: 0.5rem !important;
  padding-right: 0;
}

#bookly-tbs .bookly-dt-search-group .bookly-dt-search-input > button.bookly\:absolute {
  right: unset !important;
  left: 0.375rem !important;
}

#bookly-tbs .bookly-dt-search-group div[data-filter-name] .bookly\:flex button[title="حذف فیلتر"] {
  margin-left: 4px !important;
  margin-right: 0 !important;
}

.bookly-dt-search-group div[data-filter-name] button[aria-label="حذف فیلتر"] {
  margin-left: 8px !important;
}

#bookly-tbs .modal-dialog .modal-content input#import_customers_file,
#bookly_settings_google_calendar #bookly_gc_client_id,
#bookly_settings_google_calendar #bookly_gc_client_secret,
#bookly_settings_google_calendar .bookly-js-copy-to-clipboard div[readonly],
#bookly_settings_zoom #bookly_zoom_oauth_client_id,
#bookly_settings_zoom #bookly_zoom_oauth_client_secret,
#bookly_settings_zoom .bookly-js-copy-to-clipboard div[readonly],
#bookly_settings_online_meetings div[readonly],
#bookly_settings_bbb #bookly_bbb_server_end_point,
#bookly_settings_bbb #bookly_bbb_server_end_point_secret,
#bookly_settings_jitsi #bookly_jitsi_server_end_point,
#bookly_settings_jitsi #bookly_jitsi_server_end_point_secret,
#bookly-tbs .card .card-body .bookly-js-details-email input,
#bookly-notification-codes .bookly-js-codes td input,
#bookly-custom-css-dialog #bookly-custom-css,
#bookly_settings_url input,
#bookly_settings_files input,
#bookly_settings_online_meetings input,
#bookly_settings_invoices input#bookly_invoices_file_prefix,
#bookly_co_website,
#bookly_co_email,
#bookly-email,
#bookly-customer-email,
#sender_email_gen,
#sms_tabs_content #bookly-sms-panel-systems .form-group input,
#bookly-tbs #bookly-setup-form .card .card-body input[placeholder="ایمیل"] {
  text-align: left !important;
  direction: ltr !important;
}

.modal-dialog .modal-body .form-group select.form-control,
.card .card-body .form-group select.form-control,
.bookly\:card .bookly\:card-body .form-group select.form-control,
.bookly-js-payment-settings #bookly-payment-step-view,
.bookly-js-done-settings #bookly-done-step-view,
#bookly-tbs #sms_tabs_content #sms_panel select.form-control,
#bookly-tbs #bookly_settings_controls #bookly_settings_smspanel select.form-control {
  width: auto !important;
  max-width: 720px !important;
  margin: 0 20px 4px 0 !important;
}

#bookly-tbs .modal-dialog .modal-content .bookly-dropdown {
  direction: rtl !important;
}

#bookly_settings_business_hours .col-auto.bookly-js-invisible-on-off {
  margin-right: 40px !important;
}

#bookly-tbs select.custom-select optgroup,
#bookly-tbs select.bookly-time-zone-switcher optgroup,
#bookly-tbs select.bookly-time-zone-switcher option,
#bookly-appearance .bookly-js-chain-item select option,
#bookly-appearance .bookly-js-time-range select option {
  direction: rtl !important;
  font-family: tahoma !important;
}

#bookly-appearance .bookly-js-time-range select {
  direction: rtl !important;
}

#bookly-tbs #bookly-staff_members-datatables .bookly-dt-table th,
#bookly-tbs #bookly-services-datatables .bookly-dt-table th,
#bookly-tbs #bookly-email_notifications-datatables .bookly-dt-table th,
#bookly-tbs #sms_tabs_content .bookly-dt-table th,
#bookly-tbs #bookly-payments-datatables .bookly-dt-table th,
#bookly-tbs #bookly-customers-datatables .bookly-dt-table th,
#bookly-tbs #bookly-email-logs-datatables .bookly-dt-table th,
#bookly-tbs .modal-dialog .modal-content .bookly-dropdown span,
#bookly-short-code-form tr td,
#TB_ajaxWindowTitle,
#bookly-tbs #bookly-filter-date {
  text-align: right !important;
}

#bookly-tbs .bookly\:card .bookly\:card-body #bookly-staff_members-datatables .bookly-dt-table tr td span[style*="white-space: nowrap"] {
  direction: ltr !important;
  display: inline-block;
}

#bookly-tbs .form-check {
  padding-left: unset !important;
  padding-right: 1.25rem !important;
}

#bookly-tbs .form-check-input {
  margin-left: unset !important;
  margin-right: -1.25rem !important;
}

#bookly-tbs #bookly-modern-appearance .card .card-body .form-group select.form-control {
  width: 300px !important;
  margin-right: 0 !important;
  padding-right: 6px !important;
}

#bookly-tbs #bookly-modern-appearance .card .card-header .bookly-dropdown span span,
#bookly-tbs #bookly-modern-appearance .bookly-dropdown .bookly-dropdown-toggle {
  margin-right: 10px !important;
}

#bookly-appearance .bookly-js-schedule-help .bookly-round,
#bookly-appearance .bookly-schedule-appointment .bookly-round,
#bookly-appearance .bookly-js-repeat-enabled .bookly-round {
  margin-left: 10px !important;
}

.bookly-nav-steps .bookly-right .bookly-time-next span,
.bookly-nav-steps .bookly-right .bookly-time-prev span {
  direction: rtl !important;
}

#bookly-tbs .bookly-nav-steps .bookly-back-step,
.bookly-service-step .bookly-box > .bookly-left,
.bookly-service-step .bookly-box > .bookly-left > .bookly-left,
.bookly-repeat-step .bookly-js-repeat-variants-container > .bookly-row:nth-of-type(1) > div,
.bookly-repeat-step .bookly-js-repeat-variants-container > .bookly-row:nth-of-type(4) > div,
.bookly-repeat-step .bookly-square.bookly-checkbox,
.bookly-js-schedule-container .bookly-js-schedule-slots .bookly-schedule-row .bookly-schedule-appointment .bookly-schedule-intersect,
.bookly-js-schedule-container .bookly-js-schedule-slots .bookly-schedule-row .bookly-schedule-appointment .bookly-schedule-intersect .bookly-round,
.bookly-js-schedule-container .bookly-js-schedule-slots .bookly-schedule-row .bookly-schedule-appointment .bookly-label-error,
#bookly-tbs .bookly-checkbox-group,
#bookly-tbs .bookly-checkbox-group label.bookly-checkbox {
  float: right !important;
}

.bookly-js-schedule-container .bookly-js-schedule-slots .bookly-schedule-row .bookly-schedule-appointment .bookly-label-error {
  margin-right: 8px;
}

.bookly-js-schedule-container .bookly-js-schedule-slots .bookly-schedule-row div.bookly-hidden-info {
  text-align: right !important;
  padding-right: 8px !important;
}

#bookly-tbs .bookly-right,
.bookly-service-step .bookly-box > .bookly-time-range.bookly-js-time-range > .bookly-left,
.bookly-js-schedule-container .bookly-js-schedule-slots .bookly-schedule-row .bookly-schedule-appointment .bookly-rounds-group {
  float: left !important;
}

.bookly-repeat-step .bookly-js-editable {
  margin-top: 6px;
}

.bookly-js-schedule-container .bookly-js-schedule-slots .bookly-schedule-row .bookly-schedule-appointment .bookly-schedule-date,
.bookly-js-schedule-container .bookly-js-schedule-slots .bookly-schedule-row .bookly-schedule-appointment .bookly-schedule-time {
  float: right !important;
  min-width: 120px !important;
  text-align: center !important;
}

.bookly-css-root .bookly\:flex {
  direction: rtl !important;
}

@media (min-width: 992px) {
  .bookly-appearance-settings.svelte-obcjl1.svelte-obcjl1 {
    left: 10px !important;
    right: unset !important;
  }
}

#bookly-tbs .border-left {
  border-left: none !important;
  border-right: 1px solid #dee2e6 !important;
}

#bookly-campaign-dialog .form-row {
  direction: rtl;
}

#bookly-campaign-dialog .form-row > .col {
  min-width: 0;
}

#bookly-campaign-dialog select.form-control,
#bookly-campaign-dialog select.custom-select {
  direction: rtl;
  text-align: right;
  background-position: left .75rem center !important;
  padding: .375rem .75rem .375rem 2rem !important;
}

#bookly-campaign-dialog #bookly-date,
#bookly-campaign-dialog #bookly-time,
#bookly-tbs .form-control:not(select) {
  direction: rtl;
  text-align: right;
}

#bookly-campaign-dialog .custom-control {
  padding-right: 1.75rem;
  padding-left: 0;
}

#bookly-campaign-dialog .custom-control-label::before,
#bookly-campaign-dialog .custom-control-label::after {
  right: -1.75rem;
  left: auto;
}

#bookly-tbs .pl-2,
#bookly-tbs .px-2 {
  padding-right: .5rem !important;
}

#bookly-tbs .pl-3,
#bookly-tbs .px-3 {
  padding-right: 1rem !important;
}

#bookly-tbs .ml-4,
#bookly-tbs .mx-4 {
  margin-right: 1.5rem !important;
}

#bookly-tbs .mr-2,
#bookly-tbs .mx-2 {
  margin-left: .5rem !important;
}

#bookly-tbs .mr-1,
#bookly-tbs .mx-1 {
  margin-left: .25rem !important;
}

#bookly-discount-modal .modal-dialog .modal-content select#bookly-discount-type,
#bookly-discount-modal .modal-dialog .modal-content input#bookly-discount-threshold {
  margin: 0 14px !important;
}

#bookly-discount-modal .modal-dialog .modal-content .bookly-js-discount-services-wrap button.bookly-dropdown-toggle {
  margin-right: 10px !important;
}

.col-2.bookly-js-schedule-edit.text-right.bookly-collapse {
  align-content: center;
}

.modal-body #bookly-js-message-container label.float-left {
  float: right !important;
  margin-left: 14px;
}

.modal-body #bookly-js-message-container ul.justify-content-end {
  justify-content: flex-start !important;
}

#bookly-js-message-container .wp-editor-wrap .mce-tinymce,
#bookly-js-message-container .wp-editor-wrap iframe {
  min-height: 250px;
}

.bookly-js-autorun-all-tests i::before {
  margin-left: 6px;
}

@media (min-width: 992px) {
  #bookly-tbs .mr-lg-2, #bookly-tbs .mx-lg-2 {
    margin-left: .5rem !important;
  }
}

#bookly-tbs .bookly-js-calendar .ec-content .ec-no-events {
  text-align: center !important;
}

#bookly-tbs .ec-event-tag {
  margin-right: unset !important;
  margin-left: 8px !important;
}

.bookly-js-calendar .ec-header .ec-day {
  text-align: center !important;
}

#bookly-tbs .bookly-js-calendar .ec-toolbar .ec-start {
  margin-right: 0 !important;
}

#bookly-tbs .bookly-js-calendar .ec-toolbar .ec-next:after,
#bookly-tbs .bookly-js-calendar .ec-toolbar .ec-icon.ec-next:after {
  transform: rotate(225deg) !important;
  rotate: none !important;
}

#bookly-tbs .bookly-js-calendar .ec-toolbar .ec-prev:after,
#bookly-tbs .bookly-js-calendar .ec-toolbar .ec-icon.ec-prev:after {
  transform: rotate(45deg) !important;
  rotate: none !important;
}

#bookly-tbs .bookly-js-calendar .ec .ec-header .ec-day,
#bookly-tbs .bookly-js-calendar .ec .ec-header .ec-col-head,
#bookly-tbs .bookly-js-calendar .ec .ec-body .ec-day,
#bookly-tbs .bookly-js-calendar .ec-daygrid .ec-day {
  border-right: 1px solid var(--ec-border-color, #ddd);
}

.bookly-dt-search-group .bookly-dt-search-input input {
  padding-left: 24px !important;
}

.bookly-dt-search-group .bookly-dt-search-input input:placeholder-shown {
  padding-right: 8px !important;
}

div[data-dt-child="تلفن مشتری"],
div[data-dt-child="تلفن"] {
  direction: ltr;
  unicode-bidi: isolate;
}

#bookly-tbs button[data-range-calendar-prev-button] {
  padding-right: 6px !important;
}

#bookly-tbs button[data-range-calendar-next-button] {
  padding-left: 6px !important;
}

.bookly-js-popover-container button span.fa-dollar-sign {
  text-align: center !important;
}

#bookly-tbs .select2-selection__arrow,
#bookly-tbs .booklySelect2-selection__arrow {
  left: 8px !important;
  right: auto !important;
}

#bookly-tbs .select2-selection__rendered,
#bookly-tbs .booklySelect2-selection__rendered {
  padding-left: 32px !important;
  padding-right: 12px !important;
}

#bookly-tbs #bookly-customer-information-fields .bookly-js-delete {
  margin-left: unset !important;
  margin-right: 6px;
}

.bookly-repeat-step .bookly-js-repeat-variants-container .bookly-col-4 {
  min-width: 180px !important;
}

.bookly-repeat-step .bookly-js-repeat-variants-container .bookly-col-label {
  max-width: none;
  white-space: nowrap;
}

.bookly-js-schedule-help .bookly-margin-sm {
  margin: 5px 0 5px 5px !important;
}

.modal-body #bookly-services-time-container .form-group:has(select[name="padding_left"]):has(select[name="padding_right"]) {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  row-gap: 8px;
  align-items: center;
}

.modal-body #bookly-services-time-container .form-group:has(select[name="padding_left"]):has(select[name="padding_right"]) > label {
  margin: 0;
  white-space: nowrap;
}

.modal-body #bookly-services-time-container .form-group:has(select[name="padding_left"]):has(select[name="padding_right"]) > .form-row {
  margin: 0;
  width: 100%;
}

.modal-body #bookly-services-time-container .form-group:has(select[name="padding_left"]):has(select[name="padding_right"]) > small {
  grid-column: 1 / -1;
}

.modal-body #bookly-services-time-container .form-group:has(select[name="padding_left"]):has(select[name="padding_right"]) > .form-row > .col-6 {
  margin: 0 !important;
  max-width: 200px;
}

.modal-body #bookly-services-time-container .form-group:has(select[name="padding_left"]):has(select[name="padding_right"]) > .form-row > .col-6 > select {
  margin: 0 !important;
}

/* Number inputs: always Latin digits (spinner fields) */
#bookly-tbs input[type="number"],
#bookly-tbs input[type="number"].radst-latin-digits {
  direction: ltr;
  text-align: left;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1;
}

/* WordPress classic editor: Bookly shortcode dropdown */
.bookly-wp-editor-menu {
  position: relative;
  display: inline-block;
  vertical-align: top;
  margin: 0 4px;
}

.bookly-wp-editor-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: auto;
  line-height: 1.4;
}

.bookly-wp-editor-menu-items {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  z-index: 100000;
  min-width: 280px;
  max-width: 380px;
  padding: 6px 0;
  background: #fff;
  border: 1px solid #c3c4c7;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  text-align: right;
}

.bookly-wp-editor-menu.is-open .bookly-wp-editor-menu-items {
  display: block;
}

.bookly-wp-editor-menu-items > a,
.bookly-wp-editor-menu-items > button,
.bookly-wp-editor-menu-items .bookly-wp-editor-menu-item {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 6px 12px;
  font-size: 14px;
  text-decoration: none;
  color: #1d2327 !important;
  line-height: 1.4;
  white-space: normal;
  border: 0 !important;
  border-top: 1px solid #e0e0e0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  font-weight: normal;
  height: auto;
  min-height: 0;
  text-align: right;
}

.bookly-wp-editor-menu-items > :first-child {
  border-top: 0 !important;
}

.bookly-wp-editor-menu-items > a:hover,
.bookly-wp-editor-menu-items > a:focus,
.bookly-wp-editor-menu-items > button:hover,
.bookly-wp-editor-menu-items > button:focus,
.bookly-wp-editor-menu-items .bookly-wp-editor-menu-item:hover,
.bookly-wp-editor-menu-items .bookly-wp-editor-menu-item:focus {
  background: #f0f6fc !important;
  color: #1d2327 !important;
  outline: none;
  box-shadow: none !important;
}

.bookly-wp-editor-menu-items .bookly-media-icon {
  display: none !important;
}

.wp-media-buttons,
#wp-content-editor-tools .wp-media-buttons-wrap {
  overflow: visible !important;
}

#bookly-services-schedule select.bookly-js-parent-range-start,
#bookly-services-schedule select.bookly-js-parent-range-end,
#bookly-staff-edit-modal #bookly-schedule-container select.bookly-js-parent-range-start,
#bookly-staff-edit-modal #bookly-schedule-container select.bookly-js-parent-range-end,
#bookly-tbs.bookly-staff-cabinet-schedule select.bookly-js-parent-range-start,
#bookly-tbs.bookly-staff-cabinet-schedule select.bookly-js-parent-range-end,
#bookly-tbs .modal-body #bookly-recurring-type,
.modal-body .list-group-item.extra select[id^="duration_extras_"],
[id^="bookly_sms_"] {
  margin-right: 0 !important;
}

#bookly-services-schedule .bookly-js-range-row,
#bookly-staff-edit-modal #bookly-schedule-container .bookly-js-range-row,
#bookly-tbs.bookly-staff-cabinet-schedule .bookly-js-range-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
}

#bookly-services-schedule .bookly-js-range-row > .col-12.col-lg-8,
#bookly-staff-edit-modal #bookly-schedule-container .bookly-js-range-row > .col-12.col-lg-8,
#bookly-tbs.bookly-staff-cabinet-schedule .bookly-js-range-row > .col-12.col-lg-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
  width: 66.666667%;
  min-width: 0;
  padding-right: 0;
}

#bookly-services-schedule .bookly-js-range-row > .bookly-js-breaks-wrapper,
#bookly-staff-edit-modal #bookly-schedule-container .bookly-js-range-row > .bookly-js-breaks-wrapper,
#bookly-tbs.bookly-staff-cabinet-schedule .bookly-js-range-row > .bookly-js-breaks-wrapper {
  flex: 0 0 auto;
  max-width: none;
  width: auto;
  text-align: left !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

#bookly-services-schedule .bookly-js-breaks-list,
#bookly-staff-edit-modal #bookly-schedule-container .bookly-js-breaks-list,
#bookly-tbs.bookly-staff-cabinet-schedule .bookly-js-breaks-list {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
}

#bookly-services-schedule .bookly-js-breaks-list > div,
#bookly-staff-edit-modal #bookly-schedule-container .bookly-js-breaks-list > div,
#bookly-tbs.bookly-staff-cabinet-schedule .bookly-js-breaks-list > div {
  width: 100%;
}

#bookly-services-schedule .bookly-js-breaks-list .btn-group.mt-2,
#bookly-staff-edit-modal #bookly-schedule-container .bookly-js-breaks-list .btn-group.mt-2,
#bookly-tbs.bookly-staff-cabinet-schedule .bookly-js-breaks-list .btn-group.mt-2 {
  margin-top: 0 !important;
}

#bookly-services-schedule .bookly-js-range-row .bookly-js-hide-on-off button.bookly-js-toggle-popover.btn,
#bookly-staff-edit-modal #bookly-schedule-container .bookly-js-range-row .bookly-js-hide-on-off button.bookly-js-toggle-popover.btn,
#bookly-tbs.bookly-staff-cabinet-schedule .bookly-js-range-row .bookly-js-hide-on-off button.bookly-js-toggle-popover.btn {
  margin-right: 10px !important;
}

#bookly-services-schedule .custom-select.bookly-js-parent-range-end,
#bookly-staff-edit-modal #bookly-schedule-container .custom-select.bookly-js-parent-range-end,
#bookly-tbs.bookly-staff-cabinet-schedule .custom-select.bookly-js-parent-range-end {
  padding-left: 0 !important;
}

#bookly-services-schedule .bookly-js-range-row .col-12.col-lg-8 > .form-row,
#bookly-staff-edit-modal #bookly-schedule-container .bookly-js-range-row .col-12.col-lg-8 > .form-row,
#bookly-tbs.bookly-staff-cabinet-schedule .bookly-js-range-row .col-12.col-lg-8 > .form-row {
  flex-wrap: nowrap;
  align-items: center;
}

#bookly-services-schedule .bookly-js-range-row .bookly-js-range-day,
#bookly-services-schedule .bookly-js-range-row .col-12.col-lg-8 > .form-row > .col-3,
#bookly-staff-edit-modal #bookly-schedule-container .bookly-js-range-row .bookly-js-range-day,
#bookly-staff-edit-modal #bookly-schedule-container .bookly-js-range-row .col-12.col-lg-8 > .form-row > .col-3,
#bookly-tbs.bookly-staff-cabinet-schedule .bookly-js-range-row .bookly-js-range-day,
#bookly-tbs.bookly-staff-cabinet-schedule .bookly-js-range-row .col-12.col-lg-8 > .form-row > .col-3 {
  flex: 0 0 25%;
  max-width: 25%;
  padding-right: 10px !important;
  text-align: right;
}

#bookly-services-schedule .bookly-js-range-row .col-12.col-lg-8 > .form-row > .col-auto,
#bookly-staff-edit-modal #bookly-schedule-container .bookly-js-range-row .col-12.col-lg-8 > .form-row > .col-auto,
#bookly-tbs.bookly-staff-cabinet-schedule .bookly-js-range-row .col-12.col-lg-8 > .form-row > .col-auto {
  flex: 0 0 auto;
  max-width: none;
  width: auto;
}

#bookly-services-schedule .bookly-js-range-times,
#bookly-staff-edit-modal #bookly-schedule-container .bookly-js-range-times,
#bookly-tbs.bookly-staff-cabinet-schedule .bookly-js-range-times {
  display: grid !important;
  grid-template-columns: 160px auto 160px;
  column-gap: 8px;
  row-gap: 0;
  align-items: center;
  width: max-content;
  max-width: 100%;
}

#bookly-staff-edit-modal #bookly-schedule-container .bookly-js-range-times--clone,
#bookly-tbs.bookly-staff-cabinet-schedule .bookly-js-range-times--clone {
  grid-template-columns: 160px auto 160px auto;
}

#bookly-services-schedule .bookly-js-range-times > .bookly-js-range-field,
#bookly-staff-edit-modal #bookly-schedule-container .bookly-js-range-times > .bookly-js-range-field,
#bookly-tbs.bookly-staff-cabinet-schedule .bookly-js-range-times > .bookly-js-range-field {
  min-width: 0;
  width: 160px;
  max-width: 160px;
  padding: 0;
  margin: 0;
}

#bookly-services-schedule .bookly-js-range-times > .bookly-js-range-field select.form-control,
#bookly-services-schedule .bookly-js-range-times > .bookly-js-range-field .custom-select,
#bookly-staff-edit-modal #bookly-schedule-container .bookly-js-range-times > .bookly-js-range-field select.form-control,
#bookly-staff-edit-modal #bookly-schedule-container .bookly-js-range-times > .bookly-js-range-field .custom-select,
#bookly-tbs.bookly-staff-cabinet-schedule .bookly-js-range-times > .bookly-js-range-field select.form-control,
#bookly-tbs.bookly-staff-cabinet-schedule .bookly-js-range-times > .bookly-js-range-field .custom-select {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

#bookly-services-schedule .bookly-js-range-separator,
#bookly-staff-edit-modal #bookly-schedule-container .bookly-js-range-separator,
#bookly-tbs.bookly-staff-cabinet-schedule .bookly-js-range-separator {
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: center;
  padding: 0 2px !important;
  margin: 0 !important;
  line-height: 1.5;
}

#bookly-services-schedule .bookly-js-range-row .bookly-js-invisible-on-off.invisible,
#bookly-staff-edit-modal #bookly-schedule-container .bookly-js-range-row .bookly-js-invisible-on-off.invisible,
#bookly-tbs.bookly-staff-cabinet-schedule .bookly-js-range-row .bookly-js-invisible-on-off.invisible {
  visibility: hidden !important;
  overflow: hidden;
}

#bookly-services-schedule .bookly-js-range-row .bookly-js-range-field.invisible,
#bookly-staff-edit-modal #bookly-schedule-container .bookly-js-range-row .bookly-js-range-field.invisible,
#bookly-tbs.bookly-staff-cabinet-schedule .bookly-js-range-row .bookly-js-range-field.invisible {
  width: 160px !important;
  max-width: 160px !important;
}

#bookly-services-schedule .bookly-js-range-row .bookly-js-range-separator.invisible,
#bookly-staff-edit-modal #bookly-schedule-container .bookly-js-range-row .bookly-js-range-separator.invisible,
#bookly-tbs.bookly-staff-cabinet-schedule .bookly-js-range-row .bookly-js-range-separator.invisible {
  width: auto !important;
  max-width: none !important;
}

#bookly-staff-edit-modal #bookly-schedule-container .bookly-js-clone-schedule,
#bookly-tbs.bookly-staff-cabinet-schedule .bookly-js-clone-schedule {
  justify-self: center;
  align-self: center;
  margin: 0 !important;
  padding: 0 !important;
  position: static;
  z-index: auto;
}

#bookly-staff-edit-modal #bookly-schedule-container .bookly-js-clone-schedule .btn,
#bookly-tbs.bookly-staff-cabinet-schedule .bookly-js-clone-schedule .btn {
  margin: 0;
  padding: 0.375rem 0.5rem;
  line-height: 1.5;
}

#bookly-staff-edit-modal #bookly-schedule-container > div,
#bookly-staff-edit-modal #bookly-schedule-container form,
#bookly-tbs.bookly-staff-cabinet-schedule > form,
#bookly-tbs.bookly-staff-cabinet-schedule .form-group {
  padding-right: 0;
  padding-left: 0;
  margin-right: 0;
  margin-left: 0;
}

#bookly-services-schedule .bookly-popover .bookly-js-break-times,
#bookly-staff-edit-modal #bookly-schedule-container .bookly-popover .bookly-js-break-times,
#bookly-tbs.bookly-staff-cabinet-schedule .bookly-popover .bookly-js-break-times {
  flex-wrap: nowrap !important;
  align-items: center !important;
  margin-left: 0;
  margin-right: 0;
}

#bookly-services-schedule .bookly-popover .bookly-js-break-times > .col-auto:not(.bookly-js-break-separator),
#bookly-staff-edit-modal #bookly-schedule-container .bookly-popover .bookly-js-break-times > .col-auto:not(.bookly-js-break-separator),
#bookly-tbs.bookly-staff-cabinet-schedule .bookly-popover .bookly-js-break-times > .col-auto:not(.bookly-js-break-separator) {
  flex: 0 0 auto;
  max-width: 160px !important;
  width: 160px;
}

#bookly-services-schedule .bookly-popover .bookly-js-break-separator,
#bookly-staff-edit-modal #bookly-schedule-container .bookly-popover .bookly-js-break-separator,
#bookly-tbs.bookly-staff-cabinet-schedule .bookly-popover .bookly-js-break-separator {
  flex: 0 0 auto;
  white-space: nowrap;
  padding-left: 6px !important;
  padding-right: 6px !important;
  margin: 0 !important;
}

#bookly-tbs.bookly-staff-cabinet-schedule .bookly-js-range-row + .bookly-js-range-row {
  margin-top: 0.5rem;
}

#bookly-tbs.bookly-staff-cabinet-schedule .bookly-js-breaks-wrapper.text-lg-right {
  text-align: left !important;
}

#bookly-tbs.bookly-staff-cabinet-schedule .text-right:has(#bookly-schedule-save) {
  text-align: left !important;
}

#bookly-tbs.bookly-staff-cabinet-schedule .text-right:has(#bookly-schedule-save) #bookly-schedule-save {
  margin-left: 10px;
  margin-right: 0;
}

#bookly-tbs.bookly-staff-cabinet-schedule {
  direction: rtl;
  text-align: right;
}

#bookly-tbs.bookly-staff-cabinet-schedule .bookly-js-range-row .bookly-js-range-day {
  font-weight: 600;
}

#bookly-tbs.bookly-staff-cabinet-schedule .bookly-js-breaks-list .btn-group .btn-info {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#bookly-staff-edit-modal #bookly-special-days-container {
  position: relative;
  overflow: visible;
}

#bookly-staff-edit-modal #bookly-special-days-container .bookly-js-special-days-breaks-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

#bookly-staff-edit-modal #bookly-special-days-container .bookly-js-special-days-breaks-actions {
  flex: 0 1 auto;
  min-width: 0;
}

#bookly-staff-edit-modal #bookly-special-days-container .bookly-js-special-days-delete-check {
  flex: 0 0 auto;
  margin-top: 0.5rem !important;
}

#bookly-staff-edit-modal #bookly-special-days-container button.bookly-js-special-days-toggle-popover,
#bookly-staff-edit-modal #special_days button.bookly-js-special-days-toggle-popover {
  margin-right: 10px !important;
}

#bookly-staff-edit-modal .bookly-popover.bookly-popover-special-days-break {
  z-index: 1065;
  width: auto !important;
  max-width: none !important;
  box-sizing: border-box;
}

#bookly-staff-edit-modal .bookly-popover.bookly-popover-special-days-break .popover-body {
  overflow: visible;
  box-sizing: border-box;
}

#bookly-staff-edit-modal .bookly-popover.bookly-popover-special-days-break .bookly-js-break-times {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  margin-left: 0;
  margin-right: 0;
  width: auto;
  max-width: none;
}

#bookly-staff-edit-modal .bookly-popover.bookly-popover-special-days-break .bookly-js-break-times > .col-auto:not(.bookly-js-break-separator) {
  flex: 0 0 auto;
  width: auto;
  max-width: none !important;
  min-width: 0;
  padding: 0;
}

#bookly-staff-edit-modal .bookly-popover.bookly-popover-special-days-break .bookly-js-break-times select.form-control,
#bookly-staff-edit-modal .bookly-popover.bookly-popover-special-days-break .bookly-js-break-times .custom-select {
  display: inline-block;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

#bookly-staff-edit-modal .bookly-popover.bookly-popover-special-days-break .bookly-js-break-separator {
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: center;
  padding-left: 6px !important;
  padding-right: 6px !important;
  margin: 0 !important;
}

#bookly-edit-service-modal #bookly-services-special-days-container {
  position: relative;
  overflow: visible;
}

#bookly-edit-service-modal #bookly-services-special-days-container .bookly-js-special-days-breaks-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

#bookly-edit-service-modal #bookly-services-special-days-container .bookly-js-special-days-breaks-actions {
  flex: 0 1 auto;
  min-width: 0;
}

#bookly-edit-service-modal #bookly-services-special-days-container .bookly-js-special-days-delete-check {
  flex: 0 0 auto;
  margin-top: 0.5rem !important;
}

#bookly-edit-service-modal #bookly-services-special-days-container button.bookly-js-toggle-popover.btn-default {
  margin-right: 10px !important;
}

#bookly-edit-service-modal .bookly-popover.bookly-popover-service-special-days-break {
  z-index: 1065;
  width: auto !important;
  max-width: none !important;
  box-sizing: border-box;
}

#bookly-edit-service-modal .bookly-popover.bookly-popover-service-special-days-break .popover-body {
  overflow: visible;
  box-sizing: border-box;
}

#bookly-edit-service-modal .bookly-popover.bookly-popover-service-special-days-break .bookly-js-break-times {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  margin-left: 0;
  margin-right: 0;
  width: auto;
  max-width: none;
}

#bookly-edit-service-modal .bookly-popover.bookly-popover-service-special-days-break .bookly-js-break-times > .col-auto:not(.bookly-js-break-separator) {
  flex: 0 0 auto;
  width: auto;
  max-width: none !important;
  min-width: 0;
  padding: 0;
}

#bookly-edit-service-modal .bookly-popover.bookly-popover-service-special-days-break .bookly-js-break-times select.form-control,
#bookly-edit-service-modal .bookly-popover.bookly-popover-service-special-days-break .bookly-js-break-times .custom-select {
  display: inline-block;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

#bookly-edit-service-modal .bookly-popover.bookly-popover-service-special-days-break .bookly-js-break-separator {
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: center;
  padding-left: 6px !important;
  padding-right: 6px !important;
  margin: 0 !important;
}

#bookly-staff-edit-modal #bookly-holidays-container .bookly-js-holidays-nav .jcal_year {
  min-width: 4.5rem;
  direction: rtl;
}

#bookly-staff-edit-modal #bookly-holidays-container .jCalMo .month .monthName {
  direction: rtl;
}

#bookly-tbs #bookly_settings_restore_defaults .bookly-restore-defaults-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 1rem;
}

#bookly-tbs #bookly_settings_restore_defaults .bookly-restore-defaults-row.mb-0 {
  margin-bottom: 0;
}

#bookly-tbs #bookly_settings_restore_defaults .bookly-restore-defaults-label {
  margin: 0;
}

#bookly-tbs input:not([type="checkbox"]):not([type="radio"]), #bookly-tbs textarea {
  background-position-x: calc(100% - 10px) !important;
}

#bookly-tbs .bookly-alert .alert-danger .close {
  margin-left: unset !important;
  margin-right: 6px !important;
}

#bookly-tbs .bookly-alert .alert-danger .w-100 {
  width: auto !important;
}

#bookly-tbs .modal-body input#bookly-smtp-to {
  direction: ltr !important;
  text-align: left !important;
}

#bookly-tbs .modal-body .list-group-item.extra div.row div.col-sm-3 {
  max-width: unset;
  flex: 20% !important;
}

.bookly-js-calendar .ec-timeline .ec-container {
  direction: ltr;
}

.bookly-js-calendar .ec-timeline .ec-container .ec-sidebar {
  direction: rtl !important;
}

.bookly-js-calendar .ec-timeline .ec-main .ec-header .ec-times .ec-time,
.bookly-js-calendar .ec-timeline .ec-main .ec-event-time {
  text-align: center !important;
  direction: rtl;
}

.bookly-js-calendar .ec-timeline .ec-main .ec-header .ec-days .ec-day-head {
  margin-right: 20px;
}

.bookly-js-calendar .ec-timeline .ec-main .ec-header .ec-days .ec-day {
  margin-right: -1px;
}

.bookly-js-calendar .ec-timeline .ec-main .ec-header .ec-days .ec-day .ec-time {
  text-align: center !important;
}

.ec-timeline .ec-toolbar .ec-start .ec-button-group {
  margin-right: 0 !important;
}