/**
 * HOL Platform Tools - Stylesheet
 * Namespaced classes and responsive design
 */

/* ========================================================================
   Base Styles
   ======================================================================== */

.hol-platform-tools {
  --hol-platform-primary: #222;
  --hol-platform-primary-hover: #000;
  --hol-platform-accent: #555;
  --hol-platform-border: #d9d9d9;
  --hol-platform-border-strong: #8a8a8a;
  --hol-platform-surface: #fff;
  --hol-platform-text: #222;
  --hol-platform-button-text: #fff;
  --hol-platform-focus: #111;
  --hol-platform-muted: #555;
  --hol-platform-subtle: #f6f6f6;
  --hol-platform-warning: #8a5a00;
  --hol-platform-warning-bg: #fff8e6;
  --hol-platform-selector-background: transparent;
  --hol-platform-selector-border-color: transparent;
  --hol-platform-selector-border-radius: 0;
  --hol-platform-selector-shadow: none;
  --hol-platform-heading-text: var(--hol-platform-text);
  --hol-platform-heading-description-text: var(--hol-platform-muted);
  --hol-platform-card-background: var(--hol-platform-surface);
  --hol-platform-card-border-color: var(--hol-platform-border);
  --hol-platform-card-hover-border-color: var(--hol-platform-border-strong);
  --hol-platform-card-shadow: 0 1px 2px rgba(31, 41, 51, 0.06);
  --hol-platform-card-hover-shadow: 0 8px 20px rgba(31, 41, 51, 0.1);
  --hol-platform-card-text: var(--hol-platform-text);
  --hol-platform-card-muted-text: var(--hol-platform-muted);
  --hol-platform-button-background: var(--hol-platform-primary);
  --hol-platform-button-hover-background: var(--hol-platform-primary-hover);
  --hol-platform-button-hover-text: var(--hol-platform-button-text);
  --hol-platform-button-focus-background: var(--hol-platform-primary);
  --hol-platform-button-focus-text: var(--hol-platform-button-text);
  --hol-platform-button-focus-ring: var(--hol-platform-focus);
  --hol-platform-button-active-background: var(--hol-platform-primary-hover);
  --hol-platform-button-active-text: var(--hol-platform-button-text);
  --hol-platform-button-disabled-background: var(--hol-platform-subtle);
  --hol-platform-button-disabled-text: var(--hol-platform-muted);
  --hol-platform-region-background: transparent;
  --hol-platform-region-text: var(--hol-platform-text);
  --hol-platform-region-border-color: var(--hol-platform-border-strong);
  --hol-platform-region-hover-background: var(--hol-platform-subtle);
  --hol-platform-region-hover-text: var(--hol-platform-text);
  --hol-platform-region-hover-border-color: var(--hol-platform-accent);
  --hol-platform-region-focus-background: transparent;
  --hol-platform-region-focus-text: var(--hol-platform-text);
  --hol-platform-region-focus-ring: var(--hol-platform-focus);
  --hol-platform-region-active-background: var(--hol-platform-primary);
  --hol-platform-region-active-text: var(--hol-platform-button-text);
  --hol-platform-region-active-border-color: var(--hol-platform-primary);
  --hol-platform-nonrenew-background: transparent;
  --hol-platform-nonrenew-text: var(--hol-platform-text);
  --hol-platform-nonrenew-border-color: var(--hol-platform-border-strong);
  --hol-platform-nonrenew-hover-background: var(--hol-platform-subtle);
  --hol-platform-nonrenew-hover-text: var(--hol-platform-text);
  --hol-platform-nonrenew-hover-border-color: var(--hol-platform-accent);
  --hol-platform-nonrenew-focus-background: transparent;
  --hol-platform-nonrenew-focus-text: var(--hol-platform-text);
  --hol-platform-nonrenew-focus-ring: var(--hol-platform-focus);
  --hol-platform-nonrenew-active-background: var(--hol-platform-subtle);
  --hol-platform-nonrenew-active-text: var(--hol-platform-text);
  --hol-platform-badge-background: var(--hol-platform-primary);
  --hol-platform-badge-text: var(--hol-platform-button-text);
  --hol-platform-account-panel-background: var(--hol-platform-surface);
  --hol-platform-account-panel-border-color: var(--hol-platform-border);
  --hol-platform-account-panel-shadow: 0 1px 2px rgba(31, 41, 51, 0.06);
  --hol-platform-account-panel-heading-text: var(--hol-platform-text);
  --hol-platform-account-panel-text: var(--hol-platform-muted);
  --hol-platform-account-link-text: var(--hol-platform-text);
  --hol-platform-account-link-hover-text: var(--hol-platform-primary-hover);
  --hol-platform-account-link-background: transparent;
  --hol-platform-account-link-hover-background: var(--hol-platform-subtle);
  color: var(--hol-platform-text);
}

