body .label {
  font-size: 13px;
}

body.appointly-standalone-booking-page {
  background: #f8fbff !important;
  color: #0f1f3d;
}

body.appointly-standalone-booking-page .logo-header {
  display: none;
}

.appointly-standalone-header {
  padding: 0;
}

.appointly-standalone-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  max-width: 1500px;
  min-height: 78px;
  margin: 0 auto;
  padding: 18px 32px;
  border-bottom: 1px solid #e3eaf5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 31, 61, 0.06);
}

.appointly-standalone-header-container.container::before,
.appointly-standalone-header-container.container::after {
  display: none;
  content: none;
}

.appointly-standalone-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 1 auto;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.appointly-standalone-brand:hover,
.appointly-standalone-brand:focus {
  text-decoration: none;
  color: inherit;
}

.appointly-standalone-brand img {
  width: 142px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
}

.appointly-standalone-brand strong {
  color: #0f1f3d;
  font-size: 20px;
  font-weight: 800;
}

.appointly-standalone-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  margin-bottom: 24px;
  padding: 16px 20px;
}

.appointly-standalone-progress ol {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.appointly-standalone-progress-step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #667390;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.appointly-standalone-progress-step:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  margin-left: 14px;
  background: #d8e1ef;
}

.appointly-standalone-progress-step i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #e4e9f2;
  color: #4b5873;
  font-style: normal;
}

body:not(.appointly-template-studio) .appointly-standalone-progress-step i::before {
  width: auto;
  height: auto;
  background: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.appointly-standalone-progress .is-active {
  color: #1264f6;
}

.appointly-standalone-progress-step.is-active i {
  background: #1264f6;
  color: #fff;
  box-shadow: 0 8px 18px rgba(18, 100, 246, 0.25);
}

.appointly-account-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  min-width: 0;
}

.appointly-account-greeting {
  max-width: 170px;
  color: #17233d;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.appointly-account-avatar-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #dce5f1;
  border-radius: 999px;
  background: #fff;
  color: #1264f6;
  box-shadow: 0 10px 24px rgba(15, 31, 61, 0.08);
  cursor: pointer;
}

.appointly-account-avatar-btn:hover,
.appointly-account-avatar-btn[aria-expanded="true"] {
  border-color: #b9c9e1;
  box-shadow: 0 12px 28px rgba(15, 31, 61, 0.12);
}

.appointly-account-avatar {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
}

.appointly-account-login-icon {
  font-size: 22px;
}

.appointly-account-caret {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #1264f6;
  color: #fff;
  font-size: 11px;
}

.appointly-account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  display: none;
  min-width: 210px;
  padding: 8px;
  border: 1px solid #dce5f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(15, 31, 61, 0.14);
}

.appointly-account-dropdown.is-open {
  display: block;
}

.appointly-account-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #17233d;
  font-weight: 700;
  text-align: left;
}

.appointly-account-dropdown button:hover {
  background: #f2f6fb;
  color: #1264f6;
}

.appointly-standalone-step-actions {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.appointly-standalone-step-actions .btn-default {
  min-height: 52px;
  border-color: #dce5f1;
  border-radius: 7px;
  color: #0f1f3d;
  font-weight: 800;
}

.appointly-date-time-actions {
  margin-top: 24px;
}

.appointly-mobile-selected-slot {
  display: none;
}

@media (min-width: 992px) {
  body .appointly-standalone-step-actions.appointly-date-time-actions {
    display: grid;
    grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
    align-items: center;
  }

  body .appointly-standalone-step-actions.appointly-date-time-actions .appointly-mobile-selected-slot,
  body .appointly-standalone-step-actions.appointly-date-time-actions .appointly-mobile-selected-slot.is-visible {
    display: none !important;
  }

  body .appointly-standalone-step-actions.appointly-date-time-actions .btn-prev-step {
    grid-column: 1;
  }

  body .appointly-standalone-step-actions.appointly-date-time-actions .btn-next[data-step="3"] {
    grid-column: 2;
  }
}

.appointly-details-actions {
  display: flex;
  justify-content: flex-end;
}

.appointly-details-actions .btn-prev-step {
  display: none !important;
}

body.appointly-standalone-booking-page #wrapper {
  padding: 32px 0 44px !important;
}

body.appointly-standalone-booking-page #content > .container {
  width: 100%;
  max-width: 1500px;
  padding-right: 32px;
  padding-left: 32px;
}

.appointly-standalone-titlebar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.appointly-standalone-titlebar h1 {
  margin: 0 0 8px;
  color: #0f1f3d;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
}

.appointly-standalone-titlebar p {
  margin: 0;
  color: #53627c;
  font-size: 16px;
}

.appointly-standalone-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid #dce5f1;
  border-radius: 10px;
  background: #fff;
  color: #0f1f3d;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 31, 61, 0.06);
}

body.appointly-standalone-booking-page .main_wrapper {
  width: 100%;
  padding: 0 !important;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.appointly-standalone-booking-page #step-1.active {
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

body.appointly-standalone-booking-page.appointly-standalone-no-categories #step-1.active {
  grid-template-columns: 1fr;
}

body.appointly-standalone-booking-page #step-1 > h4 {
  display: none;
}

body.appointly-standalone-booking-page:not(.appointly-custom-layout-view) #step-3 > .tw-flex.tw-justify-between,
body.appointly-standalone-booking-page #step-4 > .tw-flex.tw-justify-between,
body.appointly-custom-standalone-time-page #step-3 > .tw-flex.tw-justify-between {
  display: none;
}

body.appointly-standalone-booking-page #step-4.active {
  display: grid !important;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1fr);
  gap: 24px;
}

body.appointly-custom-standalone-time-page.appointly-standalone-payment-enabled #step-4.active {
  display: grid !important;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1fr);
  gap: 24px;
}

body.appointly-standalone-booking-page #step-4 .appointly-standalone-step-title,
body.appointly-standalone-booking-page #step-4 .appointly-standalone-cardbar,
body.appointly-standalone-booking-page #step-4 .tw-flex.tw-justify-end,
body.appointly-custom-standalone-time-page.appointly-standalone-payment-enabled #step-4 .appointly-standalone-step-title,
body.appointly-custom-standalone-time-page.appointly-standalone-payment-enabled #step-4 .tw-flex.tw-justify-end {
  grid-column: 1 / -1;
}

body.appointly-custom-standalone-time-page.appointly-standalone-payment-enabled #step-4 > .appointly-custom-step-header {
  display: none !important;
}

body.appointly-custom-standalone-time-page.appointly-standalone-payment-enabled #step-4 > .appointly-custom-booking-summary {
  display: none;
}

body.appointly-custom-standalone-time-page.appointly-standalone-payment-enabled #step-4 > .tw-bg-white,
body.appointly-custom-standalone-time-page.appointly-standalone-payment-enabled #step-4 > .tw-mb-6 {
  grid-column: 1;
  margin-bottom: 0 !important;
}

body.appointly-standalone-booking-page #step-4 .appointly-custom-booking-summary {
  grid-column: 2;
  grid-row: 3 / span 4;
  margin-bottom: 0 !important;
  border-radius: 10px;
}

body.appointly-standalone-booking-page #step-4 .appointly-custom-booking-summary-title {
  display: none;
}

body.appointly-standalone-booking-page #step-4 .appointly-custom-booking-summary-grid {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 12px;
}

body.appointly-standalone-booking-page #step-4 .appointly-custom-booking-summary-item {
  padding: 0 !important;
  border: 0;
  background: transparent !important;
  box-shadow: none;
}

body.appointly-standalone-booking-page #step-4 > .tw-bg-white,
body.appointly-standalone-booking-page #step-4 > .tw-mb-6 {
  grid-column: 1;
  margin-bottom: 0 !important;
}

body.appointly-standalone-booking-page #step-4 > .tw-bg-white {
  border-radius: 10px;
}

body.appointly-standalone-booking-page #step-4 .appointly-otp-card-wrap {
  display: flex;
  grid-column: 1 / -1;
  justify-content: center;
  width: 100%;
}

body.appointly-standalone-booking-page #step-4 .appointly-otp-card-wrap[hidden],
body.appointly-standalone-booking-page #step-4 .appointly-otp-card-wrap.tw-hidden {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body.appointly-standalone-booking-page #step-4 #appointly-otp-card {
  width: min(100%, 560px);
  margin-bottom: 0 !important;
}

.appointly-otp-auto-progress {
  width: 100%;
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: #e8eef7;
  overflow: hidden;
}

.appointly-otp-auto-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #1264f6;
  transition: width 1s linear;
}

.appointly-otp-title {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.appointly-login-choice-title {
  margin-bottom: 18px;
  text-align: center;
  font-size: 22px;
}

.appointly-login-choice-actions {
  display: grid;
  gap: 12px;
}

.appointly-login-choice-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #ffffff;
  color: #0f1f3d;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.appointly-login-choice-btn:hover,
.appointly-login-choice-btn:focus {
  border-color: #1264f6;
  box-shadow: 0 12px 28px rgba(18, 100, 246, 0.12);
  transform: translateY(-1px);
}

.appointly-login-choice-btn i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1264f6;
  font-size: 18px;
}

.appointly-email-login-links {
  margin: 12px 0 0;
  text-align: center;
}

.appointly-email-login-links a,
.appointly-email-login-links button {
  border: 0;
  background: transparent;
  color: #1264f6;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.appointly-email-login-links button:hover,
.appointly-email-login-links button:focus {
  text-decoration: underline;
}

.appointly-email-login-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.appointly-email-login-status.is-error {
  color: #b91c1c;
}

.appointly-email-login-status.is-success {
  color: #166534;
}

body.appointly-standalone-booking-page #appointly-booking-categories {
  display: flex !important;
  flex-direction: column;
  grid-column: 1;
  grid-row: 1;
  min-height: 522px;
  padding: 34px 18px;
  border: 1px solid #e0e8f2;
  border-radius: 12px;
  background: #fff;
}

body.appointly-standalone-booking-page .appointly-booking-category-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent;
}

body.appointly-standalone-booking-page .appointly-booking-category-card:hover,
body.appointly-standalone-booking-page .appointly-booking-category-card.is-active,
body.appointly-standalone-booking-page .appointly-booking-category-card.selected {
  background: #edf4ff;
}

body.appointly-standalone-booking-page .appointly-booking-category-photo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  aspect-ratio: auto;
  background-color: #fff !important;
  color: #fff;
}

body.appointly-standalone-booking-page .appointly-booking-category-photo.has-photo {
  background-size: cover !important;
  background-position: center !important;
}

body.appointly-standalone-booking-page .appointly-booking-category-photo.has-placeholder::before {
  content: "\f105";
  font-family: FontAwesome;
  font-size: 22px;
  line-height: 1;
}

body.appointly-standalone-booking-page .appointly-booking-category-card:nth-child(2) .appointly-booking-category-photo.has-placeholder {
  background: #ffedf5 !important;
  color: #f2387f;
}

body.appointly-standalone-booking-page .appointly-booking-category-card:nth-child(3) .appointly-booking-category-photo.has-placeholder {
  background: #e9f9f0 !important;
  color: #27b96f;
}

body.appointly-standalone-booking-page .appointly-booking-category-card:nth-child(4) .appointly-booking-category-photo.has-placeholder {
  background: #fff5dc !important;
  color: #f4a62a;
}

body.appointly-standalone-booking-page .appointly-booking-category-card:nth-child(5) .appointly-booking-category-photo.has-placeholder {
  background: #f3eaff !important;
  color: #8d4ccf;
}

body.appointly-standalone-booking-page .appointly-booking-category-card > span:last-child {
  display: contents;
  padding: 0;
}

body.appointly-standalone-booking-page .appointly-booking-category-card .tw-font-semibold {
  color: #0f1f3d;
  font-size: 16px;
  font-weight: 800;
}

.appointly-standalone-category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f0f4fa;
  color: #667390;
  font-size: 13px;
  font-weight: 800;
}

body.appointly-standalone-booking-page .appointly-booking-category-card .btn {
  display: none;
}

body.appointly-standalone-booking-page #appointly-services-category-toolbar,
body.appointly-standalone-booking-page #appointly-category-empty-services {
  grid-column: 2;
}

.appointly-standalone-support-card {
  display: grid;
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #e0e8f2;
  border-radius: 12px;
  background: #fff;
}

.appointly-standalone-support-card strong,
.appointly-standalone-secure-banner strong {
  color: #0f1f3d;
  font-weight: 800;
}

.appointly-standalone-support-card p {
  margin: 4px 0 0;
  color: #53627c;
}

.appointly-standalone-support-card .btn {
  grid-column: 1 / -1;
  min-height: 38px;
  border-color: #9bc0ff;
  color: #1264f6;
  font-weight: 800;
}

.appointly-standalone-character {
  position: relative;
  width: 64px;
  height: 70px;
}

.appointly-standalone-character .hair {
  position: absolute;
  top: 2px;
  left: 8px;
  width: 48px;
  height: 34px;
  border-radius: 24px 24px 16px 16px;
  background: #17233d;
}

.appointly-standalone-character .face {
  position: absolute;
  top: 18px;
  left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 42px;
  border-radius: 50%;
  background: #ffd4a8;
  color: #17233d;
  font-size: 13px;
  font-weight: 800;
}

.appointly-standalone-character .shirt {
  position: absolute;
  bottom: 0;
  left: 13px;
  width: 38px;
  height: 22px;
  border-radius: 18px 18px 6px 6px;
  background: #1264f6;
}

body.appointly-standalone-booking-page #appointly-booking-services {
  display: grid !important;
  grid-column: 2;
  grid-row: 1 / span 2;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px;
  padding: 28px;
  border: 1px solid #e0e8f2;
  border-radius: 12px;
  background: #fff;
  overflow: visible;
}

body.appointly-standalone-booking-page.appointly-standalone-no-categories #appointly-booking-services,
body.appointly-standalone-booking-page.appointly-standalone-no-categories .appointly-standalone-secure-banner {
  grid-column: 1;
}

.appointly-standalone-services-head {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 6px;
}

.appointly-standalone-services-head h2 {
  margin: 0;
  color: #0f1f3d;
  font-size: 20px;
  font-weight: 800;
}

.appointly-standalone-sort {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #667390;
  font-weight: 700;
}

.appointly-standalone-sort button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #dce5f1;
  border-radius: 8px;
  background: #fff;
  color: #0f1f3d;
  font-weight: 800;
}

