/* Success at Work (THW) Popup Styles - High Fidelity */
@import url("tsubs_confirmation.css");

.tsubs-thw-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 17, 23, 0.5);
  z-index: 1150;
  justify-content: center;
  align-items: center;
}

.tsubs-thw-backdrop.is-open {
  display: flex;
}

.tsubs-thw-main {
  background: #fff;
  width: 100%;
  max-width: 100%;
  height: 100%;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(18, 17, 23, 0.25);
  margin: 0;
}

.tsubs-thw-close {
  position: absolute;
  right: 25px;
  top: 25px;
  background: none;
  border: 1px solid #eee;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  font-size: 26px;
  line-height: 34px;
  cursor: pointer;
  color: #111;
  z-index: 10;
}

.tsubs-thw-checkout-page {
  display: flex;
  justify-content: center;
  height: 100%;
}

.tsubs-thw-checkout-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  background-color: var(--color-white);
}

.tsubs-thw-plan-selection-panel {
  flex: 1.2;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #eaeaef;
  background-color: #fff;
}

.tsubs-thw-panel-content {
  padding: 32px 48px 32px 64px;
  flex: 1;
}

.tsubs-thw-selection-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.tsubs-thw-header-icon-wrapper img {
  width: 88px;
  height: 78px;
  object-fit: contain;
}

.tsubs-thw-selection-header-text h2 {
  font-family: "Poppins", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
  margin: 0 0 4px 0;
}

.tsubs-thw-selection-header-text p {
  font-size: 14px;
  line-height: 20px;
  color: #4d4c5c;
  margin: 0;
}

/* Plan Options */
.tsubs-thw-plan-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tsubs-thw-plan-option {
  position: relative;
  cursor: pointer;
}

.tsubs-thw-plan-option:hover .tsubs-thw-plan-label {
  border-color: #121117;
}

.tsubs-thw-plan-option input:checked + .tsubs-thw-plan-label {
  background-color: #fbfbfb;
  border-color: #121117;
}

.tsubs-thw-plan-option input:checked + .tsubs-thw-plan-label::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6.5px;
  width: 12px;
  height: 12px;
  background-color: #fbfbfb;
  border-top: 1.5px solid #121117;
  border-right: 1.5px solid #121117;
  transform: translateY(-50%) rotate(45deg);
  z-index: 2;
  border-top-right-radius: 2px;
}

.tsubs-thw-plan-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border: 1.5px solid #dcdce5;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  position: relative;
  background: #fff;
}

.tsubs-thw-plan-label img {
  width: 70px;
  height: auto;
}

.tsubs-thw-plan-name-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tsubs-thw-plan-name-badge-row {
  display: flex;
  align-items: start;
  gap: 8px;
}


.tsubs-thw-plan-name {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #111;
  position: relative;
}

.tsubs-thw-custom-plan-text p {
  font-size: 13px;
  color: #6b6b78;
  margin: 4px 0 0 0;
  line-height: 1.4;
}

.tsubs-thw-plan-price {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  color: #111;
}

.tsubs-thw-popular-badge {
  background: #ff4000;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.tsubs-thw-selection-footer {
  padding: 16px 48px;
  border-top: 1px solid #eaeaef;
  background-color: #fff;
  position: sticky;
  bottom: 0;
}

.tsubs-thw-checkout-button {
  width: 100%;
  background-color: #ff2500;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 18px;
  padding: 10px;
  border: 2px solid #111;
  border-radius: 8px;
  cursor: pointer;
}

/* Confirm Section */
.tsubs-thw-confirm-section {
  display: none;
  flex: 1.2;
  background-color: #fff;
  border-right: 1px solid #eaeaef;
  padding: 32px 48px 32px 64px;
  position: relative;
  overflow-y: auto;
}

.tsubs-thw-confirm-section.tsubs-thw-active {
  display: flex;
  flex-direction: column;
}

.tsubs-thw-ps-back-btn {
  margin-bottom: 20px;
}

.tsubs-thw-back-to-plan-selection-btn {
  background: none;
  border: 0;
  border-radius: 4px;
  padding: 6px;
  cursor: pointer;
}

