/* =============================================================
   Telehealth Page — page-telehealth.php
   ============================================================= */

:root {
  --th-green: #038935;
  --th-green-dark: #012910;
  --th-gray-900: #101828;
  --th-gray-700: #344054;
  --th-gray-600: #475467;
  --th-gray-300: #d0d5dd;
  --th-gray-200: #eaecf0;
  --th-gray-100: #f2f4f7;
  --th-purple: #ac81dd;
  --th-yellow: #ffd183;
  --th-radius-lg: 20px;
  --th-radius-md: 12px;
}

.th-page {
  font-family: "Switzer-Regular", sans-serif;
  color: var(--th-gray-900);
  overflow-x: hidden;
  background: #fff;
}

.th-page * {
  box-sizing: border-box;
}

/* ----- container ----- */
.th-page .th-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----- buttons ----- */
.th-page .th-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 100px;
  font-family: "Switzer-Semibold", sans-serif;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none !important;
  transition: opacity 0.2s;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  width: fit-content;
}

.th-page .th-btn:hover {
  opacity: 0.88;
}

.th-page .th-btn--green {
  background: var(--th-green) !important;
  color: #fff !important;
}

.th-page .th-btn--full {
  width: 100%;
  justify-content: center;
}

/* ----- section headings ----- */
.th-page .th-section-heading {
  font-family: "Switzer-Bold", sans-serif !important;
  font-size: 64px !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 72px !important; /* 112.5% */
  color: var(--th-gray-900) !important;
  margin: 0 0 16px !important;
  text-align: center;
}

.th-page .th-section-sub {
  font-size: 16px;
  line-height: 26px;
  color: var(--th-gray-700);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

/* =============================================================
   HERO
   ============================================================= */
.th-page .th-hero {
  padding: 24px 100px 48px;
  display: flex;
}

.th-page .th-hero__inner {
  background: var(--th-green-dark);
  border-radius: var(--th-radius-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 1240px;
}

.th-page .th-hero__content {
  position: relative;
  z-index: 2;
  padding: 24px 0px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 65%;
  flex-shrink: 0;
}

.th-page .th-hero__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.th-page .th-hero__heading {
  font-style: normal !important;
  font-size: 64px;
  font-weight: 700 !important;
  line-height: 72px !important; /* 112.5% */
  color: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
}

.th-page .th-hero__sub {
  font-family: "Switzer-Regular", sans-serif;
  font-size: 16px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 24px !important;
  color: #fff !important;
  margin: 0 !important;
  max-width: 460px;
}

.th-page .th-hero__trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.th-page .th-hero__trust-label {
  font-size: 16px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 24px !important;
  color: #fff !important;
  margin: 0 !important;
  font-family: "Switzer-Regular", sans-serif;
}

.th-page .th-hero__trust-badges {
  display: flex;
  gap: 12px;
  align-items: center;
}

.th-page .th-hero__badge {
  object-fit: contain;
  border-radius: 8px;
}

/* hero right image area */
.th-page .th-hero__images {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  margin-left: auto;
  max-width: 90%;
}

.th-page .th-hero__banner-imgs {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* =============================================================
   HOW IT WORKS
   ============================================================= */
.th-page .th-how {
  padding: 64px 100px;
  background: #fff;
}

.th-page .th-how__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  text-align: center;
}

.th-page .th-how__cards {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: nowrap;
}

.th-page .th-how__card {
  width: 390px;
  border-radius: var(--th-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.th-page .th-how__card--purple {
  background: var(--th-purple);
}
.th-page .th-how__card--gray {
  background: var(--th-gray-300);
}
.th-page .th-how__card--yellow {
  background: var(--th-yellow);
}

.th-page .th-how__card-img {
  flex: 0 0 220px;
  height: 220px;
  position: relative;
  overflow: hidden;
}

.th-page .th-how__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.th-page .th-how__card--purple .th-how__card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, #ac81dd 100%);
}

.th-page .th-how__card--gray .th-how__card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, #d0d5dd 100%);
}

.th-page .th-how__card--yellow .th-how__card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, #ffd183 100%);
}

.th-page .th-how__card-body {
  padding: 16px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.th-page .th-how__card-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.th-page .th-how__card-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  font-family: "Switzer-Semibold", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 28px !important;
  color: var(--th-gray-900) !important;
  flex-shrink: 0;
}

.th-page .th-how__card-title {
  font-family: "Switzer-Semibold", sans-serif !important;
  font-size: 24px !important;
  line-height: 28px !important;
  font-weight: 600 !important;
  color: var(--th-gray-900) !important;
  margin: 0 !important;
}

.th-page .th-how__card-desc {
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
  color: var(--th-gray-900) !important;
  margin: 0 !important;
  opacity: 0.85;
}

/* =============================================================
   CONDITIONS (antd-style row / col: flex % + padding gutter)
   ============================================================= */
.th-page .th-conditions {
  --th-conditions-gutter: 8px;
  --th-conditions-gutter-x: calc(var(--th-conditions-gutter) / 2);
  padding: 64px 100px;
  background: var(--th-gray-100);
}

.th-page .th-conditions .th-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.th-page .th-conditions .th-section-heading {
  margin-bottom: 40px;
}

.th-page .th-conditions__grid-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.th-page .th-conditions__grid {
  display: flex;
  flex-flow: row wrap;
  margin-left: calc(-1 * var(--th-conditions-gutter-x));
  margin-right: calc(-1 * var(--th-conditions-gutter-x));
  width: 100%;
}

.th-page .th-conditions__col {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 var(--th-conditions-gutter-x) var(--th-conditions-gutter);
  min-width: 0;
}

.th-page .th-conditions__col--hidden {
  display: none;
}

.th-page .th-conditions__chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid var(--th-gray-300);
  border-radius: var(--th-radius-md);
  min-width: 0;
  height: 100%;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none !important;
}