body.appointly-standalone-booking-page .appointly-service-gallery-card {
  position: relative;
  overflow: visible !important;
  border-radius: 10px !important;
  box-shadow: 0 14px 30px rgba(15, 31, 61, 0.12);
}

body.appointly-standalone-booking-page .appointly-service-gallery-photo {
  border-radius: 10px 10px 0 0;
  aspect-ratio: 21 / 7;
}

body.appointly-standalone-booking-page .appointly-service-gallery-body {
  padding: 18px;
  text-align: left;
}

body.appointly-standalone-booking-page .appointly-service-gallery-title {
  min-height: 0;
  margin-bottom: 6px;
  color: #0f1f3d;
  font-size: 19px;
  font-weight: 800;
}

body.appointly-standalone-booking-page .appointly-service-read-more {
  color: #53627c;
  font-size: 14px;
  text-decoration: none;
}

body.appointly-standalone-booking-page .appointly-service-gallery-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-top: 16px;
  color: #53627c;
  font-size: 14px;
}

body.appointly-standalone-booking-page .appointly-service-gallery-price {
  grid-column: 1;
  margin-top: 12px;
  color: #1264f6;
  font-size: 20px;
  text-align: left;
}

body.appointly-standalone-booking-page .appointly-service-pricing-menu {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

body.appointly-standalone-booking-page .appointly-service-details-pricing {
  margin-top: 18px;
}

body.appointly-standalone-booking-page #appointly-service-details-modal .modal-dialog {
  width: min(720px, calc(100% - 24px));
}

body.appointly-standalone-booking-page .appointly-service-details-pricing-menu {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 16px;
  border-top: 1px solid #e3eaf5;
}

body.appointly-standalone-booking-page .appointly-service-pricing-variant {
  width: 100%;
  max-width: 100%;
  padding: 12px;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background: #f7faff;
}

body.appointly-standalone-booking-page .appointly-service-pricing-variant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

body.appointly-standalone-booking-page .appointly-service-pricing-variant-head strong {
  min-width: 0;
  color: #0f1f3d;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

body.appointly-standalone-booking-page .appointly-service-pricing-variant-head span {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #53627c;
  font-size: 11px;
  font-weight: 900;
}

body.appointly-standalone-booking-page .appointly-service-pricing-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-bottom: 2px;
}

body.appointly-standalone-booking-page #step-1 .appointly-service-addons {
  display: none;
}

body.appointly-standalone-booking-page .appointly-addon-step-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
}

body.appointly-standalone-booking-page .appointly-addon-step-service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e3eaf5;
}

body.appointly-standalone-booking-page .appointly-addon-step-service strong {
  color: #0f1f3d;
  font-size: 18px;
  font-weight: 900;
}

body.appointly-standalone-booking-page .appointly-addon-step-options {
  display: grid;
  gap: 12px;
}

body.appointly-standalone-booking-page .appointly-addon-step-section {
  display: grid;
  gap: 12px;
}

body.appointly-standalone-booking-page .appointly-addon-step-section + .appointly-addon-step-section {
  padding-top: 16px;
  border-top: 1px solid #e3eaf5;
}

body.appointly-standalone-booking-page .appointly-addon-step-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

body.appointly-standalone-booking-page .appointly-addon-step-section-head strong {
  color: #0f1f3d;
  font-size: 15px;
  font-weight: 900;
}

body.appointly-standalone-booking-page .appointly-addon-step-section-head span {
  color: #53627c;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

body.appointly-standalone-booking-page .appointly-addon-step-pricing-options,
body.appointly-standalone-booking-page .appointly-addon-step-addon-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.appointly-standalone-booking-page .appointly-addon-step-option,
body.appointly-standalone-booking-page .appointly-addon-step-pricing-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 14px;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

body.appointly-standalone-booking-page .appointly-addon-step-option:hover,
body.appointly-standalone-booking-page .appointly-addon-step-option:has(input:checked),
body.appointly-standalone-booking-page .appointly-addon-step-pricing-option:hover,
body.appointly-standalone-booking-page .appointly-addon-step-pricing-option:has(input:checked) {
  border-color: #9bc0ff;
  background: #f4f8ff;
}

body.appointly-standalone-booking-page .appointly-addon-step-option input,
body.appointly-standalone-booking-page .appointly-addon-step-pricing-option input {
  margin: 0;
}

body.appointly-standalone-booking-page .appointly-addon-step-option span,
body.appointly-standalone-booking-page .appointly-addon-step-pricing-option span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body.appointly-standalone-booking-page .appointly-addon-step-option b,
body.appointly-standalone-booking-page .appointly-addon-step-pricing-option b {
  color: #0f1f3d;
  font-size: 14px;
  font-weight: 900;
}

body.appointly-standalone-booking-page .appointly-addon-step-option small,
body.appointly-standalone-booking-page .appointly-addon-step-pricing-option small {
  color: #53627c;
  font-size: 12px;
  line-height: 1.35;
}

body.appointly-standalone-booking-page .appointly-addon-step-option em,
body.appointly-standalone-booking-page .appointly-addon-step-pricing-option em {
  color: #1264f6;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  text-align: right;
  text-transform: capitalize;
}

body.appointly-standalone-booking-page .appointly-addon-empty {
  padding: 22px;
  border: 1px dashed #cbd8ea;
  border-radius: 8px;
  background: #f8fbff;
  text-align: center;
}

body.appointly-standalone-booking-page .appointly-addon-empty strong,
body.appointly-standalone-booking-page .appointly-addon-empty span {
  display: block;
}

body.appointly-standalone-booking-page .appointly-addon-empty strong {
  color: #0f1f3d;
  font-weight: 900;
}

body.appointly-standalone-booking-page .appointly-addon-empty span {
  margin-top: 4px;
  color: #53627c;
}

body.appointly-standalone-booking-page .appointly-date-time-price-summary {
  grid-column: 1 / -1;
  margin-top: 18px;
}

body.appointly-standalone-booking-page .appointly-date-time-price-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #dbe6f4;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 31, 61, 0.06);
}

body.appointly-standalone-booking-page .appointly-date-time-price-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2f8;
}

body.appointly-standalone-booking-page .appointly-date-time-price-card > header div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body.appointly-standalone-booking-page .appointly-date-time-price-card > header strong {
  color: #0f1f3d;
  font-size: 15px;
  font-weight: 900;
}

body.appointly-standalone-booking-page .appointly-date-time-price-card > header span {
  color: #53627c;
  font-size: 12px;
  font-weight: 800;
}

body.appointly-standalone-booking-page .appointly-date-time-price-card > header b {
  color: #1264f6;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

body.appointly-standalone-booking-page #appointly-table-calendar {
  margin-top: 5px;
}

body.appointly-standalone-booking-page .appointly-service-pricing-rules span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #d7e3f5;
  border-radius: 8px;
  background: #fff;
  white-space: normal;
}

body.appointly-standalone-booking-page .appointly-service-addons {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

body.appointly-standalone-booking-page .appointly-service-addons > strong {
  color: #0f1f3d;
  font-size: 13px;
  font-weight: 900;
}

body.appointly-standalone-booking-page .appointly-service-addon-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 10px;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

body.appointly-standalone-booking-page .appointly-service-addon-option:hover,
body.appointly-standalone-booking-page .appointly-service-addon-option:has(input:checked) {
  border-color: #9bc0ff;
  background: #f4f8ff;
}

body.appointly-standalone-booking-page .appointly-service-addon-option input {
  margin: 0;
}

body.appointly-standalone-booking-page .appointly-service-addon-option span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body.appointly-standalone-booking-page .appointly-service-addon-option b {
  color: #0f1f3d;
  font-size: 13px;
  font-weight: 900;
}

body.appointly-standalone-booking-page .appointly-service-addon-option small {
  color: #53627c;
  font-size: 12px;
  line-height: 1.35;
}

body.appointly-standalone-booking-page .appointly-service-addon-option em {
  color: #1264f6;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-align: right;
  text-transform: capitalize;
}

body.appointly-standalone-booking-page .appointly-service-pricing-rules em {
  color: #53627c;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
}

body.appointly-standalone-booking-page .appointly-service-pricing-rules b {
  align-self: start;
  color: #1264f6;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

body.appointly-standalone-booking-page .appointly-service-pricing-rules small {
  grid-column: 1 / -1;
  color: #7a879a;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: capitalize;
}

.appointly-standalone-player-label {
  display: block;
  margin-top: 16px;
  color: #53627c;
  font-size: 13px;
  font-weight: 700;
}

body.appointly-standalone-booking-page .appointly-service-gallery-actions {
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 12px;
  margin-top: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

body.appointly-standalone-booking-page .appointly-service-quantity {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  justify-content: flex-start;
  min-height: 46px;
  padding: 0 8px 0 14px;
  border: 1px solid #dce5f1;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  overflow: visible;
}

body.appointly-standalone-booking-page .appointly-service-quantity .fa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #53627c;
}

body.appointly-standalone-booking-page .appointly-service-quantity > .fa {
  width: 24px;
}

.appointly-service-quantity-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 24px;
  color: #0f1f3d;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.appointly-service-quantity-controls {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
  justify-self: end;
  margin-left: auto;
}

.appointly-service-quantity-step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #eef4ff;
  color: #1264f6;
  font-size: 15px;
  line-height: 1;
}

body.appointly-standalone-booking-page .appointly-service-select.btn {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  background: #1264f6;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.appointly-standalone-secure-banner {
  display: flex;
  grid-column: 2;
  grid-row: 3;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 18px 24px;
  border: 1px solid #d9eee2;
  border-radius: 12px;
  background: #f7fffb;
}

.appointly-standalone-secure-banner > .fa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2px solid #65c986;
  border-radius: 999px;
  color: #27a45c;
  font-size: 22px;
}

.appointly-standalone-secure-banner span {
  display: block;
  margin-top: 3px;
  color: #667390;
}

.appointly-standalone-character-pair {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.appointly-standalone-character-pair span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #ffd4a8;
  color: #17233d;
  font-weight: 800;
}

.appointly-standalone-character-pair span:nth-child(2) {
  background: #ffe0b8;
}

.appointly-standalone-flow-page {
  color: #0f1f3d;
}

.appointly-standalone-step-title {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.appointly-standalone-step-title > div {
  min-width: 0;
}

.appointly-standalone-title-back {
  flex: 0 0 auto;
  margin-left: auto;
}

.appointly-standalone-step-title > span {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #1264f6;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(18, 100, 246, 0.25);
}

.appointly-standalone-step-title h2 {
  margin: 0 0 4px;
  color: #0f1f3d;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

.appointly-standalone-step-title p {
  margin: 0;
  color: #53627c;
  font-size: 15px;
  font-weight: 600;
}

.appointly-standalone-back-service {
  margin-left: auto;
  align-self: center;
  min-height: 40px;
  border-color: #dce5f1;
  border-radius: 7px;
  color: #0f1f3d;
  font-weight: 800;
  white-space: nowrap;
}

.appointly-standalone-panel {
  border: 1px solid #e0e8f2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 31, 61, 0.06);
}

.appointly-standalone-cardbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 24px;
  border: 1px solid #e0e8f2;
  border-radius: 10px 10px 0 0;
  background: #fff;
  color: #0f1f3d;
  box-shadow: 0 12px 30px rgba(15, 31, 61, 0.04);
}

.appointly-standalone-cardbar span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 16px;
  font-weight: 800;
}

.appointly-standalone-cardbar .fa-th-large {
  color: #53627c;
}

.appointly-standalone-cardbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #53627c;
  font-size: 22px;
}

.appointly-standalone-cardbar + .appointly-standalone-panel,
.appointly-standalone-cardbar + .appointly-table-calendar {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

body.appointly-standalone-booking-page #step-3 .appointly-table-calendar {
  padding: 24px;
  border: 1px solid #e0e8f2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 31, 61, 0.06);
}

body.appointly-custom-standalone-time-page #step-3 .appointly-table-calendar {
  padding: 24px;
  border: 1px solid #e0e8f2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 31, 61, 0.06);
}

body.appointly-custom-standalone-time-page #step-3 .appointly-table-calendar-heading {
  justify-content: flex-start;
  margin-top: 16px;
}

body.appointly-custom-standalone-time-page #step-3 .appointly-table-calendar-heading > div:first-child {
  display: none;
}

body.appointly-custom-standalone-time-page #step-3 .appointly-table-calendar-legend {
  width: 100%;
  margin-bottom: 14px;
  padding: 0 4px;
  gap: 28px;
  color: #53627c;
  font-size: 14px;
  font-weight: 800;
}

body.appointly-custom-standalone-time-page #step-3 .appointly-table-calendar-legend i {
  width: 22px;
  height: 20px;
  border-radius: 4px;
}

body.appointly-custom-standalone-time-page #step-3 .appointly-table-calendar-panel {
  box-shadow: none;
}

body.appointly-custom-standalone-time-page #step-3 .appointly-table-calendar-summary {
  box-shadow: none;
}

body.appointly-standalone-booking-page #step-3 #time-slots-section {
  box-shadow: none;
}

.appointly-review-pay-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  align-items: stretch;
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.appointly-review-summary,
.appointly-payment-instructions {
  padding: 28px;
}

.appointly-review-summary {
  border-right: 1px solid #e0e8f2;
}

.appointly-review-summary h3,
.appointly-payment-instructions h3 {
  margin: 0 0 20px;
  color: #0f1f3d;
  font-size: 18px;
  font-weight: 800;
}