.tsubs-thw-intro-container {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.tsubs-thw-intro {
  display: flex;
  gap: 10px;
}

.tsubs-thw-intro-icon-wrapper img {
  width: 84px;
  height: 84px;
}

.tsubs-thw-intro-heading {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 32px;
  margin: 0;
}

.tsubs-thw-intro-subheading {
  font-size: 14px;
  color: #4d4c5c;
  margin: 0;
}

.tsubs-thw-order {
  margin-bottom: 24px;
}

.tsubs-thw-order-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.tsubs-thw-order-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tsubs-thw-order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tsubs-thw-item-name-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tsubs-thw-item-name {
  font-size: 16px;
  color: #121117;
}

.tsubs-thw-info-icon {
  width: 20px;
  height: 20px;
}

.tsubs-thw-item-price {
  font-size: 16px;
  font-weight: 600;
}

.tsubs-thw-order-total {
  margin-top: 16px;
}

.tsubs-thw-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tsubs-thw-total-label {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.tsubs-thw-total-amount {
  font-size: 20px;
  font-weight: 600;
}

.tsubs-thw-total-period {
  display: block;
  text-align: right;
  font-size: 14px;
  color: #4d4c5c;
}

.tsubs-thw-promo-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  text-decoration: underline;
  color: #121117;
}

.tsubs-thw-payment-title {
  font-size: 20px;
  font-weight: 600;
  margin: 24px 0 16px;
}

.tsubs-thw-payment-selector {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 18px;
  border: 2px solid #dcdce5;
  border-radius: 8px;
  background: #fff;
  width: 100%;
}

.tsubs-thw-card-details {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tsubs-thw-confirm-button {
  background-color: #ff2500;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  padding: 10px;
  border: 2px solid #121117;
  border-radius: 8px;
  width: 100%;
  margin-top: 24px;
}

.tsubs-thw-policy-text {
  font-size: 14px;
  color: #4d4c5c;
  margin-top: 12px;
}

/* Info Boxes */
.tsubs-thw-info-box-cancellation {
  display: flex;
  gap: 12px;
  background: #d8f8f2;
  padding: 12px 16px;
  border-radius: 4px;
  margin-top: 24px;

  p {
    margin: 0;
  }
}

.tsubs-thw-info-box-renewal {
  background: #f4f4f8;
  padding: 16px;
  border-radius: 4px;
  margin-top: 12px;

  p {
    margin: 0;
  }
}

.tsubs-thw-renewal-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.tsubs-thw-renewal-text {
  font-size: 14px;
}

.tsubs-thw-security-text {
  text-align: center;
  font-size: 14px;
  color: #4d4c5c;
  margin-top: 16px;
}

/* Summary Panel */
.tsubs-thw-plan-summary-panel {
  flex: 1;
  background: #f4f4f8;
  padding: 32px;
  position: relative;
  padding-right: 85px;
  overflow-y: scroll;
  scrollbar-width: none;
}

.tsubs-thw-summary-card {
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 8px;
  margin-top: 24px;
  gap: 30px;
}

.tsubs-thw-tutor-card {
  background: #fff;
  border: 1px solid #dcdce5;
  border-radius: 8px;
  padding: 24px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 16px;
}

.tsubs-thw-tutor-info-wrapper {
  display: flex;
  gap: 16px;
}

.tsubs-thw-tutor-avatar-wrapper {
  position: relative;
  width: 64px;
  height: 64px;
}

.tsubs-thw-tutor-avatar {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(18, 17, 23, 0.06);
}

.tsubs-thw-tutor-flag {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 18px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tsubs-thw-tutor-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tsubs-thw-tutor-name-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

.tsubs-thw-tutor-name {
  font-family: "Poppins", sans-serif;
  font-size: 19px;
  font-weight: 700;
  margin: 0;
  color: #121117;
}

.tsubs-thw-tutor-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tsubs-thw-star-icon {
  width: 20px;
  height: 20px;
}

.tsubs-thw-rating-val {
  font-weight: 700;
  font-size: 16px;
  color: #121117;
}

.tsubs-thw-reviews-link {
  font-size: 14px;
  color: #121117;
  text-decoration: underline;
}

.tsubs-thw-verified-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #4d4c5c;
}

.tsubs-thw-verified-icon {
  width: 20px;
  height: 20px;
}

.tsubs-thw-schedule-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid #121117;
  border-radius: 6px;
  padding: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #121117;
  cursor: pointer;
  transition: all 0.2s;
}

.tsubs-thw-schedule-btn:hover {
  background: #f4f4f4;
}

.tsubs-thw-btn-icon {
  width: 20px;
  height: 20px;
}

.tsubs-thw-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding: 24px 24px 0 24px; */
}

.tsubs-thw-summary-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  margin: 0;
}

.tsubs-thw-promo-container {
  margin-bottom: 24px;
}

.tsubs-thw-promo-link {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #111;
  text-decoration: underline;
  cursor: pointer;
}

.tsubs-thw-promo-input-group {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.tsubs-thw-promo-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid #eaeaef;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: #111;
}

.tsubs-thw-promo-input::placeholder {
  color: #757575;
}

.tsubs-thw-promo-apply-btn {
  padding: 10px 24px;
  background: #eaeaef;
  border: none;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #111;
  cursor: pointer;
  transition: background 0.2s;
}

.tsubs-thw-promo-apply-btn:hover {
  background: #dadade;
}

.tsubs-thw-link {
  font-weight: 600;
  font-size: 16px;
  color: #121117;
  text-decoration: underline;
}

.tsubs-thw-separator {
  border: none;
  height: 1px;
  background-color: #dcdce5;
  margin: 16px 0 16px 0;
}

