@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");


@font-face {
  font-family: 'Platform';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/platform.woff2') format('woff2');
  /* todo check this unicode-range, I just put together /en/ and /lat/ PreplyInter */
  /* upd: adding â‚¬ and Â£ */
  unicode-range:
    U+0020-007F,
    /* Basic Latin */
    U+00A0-00FF,
    /* Latin-1 Supplement */
    U+0100-017F,
    /* Latin Extended-A */
    U+0180-024F,
    /* Latin Extended-B */
    U+02B0-02FF,
    /* Spacing Modifier Letters */
    U+1E00-1EFF,
    /* Latin Extended Additional */
    U+2000-206F,
    /* General Punctuation */
    U+20A0-20CF,
    /* Currency Symbols */
    U+E02E;
  /* Private Use Area ðŸ¤·â€â™‚ï¸ */
}

/* 0) Overlay & Modal Window */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-window {
  background: #fff;
  border-radius: 8px;
  /* width:380px; */
  /* max-width:95%; */
  /* max-height:95vh; */
  animation: fadeIn 200ms ease-out;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0px 8px 32px 0px #12111726,
    0px 16px 48px 0px #12111726;

}

body:has(.lat-trial-container.fullscreen) {
  overflow: hidden;
}

/* Full-screen trial checkout. */
.lat-trial-modal-step4 {
  background: #ffffff;
  color: #121117;
  min-height: 100%;
  padding: 28px clamp(20px, 5vw, 72px) 48px;
}

.lat-trial-checkout-header {
  align-items: center;
  display: flex;
  gap: 18px;
  margin: 0 auto 36px;
  max-width: 1080px;
}

.lat-trial-checkout-header .lat-back-box {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  font-size: 28px;
  height: 40px;
  justify-content: center;
  padding: 0;
  width: 40px;
}

.lat-trial-checkout-brand {
  color: #121117;
  font-family: 'Platform', sans-serif;
  font-size: 25px;
  font-weight: 700;
  text-decoration: none;
}

.lat-trial-checkout-label {
  color: #4d4c5c;
  font-size: 15px;
  font-weight: 600;
  margin-left: auto;
}

.lat-trial-checkout-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  margin: 0 auto;
  max-width: 1080px;
}

.lat-trial-checkout-summary,
.lat-trial-checkout-payment {
  display: grid;
  gap: 16px;
  align-content: start;
}

.lat-trial-checkout-card,
.lat-trial-reviews {
  border: 1px solid #dcdce5;
  border-radius: 8px;
  padding: 20px;
}

.lat-trial-tutor-heading,
.lat-trial-booking-details,
.lat-trial-review-heading,
.lat-trial-price-row,
.lat-trial-total-row,
.lat-trial-stripe-method {
  align-items: center;
  display: flex;
}

.lat-trial-tutor-heading {
  gap: 14px;
}

.lat-trial-tutor-avatar {
  border-radius: 4px;
  object-fit: cover;
}

.lat-trial-eyebrow,
.lat-trial-rating-line,
.lat-trial-booking-time,
.lat-trial-timezone,
.lat-trial-payment-note,
.lat-trial-secure-note {
  margin: 0;
}

.lat-trial-eyebrow,
.lat-trial-timezone,
.lat-trial-payment-note,
.lat-trial-secure-note {
  color: #4d4c5c;
  font-size: 14px;
}

.lat-trial-tutor-name,
.lat-trial-checkout-card h3,
.lat-trial-reviews h3 {
  font-size: 16px;
  font-weight: 650;
  margin: 0;
}

.lat-trial-rating-line {
  display: flex;
  gap: 6px;
  margin-top: 5px;
}

.lat-trial-guarantee {
  background: #d8f8f2;
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 14px;
}

.lat-trial-guarantee span {
  font-size: 14px;
}

.lat-trial-booking-card h3,
.lat-trial-pricing-card h3,
.lat-trial-payment-card h3 {
  margin-bottom: 18px;
}

.lat-trial-booking-details {
  gap: 16px;
}

.lat-trial-date-box {
  border-right: 1px solid #dcdce5;
  display: grid;
  min-width: 48px;
  padding-right: 16px;
  text-align: center;
}

.lat-trial-date-box span {
  color: #6a697c;
  font-size: 13px;
  font-weight: 600;
}

.lat-trial-date-box strong {
  font-size: 20px;
}

.lat-trial-review-heading {
  justify-content: space-between;
  margin-bottom: 14px;
}

.lat-review-nav {
  display: flex;
  gap: 8px;
}

.lat-review-nav-btn {
  background: #fff;
  border: 1px solid #dcdce5;
  border-radius: 4px;
  height: 32px;
  width: 32px;
}

.lat-step4-duration-tabs {
  background: #f4f4f8;
  display: flex;
  margin-bottom: 18px;
}

.lat-step4-duration-tab {
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  flex: 1;
  font-size: 14px;
  padding: 10px 8px;
}

.lat-step4-duration-tab.active {
  background: #fff;
  border-color: #dcdce5;
  font-weight: 650;
}

.lat-step4-tab-price {
  font-size: 13px;
  font-weight: 400;
}

.lat-trial-price-row,
.lat-trial-total-row {
  justify-content: space-between;
  padding: 12px 0;
}

.lat-trial-total-row {
  border-top: 1px solid #dcdce5;
  font-weight: 650;
}

.lat-trial-slot-unavailable {
  color: #9c1c1c;
  font-size: 14px;
}

.lat-trial-stripe-method {
  border: 1px solid #dcdce5;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 12px;
}

.lat-trial-stripe-method strong {
  color: #635bff;
  letter-spacing: 1px;
}

.lat-trial-payment-card .lat-confirm-button {
  background: #ff2d16;
  border: 0;
  color: #fff;
  margin: 0 0 12px;
  min-height: 44px;
  width: 100%;
}

.lat-trial-secure-note {
  margin-top: 10px;
}

@media (max-width: 768px) {
  .lat-trial-modal-step4 {
    padding: 16px 16px 32px;
  }

  .lat-trial-checkout-header {
    margin-bottom: 20px;
  }

  .lat-trial-checkout-layout {
    grid-template-columns: 1fr;
  }

  .lat-trial-checkout-payment {
    grid-row: 1;
  }

  .lat-trial-checkout-summary {
    grid-row: 2;
  }

  .lat-trial-checkout-card,
  .lat-trial-reviews {
    padding: 16px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 1) Step 1 */
.lat-book-trial-step1 .lat-step-header {
  display: flex;
  align-items: center;
  margin-top: 40px;
}

.lat-book-trial-step1 .lat-step-title {
  flex: 1;
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  color: #000;
}

.lat-book-trial-step1 .step-close {
  font-size: 27px;
  cursor: pointer;
  user-select: none;
  position: absolute;
  top: 6px;
  right: 16px;
}

.lat-book-trial-step1 .lat-duration-option {
  display: flex;
  align-items: center;
  border-radius: 9px;
  padding: 16px;
  margin-block: 16px;
  cursor: pointer;
  transition: background .15s;
  border: 2px solid #0000001F;
  height: 104px;
}

.lat-book-trial-step1 .lat-duration-option:hover {
  border: 2px solid var(--dark-text);
}

.lat-book-trial-step1 .opt-icon {
  font-size: 24px;
  margin-right: 14px;
}

.lat-book-trial-step1 .opt-icon img {
  height: 24px;
  min-width: 24px;
}

.lat-book-trial-step1 .opt-text h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-text);
}

.lat-book-trial-step1 .opt-text p {
  margin: 0;
  font-size: 14px;
  color: var(--dark-text);
}

.lat-book-trial-step1 .opt-arrow {
  margin-left: auto;
  font-size: 20px;
}

/* 2) Step 2 */
.lat-book-trial-step2 .lat-step-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

.lat-book-trial-step2 .step-back,
.lat-book-trial-step2 .step-close {
  font-size: 20px;
  cursor: pointer;
  user-select: none;
}

.lat-book-trial-step2 .step-back {
  margin-right: 12px;
}

.lat-book-trial-step2 .lat-step-title {
  flex: 1;
  margin: 0;
  font-size: 16px;
  text-align: center;
}

.lat-book-trial-step2 .lat-step-body {
  max-height: 75vh;
  overflow-y: scroll;
  /* hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.lat-book-trial-step2 .lat-step-body::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

.lat-book-trial-step2 .duration-tabs {
  display: flex;
  margin: 12px 16px 0;
}

.lat-book-trial-step2 .duration-tab {
  flex: 1;
  padding: 10px 0;
  font-size: 16px;
  border: 1px solid #ddd;
  background: #f0f0f0;
  cursor: pointer;
}

.lat-book-trial-step2 .duration-tab:first-child {
  border-radius: 6px 0 0 6px;
}

.lat-book-trial-step2 .duration-tab:last-child {
  border-radius: 0 6px 6px 0;
}

.lat-book-trial-step2 .duration-tab.active {
  background: #fff;
  border-bottom-color: #fff;
}

.lat-book-trial-step2 .calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  margin: 8px 0;
}

.lat-book-trial-step2 .nav-arrow {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.lat-book-trial-step2 .week-label {
  font-weight: 600;
  font-size: 14px;
}

.lat-book-trial-step2 .lat-calendar-days {
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  margin-bottom: 8px;
}

.lat-book-trial-step2 .day {
  text-align: center;
  cursor: pointer;
}

.lat-book-trial-step2 .day-name {
  display: block;
  font-size: 12px;
  color: #888;
}

.lat-book-trial-step2 .day-num {
  display: block;
  margin-top: 4px;
  width: 24px;
  height: 24px;
  line-height: 24px;
  font-size: 14px;
}

.lat-book-trial-step2 .day.selected .day-num {
  background: #ff3b30;
  color: #fff;
  border-radius: 50%;
}

.lat-book-trial-step2 .day.today .day-num {
  font-weight: 600;
}

.lat-book-trial-step2 .time-section {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  margin: 16px 16px 8px;
}

.lat-book-trial-step2 .time-icon {
  font-size: 18px;
  margin-right: 8px;
}

.lat-book-trial-step2 .time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 8px;
}

.lat-book-trial-step2 .time-slot {
  flex: 1 1 45%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}

.lat-book-trial-step2 .time-slot.selected {
  border-color: #ff3b30;
  color: #ff3b30;
}

.lat-book-trial-step2 .btn-continue {
  width: calc(100% - 32px);
  margin: 0 16px 16px;
  padding: 12px;
  background: #ff3b30;
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* 3) Step 3 */
.lat-book-trial-step3 .lat-step-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

.lat-book-trial-step3 .step-back,
.lat-book-trial-step3 .step-close {
  font-size: 20px;
  cursor: pointer;
  user-select: none;
}

.lat-book-trial-step3 .step-back {
  margin-right: 12px;
}

.lat-book-trial-step3 .step3-title {
  flex: 1;
  margin: 0;
  font-size: 18px;
  text-align: center;
}

.lat-book-trial-step3 .lat-step-body {
  max-height: 85vh;
  overflow-y: scroll;
  padding-bottom: 16px;
}

.lat-book-trial-step3 .lat-step-body::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

.lat-book-trial-step3 .order-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px;
}

.lat-book-trial-step3 .teacher-card {
  flex: 1 1 250px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 16px;
}

.lat-book-trial-step3 .teacher-subject {
  font-size: 12px;
  color: #888;
}

.lat-book-trial-step3 .teacher-profile {
  display: flex;
  align-items: center;
  margin: 8px 0;
}

.lat-book-trial-step3 .teacher-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 12px;
}

.lat-book-trial-step3 .teacher-info {
  flex: 1;
}

.lat-book-trial-step3 .teacher-name {
  margin: 0;
  font-size: 18px;
}

.lat-book-trial-step3 .teacher-rating {
  font-size: 14px;
  color: #555;
}

.lat-book-trial-step3 .teacher-tags .tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 6px;
  margin-right: 4px;
  border-radius: 4px;
  background: #eef;
}

.lat-book-trial-step3 .lessons-info {
  list-style: disc inside;
  margin: 12px 0;
  padding: 0;
}

.lat-book-trial-step3 .your-order h3 {
  margin: 12px 0;
  font-size: 16px;
}

.lat-book-trial-step3 .order-line {
  display: flex;
  justify-content: space-between;
  margin: 4px 0;
}