.appointly-review-service {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.appointly-review-service img {
  width: 92px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
}

.appointly-review-service strong,
.appointly-review-service span,
.appointly-review-service b {
  display: block;
}

.appointly-review-service strong {
  font-size: 16px;
  font-weight: 800;
}

.appointly-review-service span {
  margin-top: 4px;
  color: #53627c;
}

.appointly-review-service b {
  margin-top: 8px;
  color: #0f1f3d;
}

.appointly-inline-pricing-summary {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.appointly-inline-pricing-summary strong {
  color: #1264f6;
  font-size: inherit;
  font-weight: 900;
}

.appointly-inline-pricing-summary small {
  color: #53627c;
  font-size: 12px;
  font-weight: 800;
}

.appointly-inline-addons-count {
  display: block;
  margin-top: 3px;
  color: #53627c;
  font-size: 12px;
  font-weight: 800;
}

.appointly-summary-pricing-menu {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  text-align: left;
}

.appointly-summary-pricing-menu > strong {
  color: #4b5d79;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.appointly-price-breakdown-card {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  text-align: left;
}

.appointly-simple-rate-breakdown {
  display: grid;
  gap: 10px;
  width: 100%;
  text-align: left;
}

.appointly-simple-rate-breakdown > strong {
  color: #0f1f3d;
  font-size: 13px;
  font-weight: 900;
}

.appointly-simple-rate-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.appointly-simple-rate-line > span {
  min-width: 0;
}

.appointly-simple-rate-line em {
  color: #0f1f3d;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.appointly-simple-rate-line b {
  color: #1264f6;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
  text-align: right;
}

.appointly-simple-rate-line small {
  display: block;
  margin-top: 4px;
  color: #7a879a;
  font-size: 12px;
  font-weight: 700;
}

.appointly-price-breakdown-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  padding: 9px 10px;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: #fff;
}

.appointly-price-breakdown-line > span {
  min-width: 0;
}

.appointly-price-breakdown-line em {
  color: #0f1f3d;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.appointly-price-breakdown-line b {
  color: #1264f6;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.appointly-price-breakdown-line small {
  grid-column: 1 / -1;
  color: #7a879a;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}

.appointly-summary-pricing-variant {
  padding: 12px;
  border: 1px solid #d9e4f4;
  border-radius: 8px;
  background: #f8fafc;
}

.appointly-summary-pricing-variant header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.appointly-summary-pricing-variant header strong {
  color: #0f1f3d;
  font-size: 13px;
  font-weight: 900;
}

.appointly-summary-pricing-variant header span {
  color: #53627c;
  font-size: 12px;
  font-weight: 800;
}

.appointly-summary-pricing-variant > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.appointly-summary-pricing-rule {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #d7e3f5;
  border-radius: 8px;
  background: #fff;
}

.appointly-summary-pricing-rule em {
  color: #53627c;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.appointly-summary-pricing-rule b {
  color: #1264f6;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.appointly-summary-pricing-rule small {
  grid-column: 1 / -1;
  color: #7a879a;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}

.appointly-review-rate-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #d9e4f4;
  border-radius: 8px;
  background: #f8fafc;
}

.appointly-review-rate-card.is-member {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.appointly-review-rate-card.is-non-member {
  border-color: #e5e7eb;
  background: #f9fafb;
}

.appointly-review-rate-card strong {
  display: block;
  color: #0f1f3d;
  font-size: 13px;
  font-weight: 900;
}

.appointly-review-rate-card span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.appointly-review-rate-card dl {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
}

.appointly-review-rate-card dl div {
  min-width: 116px;
  padding: 7px 9px;
  border: 1px solid rgba(34, 197, 94, .25);
  border-radius: 7px;
  background: rgba(255, 255, 255, .72);
}

.appointly-review-rate-card dt {
  margin: 0;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.appointly-review-rate-card dd {
  margin: 2px 0 0;
  color: #0f1f3d;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.appointly-summary-addons {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.appointly-summary-addons > strong {
  color: #0f1f3d;
  font-size: 13px;
  font-weight: 900;
}

.appointly-summary-addon-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #fff;
}

.appointly-summary-addon-line em {
  color: #0f1f3d;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.appointly-summary-addon-line b {
  color: #1264f6;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
  text-align: right;
}

.appointly-summary-addon-line small {
  grid-column: 1 / -1;
  color: #7a879a;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.appointly-details-review-card {
  grid-column: 2;
  grid-row: 2 / span 5;
  align-self: start;
  padding: 24px;
  border: 1px solid #e0e8f2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 31, 61, 0.06);
}

.appointly-details-review-service {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid #e0e8f2;
}

.appointly-details-review-service img {
  width: 132px;
  height: 102px;
  border-radius: 8px;
  object-fit: cover;
}

.appointly-details-review-service h3,
.appointly-details-review-service p {
  margin: 0;
}

.appointly-details-review-service h3 {
  color: #0f1f3d;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.appointly-details-review-service p {
  margin-top: 6px;
  color: #53627c;
  font-size: 15px;
  font-weight: 700;
}

.appointly-details-review-service strong {
  display: block;
  margin-top: 10px;
  color: #0f1f3d;
  font-size: 16px;
}

.appointly-details-summary-list {
  margin-top: 18px;
}

.appointly-summary-list {
  margin: 0;
}

.appointly-summary-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8x;
}

.appointly-summary-list div:last-child {
  border-bottom: 0;
}

.appointly-summary-list dt,
.appointly-summary-list dd {
  margin: 0;
}

.appointly-summary-list dt {
  color: #53627c;
  font-weight: 800;
}

.appointly-summary-list dd {
  color: #0f1f3d;
  font-weight: 700;
  text-align: right;
}

.appointly-summary-list .appointly-summary-breakdown-row {
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
}

.appointly-summary-list .appointly-summary-breakdown-row dd {
  width: 100%;
  text-align: left;
}

body.appointly-standalone-booking-page #standalone-review-breakdown .appointly-price-breakdown-card,
body.appointly-standalone-booking-page #details-review-breakdown .appointly-price-breakdown-card,
body.appointly-standalone-booking-page .appointly-date-time-price-card .appointly-price-breakdown-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
}

body.appointly-standalone-booking-page #standalone-review-breakdown .appointly-summary-pricing-menu,
body.appointly-standalone-booking-page #details-review-breakdown .appointly-summary-pricing-menu,
body.appointly-standalone-booking-page .appointly-date-time-price-card .appointly-summary-pricing-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: #f8fbff;
}

body.appointly-standalone-booking-page #standalone-review-breakdown .appointly-summary-pricing-variant,
body.appointly-standalone-booking-page #details-review-breakdown .appointly-summary-pricing-variant,
body.appointly-standalone-booking-page .appointly-date-time-price-card .appointly-summary-pricing-variant {
  max-width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.appointly-standalone-booking-page #standalone-review-breakdown .appointly-summary-pricing-variant > div,
body.appointly-standalone-booking-page #details-review-breakdown .appointly-summary-pricing-variant > div,
body.appointly-standalone-booking-page .appointly-date-time-price-card .appointly-summary-pricing-variant > div {
  max-width: 100%;
  min-width: 0;
}

body.appointly-standalone-booking-page #standalone-review-breakdown .appointly-summary-pricing-rule,
body.appointly-standalone-booking-page #details-review-breakdown .appointly-summary-pricing-rule,
body.appointly-standalone-booking-page .appointly-date-time-price-card .appointly-summary-pricing-rule {
  flex-basis: 164px;
}

.appointly-summary-list .is-total {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid #e0e8f2;
}

.appointly-summary-list .is-total dt,
.appointly-summary-list .is-total dd {
  font-size: 20px;
  font-weight: 800;
}

.appointly-summary-list .is-total dd {
  color: #1264f6;
}

.appointly-total-rate-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  white-space: normal;
}

.appointly-total-rate-label.is-member {
  background: #e8f8ef;
  color: #187244;
}

.appointly-total-rate-label.is-non-member {
  background: #eef4ff;
  color: #31598f;
}

.appointly-wallet-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.appointly-wallet-action-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: currentColor;
  fill: currentColor;
}

.appointly-payment-countdown {
  display: grid;
  gap: 4px;
  justify-items: center;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #f5dba7;
  border-radius: 8px;
  background: #fff8e6;
  text-align: center;
}

.appointly-payment-countdown span,
.appointly-payment-countdown small {
  color: #7a5b22;
  font-weight: 700;
}

.appointly-payment-countdown strong {
  color: #ff2d2d;
  font-size: 28px;
  font-weight: 900;
}

.appointly-payment-methods {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.appointly-payment-methods legend,
.appointly-payment-upload label {
  margin: 0 0 8px;
  color: #0f1f3d;
  font-size: 14px;
  font-weight: 800;
}

.appointly-payment-methods label {
  margin: 0;
}

.appointly-payment-methods input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.appointly-payment-methods span {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #cfe0fb;
  border-radius: 8px;
  color: #0f1f3d;
  font-weight: 800;
  cursor: pointer;
}

.appointly-payment-methods input:checked + span {
  border-color: #1264f6;
  box-shadow: 0 0 0 2px rgba(18, 100, 246, 0.12);
}

.appointly-payment-method-detail {
  display: none;
  margin: 8px 0 4px;
  padding: 14px 16px;
  border: 1px solid #dce5f1;
  border-radius: 8px;
  background: #f8fbff;
  color: #31405d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.appointly-payment-method-detail p {
  margin: 0 0 10px;
}

.appointly-payment-method-detail p:last-child {
  margin-bottom: 0;
}

.appointly-payment-methods input:checked + span + .appointly-payment-method-detail {
  display: block;
}

.appointly-payment-upload {
  margin-bottom: 18px;
}

.appointly-payment-upload-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 118px;
  padding: 18px;
  border: 1px dashed #cfe0fb;
  border-radius: 8px;
  background: #fbfdff;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.appointly-payment-upload-box:hover,
.appointly-payment-upload-box:focus,
.appointly-payment-upload.is-dragging .appointly-payment-upload-box {
  border-color: #1264f6;
  background: #f3f8ff;
  outline: none;
}

.appointly-payment-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.appointly-payment-upload-empty,
.appointly-payment-upload-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  min-height: 78px;
}

.appointly-payment-upload-empty .fa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #1264f6;
  font-size: 16px;
}

.appointly-payment-upload-empty strong,
.appointly-payment-upload-preview strong {
  color: #53627c;
  font-size: 14px;
  font-weight: 800;
}

.appointly-payment-upload-preview {
  display: none;
}

.appointly-payment-upload-preview img {
  width: 96px;
  height: 64px;
  border: 1px solid #dce5f1;
  border-radius: 6px;
  object-fit: cover;
}

.appointly-upload-spinner {
  display: none;
  width: 24px;
  height: 24px;
  border: 3px solid #cfe0fb;
  border-top-color: #1264f6;
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

.appointly-payment-upload-progress {
  display: none;
  width: min(260px, 100%);
  height: 8px;
  border-radius: 999px;
  background: #dce5f1;
  overflow: hidden;
}

.appointly-payment-upload-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #1264f6;
  transition: width 0.18s ease;
}

.appointly-payment-upload.is-uploading .appointly-payment-upload-empty,
.appointly-payment-upload.has-file .appointly-payment-upload-empty {
  display: none;
}

.appointly-payment-upload.is-uploading .appointly-payment-upload-preview,
.appointly-payment-upload.has-file .appointly-payment-upload-preview {
  display: flex;
}

.appointly-payment-upload.is-uploading .appointly-upload-spinner {
  display: inline-block;
}

.appointly-payment-upload.is-uploading .appointly-payment-upload-progress,
.appointly-payment-upload.has-file .appointly-payment-upload-progress {
  display: block;
}

.appointly-payment-upload.is-uploading .appointly-payment-upload-preview img {
  opacity: 0.45;
}

.appointly-payment-upload.has-file .appointly-payment-upload-box {
  border-color: #1264f6;
  background: #f3f8ff;
}

.appointly-payment-upload.has-file .appointly-payment-upload-preview strong {
  color: #1264f6;
}

.appointly-payment-upload-status {
  color: #53627c;
  font-size: 12px;
  font-weight: 700;
}

.appointly-payment-upload p,
.appointly-payment-note {
  margin: 8px 0 0;
  color: #53627c;
  font-size: 13px;
  font-weight: 600;
}

.appointly-payment-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f3f8ff;
}

.appointly-status-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 28px;
  text-align: center;
}

.appointly-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border-radius: 999px;
  font-size: 40px;
}

.appointly-status-icon.is-review {
  border: 4px solid #1264f6;
  background: #eaf2ff;
  color: #1264f6;
}

.appointly-status-icon.is-confirmed {
  border: 4px solid #2ca447;
  color: #2ca447;
}

.appointly-status-icon.is-cancelled {
  border: 4px solid #dc2626;
  background: #fef2f2;
  color: #dc2626;
}

.appointly-status-panel h3 {
  margin: 0 0 6px;
  color: #0f1f3d;
  font-size: 24px;
  font-weight: 800;
}

.appointly-status-panel > p {
  margin: 0 0 24px;
  color: #53627c;
  font-weight: 700;
}

.appointly-verification-reference {
  max-width: 560px;
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid #e0e8f2;
  border-radius: 8px;
  background: #f8fbff;
  text-align: left;
}

.appointly-verification-reference span,
.appointly-verification-reference a {
  display: block;
}

.appointly-verification-reference span {
  margin-bottom: 4px;
  color: #53627c;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.appointly-verification-reference a {
  overflow-wrap: anywhere;
  color: #1264f6;
  font-weight: 700;
}

.appointly-status-summary {
  max-width: 560px;
  margin: 0 auto 24px;
  padding: 12px 24px;
  border: 1px solid #e0e8f2;
  border-radius: 8px;
  text-align: left;
}

.appointly-confirmation-message {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 620px;
  margin: 0 auto 24px !important;
  padding: 18px 22px;
  border: 1px solid #bfe8c8;
  border-radius: 8px;
  background: #effbf2;
  color: #0f1f3d !important;
  text-align: left;
}

.appointly-confirmation-message .fa {
  color: #2ca447;
  font-size: 26px;
}

.appointly-standalone-primary-action {
  width: 100%;
  min-height: 52px;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 800;
}