.tsubs-thw-summary-mobile-footer {
  display: none !important;
}

.tsubs-thw-collapse-btn {
  display: none !important;
}

.tsubs-thw-tutor-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  margin: 0;
  margin-bottom: 24px;
}

/* Tutor card position: top on plan-selection, bottom on checkout */
.tsubs-thw-tutor-card-wrapper {
  order: -1; /* plan selection view: tutor card at top */
}

.tsubs-thw-checkout-container:has(.tsubs-thw-confirm-section.tsubs-thw-active) .tsubs-thw-tutor-card-wrapper {
  order: 1; /* checkout view: tutor card at bottom */
}

.tsubs-thw-selection-header-mobile {
  display: none;
}

.tsubs-thw-tutor-header,
.tsubs-thw-summary-header {
  cursor: default;
}

.tsubs-thw-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tsubs-thw-summary-body {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  padding: 24px;
  border-radius: 10px;
  border: 1px solid #dcdce5;
}

.tsubs-thw-plan-title-section {
  h4 {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px 0;
  }
  p {
    font-size: 14px;
    color: #4d4c5c;
    margin: 0 0 24px 0;
  }
}

.tsubs-thw-flexible-badge {
  display: inline-flex;
  align-items: center;
  background-color: #e8f5e9;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #111;
  margin-bottom: 20px;
}

.tsubs-thw-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tsubs-thw-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tsubs-thw-feature-icon-wrapper {
  width: 45px;
  height: 45px;
  background-color: #f4f4f8;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.tsubs-thw-feature-item p {
  font-size: 16px;
  margin: 0;
}

.tsubs-thw-group-details {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.tsubs-thw-group-logo {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  border: 1px solid rgba(18, 17, 23, 0.06);
  object-fit: cover;
}

.tsubs-thw-group-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tsubs-thw-group-name {
  font-weight: 600;
  font-size: 18px;
  margin: 0;
}

.tsubs-thw-group-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.tsubs-thw-time-tags {
  display: flex;
  gap: 8px;
}

.tsubs-thw-time-tag {
  background: #fff;
  border: 1px solid #eaeaef;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 11px;
}

/* Booked Slot Card */
.tsubs-thw-booked-slot-card {
  border: 1px solid #dcdce5;
  border-radius: 8px;
  background: #fff;
  width: 100%;
}

.tsubs-thw-booked-slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.tsubs-thw-booked-slot-title {
  font-size: 14px;
  color: #4d4c5c;
  font-weight: 500;
}

.tsubs-thw-booked-slot-delete {
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  padding: 4px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  outline: none !important;
}
.tsubs-thw-booked-slot-delete:hover {
  background: #f4f4f8;
}

.tsubs-thw-booked-slot-divider {
  height: 1px;
  background: #dcdce5;
  margin: 0;
}

.tsubs-thw-booked-slot-details {
  display: flex;
  align-items: center;
  padding: 12px 16px;
}

.tsubs-thw-booked-slot-date, .tsubs-thw-booked-slot-time {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.tsubs-thw-booked-slot-date span,
.tsubs-thw-booked-slot-time span {
  font-weight: 500;
  color: #121117;
  font-size: 14px;
}

.tsubs-thw-slot-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.tsubs-thw-booked-slot-v-divider {
  width: 1px;
  height: 24px;
  background: #dcdce5;
  margin: 0 16px;
}

/* Helpers */
.tsubs-thw-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 940px) {
  .tsubs-thw-checkout-container {
    display: flex;
    flex-direction: column;
  }
  .tsubs-thw-main {
    margin: 0;
    height: 100vh;
    border-radius: 0;
  }
  .tsubs-thw-plan-selection-panel,
  .tsubs-thw-confirm-section {
    border-right: none;
    padding: 24px;
    flex: none;
  }
  .tsubs-thw-panel-content {
    padding: 20px;
  }
  .tsubs-thw-plan-summary-panel {
    padding: 24px;
    background: #fff;
    flex: none;
    display: none; /* Controlled by JS */
  }
  .tsubs-thw-summary-card {
    gap: 16px;
    margin-top: 0;
  }
  .tsubs-thw-selection-header,
  .tsubs-thw-selection-footer {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .tsubs-thw-plan-selection-panel {
    overflow-y: auto !important;
    height: 100% !important;
    display: block !important; /* Change to block for natural scrolling */
    padding: 0;
  }
  .tsubs-thw-selection-header-mobile {
    display: block !important;
    border-radius: 0;
    margin-bottom: 0px;
    position: relative;
  }
  .tsubs-thw-mobile-header-top-wrapper {
    background-color: #fdf5f2;
    padding: 32px 24px 10px 24px;
  }
  .tsubs-thw-mobile-header-top {
    margin-bottom: 16px;
  }
  .tsubs-thw-mobile-back-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }
  .tsubs-thw-mobile-header-main {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    text-align: left;
  }
  .tsubs-thw-mobile-header-icon img {
    width: 56px;
    height: auto;
    border-radius: 8px;
  }
  .tsubs-thw-mobile-header-title {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
    color: #121117;
    margin: 0;
    text-align: left;
    flex: 1;
  }
  .tsubs-thw-mobile-schedule-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px 20px 0 20px;
  }
  .tsubs-thw-schedule-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 14px;
    color: #121117;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
  }
  .tsubs-thw-mobile-tutor-img .tsubs-thw-tutor-avatar {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
  }
  .tsubs-thw-mobile-selection-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #4d4c5c;
    text-align: left;
    margin: 20px 20px;
  }

  .tsubs-thw-tutor-header,
  .tsubs-thw-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #fbfbfb;
    border: 1px solid #dcdce5;
    border-radius: 8px;
    cursor: pointer;
  }
  .tsubs-thw-tutor-header h3,
  .tsubs-thw-summary-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
  }
  .tsubs-thw-collapse-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex !important;
    align-items: center;
  }
  .tsubs-thw-collapse-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
  }
  .tsubs-thw-collapsed .tsubs-thw-collapse-icon {
    transform: rotate(-90deg);
  }
  .tsubs-thw-tutor-card.tsubs-thw-collapsed,
  .tsubs-thw-summary-header.tsubs-thw-collapsed + .tsubs-thw-separator,
  .tsubs-thw-summary-header.tsubs-thw-collapsed
    + .tsubs-thw-separator
    + .tsubs-thw-standard-summary,
  .tsubs-thw-summary-header.tsubs-thw-collapsed
    + .tsubs-thw-separator
    + .tsubs-thw-custom-summary {
    display: none !important;
  }

  .tsubs-thw-summary-mobile-footer {
    display: block !important;
    margin-top: 32px;
  }
  .tsubs-thw-summary-checkout-btn {
    width: 100%;
    background-color: #ff2500;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    padding: 16px;
    border: 2px solid #121117;
    border-radius: 12px;
    cursor: pointer;
  }

  /* Style the Custom Plan card specifically for mobile */
  .tsubs-thw-plan-option:has(#plan-custom-tsubs-thw) {
    margin-top: 8px;
  }

  .tsubs-thw-plan-option:has(#plan-custom-tsubs-thw) .tsubs-thw-plan-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
  }

  /* Interaction feedback for all cards on mobile */
  .tsubs-thw-plan-option {
    transition: transform 0.1s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .tsubs-thw-plan-option:active {
    transform: scale(0.98);
  }
  .tsubs-thw-plan-option.tsubs-thw-active {
    border-color: #ff2500 !important;
    background-color: #fff9f8;
  }
}