.lat-book-trial-step3 .order-total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin: 8px 0;
}

.lat-book-trial-step3 .promo-link {
  display: block;
  margin-top: 8px;
  text-decoration: underline;
  font-size: 14px;
}

.lat-book-trial-step3 .payment-section {
  flex: 1 1 250px;
}

.lat-book-trial-step3 .payment-select {
  width: 100%;
  padding: 10px;
  margin: 8px 0 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.lat-book-trial-step3 .btn-confirm {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  background: #ff3b30;
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.lat-book-trial-step3 .review-carousel {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 8px;
}

.lat-book-trial-step3 .rev-arrow {
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
}

.lat-book-trial-step3 .review-card {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 16px;
}

.lat-book-trial-step3 .review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 12px;
}

.lat-book-trial-step3 .review-content .review-author {
  font-weight: 600;
  margin-bottom: 4px;
}

.lat-book-trial-step3 .promo-cta {
  background: #e6fffa;
  border-radius: 6px;
  padding: 12px;
  font-size: 14px;
  margin-bottom: 16px;
}

.lat-book-trial-step3 .promo-disclaimer {
  background: #f7f7f7;
  border-radius: 6px;
  padding: 12px;
  font-size: 14px;
}


/* Overlay & Container */
.lat-trial-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.lat-trial-container {
  position: relative;
  width: 478px;
  max-width: 90%;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  text-align: center;
  font-family: "Poppins", sans-serif !important;
}

.lat-payment-processing-active .lat-trial-container {
  pointer-events: none;
}

.lat-trial-modal-close.is-disabled {
  cursor: default;
  opacity: 0.45;
}

.lat-trial-payment-processing-overlay {
  position: absolute;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 17, 23, 0.44);
}

.lat-trial-payment-processing-card {
  width: min(100%, 420px);
  padding: 32px 24px 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 16px 48px rgba(18, 17, 23, 0.18),
    0 8px 24px rgba(18, 17, 23, 0.12);
  text-align: center;
}

.lat-trial-payment-processing-title {
  margin: 0 0 24px;
  color: #121117;
  font-family: 'Platform', sans-serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.08;
}

.lat-trial-payment-processing-spinner {
  position: relative;
  width: 144px;
  height: 144px;
  margin: 0 auto 24px;
}

.lat-trial-payment-processing-spinner::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 6px solid #d9d9df;
  border-top-color: #121117;
  border-radius: 50%;
  animation: lat-trial-payment-processing-spin 1.05s linear infinite;
}

.lat-trial-payment-processing-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lat-trial-payment-processing-lock img {
  width: 42px;
  height: 42px;
}

.lat-trial-payment-processing-message {
  margin: 0;
  color: #4d4c5c;
  font-size: 16px;
  line-height: 1.5;
}

@keyframes lat-trial-payment-processing-spin {
  to {
    transform: rotate(360deg);
  }
}

.lat-trial-container:has(.lat-book-trial-step1.active) {
  width: 456px;
  height: 505px;
}

.lat-trial-container:has(.lat-transfer-complete-screen.active),
.lat-trial-container:has(.lat-review-transfer-screen.active) {
  width: 520px !important;
}

.lat-trial-container:has(.lat-transfer-screen.active) {
  width: 520px !important;
  height: 697px !important;
  overflow: auto;
  max-height: 87%;
  scrollbar-width: none;

}

.lat-trial-container:has(.lat-trial-modal-step3.active) {
  width: 520px !important;
  height: 384px !important;
}

.lat-trial-container:has(.lat-calendar-slots.active) {
  width: 505px !important;
}

.lat-trial-container.fullscreen::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.lat-trial-container.fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: none;
  max-height: none;
  border-radius: 0 !important;
  overflow-y: auto;
  padding-block: 67px 105px;
}

.lat-trial-modal-close {
  position: absolute;
  top: 6px;
  right: 13px;
  font-size: 30px;
  cursor: pointer;
  font-weight: 400;

}

/* Step visibility */
.lat-trial-modal-screen {
  display: none;
}

.lat-trial-modal-screen.lat-trial-modal-step1.active,
.lat-trial-modal-screen.lat-trial-modal-step2.active {
  margin-top: 48px;
}

.lat-trial-modal-screen.active {
  display: block;
}

.lat-main-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #121117;
  font-family: "Platform";
}

.lat-continue-to-payment-method:hover:not(:disabled) {
  background: rgba(255, 88, 60, 1) !important;
}

.lat-continue-to-payment-method {
  width: 100%;
  justify-content: center;
  border: 2px solid #121117;
  display: flex;
  align-items: center;
  border-radius: 8px;
  background: #FF2500;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  margin-top: 8px;
  font-weight: 600;
  height: 49px;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}

.lat-continue-to-payment-method:disabled {
  background: #f4f4f8;
  border-color: #d7d7e2;
  color: #8a8a98;
  cursor: not-allowed;
  opacity: 1;
}

.lat-continue-button-wrapper {
  padding-top: 10px;
  border-top: 1px solid #00000033;
  margin-left: -24px;
  width: calc(100% + 48px);
  padding-inline: 24px;
}

/* Step 2 */
.lat-trial-modal-step2 {
  margin-bottom: 0;
}

/* Step 3 */
.lat-trial-box-header {
  display: flex;
  align-items: center;
  margin-bottom: 21px;
}

.lat-teacher-avatar {
  width: 48px;
  height: 48px;
  border: 1px solid #1211170F;
  border-radius: 4px;
  object-fit: cover;
  margin-right: 12px;
}

.lat-trial-title {
  font-size: 20px;
  margin: 0;
  font-weight: 600;
  color: #121117;
  font-family: "Platform";
}

.lat-trial-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.lat-slots-tabs {
  overflow: hidden;
  margin-bottom: 11px;
  height: 44px;
  display: flex;
  align-items: center;
  box-shadow: none;
  outline: none;
  background: #f4f4f4;
  border-radius: 8px;
}

.lat-slot-tab {
  flex: 1;
  padding: 8px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}

.lat-slot-tab.active {
  background: #fff;
  border: 2px solid #DCDCE5;
  border-radius: 8px;
}

body.theme-dark .lat-slots-tabs,
body.theme-dark .lat-step4-duration-tabs,
body.theme-dark .lat-trial-modal-step4 .lat-step4-duration-tabs {
  background: #F4F4F8;
}

body.theme-dark .lat-slot-tab,
body.theme-dark .lat-slot-tab.active,
body.theme-dark .lat-step4-duration-tab,
body.theme-dark .lat-step4-duration-tab.active,
body.theme-dark .lat-trial-modal-step4 .lat-step4-duration-tab,
body.theme-dark .lat-trial-modal-step4 .lat-step4-duration-tab.active,
body.theme-dark .lat-trial-title,
body.theme-dark .lat-trial-subtitle,
body.theme-dark .lat-time-slot,
body.theme-dark .lat-timezone-label,
body.theme-dark .lat-trial-modal-step4 .lat-step4-card-title,
body.theme-dark .lat-trial-modal-step4 .lat-step4-price-row,
body.theme-dark .lat-trial-modal-step4 .lat-step4-payment-selector .card-details,
body.theme-dark .lat-trial-modal-step4 .lat-step4-terms,
body.theme-dark .lat-trial-modal-step4 .lat-step4-secure-payment {
  color: #121117 !important;
}

.lat-slots-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: 24px;
}

.arrow-box-calendar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  height: 40px;
  padding-inline: 24px;
  margin-bottom: 12px;
}

.arrow-calendar:hover {
  background: #f5f5f5;
}

.arrow-calendar {
  background: #fff;
  border: 2px solid #DCDCE5;
  border-radius: 8px;
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: background-color .2s ease, border-color .2s ease, opacity .2s ease;
}

.arrow-calendar img {
  display: block;
}

.arrow-calendar:disabled,
.arrow-calendar.is-disabled {
  background: #f4f4f8;
  border-color: #d7d7e2;
  cursor: not-allowed;
  opacity: .8;
}

.arrow-calendar:disabled img,
.arrow-calendar.is-disabled img {
  filter: grayscale(1);
  opacity: .45;
}

.arrow-calendar:disabled:hover,
.arrow-calendar.is-disabled:hover {
  background: #f4f4f8;
}

.arrow-calendar:disabled::after,
.arrow-calendar:disabled::before,
.arrow-calendar.is-disabled::after,
.arrow-calendar.is-disabled::before {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity .16s ease;
}

.arrow-calendar:disabled::after,
.arrow-calendar.is-disabled::after {
  background: #121117;
  border-radius: 10px;
  bottom: calc(100% + 10px);
  color: #fff;
  content: attr(data-disabled-tooltip);
  font-size: 12px;
  font-weight: 600;
  left: 50%;
  line-height: 1.3;
  max-width: 164px;
  min-width: 132px;
  padding: 8px 10px 8px 30px;
  text-align: left;
  transform: translateX(-50%);
  white-space: normal;
  z-index: 2;
}

.arrow-calendar:disabled::before,
.arrow-calendar.is-disabled::before {
  background:
    radial-gradient(circle at center, transparent 5px, #fff 5px, #fff 6px, transparent 6px),
    linear-gradient(135deg, transparent 44%, #fff 44%, #fff 56%, transparent 56%);
  border: 1.5px solid #fff;
  border-radius: 50%;
  bottom: calc(100% + 22px);
  content: '';
  height: 14px;
  left: 50%;
  transform: translateX(calc(-50% - 48px));
  width: 14px;
  z-index: 3;
}

.arrow-calendar:disabled:hover::after,
.arrow-calendar:disabled:hover::before,
.arrow-calendar:disabled:focus-visible::after,
.arrow-calendar:disabled:focus-visible::before,
.arrow-calendar.is-disabled:hover::after,
.arrow-calendar.is-disabled:hover::before,
.arrow-calendar.is-disabled:focus-visible::after,
.arrow-calendar.is-disabled:focus-visible::before {
  opacity: 1;
}

.arrow-calendar:focus-visible {
  outline: 2px solid #ff6348;
  outline-offset: 2px;
}

.cal-heading {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 0;
}

.lat-week-days {
  display: flex;
  justify-content: space-between;
}

.lat-date-label {
  width: 65px;
  height: 60px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.day,
.lat-date-day {
  font-size: 14px;
  text-transform: capitalize;
  color: #6A697C;
  font-weight: 600;
}

.day-info,
.lat-date-number {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 600;
  background: transparent;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: #121117;
  cursor: pointer;
  font-size: 18px;
}

.lat-date-label.selected .day,
.lat-date-label.selected .lat-date-day {
  color: #FF2500;
}

.lat-date-label.selected .day-info,
.lat-date-label.selected .lat-date-number {
  background: #FF25001A;
  border: 2px solid #FF6348;
  color: #FF2500;
}

.lat-date-label.is-disabled,
.lat-date-label:disabled {
  opacity: 0.45;
  cursor: default;
}

.calendar-box {
  padding-block: 21px 15px;
  border-block: 1px solid #B2B2B2;
  margin-left: -24px;
  width: calc(100% + 48px);
  margin-bottom: 14px;
}

.g-heading {
  font-weight: 400;
  font-size: 14px;
  opacity: 0.7;
  text-align: left;
  margin-bottom: 22px;
}

.lat-slot-section {
  margin-bottom: 24px;
  text-align: left;
}

.lat-slot-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.lat-my-time {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.lat-my-time-label:hover:not(.active) {
  background: #f5f5f5;
}

.lat-my-time-label.active {
  border: 2px solid var(--text) !important;
  background: #f4f4f8 !important;
}

.lat-my-time-label {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 2px solid #0000001F;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Figtree', sans-serif;
  flex: 1;
  background: transparent;
}

.mtt-12 {
  margin-top: 12px !important;
}

.timer-section {
  max-height: 287px;
  overflow: auto;
  scrollbar-width: none;
}

.lat-trial-availability-loader {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0;
  min-height: 220px;
  width: 100%;
}

.lat-trial-availability-loader-spinner {
  animation: lat-book-trial-loader-spin .85s linear infinite;
  border: 3px solid #ffd7cf;
  border-radius: 50%;
  border-top-color: #ff6348;
  display: inline-block;
  flex: 0 0 24px;
  height: 24px;
  width: 24px;
}

@keyframes lat-book-trial-loader-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

#lat-time-slots-container {
  padding: 0 0px 14px;
}

.lat-time-slot-group {
  margin: 0 0 18px;
}

.lat-time-slot-group:last-child {
  margin-bottom: 0;
}

.lat-time-slot-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: #121117;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-align: left;
}

.lat-time-slot-icon {
  position: relative;
  display: inline-flex;
  width: 22px;
  min-width: 22x;
  height: 2px;
  align-items: center;
  justify-content: center;
  color: #121117;
  flex: 0 0 22px;
}

/*
 * Time-of-day icons.
 * Keep these CSS-only so no template/JS changes are required.
 * The inline SVGs reproduce the outlined Night / Morning icons
 * used by the original booking UI instead of relying on font glyphs.
 */
.lat-time-slot-icon::before {
  content: '';
  display: block;
  width: 22px;
  height: 22px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 22px 22px;
}

/* Night: crescent moon icon. */
.lat-time-slot-group-night .lat-time-slot-icon::before,
.lat-time-slot-group-evening-night .lat-time-slot-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23121117' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79Z'/%3E%3C/svg%3E");
}

/* Morning: sunrise icon. */
.lat-time-slot-group-morning .lat-time-slot-icon::before,
.lat-time-slot-group-daytime .lat-time-slot-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23121117' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v3'/%3E%3Cpath d='m4.93 10.93-2.12-2.12'/%3E%3Cpath d='M2 18h3'/%3E%3Cpath d='M19 18h3'/%3E%3Cpath d='m19.07 10.93 2.12-2.12'/%3E%3Cpath d='M4 22h16'/%3E%3Cpath d='M8 18a4 4 0 0 1 8 0'/%3E%3C/svg%3E");
}