.th-page .th-conditions__chip:hover {
  border-color: var(--th-green);
  box-shadow: 0 2px 8px rgba(3, 137, 53, 0.12);
}

.th-page .th-conditions__chip span {
  flex: 1;
  font-family: "Switzer-Semibold", sans-serif;
  font-size: 16px !important;
  font-style: normal !important;
  font-weight: 600 !important;
  line-height: 24px !important;
  color: var(--th-gray-900) !important;
}

.th-page .th-conditions__chip svg {
  flex-shrink: 0;
}

.th-page .th-conditions__more {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  cursor: pointer;
  background: none;
  border: none;
  outline: none !important;
  box-shadow: none !important;
  width: 100%;
}

.th-page .th-conditions__more--expanded {
  width: 100%;
}

.th-page .th-conditions__more span,
.th-page #th-conditions-toggle-label {
  font-family: "Switzer-Semibold", sans-serif;
  font-size: 15px !important;
  color: var(--th-green) !important;
  font-weight: 600;
}

.th-page button#th-conditions-toggle:hover,
.th-page button#th-conditions-toggle:focus,
.th-page button#th-conditions-toggle:focus-visible,
.th-page button#th-conditions-toggle:active {
  background: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--th-green) !important;
}

.th-page button#th-conditions-toggle:hover #th-conditions-toggle-label,
.th-page button#th-conditions-toggle:focus #th-conditions-toggle-label {
  color: var(--th-green) !important;
}

/* =============================================================
   COMPARISON TABLE
   ============================================================= */
.th-page .th-compare {
  padding: 64px 100px;
  background: #fff;
}

.th-page .th-compare .th-section-heading {
  margin-bottom: 48px;
}

.th-page .th-compare .th-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* Outer flex grid */
.th-page .th-compare__grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  max-width: 100vw;
  padding-right: 20px;
  padding-left: 20px;
}

/* ----- Shared cell sizing ----- */
/* Regular cell: 20px padding top+bottom + 24px line-height = 64px */
.th-page .th-compare__label,
.th-page .th-compare__cell,
.th-page .th-compare__header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  font-size: 20px !important;
  line-height: 24px !important;
  text-align: center;
  box-sizing: border-box;
}

/* Delivery row is taller */
.th-page .th-compare__label--tall,
.th-page .th-compare__cell--tall {
  min-height: 88px !important;
}

/* ----- Labels column ----- */
.th-page .th-compare__labels {
  flex-shrink: 0;
  width: 193px;
  margin-top: 74px; /* skip the header rows of adjacent columns */
  display: flex;
  flex-direction: column;
}