/* Custom Plan Summary Styles */
.tsubs-thw-hidden {
  display: none !important;
}

.tsubs-thw-custom-header h4 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 16px;
  color: #121117;
}

.tsubs-thw-lesson-dropdown-wrapper {
  position: relative;
  margin-bottom: 24px;
}

.tsubs-thw-lesson-dropdown-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 5px 12px;
  border: 1.5px solid #dcdce5;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}

.tsubs-thw-lesson-dropdown-trigger:hover {
  border-color: #121117;
}

.tsubs-thw-trigger-val {
  font-size: 20px;
  font-weight: 700;
  color: #ff2500;
}

.tsubs-thw-trigger-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.tsubs-thw-lesson-dropdown-trigger.is-open .tsubs-thw-trigger-arrow {
  transform: rotate(180deg);
}

.tsubs-thw-lesson-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #eaeaef;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 100;
  max-height: 400px;
  overflow-y: auto;
}

.tsubs-thw-faq-trigger,
.theme-thw-faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #121117;
  cursor: pointer;
  text-align: left;
  border-bottom: 1px solid #f1f1f1;
}
.tsubs-thw-faq-trigger[aria-expanded="true"],
.theme-thw-faq-trigger[aria-expanded="true"] {
  border-bottom-color: transparent;
}
.tsubs-thw-faq-trigger[aria-expanded="true"] .tsubs-thw-chev,
.theme-thw-faq-trigger[aria-expanded="true"] .tsubs-thw-chev {
  transform: rotate(180deg);
}

.tsubs-thw-lesson-dropdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #f5f5f7;
}

.tsubs-thw-lesson-dropdown-item:last-child {
  border-bottom: none;
}

.tsubs-thw-lesson-dropdown-item:hover {
  background: #fcfcfd;
}

.tsubs-thw-item-left,
.tsubs-thw-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tsubs-thw-item-label {
  font-size: 14px;
  font-weight: 500;
  color: #4d4c5c;
}

.tsubs-thw-selected .tsubs-thw-item-label {
  color: #121117;
  font-weight: 600;
}

.tsubs-thw-item-checkmark {
  color: #121117;
  font-weight: 700;
  font-size: 14px;
}

