:root {
  --gaip-blue: #8b5fd3;
  --gaip-blue-focus: #9f7aea;
  --gaip-ink: #1d1d1f;
  --gaip-muted: #6e6e73;
  --gaip-canvas: #ffffff;
  --gaip-parchment: #f5f5f7;
  --gaip-dark: #17131e;
  --gaip-hairline: #e0e0e0;
}

html,
body {
  background: var(--gaip-parchment) !important;
  color: var(--gaip-ink) !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif !important;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
}

.checkout-nav {
  display: block !important;
  height: 44px;
  background: #000;
  color: #fff;
}

.checkout-nav-inner {
  width: min(760px, calc(100% - 40px));
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  font-size: 12px;
}

.checkout-nav a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.checkout-nav span {
  color: rgba(255, 255, 255, 0.72);
}

.loading {
  background: rgba(245, 245, 247, 0.94) !important;
  color: var(--gaip-ink) !important;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.page,
.page.has-header-image {
  width: min(760px, calc(100% - 40px));
  max-width: 760px;
  padding: 48px 0 72px;
}

.page-stack {
  gap: 16px;
}

.page.has-header-image .page-stack > :not(.hero),
.page.has-header-image .page-footer > * {
  width: 100%;
}

.hero-copy {
  padding: 64px 40px;
  border: 0;
  border-radius: 0;
  background: var(--gaip-canvas) !important;
  box-shadow: none;
}

h1 {
  width: 100%;
  margin: 0 auto;
  color: var(--gaip-ink);
  font-size: clamp(34px, 6vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.lead,
.panel-note,
.product-meta,
.contact-note,
.field-help {
  color: var(--gaip-muted);
}

.section-card {
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--gaip-hairline);
  border-radius: 18px;
  background: var(--gaip-canvas);
}

.section-title,
.payment-section .section-title {
  color: var(--gaip-ink);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.catalog-details-title {
  display: block !important;
}

.sales-status {
  padding: 52px 40px;
  background:
    radial-gradient(circle at 20% 0%, rgba(139, 95, 211, 0.28), transparent 42%),
    radial-gradient(circle at 90% 100%, rgba(215, 180, 106, 0.18), transparent 42%),
    var(--gaip-dark);
  color: #fff;
  text-align: center;
}

.sales-status-label {
  margin: 0 0 12px;
  color: #d7b46a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.sales-status h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.sales-status p:not(.sales-status-label) {
  margin: 18px 0 0;
  color: #ccc;
}

.sales-status a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 11px 22px;
  border-radius: 9999px;
  background: var(--gaip-blue);
  color: #fff;
  text-decoration: none;
}

.sales-status a:active,
.pay-button:active {
  transform: scale(0.95);
}

.application-summary {
  color: var(--gaip-ink);
}

.event-overview {
  gap: 8px;
  padding: 20px;
  border: 1px solid #e5dff0;
  border-radius: 14px;
  background: #f8f6fb;
}

.event-overview-line {
  color: #55505d;
  font-size: 14px;
  line-height: 1.6;
}

.summary-name {
  color: var(--gaip-ink);
  font-size: clamp(30px, 7vw, 42px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.summary-detail-row,
.summary-detail-row.is-total,
.form-stack,
.product-row,
.total-bar,
.event-overview {
  border-color: var(--gaip-hairline);
}

.product-name {
  color: var(--gaip-ink);
  font-size: 17px;
  font-weight: 600;
}

.product-meta {
  font-size: 14px;
}

.field-label {
  color: var(--gaip-ink);
  font-size: 17px;
  font-weight: 600;
}

.req {
  background: var(--gaip-blue);
}

input,
select,
textarea,
.choice {
  border: 1px solid var(--gaip-hairline);
  border-radius: 11px;
  background: var(--gaip-canvas);
  color: var(--gaip-ink);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gaip-blue-focus);
  outline: 2px solid var(--gaip-blue-focus);
  outline-offset: 1px;
}

.payment-widget-empty {
  border: 1px solid var(--gaip-hairline);
  border-radius: 11px;
  background: var(--gaip-parchment);
  color: var(--gaip-muted);
}

.pay-button {
  min-height: 52px;
  border-radius: 9999px;
  background: var(--gaip-blue);
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  box-shadow: none;
}

.pay-button.secondary {
  border-color: var(--gaip-hairline);
  border-radius: 11px;
  background: var(--gaip-canvas);
  color: var(--gaip-ink);
}

.pay-button:disabled {
  background: #d2d2d7;
  color: #6e6e73;
  opacity: 1;
}

.policy-links a,
.contact-note a,
.disney-official-link {
  color: var(--gaip-blue);
}

.page-footer,
.page.is-light-payment-theme .page-footer {
  padding: 40px 24px;
  background: transparent;
  color: var(--gaip-muted);
}

.page.is-light-payment-theme .policy-links a,
.page.is-light-payment-theme .brand-logo-text,
.brand-logo-text {
  color: var(--gaip-ink);
}

.brand-logo-text {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.is-sales-closed .application-summary,
.is-sales-closed .product-qty {
  display: none;
}

.is-sales-closed #itemEditorWrap {
  padding-top: 0;
  border-top: 0;
}

.is-sales-closed .product-row {
  padding: 8px 0 24px;
}

.is-sales-closed .total-bar {
  margin-top: 0;
  padding-top: 24px;
}

@media (max-width: 640px) {
  .checkout-nav-inner,
  .page,
  .page.has-header-image {
    width: calc(100% - 32px);
  }

  .page {
    padding: 24px 0 48px;
  }

  .hero-copy {
    padding: 48px 24px;
  }

  h1 {
    font-size: 34px;
    white-space: normal;
  }

  .section-card {
    padding: 24px 20px;
  }

  .sales-status {
    padding: 44px 24px;
  }

  .sales-status h2 {
    font-size: 30px;
  }
}
