/*
 * Route-scoped cleanup for the remaining protected-page QA issues.
 * Keep these selectors narrow so the shared main-nav design system remains untouched.
 */

body.redux-route-hcp-bulk-order-history .redux-protected-embed--order-history .redux-order-history-page h1,
body.redux-route-hcp-bulk-order-history .redux-protected-embed--order-history .redux-order-history-page h2,
body.redux-route-hcp-bulk-order-history .redux-protected-embed--order-history .redux-order-history-page h3,
body.redux-route-hcp-bulk-order-history .redux-protected-embed--order-history .redux-order-history-page h4 {
  color: #fff !important;
}

body.redux-route-hcp-bulk-order-history .redux-protected-embed--order-history .redux-order-history-page p,
body.redux-route-hcp-bulk-order-history .redux-protected-embed--order-history .redux-order-history-page li,
body.redux-route-hcp-bulk-order-history .redux-protected-embed--order-history .redux-order-history-page span {
  color: rgba(255, 255, 255, .78) !important;
}

body.redux-route-hcp-bulk-order-history .redux-protected-embed--order-history .redux-order-history-page a:not(.button):not(.rpd-btn),
body.redux-route-hcp-bulk-order-history .redux-protected-embed--order-history .redux-order-history-page button:not(.button):not(.rpd-btn) {
  color: #fff !important;
}

body.redux-route-hcp-professionals .redux-protected-embed--dashboard .rpd-clinic-section {
  margin: 0 0 clamp(34px, 5vw, 56px) !important;
  padding: 0 !important;
}

body.redux-route-hcp-professionals .redux-protected-embed--dashboard .rpd-clinic-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

body.redux-route-hcp-professionals .redux-protected-embed--dashboard .rpd-clinic-card {
  display: grid !important;
  gap: 12px !important;
  min-width: 0 !important;
  padding: clamp(20px, 2.5vw, 28px) !important;
  border: 1px solid var(--rdx-ink-100) !important;
  border-radius: var(--r-md) !important;
  background: #fff !important;
  box-shadow: 0 18px 48px rgba(37, 40, 42, .1) !important;
  color: var(--text-default) !important;
}

body.redux-route-hcp-professionals .redux-protected-embed--dashboard .rpd-clinic-label {
  color: var(--text-muted) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .06em !important;
  line-height: 1.25 !important;
  text-transform: uppercase !important;
}

body.redux-route-hcp-professionals .redux-protected-embed--dashboard .rpd-clinic-value {
  min-height: 46px !important;
  color: var(--text-strong) !important;
  font-size: clamp(18px, 2vw, 24px) !important;
  font-weight: 800 !important;
  line-height: 1.22 !important;
}

body.redux-route-hcp-professionals .redux-protected-embed--dashboard .rpd-clinic-value.rpd-code {
  padding: 10px 12px !important;
  border: 1px solid var(--rdx-blue-100) !important;
  border-radius: 8px !important;
  background: var(--rdx-sky-50) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace !important;
}

body.redux-route-hcp-professionals .redux-protected-embed--dashboard .rpd-clinic-sub-row {
  margin-top: 2px !important;
  padding-top: 12px !important;
  border-top: 1px solid var(--rdx-ink-100) !important;
  color: var(--text-default) !important;
}

body.redux-route-hcp-professionals .redux-protected-embed--dashboard .rpd-clinic-value span,
body.redux-route-hcp-professionals .redux-protected-embed--dashboard .rpd-clinic-sub-row .rpd-link {
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

body.redux-route-hcp-professionals .redux-protected-embed--dashboard .rpd-copy-btn,
body.redux-route-hcp-professionals .redux-protected-embed--dashboard .rpd-copy-inline {
  align-self: start !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  box-shadow: var(--sh-glow-blue) !important;
}

body.redux-route-hcp-professionals .redux-protected-embed--dashboard .rpd-ptr-action {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 38px !important;
  color: var(--rdx-blue-600) !important;
  font-weight: 800 !important;
}

body.redux-route-subscriptions .redux-shortcode-section {
  padding-block: clamp(42px, 6vw, 72px) !important;
}

body.redux-route-subscriptions .redux-shortcode-embed--subscriptions .redux-subscription-grid {
  display: block !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
}

body.redux-route-subscriptions .redux-shortcode-embed--subscriptions .redux-subscription-card {
  display: grid !important;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1fr) !important;
  align-items: center !important;
  gap: clamp(24px, 4vw, 44px) !important;
  padding: clamp(22px, 4vw, 42px) !important;
  border: 1px solid var(--rdx-ink-100) !important;
  border-radius: var(--r-md) !important;
  background: #fff !important;
  box-shadow: 0 18px 48px rgba(37, 40, 42, .1) !important;
  color: var(--text-default) !important;
}