.tsubs-thw-popular-badge {
  background: #ff2500;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.tsubs-thw-item-price-side {
  font-size: 14px;
  font-weight: 700;
  color: #121117;
}

/* FAQ Modal Styles */
.tsubs-thw-faq-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2000;
}

.tsubs-thw-modal-faq {
  position: relative;
  width: min(680px, 92vw);
  background: #fff;
  color: #111;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  padding: 32px;
  max-height: 90vh;
  overflow-y: auto;
}

.tsubs-thw-modal-title {
  font-size: 26px;
  line-height: 1.25;
  margin-bottom: 24px;
  font-weight: 800;
  color: #121117;
}

.tsubs-thw-modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  color: #121117;
  font-size: 32px;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.tsubs-thw-modal-close:hover {
  background: #f3f4f6;
}

.tsubs-thw-faq-item {
  border-top: 1px solid #eee;
}

.tsubs-thw-faq-item:last-child {
  border-bottom: 1px solid #eee;
}

.tsubs-thw-faq-trigger {
  appearance: none;
  background: none;
  color: #121117;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 20px 8px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tsubs-thw-chev {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
}

.tsubs-thw-faq-trigger[aria-expanded="true"] .tsubs-thw-chev {
  transform: rotate(180deg);
}

.tsubs-thw-faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  will-change: grid-template-rows, opacity;
  transition:
    grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease,
    visibility 0.4s step-end;
}

.tsubs-thw-faq-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition:
    grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease,
    visibility 0s step-start;
}

.tsubs-thw-faq-panel-inner {
  min-height: 0;
  padding: 0 8px 20px 8px;
  color: #4d4c5c;
  line-height: 1.6;
}

@keyframes tsubsThwModalIn {
  from {
    transform: scale(0.96) translateY(8px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes tsubsThwModalOut {
  from {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  to {
    transform: scale(0.96) translateY(8px);
    opacity: 0;
  }
}

.tsubs-thw-modal-faq[data-anim="in"] {
  animation: tsubsThwModalIn 0.22s ease both;
}

.tsubs-thw-modal-faq[data-anim="out"] {
  animation: tsubsThwModalOut 0.18s ease both;
}

/* Review Modal Styles */
.tsubs-thw-reviews-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
}

.tsubs-thw-modal-reviews {
  position: relative;
  width: min(650px, 92vw);
  background: #fff;
  border-radius: 12px;
  padding: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  max-height: 90vh;
  overflow-y: auto;
}

.tsubs-thw-reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.tsubs-thw-reviews-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: #121117;
}

.tsubs-thw-reviews-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: absolute;
  top: 25px;
  right: 25px;
}

.tsubs-thw-reviews-summary {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.tsubs-thw-reviews-average {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tsubs-thw-reviews-avg-number {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
}

.tsubs-thw-reviews-avg-stars {
  display: flex;
  gap: 6px;
  margin: 12px 0 8px;
}

.tsubs-thw-reviews-avg-star-icon {
  width: 20px;
  height: 20px;
}

.tsubs-thw-reviews-count-text {
  font-size: 15px;
  color: #4d4c5c;
}

.tsubs-thw-reviews-bars-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tsubs-thw-reviews-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tsubs-thw-reviews-bar-label {
  font-size: 13px;
  color: #4d4c5c;
  width: 12px;
  text-align: right;
}

.tsubs-thw-reviews-bar-bg {
  flex: 1;
  height: 6px;
  background: #eaeaef;
  border-radius: 4px;
  position: relative;
}

.tsubs-thw-reviews-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: #121117;
  border-radius: 4px;
}

.tsubs-thw-reviews-bar-count {
  font-size: 13px;
  color: #4d4c5c;
  width: 24px;
}

.tsubs-thw-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tsubs-thw-reviews-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid #eaeaef;
  padding-top: 15px;
}

.tsubs-thw-reviews-item-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tsubs-thw-reviews-item-avatar {
  width: 40px;
  height: 40px;
  border-radius: 4px;
}

.tsubs-thw-reviews-item-info {
  display: flex;
  flex-direction: column;
}

.tsubs-thw-reviews-item-name {
  font-weight: 600;
  font-size: 16px;
  color: #121117;
}

.tsubs-thw-reviews-item-date {
  font-size: 13px;
  color: #8b8a96;
}

.tsubs-thw-reviews-item-stars {
  display: flex;
  gap: 4px;
}

.tsubs-thw-reviews-item-star-icon {
  width: 20px;
  height: 20px;
}

.tsubs-thw-reviews-item-text {
  margin: 0;
  font-size: 15px;
  color: #4d4c5c;
  line-height: 1.6;
}

.tsubs-thw-modal-reviews[data-anim="in"] {
  animation: tsubsThwModalIn 0.22s ease both;
}

.tsubs-thw-modal-reviews[data-anim="out"] {
  animation: tsubsThwModalOut 0.18s ease both;
}

.tsubs-thw-pricing-grid {
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
  margin-bottom: 24px;
  border-top: 1px solid #eaeaef;
  border-bottom: 1px solid #eaeaef;
}

.tsubs-thw-price-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tsubs-thw-price-col:first-child {
  border-right: 1px solid #eaeaef;
  padding-right: 20px;
}

.tsubs-thw-price-col:last-child {
  padding-left: 20px;
}

.tsubs-thw-grid-price-val,
.tsubs-thw-grid-total-val {
  font-size: 22px;
  font-weight: 700;
  color: #121117;
  margin-bottom: 4px;
}

.tsubs-thw-grid-label {
  font-size: 14px;
  color: #4d4c5c;
}

/* Scheduling Modal Styles */
.tsubs-thw-snl-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
}

