/* AIPlayCraft purchase-focus UI.
   Keeps browsing useful while reducing competing actions during purchase and checkout. */

:root {
  --purchase-blue: #4285f4;
  --purchase-blue-dark: #174ea6;
  --purchase-blue-soft: #e8f0fe;
  --purchase-green: #137333;
  --purchase-text: #202124;
  --purchase-muted: #5f6368;
  --purchase-border: #dfe3eb;
  --purchase-surface: #ffffff;
  --purchase-bg: #f8faff;
}

/* --------------------------------------------------------------------------
   Program storefront: keep discovery, remove duplicate/competing actions.
   -------------------------------------------------------------------------- */

.programs-page .programs-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.programs-page .programs-hero-grid {
  min-height: 390px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(28px, 5vw, 62px);
  padding-block: 52px 58px;
}

.programs-page .programs-hero-copy h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1;
}

.programs-page .programs-hero-copy > p:not(.pc-eyebrow) {
  max-width: 650px;
  font-size: clamp(16px, 1.6vw, 19px);
}

.programs-page .programs-hero-visual {
  min-height: 270px;
}

.programs-page .programs-stack-card {
  min-height: 104px;
  width: min(300px, 82%);
  padding: 16px 18px;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(60, 64, 67, .09);
}

.programs-page .programs-stack-one { top: 4px; }
.programs-page .programs-stack-two { top: 88px; }
.programs-page .programs-stack-three { bottom: 0; }

.programs-page .programs-catalog {
  padding-top: 66px;
  background: #f8faff;
}

.programs-page .programs-toolbar {
  padding: 18px;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, .05);
}

/* The dropdown filters already cover these same categories. Keeping both sets
   of controls made the store feel noisy and gave every option equal visual
   weight. Preserve Reset as a quiet utility action. */
.programs-page .programs-quick-filters [data-program-quick] {
  display: none !important;
}

.programs-page .programs-quick-filters {
  justify-content: flex-end;
  min-height: 28px;
  margin-top: 8px;
  padding-top: 4px;
  border-top: 0;
}

.programs-page .programs-quick-filters .programs-reset {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 11px;
}

.programs-page .program-grid {
  gap: 18px;
}

.programs-page .program-card {
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(60, 64, 67, .06);
  transform: none;
}

.programs-page .program-card:hover {
  transform: none;
  border-color: #c6d7f4;
  box-shadow: 0 8px 24px rgba(60, 64, 67, .09);
}

.programs-page .program-card-art {
  min-height: 132px;
  padding: 18px;
}

.programs-page .program-card-body {
  padding: 20px;
}

.programs-page .program-card h3 {
  font-size: 20px;
}

.programs-page .program-card-footer {
  align-items: flex-end;
  padding-top: 20px;
  border-top: 1px solid #eef1f5;
  margin-top: 20px;
}

/* One clear next step per program card. The duration button already opens the
   full description, skills, outcomes and price selection dialog. */
.programs-page .program-card-actions [data-view-program] {
  display: none !important;
}

.programs-page .program-card-actions [data-buy-program] {
  min-width: 132px;
  min-height: 42px;
  border-radius: 10px;
}

.programs-page .program-card-price strong {
  font-size: 22px;
}

.programs-page .program-dialog {
  width: min(920px, 100%);
  grid-template-columns: 220px minmax(0, 1fr);
  border-color: #e1e6ef;
  border-radius: 20px;
  box-shadow: 0 24px 72px rgba(32, 33, 36, .24);
}

.programs-page .program-dialog-copy {
  padding: 34px 36px 30px;
}

.programs-page .program-duration-picker {
  border-color: #d5e2f8;
  border-radius: 14px;
  background: #f8fbff;
}

.programs-page .program-dialog-footer {
  margin-top: 24px;
}

.purchase-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #e3e8f0;
  border-radius: 12px;
  color: var(--purchase-muted);
  background: #fafbfc;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
}

.purchase-trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.purchase-trust-strip span::before {
  content: "✓";
  color: var(--purchase-green);
  font-weight: 900;
}

/* --------------------------------------------------------------------------
   Checkout: intentionally quiet. No global navigation competing with payment.
   -------------------------------------------------------------------------- */

.pay-page {
  background: #f7f9fc;
}

.pay-page .production-header {
  border-bottom: 1px solid #e2e6ed;
  background: rgba(255, 255, 255, .98);
  box-shadow: none;
}

.pay-page .production-header .pc-header-inner {
  max-width: 1120px;
  min-height: 72px;
}

.pay-page .production-header .pc-nav,
.pay-page .production-header .pc-nav-toggle {
  display: none !important;
}

.pay-checkout-security {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #3c4043;
}

.pay-checkout-security > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
}

.pay-checkout-security > span::before {
  content: "✓";
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #137333;
  background: #e6f4ea;
  font-size: 12px;
  font-weight: 900;
}

.pay-checkout-security small {
  color: #80868b;
  font-size: 11px;
}

.pay-page .pay-main {
  min-height: calc(100vh - 150px);
  padding: 46px 0 76px;
}