body.redux-route-subscriptions .redux-shortcode-embed--subscriptions .redux-subscription-card__image {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  max-height: 520px !important;
  min-height: 0 !important;
  padding: clamp(20px, 3vw, 32px) !important;
  overflow: hidden !important;
  border: 1px solid var(--rdx-ink-100) !important;
  border-radius: var(--r-md) !important;
  background: linear-gradient(135deg, #f7fbff 0%, #eef6ff 100%) !important;
}

body.redux-route-subscriptions .redux-shortcode-embed--subscriptions .redux-subscription-card__image img {
  display: block !important;
  width: 100% !important;
  max-width: 420px !important;
  max-height: 420px !important;
  height: auto !important;
  object-fit: contain !important;
}

body.redux-route-subscriptions .redux-shortcode-embed--subscriptions .redux-subscription-badge {
  position: absolute !important;
  top: 16px !important;
  left: 16px !important;
  z-index: 1 !important;
}

body.redux-route-subscriptions .redux-shortcode-embed--subscriptions .redux-subscription-card__info {
  display: grid !important;
  align-content: center !important;
  gap: 16px !important;
  min-width: 0 !important;
}

body.redux-route-subscriptions .redux-shortcode-embed--subscriptions .redux-subscription-card__title {
  color: var(--text-strong) !important;
  font-family: var(--route-section-title-font) !important;
  font-size: clamp(28px, 3vw, 42px) !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1.08 !important;
}

body.redux-route-subscriptions .redux-shortcode-embed--subscriptions .redux-subscription-card__description,
body.redux-route-subscriptions .redux-shortcode-embed--subscriptions .redux-bundle-tier__unit,
body.redux-route-subscriptions .redux-shortcode-embed--subscriptions .redux-bundle-tier__savings,
body.redux-route-subscriptions .redux-shortcode-embed--subscriptions .redux-bundle-summary,
body.redux-route-subscriptions .redux-shortcode-embed--subscriptions .redux-bundle-gift {
  color: var(--text-muted) !important;
}

body.redux-route-subscriptions .redux-shortcode-embed--subscriptions .redux-bundle-tiers {
  display: grid !important;
  gap: 12px !important;
}

body.redux-route-subscriptions .redux-shortcode-embed--subscriptions .redux-bundle-tiers__options {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body.redux-route-subscriptions .redux-shortcode-embed--subscriptions .redux-bundle-tier {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: flex-start !important;
  gap: 10px !important;
  min-width: 0 !important;
  padding: 14px !important;
  border: 1px solid var(--rdx-ink-100) !important;
  border-radius: var(--r-md) !important;
  background: var(--rdx-ink-25) !important;
  color: var(--text-default) !important;
}

body.redux-route-subscriptions .redux-shortcode-embed--subscriptions .redux-bundle-tier--recommended {
  border-color: var(--rdx-ink-100) !important;
  background: var(--rdx-ink-25) !important;
}

body.redux-route-subscriptions .redux-shortcode-embed--subscriptions .redux-bundle-tier:has(input:checked) {
  border-color: var(--rdx-blue-500) !important;
  background: var(--rdx-sky-50) !important;
  box-shadow: 0 0 0 1px var(--rdx-blue-500) inset !important;
}

body.redux-route-subscriptions .redux-shortcode-embed--subscriptions .redux-bundle-tier__content {
  display: grid !important;
  gap: 4px !important;
  min-width: 0 !important;
}

body.redux-route-subscriptions .redux-shortcode-embed--subscriptions .redux-bundle-tier__quantity {
  color: var(--text-strong) !important;
  font-weight: 800 !important;
}

body.redux-route-subscriptions .redux-shortcode-embed--subscriptions .redux-bundle-tier__pricing {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px 10px !important;
}

body.redux-route-subscriptions .redux-shortcode-embed--subscriptions .redux-bundle-gift,
body.redux-route-subscriptions .redux-shortcode-embed--subscriptions .redux-bundle-summary {
  padding: 14px 16px !important;
  border: 1px solid var(--rdx-blue-100) !important;
  border-radius: var(--r-md) !important;
  background: var(--rdx-sky-50) !important;
}

body.redux-route-subscriptions .redux-shortcode-embed--subscriptions .redux-bundle-gift {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
}

body.redux-route-subscriptions .redux-shortcode-embed--subscriptions .redux-subscription-card__actions {
  margin-top: 4px !important;
}

@media (max-width: 900px) {
  body.redux-route-subscriptions .redux-shortcode-embed--subscriptions .redux-subscription-card {
    grid-template-columns: 1fr !important;
  }

  body.redux-route-subscriptions .redux-shortcode-embed--subscriptions .redux-subscription-card__image img {
    max-height: 360px !important;
  }

  body.redux-route-subscriptions .redux-shortcode-embed--subscriptions .redux-subscription-card__image {
    max-height: 420px !important;
  }
}

@media (max-width: 760px) {
  body.redux-route-hcp-professionals .redux-protected-embed--dashboard .rpd-clinic-grid,
  body.redux-route-subscriptions .redux-shortcode-embed--subscriptions .redux-bundle-tiers__options {
    grid-template-columns: 1fr !important;
  }

  body.redux-route-hcp-professionals .redux-protected-embed--dashboard .rpd-clinic-card {
    padding: 20px !important;
  }
}