.tsubs-thw-snl-modal {
  position: relative;
  width: min(480px, 92vw);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}

.tsubs-thw-snl-header {
  display: flex;
  align-items: center;
  padding: 24px 20px 16px;
  border-bottom: 1px solid #f4f4f8;
}

.tsubs-thw-snl-back-btn {
  background: none;
  border: none;
  padding: 0;
  margin-right: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.tsubs-thw-snl-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tsubs-thw-snl-tutor-avatar {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  object-fit: cover;
}

.tsubs-thw-snl-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #121117;
  margin: 0;
}

.tsubs-thw-snl-content {
  overflow-y: auto;
  flex-grow: 1;
}

.tsubs-thw-snl-date-selector {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
}

.tsubs-thw-snl-week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 24px;
  padding: 24px 24px 0;
}

.tsubs-thw-snl-nav-btn {
  background: #f4f4f8;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tsubs-thw-snl-current-week {
  font-size: 16px;
  font-weight: 600;
  color: #121117;
}

.tsubs-thw-snl-days-grid {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 16px;
  border-bottom: 1px solid lightgray;
  padding-bottom: 10px;
  padding: 0 24px 24px;
}

.tsubs-thw-snl-day-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.tsubs-thw-snl-day-name {
  font-size: 14px;
  color: #4d4c5c;
  font-weight: 500;
}

.tsubs-thw-snl-day-col.active .tsubs-thw-snl-day-name {
  color: #ff2500;
}

.tsubs-thw-snl-day-num {
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  color: #121117;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tsubs-thw-snl-day-num.active {
  border: 2px solid #ff2500;
  color: #ff2500;
}

.tsubs-thw-snl-timezone {
  font-size: 13px;
  color: #6a697c;
  padding: 0 24px;
}

.tsubs-thw-snl-time-slots-section {
  padding: 0 24px 24px;
}

.tsubs-thw-snl-time-period-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
}

.tsubs-thw-snl-period-icon {
  font-size: 18px;
}

.tsubs-thw-snl-time-period-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #121117;
  margin: 0;
}

.tsubs-thw-snl-time-slots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;

  label {
    margin-bottom: 0;
  }
}

.tsubs-thw-snl-time-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #121117;
  cursor: pointer;
  background-color: #ffffff;
  transition: all 0.2s;
}

.tsubs-thw-snl-time-slot input:checked + .tsubs-thw-snl-time-btn {
  border: 2px solid #121117;
}

.tsubs-thw-snl-info-box {
  background-color: #e6fcf5;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tsubs-thw-snl-info-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tsubs-thw-snl-info-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #121117;
}

.tsubs-thw-snl-info-icon {
  font-size: 20px;
}

.tsubs-thw-snl-info-box p {
  margin: 0;
  font-size: 14px;
  color: #4d4c5c;
  line-height: 1.4;
}

.tsubs-thw-snl-footer {
  padding: 16px 20px;
  border-top: 1px solid #f4f4f8;
  background-color: #ffffff;
  border-radius: 0 0 12px 12px;
}

.tsubs-thw-snl-book-btn {
  width: 100%;
  padding: 16px;
  background-color: #e2e2ec;
  color: #6a697c;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: not-allowed;
  transition: all 0.2s;
}

.tsubs-thw-snl-book-btn:not([disabled]) {
  background-color: #ff2500;
  border: 2px solid black;
  color: #ffffff;
  cursor: pointer;
}

.tsubs-thw-snl-time-slots-grid.standalone-slot {
  display: flex;
  justify-content: flex-start;
  margin: 12px 0;
}

.tsubs-thw-snl-time-slots-grid.standalone-slot .tsubs-thw-snl-time-slot {
  width: calc(50% - 6px);
}

.tsubs-thw-snl-modal[data-anim="in"] {
  animation: tsubsThwModalIn 0.22s ease both;
}

.tsubs-thw-snl-modal[data-anim="out"] {
  animation: tsubsThwModalOut 0.18s ease both;
}

/* Payment Form Spacing and Layout (matching Figma) */
.tsubs-thw-payment-details .tsubs-rs-new-card-panel {
  margin-top: 16px;
}