.th-page .th-compare__label {
  justify-content: flex-start;
  padding-left: 0;
  padding-right: 16px;
  font-family: "Switzer-Regular", sans-serif !important;
  font-weight: 400 !important;
  color: var(--th-gray-900) !important;
  border-bottom: 1px solid var(--th-gray-200);
}

/* ----- Columns ----- */
.th-page .th-compare__col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

/* EasyRx featured column */
.th-page .th-compare__col--featured {
  width: 400px;
  background: var(--th-green);
  border-radius: 24px;
  padding: 4px;
}

.th-page .th-compare__col-inner {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.th-page .th-compare__header--featured {
  background: #c2e7d0;
  border-bottom: 1px solid var(--th-gray-200);
}

.th-page .th-compare__logo {
  height: 30px;
  width: auto;
}

.th-page .th-compare__cell--featured {
  font-family: "Switzer-Semibold", sans-serif !important;
  font-weight: 600 !important;
  color: var(--th-gray-900) !important;
  border-bottom: 1px solid var(--th-gray-200);
}

.th-page .th-compare__col-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
}

.th-page .th-compare__cta-link {
  font-family: "Switzer-Semibold", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
}

/* Other columns */
.th-page .th-compare__col--other {
  width: 319px;
  margin-top: 10px;
  margin-left: 5px;
  border: 1px solid var(--th-gray-200);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.th-page .th-compare__header {
  background: var(--th-gray-100);
  border-bottom: 1px solid var(--th-gray-200);
  font-family: "Switzer-Semibold", sans-serif !important;
  font-weight: 600 !important;
  color: var(--th-gray-900) !important;
}

.th-page .th-compare__col--other .th-compare__cell {
  font-family: "Switzer-Regular", sans-serif !important;
  font-weight: 400 !important;
  color: var(--th-gray-600) !important;
  border-bottom: 1px solid var(--th-gray-200);
}

/* =============================================================
   FAQ — wraps Elementor template
   ============================================================= */
.th-page .th-faq {
  padding: 64px 100px;
  background: var(--th-gray-100);
}

/* =============================================================
   CTA BANNER
   ============================================================= */
.th-page .th-cta {
  padding: 0 100px 64px;
  background: #fff;
}

.th-page .th-cta__inner {
  background: var(--th-green-dark);
  border-radius: var(--th-radius-lg);
  overflow: hidden;
  min-height: 460px;
  position: relative;
  display: flex;
  align-items: center;
}

.th-page .th-cta__content {
  position: relative;
  z-index: 2;
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 620px;
}

.th-page .th-cta__heading {
  font-family: "Switzer-Bold", sans-serif !important;
  font-size: 48px !important;
  line-height: 56px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 !important;
}

.th-page .th-cta__sub {
  font-size: 16px !important;
  line-height: 26px !important;
  color: rgba(255, 255, 255, 0.65) !important;
  margin: 0 !important;
}

.th-page .th-cta__app-links {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
}

.th-page .th-cta__app-link img {
  height: 48px;
  width: auto;
  display: block;
}

.th-page .th-cta__image {
  /* position: absolute;
  right: 0;
  top: 0;
  bottom: 0; */
  height: 460px;
  margin-top: 20px;
  margin-left: auto;
  max-width: 90%;
}

.th-page .th-cta__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  display: block;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1100px) {
  .th-page .th-hero,
  .th-page .th-how,
  .th-page .th-conditions,
  .th-page .th-compare,
  .th-page .th-faq,
  .th-page .th-cta {
    padding-left: 32px;
    padding-right: 32px;
  }

  .th-page .th-container {
    padding-right: 0;
    padding-left: 0;
  }
  

  .th-page .th-hero__heading {
    font-size: 40px !important;
    line-height: 50px !important;
  }
  .th-page .th-section-heading {
    font-size: 44px !important;
    line-height: 52px !important;
  }
  .th-page .th-cta__heading {
    font-size: 40px !important;
    line-height: 50px !important;
  }
  .th-page .th-cta__image {
    /* width: 380px; */
  }

  .th-page .th-how__cards {
    flex-wrap: nowrap;
  }

  .th-page .th-how__card {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
  }

  .th-page .th-how__card-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .th-page .th-conditions__col {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (max-width: 768px) {
  .th-page .th-hero,
  .th-page .th-how,
  .th-page .th-conditions,
  .th-page .th-compare,
  .th-page .th-faq,
  .th-page .th-cta {
    padding-left: 16px;
    padding-right: 16px;
  }

  .th-page .th-hero__inner {
    flex-direction: column;
    min-height: auto;
    border-radius: 16px;
    padding-bottom: 24px;
  }

  .th-page .th-hero__content {
    padding: 40px 24px 0;
    max-width: 100%;
  }

  .th-page .th-hero__heading {
    font-size: 32px !important;
    line-height: 42px !important;
  }

  .th-page .th-section-heading {
    font-size: 32px !important;
    line-height: 40px !important;
  }

  .th-page .th-how__cards {
    flex-wrap: wrap;
  }

  .th-page .th-how__card {
    flex: 1 1 100%;
    width: 100%;
    max-width: 400px;
  }

  .th-page .th-conditions__col {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .th-page .th-compare__row-label,
  .th-page .th-compare__label-col,
  .th-page .th-compare__easyrx-val,
  .th-page .th-compare__other-val {
    font-size: 13px !important;
    padding: 12px 8px;
  }

  .th-page .th-faq__question span {
    font-size: 16px !important;
  }

  .th-page .th-cta__inner {
    flex-direction: column;
    min-height: auto;
    padding-bottom: 0;
  }

  .th-page .th-cta__content {
    padding: 40px 24px;
    max-width: 100%;
  }

  .th-page .th-cta__heading {
    font-size: 32px !important;
    line-height: 42px !important;
  }

  .th-page .th-cta__image {
    /* position: relative;
    width: 100%;
    height: 420px;
    left: 40%; */
  }
}

/* Mobile compare — hidden on desktop/tablet */
.th-page .th-compare__mobile {
  display: none;
}

@media (max-width: 480px) {
  .th-page .th-conditions__col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .th-page .th-cta__image {
    /* left: 20%; */
  }

  .th-page .th-cta__app-links {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Hide desktop table, show mobile cards */
  .th-page .th-compare .th-section-heading,
  .th-page .th-compare__grid {
    display: none;
  }

  .th-page .th-compare__mobile {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px 0;
  }

  .th-page .th-compare__mobile-heading {
    font-family: "Switzer-Semibold", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 28px;
    color: var(--th-gray-900);
    text-align: center;
    margin: 0;
  }

  .th-page .th-compare__mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /* ---- EasyRx featured card ---- */
  .th-page .th-compare__mc--featured {
    background: var(--th-green);
    border-radius: 24px;
    padding: 4px 4px 0;
  }

  .th-page .th-compare__mc-inner {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
  }

  .th-page .th-compare__mc-header--featured {
    background: #c2e7d0;
    border-bottom: 1px solid #eaecf0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
  }

  .th-page .th-compare__mc-logo {
    height: 30px;
    width: auto;
    display: block;
  }

  .th-page .th-compare__mc-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
  }

  .th-page .th-compare__mc-cta .th-compare__cta-link {
    background: transparent;
    border: none;
    color: #fff;
    font-family: "Switzer-Semibold", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    cursor: pointer;
    padding: 0;
  }

  /* ---- Other cards ---- */
  .th-page .th-compare__mc {
    border: 1px solid #eaecf0;
    border-radius: 20px;
    overflow: hidden;
  }

  .th-page .th-compare__mc-header {
    background: var(--th-gray-100);
    border-bottom: 1px solid #eaecf0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
  }

  .th-page .th-compare__mc-header p {
    font-family: "Switzer-Semibold", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    color: var(--th-gray-900);
    text-align: center;
    margin: 0;
  }

  /* ---- Rows ---- */
  .th-page .th-compare__mc-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-bottom: 1px solid #eaecf0;
    text-align: center;
  }

  .th-page .th-compare__mc-row--last {
    border-bottom: none;
  }

  .th-page .th-compare__mc-label {
    font-family: "Switzer-Regular", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--th-gray-900);
    margin: 0;
  }

  .th-page .th-compare__mc-value {
    font-family: "Switzer-Regular", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #475467;
    margin: 0;
  }

  .th-page .th-compare__mc-value--bold {
    font-family: "Switzer-Semibold", sans-serif;
    font-weight: 600;
    color: var(--th-gray-900);
  }
}