@media (max-width: 1199px) {
  .appointly-standalone-header-container {
    padding: 16px 24px;
    gap: 18px;
  }

  .appointly-account-greeting {
    max-width: 140px;
  }

  .appointly-standalone-brand img {
    width: 124px;
    height: 38px;
  }

  .appointly-standalone-progress-step {
    gap: 8px;
    font-size: 13px;
  }

  .appointly-standalone-progress-step i {
    width: 30px;
    height: 30px;
  }

  .appointly-standalone-progress-step:not(:last-child)::after {
    width: 14px;
    margin-left: 8px;
  }

  .appointly-standalone-progress {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .appointly-standalone-progress ol {
    justify-content: flex-start;
    gap: 12px;
    min-width: max-content;
  }

  body.appointly-standalone-booking-page #step-1.active {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  body.appointly-standalone-booking-page #appointly-booking-services {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .appointly-standalone-header-container {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 0;
  }

  .appointly-standalone-brand {
    order: 1;
    width: auto;
    max-width: calc(100% - 170px);
    justify-content: flex-start;
  }

  .appointly-account-menu-wrap {
    order: 2;
    margin-left: auto;
    justify-content: flex-end;
  }

  .appointly-standalone-progress {
    width: 100%;
    padding-bottom: 2px;
  }

  .appointly-standalone-titlebar {
    flex-direction: column;
  }

  body.appointly-standalone-booking-page #step-1.active {
    grid-template-columns: 1fr;
  }

  body.appointly-standalone-booking-page #appointly-booking-categories,
  body.appointly-standalone-booking-page #appointly-booking-services,
  body.appointly-standalone-booking-page #appointly-services-category-toolbar,
  body.appointly-standalone-booking-page #appointly-category-empty-services,
  .appointly-standalone-secure-banner {
    grid-column: 1;
  }

  body.appointly-standalone-booking-page #appointly-booking-categories {
    min-height: 0;
    padding: 14px;
  }

  .appointly-review-pay-grid {
    grid-template-columns: 1fr;
  }

  .appointly-review-summary {
    border-right: 0;
    border-bottom: 1px solid #e0e8f2;
  }

  body.appointly-standalone-booking-page #step-4.active {
    grid-template-columns: 1fr;
  }

  body.appointly-custom-standalone-time-page.appointly-standalone-payment-enabled #step-4.active {
    grid-template-columns: 1fr;
  }

  body.appointly-standalone-booking-page #step-4 .appointly-custom-booking-summary,
  body.appointly-standalone-booking-page #step-4 > .tw-bg-white,
  body.appointly-standalone-booking-page #step-4 > .tw-mb-6,
  body.appointly-custom-standalone-time-page.appointly-standalone-payment-enabled #step-4 > .tw-bg-white,
  body.appointly-custom-standalone-time-page.appointly-standalone-payment-enabled #step-4 > .tw-mb-6,
  .appointly-details-review-card {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .appointly-standalone-header-container {
    border-bottom-color: #dbe4f1;
    box-shadow: 0 2px 10px rgba(15, 31, 61, 0.05);
  }

  body.appointly-standalone-booking-page #wrapper {
    padding-top: 18px !important;
  }

  body.appointly-standalone-booking-page #content > .container {
    padding-right: 14px;
    padding-left: 14px;
  }

  .appointly-standalone-header-container {
    gap: 8px;
    padding: 8px 12px 10px;
  }

  .appointly-standalone-brand {
    justify-content: flex-start;
    min-height: 30px;
  }

  .appointly-standalone-brand img {
    width: 104px;
    height: 28px;
    border-radius: 6px;
  }

  .appointly-standalone-brand strong {
    font-size: 17px;
  }

  .appointly-account-menu-wrap {
    gap: 8px;
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-left: auto;
    max-width: calc(100% - 120px);
  }

  .appointly-account-greeting {
    max-width: 112px;
    font-size: 12px;
  }

  .appointly-account-avatar-btn {
    width: 40px;
    height: 40px;
    box-shadow: 0 6px 16px rgba(15, 31, 61, 0.08);
  }

  .appointly-account-login-icon {
    font-size: 19px;
  }

  .appointly-account-caret {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }

  .appointly-account-dropdown {
    right: -2px;
    min-width: 190px;
  }

  .appointly-standalone-progress {
    margin-right: -12px;
    margin-bottom: 18px;
    margin-left: -12px;
    width: calc(100% + 24px);
    padding: 10px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .appointly-standalone-progress::-webkit-scrollbar {
    display: none;
  }

  .appointly-standalone-progress ol {
    gap: 10px;
    min-width: max-content;
  }

  .appointly-standalone-progress-step {
    gap: 6px;
    font-size: 11px;
    line-height: 1;
  }

  .appointly-standalone-progress-step i {
    width: 26px;
    height: 26px;
    font-size: 12px;
    box-shadow: none;
  }

  .appointly-standalone-progress-step:not(:last-child)::after {
    width: 10px;
    margin-left: 4px;
  }

  .appointly-standalone-progress-step span {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .appointly-standalone-titlebar {
    gap: 12px;
    margin-bottom: 14px;
  }

  .appointly-standalone-titlebar h1 {
    margin-bottom: 4px;
    font-size: 22px;
    line-height: 1.12;
  }

  .appointly-standalone-titlebar p {
    font-size: 14px;
    line-height: 1.35;
  }

  body.appointly-standalone-booking-page #appointly-booking-services {
    grid-template-columns: 1fr !important;
    padding: 16px;
  }

  .appointly-standalone-services-head,
  .appointly-standalone-secure-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  body.appointly-standalone-booking-page .appointly-service-gallery-actions {
    grid-template-columns: 1fr;
  }

  .appointly-standalone-character-pair {
    margin-left: 0;
  }

  .appointly-standalone-step-title {
    gap: 12px;
    flex-wrap: wrap;
  }

  .appointly-standalone-title-back {
    width: 100%;
    margin-left: 0;
  }

  .appointly-standalone-step-title > span {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .appointly-standalone-step-title h2 {
    font-size: 22px;
  }

  .appointly-standalone-back-service {
    width: 100%;
    margin-left: 52px;
  }

  .appointly-review-summary,
  .appointly-payment-instructions,
  .appointly-status-panel,
  .appointly-details-review-card {
    padding: 20px;
  }

  .appointly-details-review-service {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .appointly-details-review-service img {
    width: 96px;
    height: 76px;
  }

  .appointly-review-rate-card,
  .appointly-price-breakdown-line {
    grid-template-columns: 1fr;
  }

  .appointly-review-rate-card {
    align-items: stretch;
  }

  .appointly-review-rate-card dl {
    justify-content: flex-start;
  }

  .appointly-review-rate-card dl div {
    flex: 1 1 130px;
  }

  .appointly-price-breakdown-line {
    display: grid;
  }

  .appointly-price-breakdown-line b {
    white-space: normal;
  }

  .appointly-summary-pricing-variant header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .appointly-summary-pricing-variant > div {
    grid-template-columns: 1fr;
  }

  .appointly-standalone-cardbar {
    min-height: 52px;
    padding: 0 16px;
  }

  body.appointly-standalone-booking-page #step-3 .appointly-table-calendar,
  body.appointly-custom-standalone-time-page #step-3 .appointly-table-calendar {
    padding: 16px;
  }

  body.appointly-standalone-booking-page .appointly-service-details-pricing {
    margin-top: 5px;
  }

  body.appointly-standalone-booking-page .appointly-service-details-pricing-menu {
    gap: 10px;
    grid-template-columns: 1fr;
    padding-top: 12px;
  }

  body.appointly-standalone-booking-page .appointly-service-pricing-variant {
    padding: 10px;
  }

  body.appointly-standalone-booking-page .appointly-service-pricing-variant-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  body.appointly-standalone-booking-page .appointly-service-pricing-rules span {
    width: 100%;
  }

  body.appointly-standalone-booking-page .appointly-date-time-price-card {
    padding: 14px;
  }

  body.appointly-standalone-booking-page .appointly-date-time-price-card > header,
  .appointly-simple-rate-line,
  .appointly-price-breakdown-line,
  .appointly-summary-addon-line {
    grid-template-columns: 1fr;
  }

  body.appointly-standalone-booking-page .appointly-date-time-price-card > header {
    display: grid;
    gap: 8px;
  }

  body.appointly-standalone-booking-page .appointly-date-time-price-card > header b,
  .appointly-simple-rate-line b,
  .appointly-price-breakdown-line b,
  .appointly-summary-addon-line b {
    white-space: normal;
  }

  body.appointly-standalone-booking-page #standalone-review-breakdown .appointly-summary-pricing-rule,
  body.appointly-standalone-booking-page #details-review-breakdown .appointly-summary-pricing-rule,
  body.appointly-standalone-booking-page .appointly-date-time-price-card .appointly-summary-pricing-rule {
    flex-basis: 154px;
  }

  .appointly-summary-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .appointly-summary-list dd {
    text-align: left;
  }

  body.appointly-standalone-booking-page .appointly-addon-step-pricing-options,
  body.appointly-standalone-booking-page .appointly-addon-step-addon-options {
    grid-template-columns: 1fr;
  }

  body.appointly-standalone-booking-page .appointly-addon-step-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  body.appointly-standalone-booking-page .appointly-addon-step-section-head span {
    text-align: left;
  }

  .appointly-status-summary {
    padding: 10px 16px;
  }

  .appointly-standalone-step-actions {
    grid-template-columns: 1fr;
  }
}

body .busy_time_info {
  margin-left: 10px;
  background: #fb4862;
}

body .available_time_info {
  background: #2663eb;
}

body .go_back_button {
  font-weight: 500;
  font-size: 16px;
}

body .busy_time_info_google {
  background: #fb4862;
}

body .busy_time {
  background: #fb4862 !important;
  color: #fff !important;
  pointer-events: none;
}

body .has-error .form-control:focus {
  border-color: #ff0300 !important;
  box-shadow: none !important;
}

body .busy_google_time {
  background: #fb4862 !important;
  color: #fff !important;
  font-weight: 300 !important;
  pointer-events: none;
}

.appointment-header {
  display: flex;
  justify-content: center;
}

.appointment_logo img {
  max-width: 150px;
  height: auto;
  float: left;
}

.logo.img-responsive.navbar-brand.logo {
  margin-bottom: 0;
  margin-left: -20px;
}

.logo.img-responsive.navbar-brand.logo {
  margin-bottom: 0;
  margin-left: -20px;
}

.datetimepicker {
  background: #fff !important;
}

.mtop6 {
  margin-top: 6px !important;
}

.mtop35 {
  margin-top: 35px;
}

.appointment_type_holder .appointment_color_type {
  height: 30px;
  width: 30px;
  margin-top: 3px;
}

.appointment_type_holder .dropdown-menu li a:hover,
.appointment_type_holder .dropdown-menu li a {
  border: none !important;
  border-radius: 0px !important;
  padding: 8px 20px;
}

.appointment_type_holder .bootstrap-select {
  float: left;
}

body.appointments-external-form .bootstrap-select > .dropdown-toggle,
body.appointments-external-form .bootstrap-select .btn {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 8px 18px !important;
  line-height: 1.2 !important;
  box-sizing: border-box;
}

body.appointments-external-form .bootstrap-select > .dropdown-toggle .filter-option {
  display: flex;
  align-items: center;
  position: static !important;
  flex: 1 1 auto;
  min-width: 0;
  height: auto;
  top: 0;
  bottom: 0;
  line-height: 1.2;
  padding-right: 10px;
}

body.appointments-external-form .bootstrap-select > .dropdown-toggle .filter-option-inner,
body.appointments-external-form .bootstrap-select > .dropdown-toggle .filter-option-inner-inner {
  display: flex;
  align-items: center;
  min-height: 100%;
  line-height: 1.2;
}

body.appointments-external-form .bootstrap-select > .dropdown-toggle .bs-caret {
  display: inline-flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  position: static !important;
  flex: 0 0 auto;
  height: auto;
  margin-left: 8px;
}

body.appointments-external-form .bootstrap-select > .dropdown-toggle .bs-caret .caret {
  margin-top: 0;
}

.main_wrapper {
  padding: 25px;
  box-shadow: 0px 0px 0px 1px rgb(1 1 1 / 8%);
  border-radius: 4px;
  background: #fff;
}

.hwp {
  border-radius: 4px;
  padding: 4px 10px;
  color: #fff;
}

body input {
  height: 38px !important;
}

body textarea,
body input {
  border: 1px solid #ececec !important;
}

.hours_wrapper {
  display: flex;
  margin-top: 20px !important;
}

@media only screen and (max-device-width: 360px) and (-webkit-device-pixel-ratio: 3) {
  .xdsoft_datetimepicker {
    left: 2px !important;
  }

  .btn {
    width: 100%;
  }
}

/* Blocked dates in calendar */
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled {
  background: #ffeeee !important; /* Light red background */
  color: #ff0000 !important; /* Red text */
  opacity: 0.6;
}

/* Current date when it's blocked */
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled.xdsoft_current {
  background: #ff0000 !important;
  color: #ffffff !important;
  box-shadow: #ff0000 0 1px 3px 0 inset;
}

/* Hover effect on blocked dates */
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled:hover {
  background: #ffcccc !important;
  color: #ff0000 !important;
}

.xdsoft_datetimepicker.appointly-disable-past-navigation .xdsoft_prev.appointly-prev-disabled {
  pointer-events: none !important;
  cursor: not-allowed !important;
  opacity: 0.35 !important;
}

.xdsoft_datetimepicker.appointly-disable-past-navigation .xdsoft_label {
  pointer-events: none !important;
  cursor: default !important;
}

/* Busy times in time picker */
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time.busy_time {
  background: #ffeeee !important;
  color: #ff0000 !important;
}

.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time.busy_time:hover {
  background: #ffcccc !important;
  color: #ff0000 !important;
}

/* Improved header styling */
.appointments-external-form .main_wrapper {
  @apply tw-bg-white tw-rounded-xl tw-shadow-md;
}

/* Custom select styling */
.selectpicker {
  @apply tw-appearance-none tw-bg-white tw-cursor-pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
  padding-right: 2.5rem;
}

/* Disabled select styling */
.selectpicker:disabled {
  @apply tw-bg-neutral-50 tw-cursor-not-allowed tw-opacity-75;
}

/* Remove default select arrow in IE/Edge */
.selectpicker::-ms-expand {
  display: none;
}

/* Base styles */
.appointments-external-form {
    background: transparent !important;
    @apply tw-bg-neutral-50;
}

.main_wrapper {
  @apply tw-bg-white tw-rounded-xl tw-shadow-md tw-p-8 tw-max-w-3xl tw-mx-auto;
}

/* Header styling */
.appointment-header {
  @apply tw-mb-8;
}

.appointment-header h4 {
  @apply tw-text-3xl tw-font-bold tw-text-neutral-900 tw-tracking-tight;
}

.appointment-header p {
  @apply tw-text-lg tw-text-neutral-600 tw-mt-2;
  @apply tw-text-lg tw-text-neutral-600 tw-mt-2;
}

.appointment-header hr {
  @apply tw-border-t tw-border-neutral-200 tw-my-6 tw-max-w-md tw-mx-auto;
}

/* Form sections */
.form-section {
  @apply tw-mb-8 tw-p-6 tw-bg-neutral-50 tw-rounded-lg tw-border tw-border-neutral-200;
}

.form-section-title {
  @apply tw-text-lg tw-font-semibold tw-text-neutral-800 tw-mb-4;
}

/* Form controls */
.form-group {
  @apply tw-relative tw-mb-6;
}

.form-group label {
  @apply tw-block tw-text-sm tw-font-medium tw-text-neutral-700 tw-mb-2;
}

.form-group label.error,
.invalid-feedback {
  @apply tw-absolute tw-text-sm tw-text-red-600 tw-mt-1 tw-left-0 tw-bottom-0 tw-translate-y-full;
}

/* Add more space below inputs to accommodate error messages */
.form-group {
  @apply tw-mb-6;
}

/* Specific styling for select validation */
.bootstrap-select.form-control + .error {
  @apply tw-mt-1 tw-block tw-static tw-text-sm tw-text-red-600;
}

/* Error state for inputs */
.form-control.error,
.form-control.is-invalid {
  @apply tw-border-red-500 focus:tw-border-red-500 focus:tw-ring-red-500;
}

/* Error state for select */
.bootstrap-select.is-invalid .dropdown-toggle {
  @apply tw-border-red-500;
}

.form-control {
  @apply tw-w-full tw-rounded-lg tw-border-neutral-300 tw-shadow-sm;
  @apply focus:tw-ring-2 focus:tw-ring-primary-500 focus:tw-border-primary-500;
  @apply hover:tw-border-neutral-400;
  transition: all 0.2s ease;
}

/* Working hours section */
#provider_schedule {
  @apply tw-mt-6 tw-p-6 tw-bg-neutral-50 tw-rounded-lg tw-border tw-border-neutral-200;
}