.tsubs-thw-payment-details .tsubs-rs-form-group {
  margin-bottom: 20px;
}

.tsubs-thw-payment-details .tsubs-rs-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

/* Override floating labels to match Figma's static label style */
.tsubs-thw-payment-details .tsubs-rs-input-wrapper {
  display: flex;
  flex-direction: column;
}

.tsubs-thw-payment-details .tsubs-rs-form-label {
  position: static;
  background: transparent;
  padding: 0;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #121117;
  pointer-events: auto;
}

.tsubs-thw-payment-details .tsubs-rs-form-input {
  border: 1px solid #dcdce5;
  border-radius: 8px;
  padding: 12px 16px;
  height: 48px;
  background-color: #fff;
}

.tsubs-thw-payment-details .tsubs-rs-form-input::placeholder {
  color: #8d8c9b;
}

.tsubs-thw-payment-details .tsubs-rs-form-input:focus {
  border-color: #ff2500;
  box-shadow: none;
}

.tsubs-thw-faq-trigger[aria-expanded="false"] + [id^="tsubs-thw-faq-p"],
.theme-thw-faq-trigger[aria-expanded="false"] + [id^="theme-thw-faq-p"] {
  display: none !important;
}

@keyframes tsubs-slide-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@media (max-width: 767.98px) {
  .tsubs-thw-plan-label {
    flex-direction: column;
    align-items: flex-start;

    .tsubs-thw-plan-name-badge-row {
      justify-content: space-between;
      width: 100%;
    }

  }
  .tsubs-thw-divider {
    display: none;
  }

  .tsubs-thw-plan-option:has(#plan-custom-tsubs-thw) .tsubs-thw-plan-label {
    flex-direction: row;
  }

  .tsubs-thw-snl-overlay .tsubs-thw-snl-modal {
    min-height: 100%;
    min-width: 100%;
    border-radius: 0;
    animation: tsubs-slide-up 0.3s ease-out;
  }

  .tsubs-thw-mobile-header-top-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .tsubs-thw-link.tsubs-thw-open-faq {
    display: none;
  }

  .tsubs-thw-schedule-btn {
    display: none;
  }

  .tsubs-thw-tutor-card {
    padding-top: 20px !important;
    padding-bottom: 0 !important;
  }
  .tsubs-thw-tutor-info-wrapper {
    flex-direction: row-reverse;
    width: 100%;

    .tsubs-thw-tutor-name-row {
      flex-direction: column;
      align-items: flex-start;
    }
    .tsubs-thw-verified-badge {
      display: none;
    }
  }

  .tsubs-thw-plan-summary-panel {
    padding: 0;
    background: linear-gradient(180deg, #FFF2F0 300px, #ffffff 300px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1200;
    overflow-y: auto;
    display: none;
    flex-direction: column;
  }

  .tsubs-thw-summary-header-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .tsubs-thw-summary-back-btn {
    background: #f4f4f8;
    border: 1px solid #eaeaef;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .tsubs-thw-summary-mobile-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
  }

  .tsubs-thw-summary-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #121117;
    cursor: pointer;
    line-height: 1;
  }

  .tsubs-thw-summary-card {
    padding: 20px;
    gap: 20px;
    margin-top: 0;
    padding-bottom: 100px; /* Space for sticky footer */
  }

  .tsubs-thw-summary-body,
  .tsubs-thw-tutor-card-wrapper {
    background: #fff;
    border: 1.5px solid #dcdce5;
    border-radius: 12px;
    padding: 0 !important;
    overflow: hidden;
  }

  .tsubs-thw-summary-header,
  .tsubs-thw-tutor-header {
    padding: 20px;
    cursor: pointer;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
  }

  .tsubs-thw-summary-header h3,
  .tsubs-thw-tutor-header h3 {
    font-size: 18px;
    margin: 0;
  }

  .tsubs-thw-collapse-btn {
    display: block !important;
    background: none;
    border: none;
    padding: 0;
  }

  .tsubs-thw-collapse-icon {
    transition: transform 0.3s;
  }

  .tsubs-thw-collapsed .tsubs-thw-collapse-icon {
    transform: rotate(-90deg);
  }

  .tsubs-thw-standard-summary,
  .tsubs-thw-custom-summary,
  .tsubs-thw-tutor-card {
    padding: 20px 20px 20px 20px;
    transition:
      max-height 0.3s ease-out,
      opacity 0.3s;
    border: none !important;
  }

  .tsubs-thw-collapsed + .tsubs-thw-standard-summary,
  .tsubs-thw-collapsed + .tsubs-thw-custom-summary,
  .tsubs-thw-collapsed + .tsubs-thw-tutor-card {
    display: none;
  }

  .tsubs-thw-summary-mobile-footer {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 16px 20px;
    border-top: 1px solid #eaeaef;
    z-index: 10;
  }

  .tsubs-thw-summary-checkout-btn {
    width: 100%;
    background: #ff2500;
    color: #fff;
    border: 2px solid #121117;
    border-radius: 8px;
    padding: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
  }
}