/* Afternoon: sun icon. */
.lat-time-slot-group-afternoon .lat-time-slot-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23121117' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2'/%3E%3Cpath d='M12 20v2'/%3E%3Cpath d='m4.93 4.93 1.42 1.42'/%3E%3Cpath d='m17.66 17.66 1.41 1.41'/%3E%3Cpath d='M2 12h2'/%3E%3Cpath d='M20 12h2'/%3E%3Cpath d='m6.34 17.66-1.41 1.41'/%3E%3Cpath d='m19.07 4.93-1.41 1.41'/%3E%3C/svg%3E");
}

/* Evening: sunset icon. */
.lat-time-slot-group-evening .lat-time-slot-icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23121117' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 10V2'/%3E%3Cpath d='m4.93 10.93-1.41-1.41'/%3E%3Cpath d='M2 18h2'/%3E%3Cpath d='M20 18h2'/%3E%3Cpath d='m19.07 10.93 1.41-1.41'/%3E%3Cpath d='M22 22H2'/%3E%3Cpath d='M16 18a4 4 0 0 0-8 0'/%3E%3C/svg%3E");
}

.lat-time-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.lat-time-slot {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 10px;
  border: 2px solid #dcdce5;
  border-radius: 8px;
  background: #fff;
  color: #121117;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
}

.lat-time-slot:hover,
.lat-time-slot.selected {
  border-color: #ff2500;
}

.lat-time-slot.selected {
  background: #fff8f6;
  color: #ff2500;
}

@media (max-width: 480px) {
  #lat-time-slots-container {
    padding-inline: 0;
  }

  .lat-time-slot-grid {
    gap: 8px;
  }

  .lat-time-slot {
    padding-inline: 4px;
    font-size: 12px;
  }
}

/* Step 4 */
.choose-payment-meth:hover {
  background: #f5f5f5;
}

.choose-payment-meth {
  border: 2px solid #DCDCE5;
  border-radius: 8px;
  height: 104px;
  padding: 6px 18px;
  text-align: left;
  cursor: pointer;
}

.balance-heading {
  font-weight: 600;
  font-size: 16px;
  color: #121117;
}

.balance-sub-heading {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 16px;
  font-family: 'Figtree', sans-serif;
}

/* Step 5 Checkout */
.lat-checkout-container {
  display: flex;
  gap: 20px;
  padding-inline: 208px;
  max-width: 1392px;
  margin: 0 auto;
  align-items: start;
}

.lat-checkout-left {
  padding: 24px;
  border: 1px solid #DCDCE5;
  max-width: 400px;
  width: 100%;
}

.lat-checkout-right-section {
  max-width: 512px;
  width: 100%;
}

.lat-checkout-left,
.lat-checkout-right-section {
  background: #fff;
  border-radius: 8px;
}

.super-heading {
  font-size: 26px;
  font-weight: 600;
  text-align: left;
}

.lat-payment-selector {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border: 2px solid #dcdce5;
  border-radius: 8px;
  background-color: #fff;
  cursor: pointer;
}

.card-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-icon {
  width: 48px;
  height: 24px;
}