.working-hours-title {
  @apply tw-text-sm tw-font-medium tw-text-neutral-700 tw-mb-4;
}

.working-hours-list {
  @apply tw-space-y-3;
}

.working-hours-item {
  @apply tw-flex tw-justify-between tw-items-center tw-text-sm tw-text-neutral-600;
}

/* Submit button */
.btn-primary {
  @apply tw-bg-primary-600 tw-text-white tw-font-medium tw-px-6 tw-py-3 tw-rounded-lg tw-shadow-sm;
  @apply hover:tw-bg-primary-700 focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-offset-2 focus:tw-ring-primary-500;
  @apply disabled:tw-opacity-50 disabled:tw-cursor-not-allowed;
  transition: all 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .main_wrapper {
    @apply tw-p-4;
  }

  .form-section {
    @apply tw-p-4;
  }
}

/* Loading states */
.form-loading {
  @apply tw-opacity-50 tw-pointer-events-none;
}

/* Success states */
.is-valid {
  @apply tw-border-green-500 focus:tw-border-green-500 focus:tw-ring-green-500;
}

/* Date and Location styling */
.input-group.date {
  @apply tw-flex tw-items-center tw-w-full tw-relative;
}

.input-group.date input {
  @apply tw-rounded-lg tw-border-neutral-300 tw-pr-10;
}

.input-group.date .input-group-addon {
  @apply tw-absolute tw-right-3 tw-top-1/2 tw-transform -tw-translate-y-1/2 tw-pointer-events-none tw-text-neutral-500;
}

.calendar-icon {
  @apply tw-text-lg;
}

/* Datepicker styling */
.bootstrap-datetimepicker-widget {
  @apply tw-bg-white tw-shadow-lg tw-rounded-lg tw-border tw-border-neutral-200 !important;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
  @apply tw-bg-primary-600 tw-text-white !important;
}

.bootstrap-datetimepicker-widget table td {
  @apply tw-text-center tw-p-2 tw-cursor-pointer hover:tw-bg-neutral-100 tw-rounded;
}

/* Terms and conditions styling */
.checkbox {
  @apply tw-relative;
}

.checkbox input[type="checkbox"] {
  @apply tw-h-4 tw-w-4 tw-rounded tw-border-neutral-300 tw-text-primary-600;
  @apply focus:tw-ring-primary-500;
}

.checkbox label {
  @apply tw-ml-2 tw-block tw-text-sm tw-font-medium tw-text-neutral-700;
}
/* Error state */
.has-error .checkbox input[type="checkbox"] {
  @apply tw-border-red-500;
}

.has-error .checkbox label {
  @apply tw-text-red-600;
}

/* Disabled submit button */
.btn-primary:disabled {
  @apply tw-opacity-50 tw-cursor-not-allowed;
}

/* Booking form step by step styling */
.form-booking-steps .step-indicator {
  position: relative;
  z-index: 5;
}

.form-booking-steps .progress-bar {
  transition: width 0.5s ease-in-out, background-color 0.5s ease-in-out;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Step indicator styles */
.step-indicator .step-number {
  position: relative;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.step-indicator.active .step-number {
  background-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.step-indicator.completed .step-number {
  background-color: #10b981;
}

.step-indicator .step-title {
  transition: color 0.3s ease;
}

.step-indicator.active .step-title {
  color: #0ea5e9;
  font-weight: 500;
}

.step-indicator.completed .step-title {
  color: #10b981;
  font-weight: 500;
}

/* Connecting lines between steps - MUCH MORE VISIBLE */
.connecting-line {
  height: 4px !important; /* Thicker line */
  background-color: #e5e7eb;
  transition: background-color 0.5s ease;
  position: relative;
  margin: 0 8px;
  top: 16px; /* Align with the middle of the circles */
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Active connecting line */
#connecting-line-1-2.active,
#connecting-line-2-3.active,
#connecting-line-3-4.active {
  background-color: #0ea5e9; /* Blue for active */
  height: 4px !important;
}

/* Completed connecting line */
#connecting-line-1-2.completed,
#connecting-line-2-3.completed,
#connecting-line-3-4.completed {
  background-color: #10b981; /* Green for completed */
  height: 4px !important;
}

/* Mobile responsive adjustments for connecting lines */
@media (max-width: 768px) {
  .connecting-line {
    margin: 0 4px;
  }

  .step-indicator .step-number {
    width: 28px !important;
    height: 28px !important;
  }

  .step-indicator .step-title {
    font-size: 0.7rem;
  }
}

/* Service cards styling */
.service-card {
  transition: all 0.2s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.service-card.selected {
  border: 1px solid rgb(0 168 255 / 32%);
  background-color: rgba(2, 132, 199, 0.05);
  border-radius: 6px;
}

/* List view card layout */
.apptly-list-outer {
  display: flex;
}
.apptly-list-card {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
}
.apptly-list-color-bar {
  width: 5px;
  flex-shrink: 0;
  border-radius: 0;
}
.apptly-list-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  min-width: 0;
}
.apptly-list-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.apptly-list-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
  line-height: 1.35;
}
.apptly-list-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}
.apptly-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.apptly-list-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.apptly-list-badge-duration {
  background-color: #eff6ff;
  color: #2563eb;
}
.apptly-list-badge-price {
  background-color: #f0fdf4;
  color: #16a34a;
  font-weight: 600;
}
.apptly-list-desc {
  font-size: 12.5px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}
.apptly-list-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}
.apptly-list-select-btn {
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.5;
}
.apptly-list-select-btn:hover {
  background-color: #f3f4f6;
  border-color: #9ca3af;
  color: #111827;
}
.service-card.selected .apptly-list-select-btn {
  background-color: rgba(2, 132, 199, 0.08);
  border-color: rgb(0 168 255 / 40%);
  color: #0284c7;
}

/* Provider cards styling */
.provider-card {
  transition: all 0.2s ease;
  cursor: pointer;
}