@media (min-width: 768px) {
  .tsubs-thw-flexible-badge img {
    display: flex !important;
  }

  .tsubs-thw-tutor-header {
    display: none !important;
  }

  .tsubs-thw-summary-header-mobile {
    display: none;
  }

  .tsubs-thw-plan-name-badge-row {
    flex-direction: column;
  }

  .tsubs-thw-divider {
    display: flex;
  }

  .tsubs-thw-snl-time-slots-section {
    overflow-y: scroll;
    height: 254px;
  }
}

/* Mobile Checkout Specifics */
@media (max-width: 940px) {
  .tsubs-thw-confirm-section {
    padding: 0;
    background: linear-gradient(180deg, #FFF2F0 300px, #ffffff 300px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1210;
    overflow-y: auto;
    display: none;
    flex-direction: column;
  }

  .tsubs-thw-confirm-section.tsubs-thw-active {
    display: flex;
  }

  .tsubs-thw-checkout-header-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .tsubs-thw-checkout-back-btn {
    background: #f4f4f8;
    border: 1px solid #eaeaef;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .tsubs-thw-checkout-mobile-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
  }

  .tsubs-thw-checkout-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #121117;
    cursor: pointer;
    line-height: 1;
  }

  .tsubs-thw-intro {
    display: none !important;
  }

  .tsubs-thw-checkout-plan-mobile {
    padding: 20px;
    display: block !important;
  }

  .tsubs-thw-order {
    padding: 20px;
    margin-top: 0;
  }

  .tsubs-thw-order-container {
    background: #fff;
    border: 1.5px solid #dcdce5;
    border-radius: 12px;
    padding: 0 !important;
    overflow: hidden;
  }

  .tsubs-thw-order-header-mobile {
    padding: 20px;
    cursor: pointer;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
  }

  .tsubs-thw-order-header-mobile h2 {
    font-size: 18px;
    margin: 0;
  }

  .tsubs-thw-order-collapsible-content {
    padding: 0 20px 20px;
    display: block;
  }

  .tsubs-thw-collapsed + .tsubs-thw-order-collapsible-content {
    display: none;
  }

  .tsubs-thw-payment {
    padding: 0 20px 180px 20px; /* Extra padding for sticky footer */
  }

  .tsubs-thw-payment-container {
    padding: 0;
  }

  .tsubs-thw-payment-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .tsubs-thw-sticky-confirm-footer {
    position: fixed !important;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 16px 20px;
    border-top: 1px solid #eaeaef;
    z-index: 10;
  }

  .tsubs-thw-confirm-button {
    width: 100%;
    margin-top: 0;
    font-size: 18px;
    background: #FF2500;
    color: white;
    border-radius: 8px;
    border: 2px solid #121117;
    padding: 12px;
    font-weight: 700;
  }

  .tsubs-thw-policy-text {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.4;
    color: #4D4C5C;
    text-align: center;
  }

  .tsubs-thw-info-box-cancellation,
  .tsubs-thw-info-box-renewal,
  .tsubs-thw-security-text,
  .tsubs-thw-order hr.tsubs-thw-separator {
    display: none !important;
  }
}

@media (min-width: 941px) {
  .tsubs-thw-checkout-header-mobile,
  .tsubs-thw-checkout-plan-mobile,
  .tsubs-thw-order-header-mobile {
    display: none !important;
  }

  .tsubs-thw-sticky-confirm-footer {
     position: static !important;
     padding: 0;
     border: none;
  }
}

/* Payment Method Dropdown Styles */
.tsubs-rs-dropdown-container {
    position: relative;
    width: 100%;
}

.tsubs-rs-payment-dropdown {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fcfcfd;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s ease;
}

.tsubs-rs-payment-dropdown:hover {
    background: #f8f8fa;
    border-color: #d1d1d1;
}

.tsubs-rs-dropdown-list {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    display: none;
    z-index: 1000;
}

.tsubs-rs-dropdown-list.is-active {
    display: block;
}

.tsubs-rs-dropdown-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    background: #ffffff;
}

.tsubs-rs-dropdown-item:hover {
    background: #f5f5f7;
}

.tsubs-rs-dropdown-item.selected {
    background: #f0f0f5;
}

.tsubs-rs-payment-info {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.tsubs-rs-visa-icon {
    height: 20px;
    width: auto;
    object-fit: contain;
}

.tsubs-rs-card-details {
    font-size: 14px;
    color: #121117;
    font-weight: 500;
}

.tsubs-dropdown-arrow {
    transition: transform 0.3s ease;
}

.js-tsubs-payment-dropdown-btn[aria-expanded="true"] .tsubs-dropdown-arrow {
    transform: rotate(180deg);
}