.pay-page .pay-shell {
  max-width: 1040px;
}

.pay-page .pay-heading {
  max-width: 680px;
  margin-bottom: 24px;
}

.pay-page .pay-heading h1 {
  margin: 7px 0 12px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.pay-page .pay-heading > p:last-child {
  font-size: 15px;
  line-height: 1.55;
}

.pay-checkout-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 20px;
  color: #5f6368;
  font-size: 11px;
  font-weight: 700;
}

.pay-checkout-assurance span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pay-checkout-assurance span::before {
  content: "•";
  color: #4285f4;
  font-size: 16px;
  line-height: 1;
}

.pay-page .pay-layout {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  gap: 18px;
}

.pay-page .pay-order-card,
.pay-page .pay-method-card,
.pay-page .pay-state-card {
  border-color: #e0e4eb;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(60, 64, 67, .06);
}

.pay-page .pay-order-card,
.pay-page .pay-method-card {
  padding: 28px;
}

.pay-page .pay-method-card {
  top: 88px;
}

.pay-page .pay-card-head {
  margin-bottom: 18px;
}

.pay-page .pay-card-head h2,
.pay-page .pay-method-card h2,
.pay-page .pay-state-card h2 {
  font-size: clamp(22px, 2.5vw, 30px);
}

.pay-page .pay-status {
  min-height: 26px;
  padding: 5px 8px;
  font-size: 9px;
}

/* Present the order as an invoice/review list instead of a grid of decorative
   tiles. This makes the important facts easier to scan before payment. */
.pay-page .pay-order-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid #eceff3;
}

.pay-page .pay-order-grid > div {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(120px, .7fr) minmax(0, 1.3fr);
  gap: 18px;
  align-items: center;
  padding: 13px 2px;
  border: 0;
  border-bottom: 1px solid #eceff3;
  border-radius: 0;
  background: transparent;
}

.pay-page .pay-order-grid dt {
  color: #7b8088;
  font-size: 10px;
}

.pay-page .pay-order-grid dd {
  margin: 0;
  color: #202124;
  font-size: 14px;
  font-weight: 750;
  text-align: right;
}

.pay-page .pay-order-grid .pay-total-row {
  grid-column: auto;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #d2e3fc;
  border-radius: 12px;
  background: #f5f8ff;
}

.pay-page .pay-order-grid .pay-total-row dt {
  color: #3c4043;
  font-size: 12px;
}

.pay-page .pay-order-grid .pay-total-row dd {
  color: #174ea6;
  font-size: 24px;
}

.pay-page .pay-method-card > div > p:last-child {
  margin-bottom: 0;
  font-size: 13px;
}

.pay-page .pay-methods {
  margin: 20px 0 16px;
}

.pay-page .pay-method-option {
  border-color: #dfe3eb;
  border-radius: 12px;
  box-shadow: none;
}

.pay-page .pay-method-option:has(input:checked) {
  border-color: #aac5f6;
  background: #f7faff;
  box-shadow: 0 0 0 2px rgba(66, 133, 244, .08);
}

/* When only one provider is available, show it as a confirmed method instead
   of asking the customer to make a meaningless radio-button choice. */
.pay-page .pay-method-option:only-child {
  grid-template-columns: 1fr;
  cursor: default;
}

.pay-page .pay-method-option:only-child input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pay-page #pay-submit {
  min-height: 48px;
  border-radius: 10px;
  box-shadow: none;
}

.pay-page #pay-form > small {
  max-width: 300px;
  margin-inline: auto;
  color: #80868b;
  font-size: 10px;
  line-height: 1.45;
}

.pay-page .pay-provider-note {
  border-radius: 10px;
}

.pay-page .pay-state-card {
  max-width: 660px;
}

.pay-page .pay-state-card .pc-actions {
  gap: 8px;
}

.pay-page .pay-state-card .pc-button-secondary {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.pay-page .production-footer {
  border-top-color: #e2e6ed !important;
  background: #f7f9fc !important;
}

.pay-page .production-footer .pc-footer-bottom {
  background: transparent !important;
  border-top: 0 !important;
}

@media (max-width: 860px) {
  .programs-page .programs-hero-grid {
    grid-template-columns: 1fr;
  }

  .programs-page .programs-hero-visual {
    display: none;
  }

  .pay-page .pay-layout {
    grid-template-columns: 1fr;
  }

  .pay-page .pay-method-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .programs-page .program-card-footer {
    align-items: stretch;
  }

  .programs-page .program-card-actions,
  .programs-page .program-card-actions [data-buy-program] {
    width: 100%;
  }

  .programs-page .program-dialog {
    grid-template-columns: 1fr;
  }

  .purchase-trust-strip {
    display: grid;
  }

  .pay-checkout-security small {
    display: none;
  }

  .pay-page .pay-main {
    padding-top: 30px;
  }

  .pay-page .pay-order-card,
  .pay-page .pay-method-card {
    padding: 21px;
  }

  .pay-page .pay-order-grid > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .pay-page .pay-order-grid dd {
    text-align: left;
  }
}