.provider-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Buttons styling */
.btn-prev-step {
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.btn-prev-step i {
  margin-right: 0.5rem;
}

.btn-next-step:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Custom time slots */
.time-slots-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.time-slot {
  padding: 0.5rem;
  text-align: center;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.time-slot:hover {
  background-color: #f3f4f6;
}

.time-slot.selected {
  background-color: #3b82f7;
  color: white;
  border-color: #3b82f7;
}

.time-slot.busy {
  background-color: #fee2e2;
  color: #b91c1c;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Animation for transitions */
.form-step {
  transition: opacity 0.3s ease;
}

.step-indicator.completed .step-number {
  background-color: #10b981;
}

.step-indicator .step-title {
  color: #6b7280;
}

.step-indicator.active .step-title {
  color: #0284c7;
  font-weight: 500;
}

.step-indicator.completed .step-title {
  color: #10b981;
  font-weight: 500;
}

/* Form Steps — hidden by .hidden class, not by default */
.booking-step {
  display: block;
}

.booking-step.active {
  display: block;
}

/* Remove old classes */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

/* Service cards styling */
.service-card {
  cursor: pointer;
  transition: all 0.2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Provider cards styling */
.provider-card {
  cursor: pointer;
  transition: all 0.2s ease;
}

.provider-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.provider-card.selected {
  border: 1px solid rgb(0 168 255 / 32%);
  background-color: rgba(2, 132, 199, 0.05);
  border-radius: 6px;
}

/* Disabled provider styling */
.provider-card.disabled-provider {
  opacity: 0.75;
  cursor: not-allowed;
  background-color: rgba(0, 0, 0, 0.03);
}

.provider-card.disabled-provider:hover {
  transform: none;
  box-shadow: none;
  border-color: #e5e7eb;
}

/* Tooltip styling enhancement */
.provider-card[data-toggle="tooltip"] {
  position: relative;
}

/* Make buttons look nice */
.btn-prev-step {
  background: none;
  border: none;
  padding: 5px 10px;
  font-size: 14px;
  cursor: pointer;
}

/* Fix for time picker display */
.xdsoft_datetimepicker .xdsoft_timepicker {
  width: 100px;
}

/* Blocked days styling - make it more obvious */
.xdsoft_date.blocked-date,
td.xdsoft_date.xdsoft_disabled.blocked-date {
  background: #ffebee !important;
  color: #c62828 !important;
  position: relative !important;
  cursor: not-allowed !important;
}

.xdsoft_date.blocked-date:before,
td.xdsoft_date.xdsoft_disabled.blocked-date:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23c62828'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636'%3E%3C/path%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 70%;
  opacity: 0.7;
  z-index: 10;
}

/* Add tooltip styling for the datepicker - improved version */
.xdsoft_datetimepicker .xdsoft_calendar td {
  position: relative;
}

/* Custom tooltip for blocked dates - simplified version that works with title attributes */
.xdsoft_date[title]:hover:after,
.xdsoft_date.blocked-date[title]:hover:after,
.xdsoft_date.provider-unavailable[title]:hover:after {
  content: attr(title);
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10000;
  width: auto;
  min-width: 100px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Busy times styling */
.xdsoft_time.busy_time {
  background: #f8d7da !important;
  color: #721c24 !important;
}

/* Time slots styling */
.time-slot-btn {
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.time-slot-btn:hover {
  transform: translateY(-2px);
}

.time-slot-btn.selected {
  border-color: #0284c7 !important;
  background-color: rgba(2, 132, 199, 0.05) !important;
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.time-slot-btn.selected::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230284c7'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 13l4 4L19 7'%3E%3C/path%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 10px;
}

/* Time slot cell: wraps each slot button so selecting it can shrink the
   button and slide in an inline Next button beside it, without waiting for
   the Continue button further down the page. */
.time-slot-cell {
  display: flex;
  align-items: stretch;
  gap: 0;
  transition: gap 0.22s ease;
  min-width: 0;
}

.time-slot-cell.is-expanded {
  gap: 8px;
}

.time-slot-cell .time-slot-btn {
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
  transition: flex-basis 0.22s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Selecting a slot shrinks it to half the cell's width to make room for the
   inline Next button beside it. */
.time-slot-cell.is-expanded .time-slot-btn {
  flex: 1 1 50%;
}

.time-slot-inline-next {
  flex: 0 0 0;
  width: 0;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  padding: 0;
  border: 0 solid #0284c7;
  border-radius: 0.375rem;
  background: #0284c7;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateX(-8px);
  transition: flex-basis 0.22s ease, width 0.22s ease, padding 0.22s ease,
    border-width 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}

.time-slot-inline-next:hover {
  background: #0369a1;
}

.time-slot-cell.is-expanded .time-slot-inline-next {
  flex: 1 1 50%;
  width: auto;
  padding: 0 16px;
  border-width: 1px;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* Custom styles */
.ui-datepicker-unselectable {
  opacity: 0.5;
}

.xdsoft_disabled.blocked-date {
  background-color: #ffdddd !important;
  color: #999 !important;
}

.xdsoft_disabled.provider-unavailable {
  background-color: #ffe8cc !important;
  color: #999 !important;
}

/* Date picker legend styles */
.date-picker-legend {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

.legend-color.blocked {
  background-color: #ffdddd;
}

.legend-color.unavailable {
  background-color: #ffe8cc;
}

.legend-color.available {
  background-color: #fff;
  border: 1px solid #ddd;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .form-booking-steps .step-title {
    font-size: 0.75rem;
  }

  .time-slots-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-booking-steps .step-indicator:not(:last-child)::after {
    display: none;
  }
}

.step-indicator {
  min-width: 80px; /* Ensure steps have minimum width */
}

/* Animate step transitions */
.booking-step {
  transition: opacity 0.3s ease;
}

.booking-step.hidden {
  opacity: 0;
  display: none;
}

.booking-step.active {
  opacity: 1;
  display: block;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

body.appointments-external-form.appointly-calendar-table-view .appointly-default-scheduler {
  display: none;
}

body.appointly-standalone-booking-page.appointly-standalone-payment-enabled.appointly-calendar-table-view #step-3 .appointly-default-scheduler {
  display: none !important;
}

.appointly-table-calendar {
  color: #0f1f3d;
}

.appointly-table-calendar-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.appointly-table-calendar-heading h3 {
  margin: 0 0 6px;
  color: #0f1f3d;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.appointly-table-calendar-heading p {
  margin: 0;
  color: #4f5f7a;
  font-size: 15px;
  line-height: 1.5;
}

.appointly-table-calendar-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  min-height: 28px;
  color: #1d2d4f;
  font-size: 13px;
}

.appointly-table-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.appointly-table-calendar-legend i {
  display: inline-block;
  width: 28px;
  height: 20px;
  border: 1px solid #d9e1ee;
  border-radius: 3px;
}

.appointly-table-calendar-legend i.available {
  border-color: #a9dfbd;
  background: #ecf9f0;
}

.appointly-table-calendar-legend i.reserved {
  border-color: #f3c6c6;
  background: #fee2e2;
}

.appointly-table-calendar-legend i.on-hold {
  border-color: #f7d58a;
  background: #fff3c4;
}

.appointly-table-calendar-legend i.unavailable {
  background: #e8edf4;
}

.appointly-table-calendar-legend i.selected {
  border-color: #1264f6;
  background: #2f7df6;
}

.appointly-table-calendar-panel,
.appointly-table-calendar-summary {
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 31, 61, 0.06);
}

.appointly-table-calendar-toolbar {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #dbe3ef;
}

.appointly-table-calendar-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 48px;
  border: 1px solid #1264f6;
  border-radius: 6px;
  background: #1264f6;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(18, 100, 246, 0.22);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.appointly-table-calendar-nav:hover:not(:disabled) {
  border-color: #0f55d4;
  background: #0f55d4;
  color: #ffffff;
  transform: translateY(-1px);
}

.appointly-table-calendar-nav:disabled {
  color: #a5b0c1;
  border-color: #dbe3ef;
  background: #f4f7fb;
  box-shadow: none;
  cursor: not-allowed;
}

.appointly-table-calendar-range {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: #0f1f3d;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.appointly-table-calendar-scroll {
  position: relative;
  overflow-x: auto;
}

.appointly-table-calendar-grid {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.appointly-table-calendar-grid th,
.appointly-table-calendar-grid td {
  height: 38px;
  border-right: 1px solid #dbe3ef;
  border-bottom: 1px solid #dbe3ef;
  text-align: center;
  vertical-align: middle;
}

.appointly-table-calendar-grid thead th {
  height: 58px;
  background: #ffffff;
  color: #0f1f3d;
  font-size: 13px;
  font-weight: 700;
}

.appointly-table-calendar-grid thead th.is-today {
  background: #f2f6ff;
  color: #145cf3;
}

.appointly-table-calendar-grid thead th span,
.appointly-table-calendar-grid thead th small {
  display: block;
}

.appointly-table-calendar-grid thead th small {
  margin-top: 3px;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
}

.appointly-table-calendar-grid tbody th {
  background: #ffffff;
  color: #0f1f3d;
  font-size: 13px;
  font-weight: 600;
}

.appointly-table-calendar-time-col {
  width: 88px;
}

.appointly-table-calendar-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: #a5b0c1;
  font-size: 13px;
  line-height: 1;
}

.appointly-table-calendar-slot.is-available {
  background: #eefaf2;
  color: #22a856;
  cursor: pointer;
}

.appointly-table-calendar-slot.is-available:hover {
  background: #def5e7;
}

.appointly-table-calendar-slot.is-selected {
  background: #1f63f3;
  color: #ffffff;
}

.appointly-table-calendar-slot.is-available.is-selected,
.appointly-table-calendar-slot.is-available.is-selected:hover {
  background: #1f63f3;
  color: #ffffff;
}

.appointly-table-calendar-slot.is-reserved {
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 800;
}

.appointly-table-calendar-slot.is-on-hold {
  background: #fff3c4;
  color: #92400e;
  font-size: 11px;
  font-weight: 800;
}

.appointly-table-calendar-slot.is-unavailable {
  background: #e8edf4;
  color: #64748b;
}

.appointly-table-calendar-slot .fa {
  pointer-events: none;
}

.appointly-table-calendar-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 18px 22px;
}

.appointly-table-calendar-summary span {
  display: block;
  margin-bottom: 8px;
  color: #0f1f3d;
  font-size: 16px;
  font-weight: 700;
}

.appointly-table-calendar-summary strong,
.appointly-table-calendar-summary small {
  display: block;
  color: #314260;
  font-size: 14px;
  line-height: 1.5;
}

.appointly-table-selection-chip {
  display: inline-flex;
  align-items: center;
  margin: 3px 6px 3px 0;
  padding: 4px 8px;
  border-radius: 6px;
  background: #e8f0ff;
  color: #1746a2;
  font-size: 12px;
  font-weight: 700;
}

.appointly-table-selection-total {
  margin-top: 6px;
  color: #0f1f3d;
  font-size: 13px;
}

@media (max-width: 1100px) {
  body.appointly-standalone-booking-page #content > .container {
    padding-right: 20px;
    padding-left: 20px;
  }

  body.appointly-standalone-booking-page #step-3 .appointly-table-calendar,
  body.appointly-custom-standalone-time-page #step-3 .appointly-table-calendar {
    padding: 16px;
  }

  .appointly-table-calendar-heading {
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
  }

  .appointly-table-calendar-heading h3 {
    font-size: 21px;
  }

  .appointly-table-calendar-heading p {
    font-size: 13px;
  }

  .appointly-table-calendar-legend {
    gap: 10px 14px;
    font-size: 12px;
  }

  .appointly-table-calendar-legend span {
    gap: 5px;
  }

  .appointly-table-calendar-legend i {
    width: 18px;
    height: 16px;
  }

  .appointly-table-calendar-toolbar {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 10px;
    padding: 10px 12px;
  }

  .appointly-table-calendar-nav {
    width: 36px;
    height: 36px;
  }

  .appointly-table-calendar-range {
    font-size: 16px;
  }

  .appointly-table-calendar-grid {
    min-width: 680px;
  }

  .appointly-table-calendar-grid th,
  .appointly-table-calendar-grid td {
    height: 32px;
  }

  .appointly-table-calendar-grid thead th {
    height: 48px;
    font-size: 12px;
  }

  .appointly-table-calendar-grid thead th small,
  .appointly-table-calendar-grid tbody th {
    font-size: 11px;
  }

  .appointly-table-calendar-time-col {
    width: 70px;
  }

  .appointly-table-calendar-slot {
    min-height: 32px;
    font-size: 12px;
  }

  .appointly-table-calendar-summary {
    margin-top: 12px;
    padding: 14px 16px;
  }

  .appointly-table-calendar-summary span {
    margin-bottom: 4px;
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .appointly-table-calendar-heading {
    display: block;
  }

  .appointly-table-calendar-legend {
    margin-top: 14px;
  }

  .appointly-table-calendar-toolbar {
    grid-template-columns: 40px 1fr 40px;
    gap: 10px;
    padding: 12px;
  }

  .appointly-table-calendar-nav {
    width: 40px;
    height: 40px;
  }

  .appointly-table-calendar-range {
    font-size: 16px;
  }

  .appointly-table-calendar-scroll {
    margin-right: -16px;
    margin-left: -16px;
    padding: 0 16px 4px;
    -webkit-overflow-scrolling: touch;
  }

  .appointly-table-calendar-grid {
    min-width: 620px;
  }

  .appointly-table-calendar-slot.is-reserved,
  .appointly-table-calendar-slot.is-on-hold {
    font-size: 10px;
  }

  .appointly-date-time-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: grid !important;
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr) !important;
    gap: 10px 12px;
    margin: 18px -16px -16px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid #dbe3ef;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -14px 32px rgba(15, 31, 61, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .appointly-date-time-actions .btn {
    width: 100%;
    min-height: 50px;
    min-width: 0;
    margin: 0 !important;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .appointly-date-time-actions .btn-prev-step {
    grid-column: 1;
    padding: 0 12px;
    border: 1px solid #dbe3ef;
    background: #ffffff;
    color: #0f1f3d;
    box-shadow: 0 6px 16px rgba(15, 31, 61, 0.06);
  }

  .appointly-date-time-actions .btn-next[data-step="3"] {
    grid-column: 2;
    min-width: 0;
    padding: 0 12px;
  }

  .appointly-mobile-selected-slot {
    display: none;
    grid-column: 1 / -1;
    padding: 13px 14px;
    border: 1px solid #d6e3f5;
    border-radius: 12px;
    background: #f7faff;
    color: #53627c;
    line-height: 1.2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  .appointly-mobile-selected-slot.is-visible {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .appointly-mobile-selected-slot span {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .appointly-mobile-selected-slot strong {
    display: block;
    color: #0f1f3d;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    word-break: break-word;
  }
}

/* Progress steps container with prominent lines */
.progress-steps-container {
  margin-bottom: 1.5rem;
}

/* Step line styling - VERY PROMINENT */
.step-line {
  height: 6px !important;
  background-color: #e5e7eb;
  border-radius: 3px;
  position: relative;
  transition: background-color 0.5s ease, height 0.3s ease;
  top: -25px; /* Position lines to align with the middle of circles */
}

/* Step lines styling for active and completed steps */
#line-1-2.active,
#line-2-3.active,
#line-3-4.active {
  background-color: #0ea5e9; /* Blue for active */
}

#line-1-2.completed,
#line-2-3.completed,
#line-3-4.completed {
  background-color: #10b981; /* Green for completed */
}

/* Step number styling */
.step-number {
  transition: background-color 0.3s ease;
  position: relative;
  z-index: 10; /* Ensure circles appear above lines */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Step indicator styling */
.step-indicator {
  min-width: 90px;
  position: relative;
  z-index: 5;
}

.step-indicator.active .step-number {
  background-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.step-indicator.completed .step-number {
  background-color: #10b981;
}

.step-indicator .step-title {
  transition: color 0.3s ease;
}

.step-indicator.active .step-title {
  color: #0ea5e9;
  font-weight: 500;
}

.step-indicator.completed .step-title {
  color: #10b981;
  font-weight: 500;
}

/* Progress bar styling */
.progress-bar {
  transition: width 0.5s ease-in-out, background-color 0.5s ease-in-out;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .step-line {
    top: -20px;
    height: 4px !important;
  }

  .step-number {
    width: 24px !important;
    height: 24px !important;
    font-size: 12px;
  }

  .step-indicator .step-title {
    font-size: 0.7rem;
  }
}

/* Calendly-style custom service flow */
.appointly-custom-service-flow {
  background: linear-gradient(180deg, #f7f8fb 0%, #eef3f8 100%) !important;
}

.appointly-custom-service-flow #wrapper {
  padding: 32px 20px;
}

.appointly-custom-service-flow.appointly-custom-standalone-time-page {
  background: #f8fbff !important;
}

.appointly-custom-service-flow.appointly-custom-standalone-time-page #wrapper {
  padding: 32px 0 44px !important;
}

.appointly-custom-booking-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 12px;
  padding-right: 12px;
}

.appointly-custom-standalone-time-page .appointly-custom-booking-container {
  max-width: 980px;
  padding-right: 32px;
  padding-left: 32px;
}

.appointly-custom-booking-row {
  margin-left: 0;
  margin-right: 0;
}

.appointly-custom-service-wrapper {
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent;
  box-shadow: none;
  float: none !important;
  width: 100%;
}

.appointly-custom-standalone-time-page .appointly-custom-service-wrapper {
  max-width: 920px !important;
}

.appointly-custom-service-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.appointly-custom-standalone-time-page .appointly-custom-service-shell {
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.appointly-custom-standalone-time-page .appointly-custom-service-sidebar {
  display: none;
}

body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view):is(.appointly-current-step-1, .appointly-current-step-2) .appointly-custom-service-shell {
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view):is(.appointly-current-step-1, .appointly-current-step-2) .appointly-custom-service-sidebar {
  display: none;
}

body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view):is(.appointly-current-step-1, .appointly-current-step-2) .appointly-custom-service-content {
  padding: 0;
}

.appointly-custom-service-sidebar {
  background: linear-gradient(180deg, #fbfdff 0%, #f4f7fb 100%);
  border-right: 1px solid #e2e8f0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.appointly-custom-service-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.appointly-custom-service-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.appointly-custom-service-back-link:hover {
  color: #0f172a;
  text-decoration: none;
}

.appointly-copy-link-btn {
  border: 1px solid #d7deea;
  background: #ffffff;
  color: #0f172a;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.appointly-copy-link-btn:hover {
  border-color: #93c5fd;
  color: #0369a1;
}

.appointly-custom-service-branding {
  min-height: 38px;
}

.appointly-custom-service-logo {
  max-width: 150px;
  max-height: 38px;
  width: auto;
  height: auto;
}

.appointly-custom-service-company-name {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.appointly-custom-service-host {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.appointly-custom-service-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.appointly-custom-service-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.appointly-custom-service-provider {
  font-size: 15px;
  font-weight: 600;
  color: #475569;
}

.appointly-custom-service-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  color: #0f172a;
}

.appointly-custom-service-accordion-toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.08);
  color: #0369a1;
}

.appointly-custom-service-accordion-toggle:focus {
  outline: 2px solid rgba(2, 132, 199, 0.24);
  outline-offset: 2px;
}

.appointly-custom-service-accordion-toggle svg {
  display: block;
  width: 18px;
  height: 18px;
}

.appointly-custom-service-accordion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.appointly-custom-service-accordion-icon-up {
  display: none;
}

.appointly-custom-service-accordion-body {
  display: block;
}

.appointly-custom-service-sidebar.is-accordion-collapsed .appointly-custom-service-accordion-body {
  display: none;
}

.appointly-custom-service-sidebar.is-accordion-collapsed .appointly-custom-service-accordion-icon-down {
  display: inline-flex;
}

.appointly-custom-service-sidebar.is-accordion-collapsed .appointly-custom-service-accordion-icon-up {
  display: none;
}

.appointly-custom-service-sidebar.is-accordion-open .appointly-custom-service-accordion-icon-down {
  display: none;
}

.appointly-custom-service-sidebar.is-accordion-open .appointly-custom-service-accordion-icon-up {
  display: inline-flex;
}

.appointly-custom-service-price {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.09);
  color: #0369a1;
  font-size: 14px;
  font-weight: 700;
}

.appointly-custom-service-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.appointly-custom-service-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 14px;
  line-height: 1.5;
}

.appointly-custom-service-meta-note {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.appointly-custom-service-meta-icon {
  min-width: 40px;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
}

.appointly-custom-service-description {
  margin-top: 20px;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}

.appointly-custom-service-description > :last-child {
  margin-bottom: 0;
}

.appointly-custom-service-content {
  padding: 34px 40px 36px;
}

.appointly-custom-standalone-time-page .appointly-custom-service-content {
  padding: 0;
}

.appointly-custom-step-header {
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 16px;
  margin-bottom: 24px !important;
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view):not(.appointly-custom-standalone-time-page) #step-3 > .appointly-custom-step-header,
.appointly-custom-layout-view:not(.appointly-custom-standalone-time-page) #step-3 > .appointly-custom-step-header {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  width: 100%;
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view):not(.appointly-custom-standalone-time-page) #step-3 > .appointly-custom-step-header .btn-prev-step.hidden,
.appointly-custom-layout-view:not(.appointly-custom-standalone-time-page) #step-3 > .appointly-custom-step-header .btn-prev-step.hidden {
  display: none !important;
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view):not(.appointly-custom-standalone-time-page) #step-3 > .appointly-custom-step-header .appointly-custom-step-heading-group,
.appointly-custom-layout-view:not(.appointly-custom-standalone-time-page) #step-3 > .appointly-custom-step-header .appointly-custom-step-heading-group {
  grid-column: 1 / -1;
  min-width: 0;
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view):not(.appointly-custom-standalone-time-page) #step-3 > .appointly-custom-step-header .btn-prev-step:not(.hidden) + .appointly-custom-step-heading-group,
.appointly-custom-layout-view:not(.appointly-custom-standalone-time-page) #step-3 > .appointly-custom-step-header .btn-prev-step:not(.hidden) + .appointly-custom-step-heading-group {
  grid-column: auto;
}