.hol-subscription-selector,
.hol-subscription-account-access,
.hol-platform-tools__setup-needed {
  margin: 2rem 0;
}

.hol-platform-tools__setup-needed {
  max-width: 960px;
}

.hol-subscription-selector,
.hol-subscription-account-access {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}

@supports (container-type: inline-size) {
  .hol-subscription-selector {
    container-type: inline-size;
    container-name: hol-subscription-selector;
  }

  .hol-subscription-account-access {
    container-type: inline-size;
    container-name: hol-subscription-account-access;
  }
}

.hol-subscription-selector {
  padding: 0;
  border: 1px solid var(--hol-platform-selector-border-color);
  border-radius: var(--hol-platform-selector-border-radius);
  background-color: var(--hol-platform-selector-background);
  box-shadow: var(--hol-platform-selector-shadow);
}

.hol-subscription-selector *,
.hol-subscription-selector *::before,
.hol-subscription-selector *::after,
.hol-subscription-account-access *,
.hol-subscription-account-access *::before,
.hol-subscription-account-access *::after {
  box-sizing: border-box;
}

.hol-subscription-selector [hidden],
.hol-subscription-account-access [hidden] {
  display: none !important;
}

.hol-platform-tools__setup-needed {
  padding: 1rem;
  border: 1px solid var(--hol-platform-border);
  border-radius: 0.5rem;
  background-color: var(--hol-platform-subtle);
  color: var(--hol-platform-text);
}

.hol-platform-tools__setup-needed h2 {
  margin: 0 0 0.5rem;
  color: var(--hol-platform-heading-text);
  font-size: 1.25rem;
  line-height: 1.2;
}

