.wor-store-page {
  display: grid;
  gap: 18px;
}

.wor-store-hero {
  border: 1px solid var(--wor-border);
  border-radius: var(--wor-radius-lg);
  background: linear-gradient(145deg, var(--wor-surface), var(--wor-accent-soft));
  box-shadow: var(--wor-shadow);
  padding: 22px;
}

.wor-store-kicker {
  margin: 0 0 6px;
  color: var(--wor-accent);
  font-weight: 800;
}

.wor-store-hero h1 {
  margin: 0 0 8px;
  color: var(--wor-text);
  font-size: clamp(1.45rem, 5vw, 2.35rem);
  line-height: 1.25;
}

.wor-store-hero p:last-child {
  margin: 0;
  color: var(--wor-muted);
  line-height: 1.8;
}

.wor-store-current,
.wor-store-state-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--wor-border);
  border-radius: var(--wor-radius-lg);
  background: color-mix(in srgb, var(--wor-surface-solid) 90%, transparent);
  box-shadow: var(--wor-shadow);
  padding: 18px;
}

.wor-store-state-card--center {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 180px;
}

.wor-store-current span,
.wor-store-state-card p {
  color: var(--wor-muted);
}

.wor-store-current strong,
.wor-store-state-card strong {
  display: block;
  color: var(--wor-text);
  font-size: 1.1rem;
  margin-block: 4px;
}

.wor-store-current p {
  margin: 0;
  color: var(--wor-muted);
  line-height: 1.7;
}

.wor-store-current__pill {
  flex: 0 0 auto;
  border: 1px solid var(--wor-border);
  border-radius: 999px;
  background: var(--wor-accent-soft);
  color: var(--wor-accent) !important;
  padding: 10px 16px;
  font-weight: 900;
}

.wor-store-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
}

.wor-store-plan {
  border: 1px solid var(--wor-border);
  border-radius: var(--wor-radius-lg);
  background: color-mix(in srgb, var(--wor-surface-solid) 92%, transparent);
  box-shadow: var(--wor-shadow);
  padding: 18px;
  min-inline-size: 0;
}

.wor-store-plan__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wor-store-plan h2 {
  margin: 8px 0 0;
  font-size: 1.25rem;
  color: var(--wor-text);
}

.wor-store-plan__price {
  color: var(--wor-text);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.wor-store-plan__price small {
  color: var(--wor-muted);
  font-weight: 800;
}

.wor-store-plan__price b {
  font-size: 1.65rem;
  line-height: 1;
}

.wor-store-plan__badge {
  border: 1px solid var(--wor-border);
  border-radius: 999px;
  background: var(--wor-accent-soft);
  color: var(--wor-accent);
  padding: 7px 11px;
  font-weight: 800;
  white-space: nowrap;
}

.wor-store-plan__desc {
  min-block-size: 48px;
  margin: 18px 0 14px;
  color: var(--wor-muted);
  line-height: 1.7;
}

.wor-store-duration-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-end: 16px;
}

.wor-store-duration {
  border: 1px solid var(--wor-border);
  border-radius: 999px;
  background: var(--wor-surface-soft);
  color: var(--wor-text);
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font: inherit;
}

.wor-store-duration i {
  inline-size: 12px;
  block-size: 12px;
  border: 1px solid var(--wor-border);
  border-radius: 50%;
  background: color-mix(in srgb, var(--wor-muted) 20%, transparent);
}

.wor-store-duration.is-active {
  border-color: var(--wor-accent);
  background: var(--wor-accent-soft);
  color: var(--wor-accent);
}

.wor-store-duration.is-active i {
  border-color: var(--wor-accent);
  background: var(--wor-accent);
  box-shadow: inset 0 0 0 3px var(--wor-surface-solid);
}

.wor-store-buy {
  inline-size: 100%;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--wor-accent), color-mix(in srgb, var(--wor-accent) 62%, var(--wor-text)));
  color: var(--wor-bg);
  min-block-size: 48px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  margin-block: 6px 16px;
}

.wor-store-buy:disabled {
  cursor: not-allowed;
  opacity: .58;
  filter: grayscale(.3);
}

.wor-store-features {
  display: grid;
  gap: 11px;
  list-style: none;
  padding: 16px 0 0;
  margin: 0;
  border-block-start: 1px solid var(--wor-border);
}

.wor-store-features li {
  color: var(--wor-text);
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.6;
}

.wor-store-features li span {
  inline-size: 9px;
  block-size: 9px;
  border-radius: 50%;
  background: var(--wor-accent);
  box-shadow: 0 0 0 4px var(--wor-accent-soft);
  flex: 0 0 auto;
}

.wor-store-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
}

.wor-store-modal[hidden] {
  display: none;
}

.wor-store-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: color-mix(in srgb, var(--wor-bg) 74%, transparent);
  backdrop-filter: blur(12px);
}

.wor-store-modal__panel {
  position: relative;
  z-index: 1;
  inline-size: min(520px, 100%);
  border: 1px solid var(--wor-border);
  border-radius: var(--wor-radius-lg);
  background: var(--wor-surface-solid);
  box-shadow: var(--wor-shadow);
  padding: 20px;
}

.wor-store-modal__close {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  inline-size: 38px;
  block-size: 38px;
  border: 1px solid var(--wor-border);
  border-radius: 50%;
  background: var(--wor-surface-soft);
  color: var(--wor-text);
  font-size: 1.5rem;
  cursor: pointer;
}

.wor-store-modal h2 {
  margin: 0 0 8px;
  color: var(--wor-text);
}

.wor-store-modal p {
  color: var(--wor-muted);
  line-height: 1.8;
  margin: 0 0 14px;
  white-space: pre-line;
}

.wor-store-alert {
  border: 1px solid var(--wor-border);
  border-radius: 16px;
  background: var(--wor-accent-soft);
  color: var(--wor-accent);
  padding: 12px;
  margin-block-end: 14px;
  line-height: 1.7;
}

.wor-store-alert.is-error {
  border-color: color-mix(in srgb, var(--wor-accent) 48%, var(--wor-border));
  background: color-mix(in srgb, var(--wor-accent) 12%, var(--wor-surface-soft));
  color: var(--wor-text);
}

.wor-store-paypal {
  min-block-size: 46px;
}

@media (min-width: 760px) {
  .wor-store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .wor-store-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .wor-store-page *,
  .wor-store-page *::before,
  .wor-store-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Mobile-safe PayPal checkout dialog */
html.wor-store-modal-open,
html.wor-store-modal-open body {
  overflow: hidden;
}

.wor-store-modal {
  align-items: start;
  justify-items: center;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  padding-block: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-bottom));
}

.wor-store-modal__backdrop {
  position: fixed;
}

.wor-store-modal__panel {
  margin-block: auto;
  max-block-size: calc((var(--wor-store-vh, 1vh) * 100) - 36px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.wor-store-paypal {
  overflow: visible;
  inline-size: 100%;
}

.wor-store-paypal iframe {
  max-inline-size: 100% !important;
}

@media (max-width: 640px) {
  .wor-store-modal {
    padding: 0;
    display: block;
  }

  .wor-store-modal__panel {
    inline-size: 100%;
    min-block-size: calc(var(--wor-store-vh, 1vh) * 100);
    max-block-size: calc(var(--wor-store-vh, 1vh) * 100);
    border-radius: 0;
    border-inline: 0;
    padding: 18px;
    padding-block-end: max(28px, env(safe-area-inset-bottom));
  }

  .wor-store-modal h2 {
    padding-inline-end: 48px;
  }

  .wor-store-modal p {
    font-size: .95rem;
  }
}