.appointly-custom-step-heading-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  flex: 1 1 auto;
  margin-top: 20px;
}

.appointly-custom-step-heading-group h4,
.appointly-custom-step-heading-group h4.tw-text-xl,
.appointly-custom-step-heading-group h4.tw-text-lg {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
  color: #0f172a;
}

.appointly-custom-step-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 15px;
}

.appointly-custom-scheduler {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.appointly-custom-calendar-card {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none;
}

.appointly-custom-time-slots-card {
  background: #ffffff;
  box-shadow: none;
  border-radius: 24px !important;
  border-color: #dbe4f0 !important;
  padding: 24px !important;
}

/* Keep the Continue button hidden (like the time slots panel it belongs to)
   until a date is actually picked, instead of sitting there disabled the
   whole time. Reacts to whatever JS shows/hides #time-slots-section rather
   than needing its own separate toggle call. */
.appointly-custom-service-content .appointly-default-nav-actions {
  display: none;
}

.appointly-custom-service-content:has(#time-slots-section:not(.tw-hidden)) .appointly-default-nav-actions {
  display: flex;
}

.appointly-custom-calendar-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 28px !important;
  width: 100%;
  max-width: 560px;
}

.appointly-custom-accessible-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 #appointment-date {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  height: 0 !important;
  width: 0;
  padding: 0 !important;
  border: 0 !important;
}

.appointly-date-picker-shell {
  min-height: 44px;
}

.appointly-date-picker-shell.is-loading #appointment-date {
  color: transparent;
  pointer-events: none;
  background: linear-gradient(90deg, #f3f4f6 0%, #eef2f7 42%, #f8fafc 78%);
  background-size: 220% 100%;
  animation: appointlyDatePickerShimmer 1.1s ease-in-out infinite;
}

.appointly-date-picker-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(2px);
}

.appointly-date-picker-loading.hide {
  display: none !important;
}

.appointly-date-picker-spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid rgba(59, 130, 246, 0.26);
  border-top-color: #3b82f6;
  border-radius: 999px;
  animation: appointlyDatePickerSpin 0.75s linear infinite;
}

@keyframes appointlyDatePickerSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes appointlyDatePickerShimmer {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

.appointly-custom-date-column,
.appointly-custom-timezone-column {
  width: 100%;
}

.appointly-custom-date-field {
  position: relative;
  width: 100%;
  max-width: 560px;
}

.appointly-custom-timezone-column {
  align-items: flex-start;
  gap: 12px;
}

@media (max-width: 1024px) {
  .appointly-custom-scheduler {
    gap: 14px;
  }

  .appointly-custom-calendar-card {
    padding: 14px !important;
    margin-bottom: 14px !important;
  }

  .appointly-custom-calendar-grid {
    gap: 16px !important;
    max-width: 100%;
  }

  .appointly-custom-date-field {
    max-width: 100%;
  }

  .appointly-custom-step-heading-group h4,
  .appointly-custom-step-heading-group h4.tw-text-xl,
  .appointly-custom-step-heading-group h4.tw-text-lg,
  .appointly-custom-service-title {
    font-size: 21px;
  }

  .appointly-custom-timezone-label,
  .appointly-custom-step-subtitle {
    font-size: 14px;
  }

  :is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 #time-slots-container {
    gap: 10px;
  }

  .appointly-custom-service-flow .time-slot-btn {
    min-height: 44px;
    padding: 9px 10px;
    font-size: 12px;
  }

  .appointly-custom-booking-summary {
    margin-bottom: 20px !important;
    padding: 18px !important;
  }

  .appointly-custom-booking-summary-grid {
    gap: 12px !important;
  }

  .appointly-custom-booking-summary-item {
    padding: 14px !important;
  }

  .appointly-custom-booking-summary-title {
    margin-bottom: 14px !important;
  }

  .appointly-custom-booking-summary-title h5 {
    font-size: 16px;
  }

  .appointly-custom-booking-summary-item .tw-text-lg {
    font-size: 15px;
    line-height: 1.35;
  }
}

.appointly-custom-timezone-label {
  margin: 0;
  color: #17324d;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.appointly-custom-timezone-group {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: 100% !important;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: visible;
  background: transparent;
  font-size: 14px;
}

.appointly-custom-timezone-group .input-group-addon {
  position: absolute;
  left: 10px;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  padding: 0;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #17324d;
  transform: translateY(-50%);
  pointer-events: none;
}

.appointly-custom-timezone-group .bootstrap-select,
.appointly-custom-timezone-group .bootstrap-select > .dropdown-toggle {
  width: 100% !important;
  max-width: 100%;
}

.appointly-custom-timezone-group .bootstrap-select {
  position: relative;
  flex: 1 1 auto;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.appointly-custom-timezone-group .bootstrap-select > .dropdown-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 0;
  padding: 6px 32px 5px 40px;
  border: 0 !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  background: transparent !important;
}

.appointly-custom-timezone-group .bootstrap-select .filter-option,
.appointly-custom-timezone-group .bootstrap-select .filter-option-inner,
.appointly-custom-timezone-group .bootstrap-select .filter-option-inner-inner {
  display: flex;
  align-items: center;
  overflow: visible !important;
  white-space: nowrap;
}

.appointly-custom-timezone-group .bootstrap-select .filter-option {
  flex: 1 1 auto;
  min-width: 0;
}

.appointly-custom-timezone-button-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.appointly-custom-timezone-name {
  color: #17324d;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.appointly-custom-timezone-time {
  color: #17324d;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.appointly-custom-timezone-group .bootstrap-select .filter-expand {
  display: none !important;
}

.appointly-custom-timezone-group .bootstrap-select .bs-caret {
  position: absolute;
  right: 10px !important;
  left: auto !important;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  pointer-events: none;
}

.appointly-custom-timezone-group .bootstrap-select .bs-caret::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-right: 2px solid #17324d;
  border-bottom: 2px solid #17324d;
  box-sizing: border-box;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.appointly-custom-timezone-group .bootstrap-select .caret {
  display: none !important;
}

.appointly-custom-timezone-group .bootstrap-select.open .bs-caret::before,
.appointly-custom-timezone-group .bootstrap-select.show .bs-caret::before {
  transform: rotate(-135deg);
}