.card-details {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.lat-outline-button {
  background: #fff !important;
  color: #121117 !important;
}

.lat-outline-button,
.lat-confirm-button {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px;
  border: 2px solid #121117;
  border-radius: 8px;
  background: #FF2500;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

.lat-confirm-button:hover {
  background: rgba(255, 88, 60, 1) !important;
}

.checkout-review-box {
  margin-bottom: 100px;
}

.checkout-review-window {
  border-radius: 8px;
  border: 1px solid #DCDCE5;
  padding: 17px;
}

.arrowz {
  cursor: pointer;
  width: 58px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pointer {
  cursor: pointer;
}

.arrowz:hover {
  background: #f5f5f5;
}

.payment-option:hover {
  background: #F4F4F8;
  cursor: pointer;
}

.payment-option {
  display: flex;
  gap: 10px;
  padding-block: 10px;
  padding-inline: 24px;
  border-radius: 8px;
}

.payment-optionz:hover {
  background: white !important;
}

.payment-optionz {
  top: 52px;
  left: 0;
  border-radius: 8px;
  border: 1px solid #DCDCE5;
  background: white;
  padding: 0 !important;
  z-index: 3;
}

.lat-trial-modal-overlay p {
  margin-bottom: 0;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.lat-available-stars {
  width: 18px;
  height: 18px;
}

/* transfer screen */

.lat-tutor-avatar {
  height: 48px;
  width: 48px;
  border: 1px solid #1211170F;
  border-radius: 8px;
}

.lat-review-transfer-container .lat-row:hover {
  cursor: pointer;
  background: #f4f4f8;
}

.lat-review-transfer-container .lat-row {
  border-bottom: 1px solid var(--border);
}

.lat-transfer-screen h4 {
  font-weight: 500;
  font-size: 16px;
  color: #121117;
  margin: 0;
}

.lat-transfer-screen p {
  color: #000;
  font-weight: 500;
  font-size: 14px;
  opacity: 0.7;

}

.lat-transfer-screen .arrow-back {
  position: absolute;
  left: -15px;
  top: -51px;
  cursor: pointer;
}

.lat-transfer-screen h2 {
  font-size: 28px;
  font-weight: 600;
  color: #121117;
  margin-top: 32px;
  margin-bottom: 24px;
}

/* review transfer screen */
.lat-profile-transfer {
  width: 104px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  gap: 8px;
  margin-top: 32px;
}

.lat-profile-transfer .imageContainer {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  border: 1px solid rgba(18, 17, 23, 0.06);
  display: flex;
  justify-content: center;
  align-items: center;
}

.lat-profile-transfer .imageContainer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lat-profile-transfer .rightArrow {
  position: absolute;
  left: 35%;
  width: 26px;
  height: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  border: 1px solid rgba(220, 220, 229, 1);
  background: rgba(244, 244, 248, 1);
  padding: 5px;
}

.lat-review-transfer-screen .arrow-back {
  position: absolute;
  left: -16px;
  top: -54px;
  cursor: pointer;
}

.lat-review-transfer-screen li,
.lat-review-transfer-screen span {
  font-size: 16px;
  color: #121117;
  ;
}

.lat-review-transfer-screen h2 {
  font-size: 28px;
  font-weight: 600;
  color: #121117;
  margin-bottom: 20px;
}

.lat-review-transfer-screen .lat-container {
  border-bottom: 1px solid var(--border);
  padding-bottom: 19px;
  margin-block: 20px;
}

.lat-review-transfer-screen .lat-info-container {
  margin-top: 40px;
}

.lat-review-transfer-screen .lat-info-container ul li span {
  font-weight: 500;
}

.lat-review-transfer-screen .lat-info-container ul li {
  margin-bottom: 16px;
}

.lat-review-transfer-screen .lat-info-container h3 {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin-bottom: 20px;
}

/* transfer complete screen */
.lat-transfer-complete-screen .lat-complete-container {
  background: rgba(255, 233, 229, 0.5);
  padding-top: 164px;
  padding-bottom: 40px;
  border-radius: 12px;
}

.lat-transfer-complete-screen .transferContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;

  margin-top: 70px;
  padding: 0px 24px;
  height: auto;
  border-radius: 20px;
  margin: 0;
  width: 100%;
}

.lat-transfer-complete-screen .transferContainer .transferImage {
  width: 216px;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: relative;
  margin-bottom: 20px;
  margin-inline: auto;
}

.lat-transfer-complete-screen .transferContainer .transferImage .numbersCountOnImage {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 2px solid rgba(18, 17, 23, 1);
  padding: 4px;
  background: var(--accent);
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: -10px;
  right: -20px;
  font-size: 13.91px;
  font-weight: 600;
  line-height: 24px;
  color: rgba(255, 255, 255, 1);
}

.lat-transfer-complete-screen .transferContainer .transferImage img {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  flex-shrink: 1;
  border: 1px solid rgba(18, 17, 23, 0.06);
}

.lat-transfer-complete-screen .transferComplete .transferContainer h1 {
  font-size: 38px;
  font-weight: 600;
  color: #121117;
  padding: 0;
}

.lat-trial-container:has(.lat-transfer-complete-screen.active) .lat-trial-modal-close {
  z-index: 1;
}

.lat-trial-container:has(.lat-transfer-complete-screen.active) {
  padding: 0;
}

.lat-transfer-complete-screen h1 {
  font-size: 38px;
  font-weight: 600;
  color: #121117;
}

.lat-transfer-complete-screen p span {
  font-weight: 600;
}

.lat-transfer-complete-screen .btn-wrapper {
  padding-inline: 24px;
  padding-bottom: 32px;
}

.lat-transfer-complete-screen p {
  font-size: 16px;
  color: #121117;
  margin-top: 20px;
}

.lat-timezone-box {
  margin-left: 12px;
}

@media (max-width: 1200px) {
  .lat-checkout-container {
    padding-inline: 100px;
  }
}

@media (max-width: 992px) {
  .lat-checkout-container {
    padding-inline: 14px;
  }

  .lat-continue-button-wrapper {
    width: calc(100% + 16px);
    position: fixed;
    bottom: 16px;
  }
}


/* ==========================================================
   CHECKOUT — TEMPLATE PRESENTATION
   Presentational rules moved out of checkout.mustache.
   ========================================================== */

.lat-trial-modal-step3 .lat-payment-choice-title {
  margin-block: 24px;
}

.lat-checkout-profile-avatar {
  margin-bottom: 8px;
}

.lat-checkout-stats {
  margin-top: 20px;
}

.lat-checkout-stats .lat-stat-value {
  margin-left: 4px;
}

.lat-checkout-stats .label-tex {
  margin-top: 4px;
}

.lat-smt-box {
  position: relative;
  margin-top: 20px;
  padding: 16px 20px;
  border: 1px solid #1211170F;
  border-radius: 8px;
  background: #F4F4F8;
}

.lat-smt-title,
.lat-smt-subtitle,
.lat-trial-lesson-title,
.lat-month-booked,
.lat-date-booked,
.lat-trial-time,
.lat-trial-timezone,
.lat-guarantee-title,
.lat-guarantee-text {
  font-family: 'Figtree', sans-serif;
}

.lat-smt-title {
  color: #121117;
  font-size: 16px;
  font-weight: 600;
}

.lat-smt-subtitle {
  color: #4D4C5C;
  font-size: 16px;
}

.lat-smt-progress {
  position: absolute;
  right: 0;
  bottom: 0;
}

.lat-trial-modal-step4 .lat-trial-lesson-title {
  font-size: 16px;
  font-weight: 500;
  text-align: left;
}

.lat-trial-date-box {
  width: 48px;
  padding-right: 12px;
  border-right: 1px solid #DCDCE5;
}

.lat-month-booked {
  color: #6A697C;
  font-size: 14px;
  font-weight: 600;
}

.lat-date-booked,
.lat-trial-time {
  color: #121117;
  font-size: 16px;
  font-weight: 600;
}

.lat-trial-timezone {
  color: #4D4C5C;
  font-size: 14px;
}

.lat-trial-modal-step4 .lat-trial-guarantee {
  gap: 12px;
  height: auto;
  border-radius: 2px;
  background: #D8F8F2;
}

.lat-guarantee-icon {
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
}

.lat-guarantee-title,
.lat-guarantee-text {
  font-size: 16px;
}

.lat-guarantee-title {
  font-weight: 600;
}

.lat-reviews-rating-chip {
  width: 80px;
  height: 42px;
  gap: 12px;
  padding-inline: 17px;
  border: 1px solid #DCDCE5;
  border-radius: 8px;
}

.lat-reviews-rating-value,
.lat-reviews-count,
.lat-reviewer-name,
.lat-reviews-modal .lat-review-content {
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
}

.lat-reviews-rating-value,
.lat-reviewer-name {
  font-weight: 600;
}

.lat-reviews-count,
.lat-reviews-modal .lat-review-content {
  font-weight: 400;
}

.lat-reviews-nav {
  width: 118px;
}

.arrowz.arrow-left,
.arrowz.arrow-right {
  height: 44px;
  border: 2px solid #DCDCE5;
}

.arrowz.arrow-left {
  border-radius: 8px 0 0 8px;
}

.arrowz.arrow-right {
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

.lat-responsive-title {
  margin-bottom: 48px;
}

.lat-reviewer-meta {
  margin-top: 3px;
}

/* ==========================================================
   STEP 4 — RIGHT CHECKOUT
   ========================================================== */

.lat-step4-checkout {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.lat-collective-box {
  margin-top: 20px;
  padding-block: 16px;
  border-top: 2px solid #DCDCE5;
}


/* Cards
   ---------------------------------------------------------- */

.lat-step4-card {
  width: 100%;
  background: #fff;
  border: 1px solid #DCDCE5;
  border-radius: 8px;
  padding: 18px;
  box-sizing: border-box;
  text-align: left;
}

.lat-step4-pricing-card {
  margin-bottom: 14px;
}

.lat-step4-card-title {
  margin: 0 0 14px;
  color: #121117;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}


/* ==========================================================
   25 / 50 MINUTE TABS
   ========================================================== */

.lat-step4-duration-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  margin-bottom: 4px;
  background: #F4F4F8;
  border-radius: 7px;
}

.lat-step4-duration-tab {
  position: relative;
  height: 38px;
  padding: 0 12px;
  margin: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;

  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;

  color: #121117;

  font-family: "Figtree", sans-serif;
  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
  transition:
    background .15s ease,
    border-color .15s ease,
    box-shadow .15s ease;
}

.lat-step4-duration-tab:hover {
  background: #EBEBF1 !important;
}

.lat-step4-duration-tab.active {
  background: #fff;
  border-color: #DCDCE5;

  box-shadow:
    0 1px 2px rgba(18, 17, 23, .04);
}

.lat-step4-tab-price {
  font-weight: 600;
  color: #4D4C5C;
  font-size: 14px;
  margin-top: 3px;
}


/* ==========================================================
   PRICE CONTENT
   ========================================================== */

.lat-step4-price-panel {
  display: none;
}

.lat-step4-price-panel.active {
  display: block;
}

.lat-step4-price-row {
  min-height: 42px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid #ECECF1;

  color: #121117;

  font-family: "Figtree", sans-serif;
  font-size: 16px;
  font-weight: 400;
}

.lat-step4-price-row strong {
  color: #121117;
  font-weight: 600;
}

.lat-step4-price-label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.lat-step4-price-label img {
  opacity: .85;
}

.lat-step4-credit-row strong {
  color: #067560;
}


/* Total
   ---------------------------------------------------------- */

.lat-step4-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 13px 0 8px;

  color: #121117;

  font-family: "Figtree", sans-serif;
  font-size: 20px;
  font-weight: 600;
}

.lat-step4-total-row strong {
  font-size: 20px;
  font-weight: 600;
}


/* Promo
   ---------------------------------------------------------- */

.lat-step4-promo-button {
  padding: 0;
  margin: 8px 0 0;

  background: transparent;
  border: 0;

  color: #121117;

  font-family: "Figtree", sans-serif;
  font-size: 16px;
  font-weight: 600;

  text-decoration: underline;

  cursor: pointer;
}

.lat-step4-promo-button:hover {
  color: #FF2500;
}

.lat-step4-promo-form {
  width: 100%;
  margin-top: 12px;
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.lat-step4-promo-form.d-none {
  display: none !important;
}

.lat-step4-promo-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 12px;
  border: 1px solid #DCDCE5;
  border-radius: 8px;
  background: #fff;
  color: #121117;
  font-family: "Figtree", sans-serif;
  font-size: 14px;
  line-height: 1;
  outline: 0;
  box-sizing: border-box;
  box-shadow: none;
}

.lat-step4-promo-input::placeholder {
  color: #6A697C;
  opacity: 1;
}

.lat-step4-promo-input:focus {
  border: 2px solid #121212;
  padding: 0 11px;
  box-shadow: none;
}

.lat-step4-promo-apply {
  flex: 0 0 76px;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #121117;
  border-radius: 8px;
  background: #FF2500;
  color: #fff;
  font-family: "Figtree", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.lat-step4-promo-apply:hover:not(:disabled),
.lat-step4-promo-apply:focus:not(:disabled) {
  background: rgba(255, 88, 60, 1);
}

.lat-step4-promo-apply:disabled {
  border-color: #B9B8C5;
  background: #E8E8EF;
  color: #6A697C;
  cursor: not-allowed;
}


/* ==========================================================
   PAYMENT CARD
   ========================================================== */

.lat-step4-payment-card {
  margin-top: 12px;
  overflow: visible;
}

.lat-step4-payment-selector {
  width: 100%;
  min-height: 48px;

  padding: 0 14px;
  margin-bottom: 14px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border: 1px solid #DCDCE5;
  border-radius: 7px;

  background: #fff;

  box-sizing: border-box;
}

.lat-step4-payment-selector .card-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lat-step4-payment-selector .card-icon {
  width: 32px;
  height: auto;
  object-fit: contain;
}

.lat-step4-payment-selector .card-details {
  color: #121117;

  font-family: "Figtree", sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.lat-step4-payment-selector .dropdown-icon {
  width: 18px;
  height: 18px;
}


/* ==========================================================
   CTA
   ========================================================== */

.lat-step4-confirm-button {
  width: 100%;
  height: 50px;

  display: flex;
  justify-content: center;
  align-items: center;

  margin-bottom: 12px;

  background: #FF2500;

  border: 2px solid #121117;
  border-radius: 8px;

  color: #fff;

  font-size: 16px;
  font-weight: 600;

  cursor: pointer;

  transition:
    background .15s ease,
    transform .1s ease;
}

.lat-step4-confirm-button:hover {
  background: rgba(255, 88, 60, 1) !important;
}

.lat-step4-confirm-button:active {
  transform: translateY(1px);
}


/* Terms
   ---------------------------------------------------------- */

.lat-step4-terms {
  margin: 0 0 7px;

  color: #4D4C5C;

  font-family: "Figtree", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
}

.lat-step4-terms strong {
  font-weight: 400;
}

.lat-step4-terms a {
  color: #121117;
  text-decoration: underline;
}

.lat-step4-terms a:hover {
  color: #FF2500;
}

.lat-step4-secure-payment {
  margin: 0;

  color: #6A697C;

  font-family: "Figtree", sans-serif;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}


/* ==========================================================
   PAYMENT DROPDOWN
   ========================================================== */

.lat-step4-payment-card .relative,
.lat-step4-mobile-payment-card .relative {
  position: relative;
}

.lat-step4-payment-card .payment-optionz,
.lat-step4-mobile-payment-card .payment-optionz {
  position: absolute;

  top: calc(100% + 5px);
  left: 0;

  width: 100%;

  background: #fff;

  border: 1px solid #DCDCE5;
  border-radius: 7px;

  overflow: hidden;

  z-index: 40;

  box-shadow:
    0 8px 24px rgba(18, 17, 23, .10);
}

.lat-step4-payment-card .payment-option,
.lat-step4-mobile-payment-card .payment-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;

  cursor: pointer;

  border-bottom: 1px solid #ECECF1;
  border-radius: 0;
  text-align: left;
  width: 100%;
  background: #fff;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  transition: background-color .15s ease, color .15s ease;
}

.lat-step4-payment-card .payment-option:last-child,
.lat-step4-mobile-payment-card .payment-option:last-child {
  border-bottom: 0;
}

.lat-step4-payment-card .payment-option:hover,
.lat-step4-mobile-payment-card .payment-option:hover {
  background: #f7f6ff;
}

.lat-step4-payment-card .payment-option.is-selected,
.lat-step4-mobile-payment-card .payment-option.is-selected {
  background: #f1efff;
}

.lat-step4-payment-card .payment-option.is-disabled,
.lat-step4-mobile-payment-card .payment-option.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.lat-step4-payment-card .payment-option.is-disabled:hover,
.lat-step4-mobile-payment-card .payment-option.is-disabled:hover {
  background: #fff;
}

.lat-trial-payment-option-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.lat-trial-payment-option-main strong {
  color: #121117;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

.lat-trial-payment-option-main span {
  color: #6A697C;
  font-size: 12px;
  line-height: 1.35;
}

.lat-trial-payment-selected-check {
  opacity: 0;
  color: #6656e8;
  font-size: 16px;
  font-weight: 700;
}

.lat-step4-payment-card .payment-option.is-selected .lat-trial-payment-selected-check,
.lat-step4-mobile-payment-card .payment-option.is-selected .lat-trial-payment-selected-check {
  opacity: 1;
}


/* ==========================================================
   MOBILE
   ========================================================== */


/* =========================================================
   Checkout reviews Bootstrap modal
   ========================================================= */
.lat-reviews-modal {
  left: 50%;
  z-index: 2200 !important;
  width: 640px !important;
  height: auto !important;
  max-height: none !important;
}

.lat-reviews-trigger {
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #4D4C5C;
  text-decoration: underline;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

.lat-reviews-trigger:hover,
.lat-reviews-trigger:focus {
  color: #121117;
  text-decoration: underline;
  outline: none;
}

/* The trial checkout overlay uses z-index: 2000, so the Bootstrap
   review modal and its backdrop must sit above it. */
.lat-reviews-modal .modal-dialog {
  width: 100%;
  max-width: none !important;
  margin: 0;
}

body:has(.lat-reviews-modal.show) .modal-backdrop.show {
  z-index: 2150 !important;
}

.lat-reviews-modal .modal-content {
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 48px rgba(18, 17, 23, 0.18);
  font-family: 'Figtree', sans-serif;
}

.lat-reviews-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 8px;
}

.lat-reviews-modal-title {
  margin: 0;
  color: #121117;
  font-size: 32px;
  font-family: 'Platform';
  letter-spacing: 0em;
  line-height: 1.25;
  font-weight: 600;
}

.lat-reviews-modal-close {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #121117;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.lat-reviews-modal-body {
  padding: 8px 24px 12px;
}

.lat-reviews-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.lat-reviews-summary-card {
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 4px;
  background: #F4F4F8;
  text-align: left;
}

.lat-reviews-summary-main {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #121117;
  font-size: 16px;
}

.lat-reviews-summary-card>span {
  display: block;
  margin-top: 2px;
  color: #4d4c5c;
  font-size: 12px;
}

/* The rating/review total is now in the summary cards above.
   Keep the existing arrow controls, but place them below the review card. */
.lat-reviews-modal .checkout-review-box {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.lat-reviews-modal .lat-reviews-toolbar {
  order: 3;
  justify-content: flex-start !important;
  margin-top: 12px;
}

.lat-reviews-modal .lat-reviews-toolbar> :first-child {
  display: none !important;
}

.lat-reviews-modal .checkout-review-window {
  position: relative;
  order: 2;
  min-height: 116px;
  margin-top: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 4px;
  padding: 0 !important;
  box-sizing: border-box;
  background: transparent;
  text-align: left;
  transition: height 280ms ease;
}

.lat-reviews-modal .review-content-item.hidden {
  display: none !important;
}

.lat-reviews-modal .lat-review-date {
  margin: 2px 0 0;
  color: #4d4c5c;
  font-size: 15px;
}

.lat-reviews-modal .lat-review-star-filled,
.lat-reviews-modal .lat-review-star-empty {
  color: #121117;
  font-size: 26px;
}

.lat-reviews-modal .lat-review-content {
  margin-bottom: 0;
}

.lat-reviews-modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 4px 24px 24px;
}

.lat-reviews-done {
  min-width: 96px;
  height: 48px;
  padding: 0 18px;
  border: 2px solid #121117;
  border-radius: 8px;
  background: #FF2500;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

.lat-reviews-done:hover,
.lat-reviews-done:focus {
  background: rgba(255, 88, 60, 1) !important;
  color: #fff;
}


/* =========================================================
   Review Read more / Show less
   Uses Bootstrap 4 native collapse functionality.
   ========================================================= */
.lat-reviews-modal .reveal-review {
  display: inline-block !important;
  margin-bottom: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #121117;
  font-size: 16px;
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.lat-reviews-modal .reveal-review:hover,
.lat-reviews-modal .reveal-review:focus {
  color: #FF2500;
  text-decoration: underline;
  outline: none;
}

.lat-reviews-modal .lat-review-show-less {
  display: none;
}

.lat-reviews-modal .reveal-review[aria-expanded="true"] .lat-review-read-more {
  display: none;
}

.lat-reviews-modal .reveal-review[aria-expanded="true"] .lat-review-show-less {
  display: inline;
}

.lat-reviews-modal .lat-review-extra {
  margin-top: 6px;
}

.lat-reviews-modal .lat-review-content-extra {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
}


/* =========================================================
   Reviews modal stacking + full-card slide carousel
   ========================================================= */
body.lat-reviews-modal-open .modal-backdrop,
body.lat-reviews-modal-open .modal-backdrop.show {
  z-index: 2190 !important;
}

body.lat-reviews-modal-open .lat-reviews-modal,
body.lat-reviews-modal-open #latReviewsModal {
  z-index: 2200 !important;
}

.lat-reviews-modal .review-content-item {
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  border: 1px solid #DCDCE5;
  border-radius: 8px;
  padding: 16px;
  background: #fff;

}


.lat-reviews-modal .arrowz {
  user-select: none;
}

.lat-reviews-modal .arrowz.disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}


/* ==========================================================
   STEP 4 — MOBILE TWO-SCREEN CHECKOUT
   Summary first, then payment method on its own screen.
   ========================================================== */

.lat-step4-mobile-proceed-bar,
.lat-step4-mobile-payment-screen {
  display: none;
}

/* ==========================================================
   MOBILE — SINGLE RESPONSIVE BREAKPOINT
   All <= 768px overrides are centralized here.
   Keep this block at the end so mobile rules override base styles.
   ========================================================== */
@media (max-width: 992px) {

  /* CORE TRIAL / BOOKING MOBILE LAYOUT */
  .lat-trial-container:has(.lat-trial-modal-step3.active),
  .lat-trial-container:has(.lat-book-trial-step1.active) {
    width: 100vw !important;
    height: auto !important;
    position: absolute;
    bottom: 0;
  }

  .lat-trial-container {
    padding: 16px !important;
    max-height: none !important;
    max-width: none;
    border-radius: 0;
    position: fixed;
    top: 0;
    height: 100vh;
    left: 0;
    width: 100vw;
    padding-inline: 16px;
  }

  .lat-trial-modal-screen {
    width: 100%;

  }

  #page:has(.lat-trial-modal-overlay.active) {
    overflow: hidden;
    height: 100vh;
  }

  .lat-book-trial-step1 .lat-duration-option {
    height: auto;
  }

  .lat-trial-title {
    font-size: 16px;
    font-weight: 700;
    font-family: "Poppins", sans-serif !important;
  }

  .lat-trial-subtitle {
    font-size: 12px;
  }

  .lat-book-title-box {
    text-align: center !important;
    flex: 1;
  }

  .lat-slot-tab {
    padding: 4px;
  }

  .lat-slots-tabs {
    height: 36px;
    margin-bottom: 20px;
  }

  .lat-date-label.selected .day-info,
  .lat-date-label.selected .lat-date-number {
    color: #fff;
    border-radius: 50%;
    background: #FF2500;
  }

  .lat-week-days {
    overflow-x: auto;
    gap: 0px;
    scrollbar-width: none;
    width: 100%;
    margin-left: -12px;
  }

  .calendar-box {
    border-bottom: none;
    margin-bottom: 0;
  }

  .timer-section {
    max-height: calc(100vh - 367px);
  }

  .timer-section .g-heading {
    margin-bottom: 24px !important;
  }

  .day-info {
    font-size: 14px;
    font-family: "Poppins", sans-serif !important;
  }

  .lat-back-box {
    display: flex !important;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 40px;
    border-radius: 8px;
    border: 1px solid var(--border);
  }


  .lat-teacher-avatar,
  .lat-book-trial-step1 .opt-text p {
    display: none;
  }

  .lat-trial-modal-step3>h2,
  .lat-book-trial-step1 .lat-step-title {
    font-size: 24px;
    font-weight: 700;
    font-family: "Poppins", sans-serif !important;
  }

  .lat-review-transfer-screen .img,
  .lat-transfer-screen .img,
  .choose-payment-meth .balance-sub-heading {
    display: none;
  }

  .lat-review-transfer-screen .lat-info-container,
  .lat-profile-transfer {
    margin-top: 24px;
  }

  .lat-review-transfer-screen .lat-info-container h3 {
    font-size: 16px !important;
  }

  .lat-review-transfer-screen-body {
    height: calc(100vh - 166px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
  }

  .lat-review-transfer-screen li,
  .lat-review-transfer-screen span {
    font-size: 14px !important;
  }

  .lat-review-transfer-screen h2 {
    font-size: 24px !important;
    margin-top: 12px;
    margin-bottom: 24px;
  }

  .lat-transfer-screen h2 {
    font-size: 24px !important;
    margin-block: 20px !important;
    font-family: "Poppins", sans-serif !important;
  }

  .lat-transfer-screen h4 {
    font-size: 14px;
  }

  .choose-payment-meth .balance-heading {
    display: inline-block;
    margin-top: 2px;
    margin-left: 10px;
  }

  .lat-trial-container:has(.lat-calendar-slots.active) {
    width: 100vw !important;
  }

  .lat-trial-container:has(.lat-transfer-complete-screen.active),
  .lat-trial-container:has(.lat-review-transfer-screen.active),
  .lat-trial-container:has(.lat-transfer-screen.active) {
    width: 100vw !important;
    height: 100vh !important;
    max-height: none !important;
  }

  .lat-transfer-complete-screen .lat-cancel-btn,
  .lat-transfer-complete-screen .lat-schedule-btn {
    display: flex !important;
    justify-content: center;
  }

  .lat-transfer-complete-screen {

    height: 100vh;
    width: 100%;
  }


  .lat-transfer-complete-screen .lat-complete-container {
    margin-left: -16px;
    width: calc(100vw);
    margin-top: -16px;
    border-radius: 0;
  }

  .lat-transfer-complete-screen .btn-wrapper {
    padding-bottom: 16px;
    padding-inline: 0 !important;
    position: absolute;
    bottom: 0;
    width: 100%;
  }

  .lat-transfer-complete-screen h1 {
    font-size: 30px;
  }

  .lat-transfer-complete-screen .lat-done-btn {
    display: none;
  }

  .lat-transfer-complete-screen p {
    padding-inline: 16px !important;
    font-size: 14px !important;
  }

  .lat-outline-button,
  .lat-confirm-button {
    font-size: 16px !important;
  }

  .choose-payment-meth {
    height: auto !important;
  }

  /* payment screen */
  .lat-checkout-container {
    flex-direction: column;
    padding-inline: 0;
    gap: 0;
  }

  .lat-responsive-title {
    font-size: 20px;
    font-weight: 700;
    color: #121117;
    margin-bottom: 16px !important;
    font-family: "Poppins", sans-serif !important;
  }

  .lat-back-to-step3 {
    margin-bottom: 20px;
  }

  .lat-checkout-right-section,
  .lat-checkout-left {
    max-width: none;
    border: none;
    padding: 0;
  }

  .profile-details-container {
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-top: 16px;
  }

  .profile-details-container>img {
    width: 80px;
    height: 80px;
    border: 1px solid #1211170F;
  }

  .container-details-profile .lat-language-speak {
    font-weight: 400;
    font-size: 16px;
    color: #121117;
    display: block !important;
    text-align: left;
    font-family: "Poppins", sans-serif !important;

  }

  .bottom-section img {
    height: 18px;
    width: 18px;
  }

  .lat-step4-tutor-card .bottom-section .rating {
    font-size: 16px !important;
  }

  .bottom-section>span,
  .lat-trial-time {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #121117 !important;
    font-family: "Poppins", sans-serif !important;
  }

  .lat-trial-timezone {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #4D4C5C !important;
    font-family: "Poppins", sans-serif !important;
  }

  .lat-cancel-info {
    font-size: 16px;
    font-weight: 400;
    color: #000;
    opacity: 0.7;
    text-align: left;
    font-family: "Poppins", sans-serif !important;
  }

  .checkout-review-box {
    border-top: 0 !important;
  }

  .review-content-item {
    border: 1px solid #DCDCE5;
    border-radius: 8px;
    padding: 16px;
    display: block !important;
    min-width: 301px;
    width: 100%;
  }

  .checkout-review-window {
    all: unset;
    display: flex;
    gap: 16px;
    width: calc(100vw - 32px);
    overflow: auto;
    scrollbar-width: none;
  }

  .checkout-review-window .lat-reviewer-img {
    height: 40px;
    width: 40px;
  }

  .lat-reviewer-name {
    font-size: 16px !important;
    font-family: "Poppins", sans-serif !important;
  }

  .lat-reveal-review,
  .lat-review-content,
  .lat-review-date {
    font-size: 14px;
    font-weight: 400;
    color: #121117;
    font-family: "Poppins", sans-serif !important;
  }

  .lat-ssl-info p {
    font-size: 12px;
    font-weight: 400;
    color: #121117;
    opacity: 0.7;
  }

  .lat-ssl-info {
    width: 100vw;
    margin-left: -16px;
    background: #EDEDF2;
    padding: 30px 17px;
    border-block: 1px solid var(--border);
  }

  .lat-confirm-btn-wrapper {
    position: fixed;
    width: 100%;
    bottom: -1px;
    padding-top: 24px;
    border-block: 1px solid var(--border);
    margin-left: -16px;
    padding-inline: 16px;
    background: #fff;
    z-index: 1;
  }

  /* STEP 4 CHECKOUT MOBILE OVERRIDES */
  .lat-step4-checkout {
    max-width: none;
  }

  .lat-collective-box {
    border-bottom: 2px solid #dcdce5;
  }

  .lat-step4-card {
    border-left: 0;
    border-right: 0;
    border-radius: 0;

    padding: 18px 0px;
    text-align: left;
    border-top: 0;
  }

  .lat-step4-pricing-card {
    margin-bottom: 0px;
  }

  .lat-step4-payment-card {
    margin-top: 0;
    margin-bottom: 150px;
  }

  .lat-step4-duration-tab {
    height: 42px;
    font-size: 14px;
  }

  .lat-step4-confirm-button {
    height: 52px;
  }

  /* REVIEWS MODAL MOBILE LAYOUT */
  .lat-reviews-modal {
    width: 100% !important;
    max-width: none !important;
    top: unset !important;
    bottom: 0;
    height: auto !important;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }

  .lat-reviews-modal .modal-dialog {
    width: 100%;
    margin: 0;
  }

  .lat-reviews-modal .modal-content {
    min-height: auto;
    border-radius: 0;
  }

  .lat-reviews-modal-header {
    padding: 20px 24px 8px;
  }

  .lat-reviews-modal-title {
    font-size: 24px;
  }

  .lat-reviews-modal-body {
    padding: 8px 24px 16px;
  }

  .lat-reviews-modal .checkout-review-window {
    order: 2;
    display: block;
    width: 100%;
    min-height: auto;
    gap: normal;
    scrollbar-width: auto;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 8px;
    padding: 0 !important;
    box-sizing: border-box;
  }

  .lat-reviews-modal .review-content-item {
    width: 100%;
    min-width: 100%;
    border: 1px solid #DCDCE5 !important;
    border-radius: 8px !important;
    padding: 16px !important;
    box-sizing: border-box;
  }

  .lat-reviews-modal .review-content-item.hidden {
    display: none !important;
  }

  .lat-reviews-modal .lat-reviews-toolbar {
    display: flex !important;
  }

  .lat-reviews-modal-footer {
    margin-top: auto;
    padding: 8px 24px 20px;
  }

  .lat-reviews-done {
    width: 100%;
  }

  /* REVIEWS READ-MORE MOBILE TYPOGRAPHY */
  .lat-reviews-modal .reveal-review,
  .lat-reviews-modal .lat-review-content-extra {
    font-size: 14px;
  }

  /* STEP 4 MOBILE TWO-SCREEN CHECKOUT */
  /* The existing desktop payment card is intentionally removed from
       the mobile summary screen. The user reaches it via Proceed to payment. */
  .lat-trial-modal-step4 .lat-step4-payment-card {
    display: none;
  }

  .lat-step4-mobile-proceed-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 14px 16px max(14px, env(safe-area-inset-bottom));
    background: #fff;

    border: 0;
    border-top: 1px solid #DCDCE5;

    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box;
  }

  .lat-step4-mobile-proceed:hover {
    background: rgba(255, 88, 60, 1);
  }

  .lat-step4-mobile-proceed {
    width: 100%;
    min-height: 48px;
    padding: 11px 16px;
    border: 2px solid #121117;
    border-radius: 8px;
    background: #FF2500;
    color: #fff;
    font-family: "Figtree", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
  }

  .lat-step4-mobile-proceed:active {
    transform: translateY(1px);
  }

  /* Leave room above the fixed Proceed button. */
  .lat-trial-modal-step4:not(.lat-mobile-payment-active) .lat-checkout-container {
    padding-bottom: 86px;
  }

  .lat-trial-modal-step4.lat-mobile-payment-active .lat-checkout-container,
  .lat-trial-modal-step4.lat-mobile-payment-active .lat-step4-mobile-proceed-bar {
    display: none !important;
  }

  .lat-trial-modal-step4.lat-mobile-payment-active .lat-step4-mobile-payment-screen {
    display: block;
  }

  .lat-step4-mobile-payment-screen {
    width: 100vw;
    min-height: 100vh;
    margin: -16px;
    background: #fff;
    color: #121117;
    overflow-x: hidden;
  }

  .lat-trial-container:has(.lat-trial-modal-step4.lat-mobile-payment-active) {
    padding: 16px !important;
    overflow-y: auto;
    background: #fff;
  }

  .lat-trial-container:has(.lat-trial-modal-step4.lat-mobile-payment-active)>.lat-trial-modal-close,
  .lat-trial-modal-step4.lat-mobile-payment-active>.lat-back-box {
    display: none !important;
  }

  .lat-step4-mobile-payment-header {
    position: relative;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: env(safe-area-inset-top) 48px 0;
    border-bottom: 1px solid #ECECF1;
    background: #fff;
  }

  .lat-step4-mobile-payment-back {
    position: absolute;
    left: 16px;
    top: calc(50% + (env(safe-area-inset-top) / 2));
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
  }

  .lat-step4-mobile-payment-header-title {
    font-family: "Figtree", sans-serif;
    font-size: 16px;
    font-weight: 600;
  }

  .lat-step4-mobile-payment-hero {
    display: flex;
    align-items: flex-start;
    padding: 24px 16px 22px;
    background: #fff;
  }

  .lat-step4-mobile-payment-hero h2 {
    max-width: 360px;
    margin: 0;
    color: #121117;
    font-size: 32px;
    font-weight: 700;
    line-height: 52px;
    text-align: left;
    font-family: 'Platform';
    letter-spacing: 0em;
  }

  .lat-step4-mobile-payment-hero h2 span {
    color: #FF2500;
  }

  .lat-step4-mobile-payment-body {
    padding: 14px 16px 28px;
    background: #fff;
  }

  .lat-step4-mobile-payment-card {
    width: 100%;
    padding: 16px;
    border: 1px solid #DCDCE5;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
  }

  .lat-step4-mobile-payment-card .lat-step4-card-title {
    margin-bottom: 14px;
    font-size: 14px;
  }

  .lat-step4-mobile-payment-card .lat-step4-payment-selector {
    margin-bottom: 16px;
  }

  .lat-step4-mobile-payment-card .lat-step4-confirm-button {
    min-height: 48px;
    height: auto;
    margin-bottom: 12px;
    background: #FF2500;
    color: #fff;
    border-color: #121117;
    font-size: 14px !important;
  }

  .lat-step4-mobile-payment-card .lat-step4-confirm-button:hover {
    background: rgba(255, 88, 60, 1);
  }

  .lat-step4-mobile-payment-card .lat-step4-terms,
  .lat-step4-mobile-payment-card .lat-step4-secure-payment {
    font-size: 11px;
    line-height: 1.45;
  }

  /* STEP 4 MOBILE BACK NAVIGATION */
  .lat-trial-modal-step4.lat-mobile-payment-active>.lat-back-box {
    display: none !important;
  }
}

/* ==========================================================
   STEP 4 — CHECKOUT
   Consolidated reference-matched checkout styles.
   Desktop values are calibrated for the supplied 75% screenshots;
   mobile keeps the existing two-screen checkout flow.
   ========================================================== */

.lat-trial-container:has(.lat-trial-modal-step4.active) {
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  padding: 0 !important;
  overflow-y: auto;
  border-radius: 0 !important;
  background: #fff;
  box-shadow: none;
}

.lat-trial-container:has(.lat-trial-modal-step4.active)>.lat-trial-modal-close {
  display: none !important;
}

.lat-trial-modal-step4 {
  --checkout-text: #121117;
  --checkout-muted: #4d4c5c;
  --checkout-border: #dcdce5;
  --checkout-soft: #f4f4f8;
  --checkout-pink-bg: #ff25001a;
  --checkout-accent: #d13d86;
  --checkout-cta: #ff7aac;
  --checkout-cta-hover: #ff8ab7;
  --checkout-success-bg: #d8f8f2;
  --checkout-success-text: #067560;

  position: relative;
  min-height: 100vh;
  color: var(--checkout-text);
  background: linear-gradient(to bottom,
      var(--checkout-pink-bg) 0,
      var(--checkout-pink-bg) 252px,
      #fff 252px,
      #fff 100%);
  font-family: "Figtree", sans-serif;
}

/* Header --------------------------------------------------- */
.lat-step4-checkout-header {
  position: relative;
  height: 185px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0px 45px;
  box-sizing: border-box;
  margin-top: -28px;
}

.lat-step4-mobile-checkout-label {
  display: none;
}

.lat-step4-brand {
  position: absolute;
  top: 27px;
  left: 21px;
  z-index: 45;
  color: var(--checkout-text);
  font-family: "Poppins", sans-serif !important;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.93px;
  text-decoration: none;
}

.lat-step4-brand:hover,
.lat-step4-brand:focus {
  color: var(--checkout-text);
  text-decoration: none;
}

.lat-step4-checkout-title {
  width: 100%;
  max-width: 1013px;
  margin: 0;
  color: #090909;
  font-size: 48px;
  font-weight: 700;
  line-height: 36px;
  text-align: center;
  font-family: 'Platform';
  letter-spacing: 0em;
}

.lat-step4-checkout-title span,
.lat-step4-mobile-payment-hero h2 span {
  color: var(--checkout-accent);
  color: #ff2500;
}

.lat-trial-modal-step4>.lat-back-box {
  display: flex !important;
  position: absolute;
  top: 100px;
  left: max(27px, calc(50% - 597px));
  z-index: 5;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.lat-trial-modal-step4>.lat-back-box:hover {
  background: rgba(18, 17, 23, 0.06);
}

/* Locale picker ------------------------------------------- */
.lat-step4-locale-picker {
  position: absolute;
  top: 32px;
  right: 45px;
  z-index: 40;
  font-family: "Figtree", sans-serif;
}

.lat-step4-locale-trigger {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 3px 5px;
  border: 0;
  background: transparent;
  color: var(--checkout-text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: underline;
  cursor: pointer;
}

.lat-step4-locale-trigger img {
  width: 12px;
  height: 12px;
  transition: transform 160ms ease;
}

.lat-step4-locale-trigger[aria-expanded="true"] img {
  transform: rotate(180deg);
}

.lat-step4-locale-panel {
  position: absolute;
  top: 38px;
  right: -8px;
  width: 260px;
  padding: 24px;
  border: 1px solid #ececf1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(18, 17, 23, 0.11);
  box-sizing: border-box;
}

.lat-step4-locale-field {
  display: block;
  margin: 0;
  color: var(--checkout-text);
  font-family: "Figtree", sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-align: left;
}

.lat-step4-locale-field+.lat-step4-locale-field {
  margin-top: 13px;
}

.lat-step4-locale-field>span {
  display: block;
  margin-bottom: 6px;
}

.lat-step4-locale-field select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #d8d8df;
  border-radius: 6px;
  outline: none;
  background: #fff;
  color: var(--checkout-text);
  font: 400 16px "Figtree", sans-serif;
  cursor: pointer;
}

.lat-step4-locale-field select:focus {
  border-color: var(--checkout-text);
  box-shadow: 0 0 0 1px var(--checkout-text);
}

/* Main layout --------------------------------------------- */
.lat-trial-modal-step4 .lat-checkout-container {
  width: min(1046px, calc(100% - 43px));
  max-width: 1046px;
  display: grid;
  grid-template-columns: 403px 627px;
  gap: 16px;
  margin: 0 auto;
  padding: 0 0 48px;
  align-items: start;
  box-sizing: border-box;
}

.lat-trial-modal-step4 .lat-checkout-left {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.lat-trial-modal-step4 .lat-checkout-right-section {
  width: 100%;
  max-width: none;
  border-radius: 0;
  background: transparent;
}

.lat-step4-summary-card,
.lat-trial-modal-step4 .lat-step4-card {
  width: 100%;
  border: 1px solid var(--checkout-border);
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
  text-align: left;
}

/* Tutor card ---------------------------------------------- */
.lat-step4-tutor-card {
  padding: 24px 24px 23px;
}

.lat-step4-tutor-card .profile-details-container {
  display: flex;
  align-items: flex-start;
  justify-content: start;
  gap: 13px;
  margin: 0 0 23px;
  padding: 0;
  border: 0;
}

.lat-step4-tutor-card .lat-checkout-profile-avatar,
.lat-step4-tutor-card .profile-details-container>img {
  flex: 0 0 93px;
  width: 93px;
  height: 93px;
  margin: 0;
  border: 1px solid #ececf1;
  border-radius: 4px;
  object-fit: cover;
}

.lat-step4-tutor-card .container-details-profile {
  min-width: 0;
  padding-top: 1px;
}

.lat-step4-tutor-card .lat-language-speak {
  display: block !important;
  margin: 0px !important;
  color: #121117;
  font-family: "Figtree", sans-serif !important;
  font-size: 14px !important;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
}

.lat-step4-tutor-card .top-header {
  display: block;
  margin: 0;
}

.lat-step4-tutor-card .teacher-text {
  color: var(--checkout-text);
  font-size: 32px !important;
  font-weight: 700 !important;
  font-family: 'Platform';
  letter-spacing: 0em;
}

.lat-step4-tutor-card .bottom-section {
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.lat-step4-tutor-card .bottom-section img {
  width: 19px;
  height: 19px;
}

.lat-step4-tutor-card .bottom-section .rating,
.lat-step4-tutor-card .lat-reviews-trigger {
  color: var(--checkout-text);
  font-family: "Figtree", sans-serif !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.lat-step4-tutor-card .lat-reviews-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  color: #6a697c;
  font-weight: 400;
  text-decoration: underline;
}

.lat-tutor-feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lat-tutor-feature-item {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--checkout-text);
  font-family: "Figtree", sans-serif;
  font-size: 14px !important;
  font-weight: 400;
  line-height: 1.25;
}

.lat-tutor-feature-item>img {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.lat-tutor-feature-item--stacked {
  align-items: flex-start;
}

.lat-tutor-feature-item--stacked strong,
.lat-tutor-feature-item--stacked small {
  display: block;
  font-size: 14px !important;
  line-height: 1.25;
}

.lat-tutor-feature-item--stacked strong {
  font-weight: 600;
}

.lat-tutor-feature-item--stacked small {
  margin-top: 1px;
  color: var(--checkout-muted);
  font-weight: 400;
}

/* Trial card ---------------------------------------------- */
.lat-step4-trial-card {
  padding: 23px 23px 0;
  overflow: hidden;
}

.lat-trial-modal-step4 .lat-trial-lesson-title {
  margin: 0;
  color: var(--checkout-text);
  font-size: 20px;
  font-weight: 700;
  font-family: 'Platform';
  letter-spacing: 0em;
  text-align: left;
}

.lat-step4-trial-main {
  display: flex;
  align-items: center;
  margin: 19px 0 20px;
}

.lat-trial-modal-step4 .lat-trial-date-box {
  flex: 0 0 76px;
  width: 76px;
  min-height: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #f5f5f8;
}

.lat-trial-modal-step4 .lat-month-booked {
  color: #ff2500;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.15;
  text-transform: uppercase;
}

.lat-trial-modal-step4 .lat-date-booked {
  margin-top: 3px;
  color: var(--checkout-text);
  font-family: 'Platform';
  letter-spacing: 0em;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.lat-trial-modal-step4 .lat-timezone-box {
  min-width: 0;
  margin-left: 16px;
}

.lat-trial-modal-step4 .lat-trial-time {
  color: var(--checkout-text) !important;
  font-family: "Figtree", sans-serif !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1.35;
}

.lat-trial-modal-step4 .lat-day-booked {
  display: block;
  margin-bottom: 1px;
  font-size: 14px;
  font-weight: 400;
}

.lat-trial-modal-step4 .lat-trial-timezone {
  margin-top: 4px;
  color: #6a697c !important;
  font-family: "Figtree", sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.3;
}

.lat-trial-modal-step4 .lat-trial-guarantee {
  width: calc(100% + 46px) !important;
  min-height: 73px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-left: -23px;
  padding: 13px 23px;
  border: 0;
  border-radius: 0;
  background: var(--checkout-success-bg);
  box-sizing: border-box;
}

.lat-trial-modal-step4 .lat-guarantee-icon,
.lat-trial-modal-step4 .lat-guarantee-icon img {
  flex: 0 0 24px;
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
}

.lat-trial-modal-step4 .lat-guarantee-icon img {
  display: block;
}

.lat-trial-modal-step4 .lat-guarantee-text {
  color: var(--checkout-success-text);
  font-family: "Figtree", sans-serif !important;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

/* Pricing + payment --------------------------------------- */
.lat-trial-modal-step4 .lat-step4-card {
  padding: 23px 24px;
}

.lat-trial-modal-step4 .lat-step4-pricing-card {
  margin-bottom: 16px;
}

.lat-trial-modal-step4 .lat-step4-card-title {
  margin: 0 0 16px;
  font-family: 'Platform';
  letter-spacing: 0em;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.lat-trial-modal-step4 .lat-step4-duration-tabs {
  height: 36px;
  margin-bottom: 0px;
  border-radius: 8px;
  background: var(--checkout-soft);
}

.lat-trial-modal-step4 .lat-step4-duration-tab {
  height: 36px;
  padding: 0 11px;
  border-color: transparent;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1;
}

.lat-trial-modal-step4 .lat-step4-duration-tab.active {
  border-color: var(--checkout-border);
  background: #fff;
  box-shadow: none;
}

.lat-trial-modal-step4 .lat-step4-price-row {
  min-height: 53px;
  border-bottom-color: #ececf1;
  font-size: 16px;
}

.lat-trial-modal-step4 .lat-step4-price-row strong {
  font-size: 16px;
}

.lat-trial-modal-step4 .lat-step4-price-label {
  gap: 6px;
}

.lat-trial-modal-step4 .lat-step4-payment-card {
  margin-top: 16px;
}

.lat-trial-modal-step4 .lat-step4-payment-selector {
  position: relative;
  min-height: 48px;
  padding: 9px 16px;
  margin-bottom: 19px;
  border: 1px solid var(--checkout-border);
  border-radius: 9px;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.lat-trial-modal-step4 .lat-step4-payment-selector:hover,
.lat-trial-modal-step4 .lat-step4-payment-selector:focus-visible,
.lat-trial-modal-step4 .lat-step4-payment-selector.is-open,
.lat-trial-modal-step4 .lat-step4-payment-selector[aria-expanded="true"] {
  border-color: #6656e8;
  background: #fcfbff;
  box-shadow: 0 0 0 3px rgba(102, 86, 232, 0.16);
  outline: none;
}

.lat-trial-modal-step4 .lat-step4-payment-selector .card-icon {
  width: 43px;
  height: auto;
}

.lat-trial-modal-step4 .lat-step4-payment-selector .card-details {
  font-size: 16px;
  line-height: 1.3;
}

.lat-trial-modal-step4 .lat-step4-payment-selector .dropdown-icon {
  width: 14px;
  height: 14px;
}

.lat-trial-modal-step4 .lat-confirm-btn-wrapper {
  position: static;
  width: auto;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.lat-trial-modal-step4 .lat-step4-confirm-button,
.lat-step4-mobile-payment-card .lat-step4-confirm-button,
.lat-step4-mobile-proceed {
  border-color: var(--checkout-text) !important;
}

.lat-trial-modal-step4 .lat-step4-confirm-button:hover,
.lat-step4-mobile-payment-card .lat-step4-confirm-button:hover,
.lat-step4-mobile-proceed:hover {
  /* background: var(--checkout-cta-hover) !important; */
}

.lat-trial-modal-step4 .lat-step4-confirm-button {
  height: 48px;
  min-height: 48px;
  margin: 0 0 13px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 18px !important;
}

.lat-trial-modal-step4 [data-region="stripe-express-wallet-container"],
.lat-trial-modal-step4 [data-region="stripe-express-wallet-container-mobile"] {
  margin: 0 0 13px;
}

.lat-trial-modal-step4 #stripe-express-wallet,
.lat-trial-modal-step4 #stripe-express-wallet-mobile {
  width: 100%;
}

.lat-step4-save-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 13px;
  color: #2f2e41;
  font-size: 16px;
  line-height: 1.3;
  cursor: pointer;
}

.lat-step4-save-card-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #121117;
}

.lat-saved-card-summary {
  margin: 0 0 13px;
  padding: 16px;
  border: 1px solid var(--checkout-border);
  border-radius: 9px;
  background: #fff;
}

.lat-saved-card-summary-note {
  margin: 0 0 4px;
  color: #66657a;
  font-size: 14px;
  line-height: 1.3;
}

.lat-saved-card-summary-label {
  display: block;
  color: var(--checkout-text);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
}

.lat-saved-card-element-host {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.lat-trial-modal-step4 .lat-step4-confirm-button.lat-wallet-method-button,
.lat-step4-mobile-payment-card .lat-step4-confirm-button.lat-wallet-method-button {
  background: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
  font-weight: 600;
}

.lat-trial-modal-step4 .lat-step4-confirm-button.lat-wallet-method-button:hover,
.lat-step4-mobile-payment-card .lat-step4-confirm-button.lat-wallet-method-button:hover {
  background: #1f1f1f !important;
}

.lat-trial-modal-step4 .lat-step4-terms,
.lat-trial-modal-step4 .lat-step4-secure-payment {
  margin-bottom: 0;
  color: var(--checkout-muted);
  font-family: "Figtree", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.lat-trial-modal-step4 .lat-step4-terms a {
  color: var(--checkout-text);
  text-decoration: underline;
}

/* Loading skeleton ---------------------------------------- */
.lat-step4-pricing-skeleton,
.lat-step4-payment-skeleton {
  display: none;
}

.lat-step4-skeleton-line,
.lat-step4-skeleton-block {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f0f0f4;
}

.lat-step4-skeleton-line::after,
.lat-step4-skeleton-block::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0.75) 50%,
      rgba(255, 255, 255, 0));
  animation: lat-step4-skeleton-shimmer 900ms ease-in-out infinite;
}

@keyframes lat-step4-skeleton-shimmer {
  to {
    transform: translateX(100%);
  }
}

.lat-step4-is-loading .lat-step4-pricing-card .tab-content,
.lat-step4-is-loading .lat-step4-pricing-card .lat-step4-promo-button,
.lat-step4-is-loading .lat-step4-pricing-card .lat-step4-promo-form,
.lat-step4-is-loading .lat-step4-payment-card .lat-confirm-btn-wrapper,
.lat-step4-is-loading .lat-step4-payment-card .lat-step4-terms {
  display: none !important;
}

.lat-step4-is-loading .lat-step4-pricing-skeleton,
.lat-step4-is-loading .lat-step4-payment-skeleton {
  display: block;
}

.lat-step4-pricing-skeleton {
  padding-top: 8px;
}

.lat-step4-skeleton-line {
  width: 100%;
  height: 17px;
  margin-bottom: 9px;
  border-radius: 3px;
}

.lat-step4-skeleton-line:last-child {
  margin-bottom: 1px;
}

.lat-step4-payment-skeleton {
  margin-top: 12px;
}

.lat-step4-skeleton-block {
  width: 100%;
  height: 29px;
  margin-bottom: 10px;
  border-radius: 3px;
}

.lat-step4-skeleton-block:last-child {
  margin-bottom: 7px;
}

/* Mid-size desktop: prevent fixed reference columns overflowing. */
@media (min-width: 769px) and (max-width: 1100px) {
  .lat-trial-modal-step4 .lat-checkout-container {
    grid-template-columns: minmax(0, 0.643fr) minmax(0, 1fr);
  }
}

/* Mobile --------------------------------------------------- */
@media (max-width: 992px) {
  .lat-trial-container:has(.lat-trial-modal-step4.active) {
    position: fixed;
    inset: 0;
    overflow-y: auto;
  }

  .lat-trial-modal-step4 {
    min-height: 100vh;
    padding: 0;
    background: linear-gradient(to bottom,
        var(--checkout-pink-bg) 0,
        var(--checkout-pink-bg) 177px,
        #fff 177px,
        #fff 100%);
  }

  .lat-step4-brand,
  .lat-step4-locale-picker {
    display: none !important;
  }

  .lat-trial-modal-step4>.lat-back-box {
    top: 20px;
    left: 10px;
    width: 32px;
    height: 32px;
    border-radius: 0;
  }

  .lat-trial-modal-step4>.lat-back-box img,
  .lat-step4-mobile-payment-back img {
    width: 24px;
    height: 24px;
  }

  .lat-step4-checkout-header {
    height: 121px;
    display: block;
    padding: 0 16px;
  }

  .lat-step4-mobile-checkout-label {
    display: block;
    padding-top: 26px;
    color: var(--checkout-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
  }

  .lat-step4-checkout-title {
    width: auto;
    max-width: none;
    font-size: 32px;
    letter-spacing: 0em;
    text-align: left;
    margin-top: 43px;
  }

  .lat-trial-modal-step4 .lat-checkout-container {
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0 13px 78px;
    margin-top: 33px;
  }

  .lat-trial-modal-step4 .lat-checkout-left {
    gap: 16px;
  }

  .lat-step4-summary-card,
  .lat-trial-modal-step4 .lat-step4-card {
    border-radius: 6px;
  }

  .lat-step4-tutor-card {
    padding: 24px;
  }

  .lat-step4-tutor-card .profile-details-container {
    gap: 10px;
    margin-bottom: 17px;
  }

  .lat-step4-tutor-card .lat-checkout-profile-avatar,
  .lat-step4-tutor-card .profile-details-container>img {
    flex-basis: 96px;
    width: 96px;
    height: 96px;
  }

  .lat-step4-tutor-card .lat-language-speak,
  .lat-step4-tutor-card .lat-reviews-trigger,
  .lat-tutor-feature-item,
  .lat-tutor-feature-item--stacked strong,
  .lat-tutor-feature-item--stacked small {
    font-size: 14px !important;
  }


  .lat-step4-tutor-card .bottom-section {
    gap: 3px;
    margin-top: 4px;
  }


  .lat-tutor-feature-item {
    gap: 8px;
  }

  .lat-tutor-feature-item>img {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }

  .lat-step4-trial-card {
    padding: 24px 24px 0 24px;
  }


  .lat-step4-trial-main {
    margin: 16px 0;
  }

  .lat-trial-modal-step4 .lat-trial-date-box {
    flex-basis: 76px;
    width: 76px;
    min-height: 76px;
    border-radius: 8px;
  }

  .lat-trial-modal-step4 .lat-date-booked {
    margin-top: 2px;
    font-size: 20px;
  }

  .lat-trial-modal-step4 .lat-timezone-box {
    margin-left: 12px;
  }


  .lat-trial-modal-step4 .lat-trial-timezone {
    margin-top: 2px;
  }

  .lat-trial-modal-step4 .lat-trial-guarantee {
    min-height: 56px;
  }

  .lat-trial-modal-step4 .lat-guarantee-icon,
  .lat-trial-modal-step4 .lat-guarantee-icon img {
    flex-basis: 18px;
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
  }


  .lat-trial-modal-step4 .lat-step4-card {
    padding: 24px;
    border: 1px solid #dcdce5;
  }

  .lat-trial-modal-step4 .lat-step4-pricing-card {
    margin: 0;
  }

  .lat-trial-modal-step4 .lat-step4-card-title {
    margin-bottom: 24px;
  }

  .lat-trial-modal-step4 .lat-step4-duration-tabs {
    margin-bottom: 5px;
    border-radius: 6px;
  }

  .lat-trial-modal-step4 .lat-step4-payment-card {
    display: none !important;
  }

  .lat-step4-promo-button {
    font-size: 16px;
  }

  .lat-step4-total-row strong {
    font-size: 20px;
  }

  .lat-step4-mobile-proceed-bar {
    display: block;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    padding: 10px 13px max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid #d8d8df;
    background: #fff;
  }

  .lat-step4-mobile-proceed {
    width: 100%;
    height: 48px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 5px;
    font-size: 18px;
    line-height: 1;
  }

  .lat-trial-modal-step4:not(.lat-mobile-payment-active) .lat-checkout-container {
    padding-bottom: 74px;
  }

  .lat-trial-modal-step4.lat-mobile-payment-active>.lat-step4-checkout-header,
  .lat-trial-modal-step4.lat-mobile-payment-active>.lat-back-box,
  .lat-trial-modal-step4.lat-mobile-payment-active .lat-checkout-container,
  .lat-trial-modal-step4.lat-mobile-payment-active .lat-step4-mobile-proceed-bar {
    display: none !important;
  }

  .lat-trial-modal-step4.lat-mobile-payment-active .lat-step4-mobile-payment-screen {
    display: block;
  }

  .lat-step4-mobile-payment-screen {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: linear-gradient(to bottom,
        var(--checkout-pink-bg) 0,
        var(--checkout-pink-bg) 177px,
        #fff 177px,
        #fff 100%);
  }

  .lat-step4-mobile-payment-header {
    position: relative;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 44px;
    border: 0;
    background: transparent;
  }

  .lat-step4-mobile-payment-back {
    position: absolute;
    top: 36px;
    left: 10px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .lat-step4-mobile-payment-header-title {
    font-weight: 600;
    display: inline-block;
    margin-top: 16px;
  }

  .lat-step4-mobile-payment-hero {
    min-height: 65px;
    display: block;
    padding: 13px 16px 17px;
    background: transparent;
    margin-top: 20px;
  }

  .lat-step4-mobile-payment-hero h2 {
    max-width: none;
    margin: 0;
    font-size: 32px;
    line-height: 36px;
  }

  .lat-step4-mobile-payment-body {
    padding: 0 16px 24px;
    background: transparent;
    margin-top: 18px;
  }

  .lat-step4-mobile-payment-card {
    width: 100%;
    padding: 24px;
    border: 1px solid #d8d8df;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
  }

  .lat-step4-mobile-payment-card .lat-step4-payment-selector {
    min-height: 42px;
    margin-bottom: 16px;
  }

  .lat-step4-mobile-payment-card .lat-step4-confirm-button {
    margin-bottom: 16px;
  }

  .lat-step4-skeleton-line {
    height: 18px;
    margin-bottom: 10px;
  }
}

/* ==========================================================
   MOBILE PAYMENT — CONTENT-DRIVEN HERO / CARD OVERLAP
   The inspiration layout has the payment card overlapping the
   coloured heading area. The coloured area must grow or shrink
   with the heading, so do not use a fixed gradient stop here.
   ========================================================== */
@media (max-width: 992px) {
  .lat-step4-mobile-payment-screen {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: #fff;
  }

  .lat-step4-mobile-payment-top {
    position: relative;
    /* Keep your existing colour variable; this change is layout-only. */
    background: var(--checkout-pink-bg);
    /* This creates the coloured portion visible behind the card. */
    padding-bottom: 54px;
  }

  .lat-step4-mobile-payment-header {
    min-height: 72px;
    padding: 0 44px;
    border: 0;
    background: transparent;
  }

  .lat-step4-mobile-payment-back {
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
  }

  .lat-step4-mobile-payment-header-title {
    margin-top: 0;
  }

  .lat-step4-mobile-payment-hero {
    min-height: 0;
    margin-top: 0;
    padding: 13px 16px 5px;
    background: transparent;
    margin-top: 3px;
  }

  .lat-step4-mobile-payment-hero h2 {
    margin: 0;
    margin-bottom: 26px;
  }

  .lat-step4-mobile-payment-body {
    position: relative;
    z-index: 1;
    /* Pull only the card/body over the coloured area. Because the
       top section is content-sized, this overlap follows any heading wrap. */
    margin-top: -54px;
    padding: 0 16px 24px;
    background: transparent;
  }

  .lat-step4-mobile-payment-card {
    width: 100%;
    margin: 0;
    padding: 18px;
    box-sizing: border-box;
  }

  .lat-step4-mobile-payment-card .lat-step4-card-title {
    margin-bottom: 14px;
  }
}


/* ==========================================================
   MOBILE CHECKOUT SUMMARY — CONTENT-DRIVEN HERO / CARD OVERLAP
   Keep the tutor card attached to the heading section instead of
   positioning it against a fixed gradient stop. If the heading wraps
   to more/fewer lines, the coloured area and cards move together.
   ========================================================== */
@media (max-width: 992px) {

  /* Summary screen only. The dedicated mobile payment screen has its
     own content-driven overlap rules below/above in this stylesheet. */
  .lat-trial-modal-step4:not(.lat-mobile-payment-active) {
    background: #fff;
  }

  .lat-trial-modal-step4:not(.lat-mobile-payment-active)>.lat-step4-checkout-header {
    position: relative;
    height: auto;
    min-height: 0;
    display: block;
    padding: 0 16px 85px;
    box-sizing: border-box;
    background: var(--checkout-pink-bg);
    margin-top: unset;
  }

  .lat-trial-modal-step4:not(.lat-mobile-payment-active) .lat-step4-mobile-checkout-label {
    padding-top: 26px;
  }

  .lat-trial-modal-step4:not(.lat-mobile-payment-active) .lat-step4-checkout-title {
    margin: 43px 0 0;
  }

  .lat-trial-modal-step4:not(.lat-mobile-payment-active)>.lat-checkout-container {
    position: relative;
    z-index: 1;
    /* 54px of the first card sits over the coloured hero. The header is
       content-sized, so this stays correct when the title wraps. */
    margin: -54px 0 0;
    padding: 0 16px 86px;
  }
}

/* ==========================================================
   BACKEND-COMPATIBLE ORIGINAL CHECKOUT UI RESTORE
   ========================================================== */
.lat-stripe-payment-display {
  cursor: default;
}

.lat-stripe-payment-display .card-info {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lat-stripe-payment-display .lat-card-value {
  color: #6656e8;
}

.lat-stripe-secure-copy {
  color: #121117;
  font-size: 14px;
  font-weight: 400;
}

.lat-reviews-modal .arrowz {
  padding: 0;
  background: #fff;
  color: #121117;
}

.lat-reviews-modal .arrowz img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.lat-reviews-modal .arrowz:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.lat-reviews-fallback-backdrop {
  z-index: 2190 !important;
}

@media (min-width: 993px) {
  .lat-reviews-modal {
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    overflow: visible;
  }
}

@media (max-width: 992px) {
  .lat-reviews-modal {
    left: 0 !important;
    transform: none !important;
  }

  .lat-stripe-secure-copy {
    font-size: 13px;
  }
}

.lat-reviews-modal .lat-review-content.clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.lat-reviews-modal .lat-review-readmore {
  padding: 0;
  border: 0;
  background: transparent;
  color: #121117;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
/* Preply-style empty state for a selected date with no slots. */
.lat-no-slots-message {
  min-height: 165px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 32px;
  text-align: center;
}

.lat-no-slots-title {
  margin: 0;
  color: #121117;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  font-family: "Platform";

}

.lat-no-slots-subtitle {
  margin: 2px 0 0;
  color: #4f4e5f;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
}

/* Dates without slots remain clickable, but look slightly lighter until selected. */
.lat-date-label.has-no-slots {
  opacity: 1;
  cursor: pointer;
}

.lat-date-label.has-no-slots:not(.selected) .day,
.lat-date-label.has-no-slots:not(.selected) .lat-date-day,
.lat-date-label.has-no-slots:not(.selected) .day-info,
.lat-date-label.has-no-slots:not(.selected) .lat-date-number {
  opacity: 0.7;
}

/* Final UI override for 25/50 min tabs in Book Trial modal. */
#lat-book-trial-modal .lat-slots-tabs,
#lat-book-trial-modal .lat-step4-duration-tabs,
#lat-book-trial-modal .lat-trial-modal-step4 .lat-step4-duration-tabs {
  background: #F4F4F8;
  border-radius: 8px;
  overflow: visible;
  padding: 2px;
}

#lat-book-trial-modal .lat-slot-tab,
#lat-book-trial-modal .lat-step4-duration-tab,
#lat-book-trial-modal .lat-trial-modal-step4 .lat-step4-duration-tab {
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent !important;
  color: #121117 !important;
  -webkit-text-fill-color: #121117 !important;
  font-weight: 600;
  position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

#lat-book-trial-modal .lat-slot-tab:not(.active):hover,
#lat-book-trial-modal .lat-step4-duration-tab:not(.active):hover,
#lat-book-trial-modal .lat-trial-modal-step4 .lat-step4-duration-tab:not(.active):hover {
  background: #fff;
  border-color: #DCDCE5;
  box-shadow: 0 2px 6px rgba(18, 17, 23, 0.05);
}

#lat-book-trial-modal .lat-slot-tab:not(.active):active,
#lat-book-trial-modal .lat-step4-duration-tab:not(.active):active,
#lat-book-trial-modal .lat-trial-modal-step4 .lat-step4-duration-tab:not(.active):active {
  transform: translateY(1px);
}

#lat-book-trial-modal .lat-slot-tab.active,
#lat-book-trial-modal .lat-step4-duration-tab.active,
#lat-book-trial-modal .lat-trial-modal-step4 .lat-step4-duration-tab.active {
  background: #fff !important;
  border-color: #DCDCE5 !important;
  box-shadow: 0 2px 6px rgba(18, 17, 23, 0.08);
  cursor: pointer;
}

body.theme-dark #lat-book-trial-modal .lat-slots-tabs,
body.theme-dark #lat-book-trial-modal .lat-step4-duration-tabs,
body.theme-dark #lat-book-trial-modal .lat-trial-modal-step4 .lat-step4-duration-tabs {
  background: #F4F4F8;
}

body.theme-dark #lat-book-trial-modal .lat-slot-tab,
body.theme-dark #lat-book-trial-modal .lat-slot-tab.active,
body.theme-dark #lat-book-trial-modal .lat-step4-duration-tab,
body.theme-dark #lat-book-trial-modal .lat-step4-duration-tab.active,
body.theme-dark #lat-book-trial-modal .lat-trial-modal-step4 .lat-step4-duration-tab,
body.theme-dark #lat-book-trial-modal .lat-trial-modal-step4 .lat-step4-duration-tab.active {
  color: #121117 !important;
  -webkit-text-fill-color: #121117 !important;
}