.hol-platform-tools__setup-needed p {
  margin: 0;
  color: var(--hol-platform-heading-description-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.hol-subscription-selector__screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hol-subscription-selector button:focus,
.hol-subscription-selector input:focus,
.hol-subscription-selector a:focus,
.hol-subscription-account-access a:focus {
  outline: 3px solid var(--hol-platform-focus);
  outline-offset: 2px;
}

.hol-subscription-selector button:focus:not(:focus-visible),
.hol-subscription-selector input:focus:not(:focus-visible),
.hol-subscription-selector a:focus:not(:focus-visible),
.hol-subscription-account-access a:focus:not(:focus-visible) {
  outline: none;
}

.hol-subscription-selector__header,
.hol-subscription-account-access__header {
  margin-bottom: 1.25rem;
}

.hol-subscription-selector__header h2,
.hol-subscription-account-access__header h2 {
  margin: 0 0 0.5rem 0;
  color: var(--hol-platform-heading-text);
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.2;
}

.hol-subscription-selector__header p,
.hol-subscription-account-access__header p {
  margin: 0;
  color: var(--hol-platform-heading-description-text);
  font-size: 1rem;
  line-height: 1.5;
}

/* ========================================================================
   Region Selector
   ======================================================================== */

.hol-subscription-selector__regions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

.hol-subscription-selector__region-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.625rem 1rem;
  border: 1px solid var(--hol-platform-region-border-color);
  border-radius: 0.375rem;
  background-color: var(--hol-platform-region-background);
  color: var(--hol-platform-region-text);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color 0.16s ease-in-out,
    border-color 0.16s ease-in-out,
    color 0.16s ease-in-out;
  appearance: none;
}

.hol-subscription-selector__region-button:hover {
  border-color: var(--hol-platform-region-hover-border-color);
  background-color: var(--hol-platform-region-hover-background);
  color: var(--hol-platform-region-hover-text);
}

.hol-subscription-selector__region-button.is-active,
.hol-subscription-selector__region-button[aria-pressed="true"] {
  border-color: var(--hol-platform-region-active-border-color);
  background-color: var(--hol-platform-region-active-background);
  color: var(--hol-platform-region-active-text);
}

.hol-subscription-selector__region-button:focus-visible {
  background-color: var(--hol-platform-region-focus-background);
  color: var(--hol-platform-region-focus-text);
  outline: 3px solid var(--hol-platform-region-focus-ring);
  outline-offset: 2px;
}

.hol-subscription-selector__region-button.is-active:focus-visible,
.hol-subscription-selector__region-button[aria-pressed="true"]:focus-visible {
  background-color: var(--hol-platform-region-active-background);
  color: var(--hol-platform-region-active-text);
}

.hol-subscription-selector__region-button svg,
.hol-subscription-selector__nonrenew-toggle svg,
.hol-subscription-selector__plan-button svg,
.hol-subscription-account-access__button svg {
  color: inherit;
  stroke: currentColor;
}

/* ========================================================================
   Gift Toggle
   ======================================================================== */

.hol-subscription-selector__gift-toggle {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: fit-content;
  margin: 1rem 0;
  padding: 0.375rem 0;
  color: var(--hol-platform-text);
  font-size: 0.95rem;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}

.hol-subscription-selector__gift-checkbox {
  width: 1rem;
  height: 1rem;
  accent-color: var(--hol-platform-primary);
  cursor: pointer;
  flex: 0 0 auto;
}

.hol-subscription-selector__gift-checkbox:focus-visible {
  outline: 3px solid var(--hol-platform-focus);
  outline-offset: 2px;
}

.hol-subscription-selector__gift-note {
  padding: 0.75rem 1rem;
  margin: 0.75rem 0 1.25rem 0;
  border: 1px solid rgba(138, 90, 0, 0.25);
  border-left: 4px solid var(--hol-platform-warning);
  border-radius: 0.375rem;
  background-color: var(--hol-platform-warning-bg);
  color: var(--hol-platform-text);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ========================================================================
   Plans Grid
   ======================================================================== */

.hol-subscription-selector__plans,
.hol-subscription-selector__nonrenew-plans {
  display: grid;
  width: 100%;
  max-width: none;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  align-items: stretch;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.hol-subscription-selector__plans > *,
.hol-subscription-selector__nonrenew-plans > * {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.hol-subscription-selector__nonrenew-plans:not([hidden]) {
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .hol-subscription-selector__plans,
  .hol-subscription-selector__nonrenew-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@supports (container-type: inline-size) {
  @container hol-subscription-selector (max-width: 47.99rem) {
    .hol-subscription-selector__plans,
    .hol-subscription-selector__nonrenew-plans {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  @container hol-subscription-selector (min-width: 48rem) {
    .hol-subscription-selector__plans,
    .hol-subscription-selector__nonrenew-plans {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
}

/* ========================================================================
   Plan Card
   ======================================================================== */

.hol-subscription-selector__plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
  align-self: stretch;
  min-height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--hol-platform-card-border-color);
  border-radius: 0.5rem;
  background-color: var(--hol-platform-card-background);
  box-shadow: var(--hol-platform-card-shadow);
  transition:
    border-color 0.16s ease-in-out,
    box-shadow 0.16s ease-in-out,
    transform 0.16s ease-in-out;
}

.hol-subscription-selector__plan-card.is-hidden,
.hol-subscription-selector__plan-card[hidden] {
  display: none !important;
}

.hol-subscription-selector__plan-card:hover {
  border-color: var(--hol-platform-card-hover-border-color);
  box-shadow: var(--hol-platform-card-hover-shadow);
  transform: translateY(-1px);
}

.hol-subscription-selector__plan-card-badge {
  position: absolute;
  top: 0;
  right: 0;
  max-width: calc(100% - 2rem);
  padding: 0.375rem 0.75rem;
  background-color: var(--hol-platform-badge-background);
  color: var(--hol-platform-badge-text);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  border-radius: 0 0.5rem 0 0.5rem;
}

.hol-subscription-selector__plan-card-label {
  margin: 0 0 0.375rem 0;
  padding-right: 4rem;
  color: var(--hol-platform-card-text);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.hol-subscription-selector__plan-card-term,
.hol-subscription-selector__plan-card-renewal,
.hol-subscription-selector__plan-card-price,
.hol-subscription-selector__plan-card-description {
  margin: 0.25rem 0;
  color: var(--hol-platform-card-muted-text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.hol-subscription-selector__plan-card-price {
  color: var(--hol-platform-card-text);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.2;
  margin-top: 0.75rem;
}

.hol-subscription-selector__plan-card-description {
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.hol-subscription-selector__plan-card-status {
  margin: 0.75rem 0 0;
  color: var(--hol-platform-card-muted-text);
  font-size: 0.85rem;
  line-height: 1.4;
}

.hol-subscription-selector__plan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.875rem;
  margin-top: auto;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 0.16s ease-in-out,
    box-shadow 0.16s ease-in-out,
    transform 0.16s ease-in-out;
}

/* Low-specificity visual fallback lets theme .wp-element-button rules win. */
:where(.hol-subscription-selector__plan-button) {
  padding: 0.8125rem 1rem;
  border: none;
  border-radius: 0.375rem;
  background-color: var(--hol-platform-button-background);
  color: var(--hol-platform-button-text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

:where(.hol-subscription-selector__plan-button:hover) {
  background-color: var(--hol-platform-button-hover-background);
  color: var(--hol-platform-button-hover-text);
  text-decoration: none;
}

.hol-subscription-selector__plan-button:hover {
  color: var(--hol-platform-button-hover-text);
  text-decoration: none;
  transform: translateY(-1px);
}

:where(.hol-subscription-selector__plan-button:focus-visible) {
  background-color: var(--hol-platform-button-focus-background);
  color: var(--hol-platform-button-focus-text);
}

.hol-subscription-selector__plan-button:focus-visible {
  color: var(--hol-platform-button-focus-text);
  outline: 3px solid var(--hol-platform-button-focus-ring);
  outline-offset: 2px;
}

:where(.hol-subscription-selector__plan-button:active) {
  background-color: var(--hol-platform-button-active-background);
  color: var(--hol-platform-button-active-text);
}

.hol-subscription-selector__plan-button:active {
  color: var(--hol-platform-button-active-text);
  transform: translateY(0);
}

.hol-subscription-selector__plan-button.is-disabled,
.hol-subscription-selector__plan-button.is-disabled:hover {
  cursor: not-allowed;
  opacity: 0.65;
  pointer-events: none;
  transform: none;
}

:where(.hol-subscription-selector__plan-button.is-disabled),
:where(.hol-subscription-selector__plan-button.is-disabled:hover) {
  background-color: var(--hol-platform-button-disabled-background);
  color: var(--hol-platform-button-disabled-text);
}

.hol-subscription-selector__empty-state {
  margin: 0;
  padding: 1rem;
  border: 1px dashed var(--hol-platform-card-hover-border-color);
  border-radius: 0.5rem;
  background-color: var(--hol-platform-subtle);
  color: var(--hol-platform-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ========================================================================
   Non-Renewing Toggle
   ======================================================================== */

.hol-subscription-selector__nonrenew-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 3rem;
  padding: 1rem 1.125rem;
  border: 1px solid var(--hol-platform-nonrenew-border-color);
  border-radius: 0.375rem;
  background-color: var(--hol-platform-nonrenew-background);
  color: var(--hol-platform-nonrenew-text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.16s ease-in-out,
    border-color 0.16s ease-in-out;
  appearance: none;
}

.hol-subscription-selector__nonrenew-toggle:hover {
  border-color: var(--hol-platform-nonrenew-hover-border-color);
  background-color: var(--hol-platform-nonrenew-hover-background);
  color: var(--hol-platform-nonrenew-hover-text);
}

.hol-subscription-selector__nonrenew-toggle:focus-visible {
  background-color: var(--hol-platform-nonrenew-focus-background);
  color: var(--hol-platform-nonrenew-focus-text);
  outline: 3px solid var(--hol-platform-nonrenew-focus-ring);
  outline-offset: 2px;
}

.hol-subscription-selector__nonrenew-toggle[aria-expanded="true"] {
  background-color: var(--hol-platform-nonrenew-active-background);
  color: var(--hol-platform-nonrenew-active-text);
}

.hol-subscription-selector__nonrenew-toggle::after {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s ease-in-out;
}

.hol-subscription-selector__nonrenew-toggle[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: no-preference) {
  .hol-subscription-selector__nonrenew-toggle::after {
    transition: transform 150ms ease;
  }
}

/* ========================================================================
   Account Access
   ======================================================================== */

.hol-subscription-account-access__sections {
  display: grid;
  width: 100%;
  max-width: none;
  min-width: 0;
  gap: 1rem;
}

@media (min-width: 900px) {
  .hol-subscription-account-access__sections {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

@supports (container-type: inline-size) {
  @container hol-subscription-account-access (max-width: 56.24rem) {
    .hol-subscription-account-access__sections {
      grid-template-columns: 1fr;
      align-items: normal;
    }
  }

  @container hol-subscription-account-access (min-width: 56.25rem) {
    .hol-subscription-account-access__sections {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      align-items: stretch;
    }
  }
}

.hol-subscription-account-access__panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--hol-platform-account-panel-border-color);
  border-radius: 0.5rem;
  background-color: var(--hol-platform-account-panel-background);
  box-shadow: var(--hol-platform-account-panel-shadow);
}

.hol-subscription-account-access__panel h3 {
  margin: 0 0 0.5rem;
  color: var(--hol-platform-account-panel-heading-text);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
}

.hol-subscription-account-access__panel p {
  margin: 0 0 1rem;
  color: var(--hol-platform-account-panel-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.hol-subscription-account-access__actions,
.hol-subscription-account-access__contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  margin-top: auto;
}

.hol-subscription-account-access__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  width: 100%;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 0.16s ease-in-out,
    border-color 0.16s ease-in-out,
    color 0.16s ease-in-out,
    transform 0.16s ease-in-out;
}

:where(.hol-subscription-account-access__button) {
  padding: 0.8125rem 1.25rem;
  border: 1px solid var(--hol-platform-region-border-color);
  border-radius: 0.375rem;
  background-color: var(--hol-platform-region-background);
  color: var(--hol-platform-region-text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

:where(.hol-subscription-account-access__button:hover) {
  border-color: var(--hol-platform-region-hover-border-color);
  background-color: var(--hol-platform-region-hover-background);
  color: var(--hol-platform-region-hover-text);
  text-decoration: none;
}

.hol-subscription-account-access__button:hover {
  color: var(--hol-platform-button-hover-text);
  text-decoration: none;
  transform: translateY(-1px);
}

:where(.hol-subscription-account-access__button--primary) {
  border-color: var(--hol-platform-button-background);
  background-color: var(--hol-platform-button-background);
  color: var(--hol-platform-button-text);
}

:where(.hol-subscription-account-access__button--primary:hover) {
  border-color: var(--hol-platform-button-hover-background);
  background-color: var(--hol-platform-button-hover-background);
  color: var(--hol-platform-button-hover-text);
}

:where(.hol-subscription-account-access__button:focus-visible) {
  background-color: var(--hol-platform-region-focus-background);
  color: var(--hol-platform-region-focus-text);
}

.hol-subscription-account-access__button:focus-visible {
  color: var(--hol-platform-button-focus-text);
  outline: 3px solid var(--hol-platform-focus);
  outline-offset: 2px;
}

:where(.hol-subscription-account-access__button--primary:focus-visible) {
  background-color: var(--hol-platform-button-focus-background);
  color: var(--hol-platform-button-focus-text);
}

.hol-subscription-account-access__button--primary:focus-visible {
  outline-color: var(--hol-platform-button-focus-ring);
}

.hol-subscription-account-access__button:active {
  color: var(--hol-platform-button-active-text);
  transform: translateY(0);
}

:where(.hol-subscription-account-access__button--primary:active) {
  background-color: var(--hol-platform-button-active-background);
  color: var(--hol-platform-button-active-text);
}

.hol-subscription-account-access__contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.375rem;
  background-color: var(--hol-platform-account-link-background);
  color: var(--hol-platform-account-link-text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  transition:
    background-color 0.16s ease-in-out,
    color 0.16s ease-in-out;
}

.hol-subscription-account-access__contact-link:hover {
  background-color: var(--hol-platform-account-link-hover-background);
  color: var(--hol-platform-account-link-hover-text);
}

.hol-subscription-account-access__contact-link:focus-visible {
  outline: 3px solid var(--hol-platform-focus);
  outline-offset: 2px;
}

/* ========================================================================
   Noscript Message
   ======================================================================== */

.hol-subscription-selector__noscript {
  display: block;
  margin-bottom: 1.5rem;
}

.hol-subscription-selector__noscript p {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(138, 90, 0, 0.25);
  border-left: 4px solid var(--hol-platform-warning);
  border-radius: 0.375rem;
  background-color: var(--hol-platform-warning-bg);
  color: var(--hol-platform-text);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ========================================================================
   Responsive Adjustments for Mobile
   ======================================================================== */

@media (max-width: 480px) {
  .hol-subscription-selector,
  .hol-subscription-account-access {
    margin: 1rem 0;
  }

  .hol-subscription-selector__header h2,
  .hol-subscription-account-access__header h2 {
    font-size: 1.25rem;
  }

  .hol-subscription-selector__regions {
    gap: 0.5rem;
  }

  .hol-subscription-selector__region-button {
    flex: 1 1 calc(50% - 0.5rem);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  .hol-subscription-selector__plan-card {
    padding: 1rem;
  }

  .hol-subscription-selector__plan-card-badge {
    position: static;
    align-self: flex-start;
    order: -1;
    max-width: 100%;
    margin-bottom: 0.75rem;
    border-radius: 0.375rem;
  }

  .hol-subscription-selector__plan-card-label {
    padding-right: 0;
  }
}

@supports (container-type: inline-size) {
  @container hol-subscription-selector (max-width: 30rem) {
    .hol-subscription-selector {
      margin: 1rem 0;
    }

    .hol-subscription-selector__header h2 {
      font-size: 1.25rem;
    }

    .hol-subscription-selector__regions {
      gap: 0.5rem;
    }

    .hol-subscription-selector__region-button {
      flex: 1 1 calc(50% - 0.5rem);
      padding: 0.5rem 0.75rem;
      font-size: 0.875rem;
    }

    .hol-subscription-selector__plan-card {
      padding: 1rem;
    }

    .hol-subscription-selector__plan-card-badge {
      position: static;
      align-self: flex-start;
      order: -1;
      max-width: 100%;
      margin-bottom: 0.75rem;
      border-radius: 0.375rem;
    }

    .hol-subscription-selector__plan-card-label {
      padding-right: 0;
    }
  }

  @container hol-subscription-account-access (max-width: 30rem) {
    .hol-subscription-account-access {
      margin: 1rem 0;
    }

    .hol-subscription-account-access__header h2 {
      font-size: 1.25rem;
    }
  }
}