.appointly-custom-timezone-group .bootstrap-select.dropup.open .bs-caret,
.appointly-custom-timezone-group .bootstrap-select.dropup.show .bs-caret {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.appointly-custom-timezone-group .dropdown-menu,
.appointly-custom-timezone-group .dropdown-menu.open {
  width: 100%;
  min-width: 300px;
  max-width: 100%;
  max-height: min(68vh, 460px) !important;
  min-height: 0 !important;
  padding: 0;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  overflow: hidden !important;
  z-index: 30 !important;
}

.dropdown-menu.open:after,
.dropdown-menu.open::after {
  display: none !important;
  content: none !important;
}

.appointly-custom-timezone-group .dropdown-menu .bs-searchbox {
  position: sticky;
  top: 0;
  padding: 12px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.appointly-custom-timezone-group .dropdown-menu .bs-searchbox .form-control {
  height: 40px;
  padding: 8px 14px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  box-shadow: none;
}

.appointly-custom-timezone-group .dropdown-menu .inner,
.appointly-custom-timezone-group .dropdown-menu .inner.open {
  position: relative;
  z-index: 31;
  max-height: calc(68vh - 64px) !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.appointly-custom-timezone-group .dropdown-menu .dropdown-menu.inner {
  padding: 8px 0;
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker {
  position: relative;
  z-index: 1;
  display: block;
  width: 100% !important;
  max-width: 560px;
  margin: 0;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_datepicker {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_monthpicker {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  margin: 0 0 22px;
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_prev,
:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_next {
  position: absolute;
  top: 0;
  z-index: 1;
  float: none !important;
  width: 56px;
  height: 56px;
  margin: 0;
  border-radius: 999px;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1;
  text-indent: -9999px;
  overflow: hidden;
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_prev {
  left: 0;
  color: #64748b;
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_next {
  right: 0;
  color: #2563eb;
  background: transparent !important;
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_prev:before,
:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_next:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_prev:before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_next:before {
  transform: translate(-65%, -50%) rotate(45deg);
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_label {
  float: none !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0;
  background: transparent !important;
  color: #17324d;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  cursor: default;
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_label > span {
  margin: 0;
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_label i {
  display: none !important;
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_calendar {
  width: 100% !important;
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_calendar table {
  width: 100% !important;
  border-collapse: separate;
  border-spacing: 0 12px;
  table-layout: fixed;
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_calendar th {
  padding: 0 0 10px;
  color: #17324d;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_calendar td {
  position: relative;
  height: 64px;
  padding: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #6b7280;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_calendar td > div {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0 auto;
  padding-right: 0;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_date:not(.xdsoft_disabled):not(.xdsoft_current) > div {
  background: #eef3ff;
  color: #2563eb;
  font-weight: 600;
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_date:not(.xdsoft_disabled):not(.xdsoft_current):hover > div {
  background: #e2ebff;
  transform: translateY(-1px);
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current > div,
:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current:hover > div {
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.22);
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today:not(.xdsoft_current) > div:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2563eb;
  transform: translateX(-50%);
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled,
:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled:hover,
:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_date.blocked-date,
:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 td.xdsoft_date.xdsoft_disabled.blocked-date,
:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_disabled.provider-unavailable {
  background: transparent !important;
  color: #8b95a7 !important;
  opacity: 1;
  cursor: default !important;
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled > div,
:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_date.blocked-date > div,
:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_disabled.provider-unavailable > div {
  background: transparent !important;
  color: #8b95a7 !important;
  box-shadow: none !important;
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month > div {
  color: #cbd5e1 !important;
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_date.blocked-date:before,
:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 td.xdsoft_date.xdsoft_disabled.blocked-date:before,
:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_date[title]:hover:after,
:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_date.blocked-date[title]:hover:after,
:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_date.provider-unavailable[title]:hover:after {
  content: none !important;
  display: none !important;
}

:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 #time-slots-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.appointly-custom-service-flow .time-slot-btn {
  min-height: 56px;
  justify-content: center;
  border-radius: 16px;
}

.appointly-custom-service-flow .time-slot-btn.selected {
  background-color: rgba(14, 165, 233, 0.08) !important;
  border-color: #0284c7 !important;
}

.appointly-custom-service-flow .btn-next[data-step="3"],
.appointly-custom-service-flow #book-appointment-btn {
  min-width: 190px;
  border-radius: 999px;
}

.appointly-custom-service-flow .btn-prev-step {
  padding: 10px;
}

@media (max-width: 767px) {
  .appointly-date-time-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr) !important;
  }

  .appointly-date-time-actions .appointly-mobile-selected-slot {
    grid-column: 1 / -1;
    padding: 13px 14px;
  }

  .appointly-date-time-actions .btn-prev-step {
    grid-column: 1;
    min-width: 0 !important;
    width: 100%;
    border-radius: 10px;
  }

  .appointly-date-time-actions .btn-next[data-step="3"] {
    grid-column: 2;
    min-width: 0 !important;
    width: 100%;
    border-radius: 10px;
  }
}

@media (max-width: 991px) {
  .appointly-custom-booking-container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .appointly-custom-service-shell {
    grid-template-columns: 1fr;
  }

  .appointly-custom-service-sidebar {
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }

  .appointly-custom-service-content {
    padding: 28px 22px 30px;
  }

  .appointly-custom-scheduler {
    grid-template-columns: 1fr;
  }

  .appointly-custom-calendar-grid,
  .appointly-custom-date-field,
  :is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker {
    max-width: 100%;
  }

  .appointly-custom-step-header {
    margin: 0 !important;
  }
}

@media (max-width: 640px) {
  .appointly-custom-service-accordion-toggle {
    display: inline-flex;
  }

  .appointly-custom-mobile-time-view .appointly-custom-step-header,
  .appointly-custom-mobile-time-view .appointly-custom-calendar-card {
    display: none !important;
  }

  .appointly-hide-calendar-picker .appointly-custom-calendar-card,
  .appointly-hide-calendar-picker .appointly-custom-calendar-grid {
    display: none !important;
  }

  .appointly-custom-mobile-time-view .appointly-custom-time-slots-card {
    margin-top: 0 !important;
  }
}

@media (max-width: 640px) {
  .appointly-custom-service-flow #wrapper,
  .appointly-custom-layout-view #wrapper {
    padding: 16px 10px;
  }

  .appointly-custom-service-flow.appointly-custom-standalone-time-page #wrapper {
    padding: 20px 0 32px !important;
  }

  .appointly-custom-booking-container {
    padding-left: 0;
    padding-right: 0;
  }

  .appointly-custom-standalone-time-page .appointly-custom-booking-container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .appointly-custom-service-sidebar,
  .appointly-custom-service-content {
    padding: 18px 14px;
  }

  .appointly-custom-standalone-time-page .appointly-custom-service-content {
    padding: 0;
  }

  .appointly-custom-step-header {
    margin: 0 !important;
  }

  .appointly-custom-service-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .appointly-custom-service-back-link {
    min-width: 0;
  }

  .appointly-copy-link-btn {
    width: auto;
    white-space: nowrap;
  }

  .appointly-custom-service-branding,
  .appointly-custom-service-host {
    align-items: center;
    text-align: center;
  }

  .appointly-custom-service-branding {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .appointly-custom-service-logo {
    display: block;
    margin: 0 auto;
  }

  .appointly-custom-service-host {
    display: none !important;
  }

  .appointly-custom-service-title-row {
    align-items: center;
  }

  .appointly-custom-step-heading-group h4,
  .appointly-custom-step-heading-group h4.tw-text-xl,
  .appointly-custom-step-heading-group h4.tw-text-lg,
  .appointly-custom-service-title {
    font-size: 19px;
  }

  .appointly-custom-timezone-label {
    font-size: 17px;
  }

  .appointly-custom-timezone-group .bootstrap-select .filter-option-inner-inner {
    font-size: 16px;
  }

  :is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_monthpicker {
    min-height: 48px;
    margin-bottom: 18px;
  }

  :is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_prev,
  :is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_next {
    width: 48px;
    height: 48px;
  }

  :is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_label {
    font-size: 18px;
  }

  .appointly-custom-service-title {
    font-size: 21px;
  }

  .appointly-custom-scheduler {
    gap: 10px;
  }

  .appointly-custom-calendar-card {
    padding: 12px !important;
    margin-bottom: 12px !important;
  }

  .appointly-custom-calendar-grid {
    gap: 12px !important;
  }

  .appointly-custom-step-heading-group {
    gap: 6px;
  }

  .appointly-custom-service-title-row {
    gap: 8px;
  }

  :is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 #time-slots-container {
    gap: 8px;
  }

  .appointly-custom-service-flow .time-slot-btn {
    min-height: 40px;
    padding: 8px 9px;
    font-size: 11px;
  }

  .appointly-custom-booking-summary {
    margin-bottom: 16px !important;
    padding: 14px !important;
  }

  .appointly-custom-booking-summary-grid {
    gap: 10px !important;
  }

  .appointly-custom-booking-summary-item {
    padding: 12px !important;
  }

  .appointly-custom-booking-summary-title {
    margin-bottom: 12px !important;
  }

  .appointly-custom-booking-summary-title h5 {
    font-size: 15px;
  }

  .appointly-custom-booking-summary-item .tw-text-lg {
    font-size: 14px;
  }

  :is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_calendar table {
    border-spacing: 0 1px;
  }

  :is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_calendar td {
    height: 30px;
    font-size: 11px;
  }

  :is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_calendar td > div {
    width: 28px;
    height: 28px;
    padding-right: 0;
    font-size: 11px;
  }
}

/* ==========================================================================
   Default Booking Page Style + Default Calendar Style with Custom Service Flow
   Two-column layout: 70% calendar / 30% time slots.
   Replaces the old narrowing 2-column grid that caused calendar cell overflow.
   ========================================================================== */
:is(.appointly-custom-service-flow, .appointly-custom-layout-view):not(.appointly-custom-standalone-time-page):not(.appointly-calendar-table-view) .appointly-default-scheduler.appointly-custom-scheduler {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 20px;
  align-items: start;
}

/* Always show the time-slots panel so the 30% column is never empty */
:is(.appointly-custom-service-flow, .appointly-custom-layout-view):not(.appointly-custom-standalone-time-page):not(.appointly-calendar-table-view) #time-slots-section.appointly-custom-time-slots-card {
  display: block !important;
  margin-top: 0;
  max-width: 100%;
}

/* Calendar card and inner components fill the 70% column */
:is(.appointly-custom-service-flow, .appointly-custom-layout-view):not(.appointly-custom-standalone-time-page):not(.appointly-calendar-table-view) .appointly-custom-calendar-grid,
:is(.appointly-custom-service-flow, .appointly-custom-layout-view):not(.appointly-custom-standalone-time-page):not(.appointly-calendar-table-view) .appointly-custom-date-field,
:is(.appointly-custom-service-flow, .appointly-custom-layout-view):not(.appointly-custom-standalone-time-page):not(.appointly-calendar-table-view) #step-3 .xdsoft_datetimepicker {
  max-width: 100%;
}

/* Prevent calendar date circles from overflowing cell boundaries on any viewport */
:is(.appointly-custom-service-flow, .appointly-custom-layout-view) #step-3 .xdsoft_datetimepicker .xdsoft_calendar td > div {
  max-width: 100%;
}

/* Step-1 always visible in custom service flow even when JS adds .hidden */
.appointly-custom-service-flow #step-1 {
  display: block !important;
  opacity: 1 !important;
}

/* Hide service-selection grid in custom service flow (service is already preselected) */
.appointly-custom-service-flow #appointly-booking-services {
  display: none !important;
}

/* Hide OTP card in custom service flow — show regular client-details form instead */
.appointly-custom-service-flow .appointly-otp-card-wrap {
  display: none !important;
}

/* Collapse to single column on narrow screens */
@media (max-width: 768px) {
  :is(.appointly-custom-service-flow, .appointly-custom-layout-view):not(.appointly-custom-standalone-time-page):not(.appointly-calendar-table-view) .appointly-default-scheduler.appointly-custom-scheduler {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  body .appointly-standalone-step-actions.appointly-date-time-actions {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 80 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr) !important;
    gap: 10px 12px !important;
    margin: 18px -16px -16px !important;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid #dbe3ef !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 -14px 32px rgba(15, 31, 61, 0.1) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  body .appointly-standalone-step-actions.appointly-date-time-actions .appointly-mobile-selected-slot {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    grid-column: 1 / -1 !important;
    padding: 13px 14px !important;
    border: 1px solid #d6e3f5 !important;
    border-radius: 12px !important;
    background: #f7faff !important;
    color: #53627c !important;
    line-height: 1.2 !important;
  }

  body .appointly-standalone-step-actions.appointly-date-time-actions .appointly-mobile-selected-slot.is-visible {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
  }

  body .appointly-standalone-step-actions.appointly-date-time-actions .appointly-mobile-selected-slot span {
    display: block !important;
    margin: 0 !important;
    color: #53627c !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
  }

  body .appointly-standalone-step-actions.appointly-date-time-actions .appointly-mobile-selected-slot strong {
    display: block !important;
    color: #0f1f3d !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    word-break: break-word !important;
  }

  body .appointly-standalone-step-actions.appointly-date-time-actions .btn-prev-step,
  body .appointly-standalone-step-actions.appointly-date-time-actions .btn-next[data-step="3"] {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body .appointly-standalone-step-actions.appointly-date-time-actions .btn-prev-step {
    grid-column: 1 !important;
    border: 1px solid #dbe3ef !important;
    background: #ffffff !important;
    color: #0f1f3d !important;
  }

  body .appointly-standalone-step-actions.appointly-date-time-actions .btn-next[data-step="3"] {
    grid-column: 2 !important;
  }
}

@media (max-width: 991px) {
  body #step-4 .appointly-details-header-actions .btn-prev-step {
    display: none !important;
  }

  body.appointly-standalone-payment-enabled #appointly-otp-continue-btn {
    display: none !important;
  }

  body.appointly-standalone-payment-enabled #appointly-send-otp-btn,
  body.appointly-standalone-payment-enabled #appointly-verify-otp-btn {
    display: none !important;
  }

  body .appointly-standalone-step-actions.appointly-details-actions,
  body .appointly-standalone-step-actions.appointly-review-pay-actions {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 80 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr) !important;
    gap: 10px 12px !important;
    margin: 18px -16px -16px !important;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid #dbe3ef !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 -14px 32px rgba(15, 31, 61, 0.1) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  body.appointly-account-authenticated.appointly-standalone-payment-enabled #wrapper {
    padding-bottom: 176px !important;
  }

  body.appointly-account-authenticated .appointly-standalone-step-actions.appointly-review-pay-actions {
    position: fixed !important;
    left: 50% !important;
    bottom: 92px !important;
    width: min(560px, calc(100% - 24px)) !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 14px !important;
    z-index: 890 !important;
  }

  body .appointly-standalone-step-actions.appointly-details-actions .btn-prev-step,
  body .appointly-standalone-step-actions.appointly-details-actions .appointly-standalone-primary-action,
  body .appointly-standalone-step-actions.appointly-review-pay-actions .btn-prev-step,
  body .appointly-standalone-step-actions.appointly-review-pay-actions .appointly-standalone-primary-action {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body .appointly-standalone-step-actions.appointly-details-actions .btn-prev-step,
  body .appointly-standalone-step-actions.appointly-review-pay-actions .btn-prev-step {
    grid-column: 1 !important;
    border: 1px solid #dbe3ef !important;
    background: #ffffff !important;
    color: #0f1f3d !important;
  }

  body .appointly-standalone-step-actions.appointly-details-actions .appointly-standalone-primary-action,
  body .appointly-standalone-step-actions.appointly-review-pay-actions .appointly-standalone-primary-action {
    grid-column: 2 !important;
  }
}

@media (max-width: 991px) {
  body.appointly-account-authenticated .appointly-bottom-tabs {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: none !important;
    transform: none !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
  }

  body.appointly-account-authenticated .appointly-bottom-tabs button {
    min-height: 58px !important;
    padding: 8px 3px 7px !important;
    border-radius: 12px !important;
  }

  body.appointly-account-authenticated .appointly-bottom-tabs svg {
    width: 21px !important;
    height: 21px !important;
    margin-bottom: 5px !important;
  }

  body.appointly-account-authenticated .appointly-standalone-step-actions.appointly-date-time-actions {
    bottom: calc(76px + env(safe-area-inset-bottom)) !important;
    margin-bottom: 0 !important;
    z-index: 890 !important;
  }

  body.appointly-account-authenticated.appointly-standalone-payment-enabled #wrapper {
    padding-bottom: 184px !important;
  }

  body.appointly-account-authenticated .appointly-standalone-step-actions.appointly-review-pay-actions {
    bottom: calc(86px + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 768px) {
  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 #wrapper {
    padding: 14px 10px 132px !important;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 #content > .container,
  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 .appointly-custom-booking-container {
    width: 100%;
    max-width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 .appointly-custom-service-wrapper {
    width: 100%;
    max-width: 100% !important;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 .appointly-custom-service-shell {
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 .appointly-custom-service-sidebar {
    display: none;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 .appointly-custom-service-content {
    padding: 0 !important;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 #step-3.active {
    display: block !important;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 .appointly-standalone-step-title {
    margin-bottom: 14px;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 .appointly-standalone-step-title h2 {
    font-size: 22px;
    line-height: 1.18;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 .appointly-standalone-step-title p {
    font-size: 14px;
    line-height: 1.45;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 #step-3 .appointly-custom-step-heading-group {
    margin-bottom: 20px;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 #step-3 .btn-prev-step {
    margin-top: 15px;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 .appointly-custom-scheduler {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 .appointly-custom-calendar-card,
  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 .appointly-custom-time-slots-card {
    margin: 0 !important;
    padding: 14px !important;
    border: 1px solid #dbe4f0 !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 30px rgba(15, 31, 61, 0.08);
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 .appointly-custom-calendar-grid {
    gap: 14px !important;
    max-width: 100%;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 .appointly-custom-timezone-column {
    gap: 8px;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 .appointly-custom-timezone-label {
    font-size: 14px;
    font-weight: 800;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 .appointly-custom-timezone-group,
  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 .appointly-custom-timezone-group .bootstrap-select,
  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 .appointly-custom-timezone-group .btn {
    min-height: 46px;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 #step-3 .xdsoft_datetimepicker {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 #step-3 .xdsoft_datetimepicker .xdsoft_monthpicker {
    min-height: 44px;
    margin-bottom: 12px;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 #step-3 .xdsoft_datetimepicker .xdsoft_prev,
  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 #step-3 .xdsoft_datetimepicker .xdsoft_next {
    width: 44px;
    height: 44px;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 #step-3 .xdsoft_datetimepicker .xdsoft_label {
    font-size: 17px;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 #step-3 .xdsoft_datetimepicker .xdsoft_calendar table {
    border-spacing: 0 5px;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 #step-3 .xdsoft_datetimepicker .xdsoft_calendar th {
    padding-bottom: 6px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 #step-3 .xdsoft_datetimepicker .xdsoft_calendar td {
    height: 40px;
    font-size: 14px;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 #step-3 .xdsoft_datetimepicker .xdsoft_calendar td > div {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 #time-slots-section.appointly-custom-time-slots-card {
    display: block !important;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 #step-3 #time-slots-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 .time-slot-btn {
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.2;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 .appointly-date-time-actions {
    margin-right: -10px !important;
    margin-left: -10px !important;
  }
}

@media (max-width: 380px) {
  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 #step-3 .xdsoft_datetimepicker .xdsoft_calendar td {
    height: 36px;
    font-size: 13px;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 #step-3 .xdsoft_datetimepicker .xdsoft_calendar td > div {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view).appointly-current-step-3 #step-3 #time-slots-container {
    grid-template-columns: 1fr;
  }
}

body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view):is(.appointly-current-step-1, .appointly-current-step-2, .appointly-current-step-4, .appointly-current-step-5, .appointly-current-step-6, .appointly-current-step-7) #content > .appointly-custom-booking-container {
  max-width: 1500px;
  padding-right: 32px;
  padding-left: 32px;
}

body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view):is(.appointly-current-step-1, .appointly-current-step-2, .appointly-current-step-4, .appointly-current-step-5, .appointly-current-step-6, .appointly-current-step-7) .appointly-custom-service-shell {
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view):is(.appointly-current-step-1, .appointly-current-step-2, .appointly-current-step-4, .appointly-current-step-5, .appointly-current-step-6, .appointly-current-step-7) .appointly-custom-service-sidebar {
  display: none;
}

body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view):is(.appointly-current-step-1, .appointly-current-step-2, .appointly-current-step-4, .appointly-current-step-5, .appointly-current-step-6, .appointly-current-step-7) .appointly-custom-service-content {
  padding: 0;
}

body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view):is(.appointly-current-step-1, .appointly-current-step-2, .appointly-current-step-4, .appointly-current-step-5, .appointly-current-step-6, .appointly-current-step-7) .appointly-custom-booking-row {
  margin-right: -15px;
  margin-left: -15px;
}

@media (max-width: 768px) {
  body.appointly-standalone-booking-page.appointly-custom-layout-view:not(.appointly-calendar-table-view):is(.appointly-current-step-1, .appointly-current-step-2, .appointly-current-step-4, .appointly-current-step-5, .appointly-current-step-6, .appointly-current-step-7) #content > .appointly-custom-booking-container {
    padding-right: 16px;
    padding-left: 16px;
  }
}

/* Client Details card ("Your Details" step) — the tw-max-w-2xl/tw-mx-auto
   utility classes previously added here have no rule in the compiled
   Tailwind output in this build (only tw-max-w-3xl/tw-max-w-md exist), so
   they silently did nothing. Hand-written rule instead: centered, and about
   double the width 2xl would have been (~672px) since neither that nor any
   compiled utility matched what was actually wanted. */
.appointly-client-details-card,
.appointly-login-method-card {
  width: 100%;
  max-width: 1344px;
  margin-left: auto;
  margin-right: auto;
}

.appointly-login-method-card {
  max-width: 720px;
}

.appointly-client-details-card.tw-hidden,
.appointly-login-method-card.tw-hidden {
  display: none;
}

.appointly-otp-card-wrap[hidden],
.appointly-otp-card-wrap.tw-hidden {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
