/**
 * @file
 * Styles for therapist license product page.
 */

:root {
  --tl-gold: #E1C59D;
  --tl-blue: #074948;
  --tl-bg: #F7F5F2;
  --tl-white: #ffffff;
  --tl-text: #202020;
  --tl-text-muted: rgba(32, 32, 32, 0.58);
  --tl-text-faint: rgba(32, 32, 32, 0.40);
  --tl-border: rgba(32, 32, 32, 0.10);
  --tl-success: #27AE60;
}

.commerce-product--therapist-license {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--tl-bg);
  color: var(--tl-text);
}

/* Extend background to full page wrapper via :has() */
.main-wrapper:has(.commerce-product--therapist-license),
.main-wrapper:has(.tp-page) {
  background-color: var(--tl-bg, #F7F5F2);
}

.therapist-license-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px 60px;
}

/* ── Badge ── */
.tl-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--tl-blue);
  margin-bottom: 28px;
}

.tl-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tl-success);
  animation: tl-pulse 2.5s ease-in-out infinite;
}

@keyframes tl-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(39, 174, 96, 0); }
}

/* ── Card ── */
.tl-card {
  width: 100%;
  max-width: 680px;
  background: var(--tl-white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 48px rgba(7, 73, 72, 0.07);
  position: relative;
}

/* ── Promo strip ── */
.tl-promo-strip {
  background: linear-gradient(135deg, var(--tl-blue) 10%, var(--tl-gold) 90%);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 12px;
  margin-bottom: 28px;
  letter-spacing: 0.1px;
}

.tl-promo-strip .tl-date { font-weight: 700; }

/* ── Title ── */
.tl-card-title {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--tl-text);
  margin-bottom: 10px;
}

.tl-card-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--tl-text-muted);
  margin-bottom: 28px;
}

/* ── Divider ── */
.tl-divider {
  height: 1px;
  background: var(--tl-border);
  margin-bottom: 28px;
}

/* ── Pricing ── */
.tl-price-section { margin-bottom: 28px; }

.tl-price-discount {
  display: inline-flex;
  align-items: center;
  background: rgba(39, 174, 96, 0.08);
  color: var(--tl-success);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.tl-price-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.tl-price-col {
  flex: 1;
  background: var(--tl-bg);
  border-radius: 16px;
  padding: 20px 22px;
  text-align: center;
}

.tl-price-old {
  font-size: 15px;
  font-weight: 500;
  color: var(--tl-text-faint);
  text-decoration: line-through;
  margin-bottom: 6px;
}

.tl-price-new {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--tl-blue);
}

.tl-price-label {
  font-size: 12px;
  color: var(--tl-text-faint);
  margin-top: 6px;
}

/* ── Features ── */
.tl-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 28px;
  padding: 0;
}

.tl-feat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--tl-bg);
  border-radius: 14px;
  transition: box-shadow 0.3s, transform 0.3s;
}

.tl-feat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(7, 73, 72, 0.08);
}

.tl-feat:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.tl-feat-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(7, 73, 72, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tl-feat-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--tl-blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tl-feat-text {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--tl-text);
  padding-top: 1px;
}

/* ── CTA buttons ── */
.tl-cta {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}

.tl-cta-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tl-btn-pay {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s ease;
  border: none;
  text-decoration: none;
  background: linear-gradient(135deg, var(--tl-blue) 10%, var(--tl-gold) 90%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(7, 73, 72, 0.25),
              0 2px 8px rgba(225, 197, 157, 0.15);
}

.tl-btn-pay:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(7, 73, 72, 0.35),
              0 4px 16px rgba(225, 197, 157, 0.2);
  color: #fff;
  text-decoration: none;
}

.tl-btn-label {
  font-size: 11px;
  color: var(--tl-text-faint);
  margin-top: 8px;
}

/* ── Post info ── */
.tl-post-info {
  font-size: 12px;
  color: var(--tl-text-faint);
  text-align: center;
  line-height: 1.6;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--tl-border);
}

/* ── Legal ── */
.tl-legal {
  font-size: 11px;
  color: var(--tl-text-faint);
  text-align: center;
  line-height: 1.55;
  margin-top: 16px;
}

.tl-legal a {
  color: var(--tl-blue);
  text-decoration: underline;
  text-decoration-color: rgba(7, 73, 72, 0.2);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}

.tl-legal a:hover {
  text-decoration-color: var(--tl-blue);
}

/* ── Support ── */
.tl-support {
  width: 100%;
  max-width: 680px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--tl-white);
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(7, 73, 72, 0.04);
  transition: box-shadow 0.3s, transform 0.3s;
  text-decoration: none;
  color: inherit;
}

.tl-support:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(7, 73, 72, 0.08);
  text-decoration: none;
  color: inherit;
}

.tl-support-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(7, 73, 72, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tl-support-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--tl-blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tl-support-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--tl-text-muted);
}

.tl-support-email {
  color: var(--tl-blue);
  font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .therapist-license-page { padding: 32px 16px 48px; }

  .tl-card {
    padding: 28px 22px 32px;
    border-radius: 16px;
  }

  .tl-promo-strip { font-size: 12px; }
  .tl-price-row { flex-direction: column; gap: 14px; }
  .tl-features { grid-template-columns: 1fr; }
  .tl-cta { flex-direction: column; }
}
