/* Paying (pay.valu.re). One calm card in the middle, like Apple's checkout. Uses the support
   site's styles.css for the header. */

[data-header="static"] .site-header {
  position: sticky; top: 0; transform: none !important; transition: none;
  background: rgba(255, 255, 255, 0.85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom-color: transparent;
}
body { background: #f5f5f7; }
.pay { min-height: calc(100vh - var(--header-height)); padding: 48px var(--gutter) 96px; box-sizing: border-box; }

.pay-card {
  display: flex; flex-direction: column; max-width: 520px; margin: 0 auto; padding: 32px;
  border-radius: 28px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.pay-title { margin: 28px 0 0; font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
.pay-lead { margin: 10px 0 0; font-size: 1rem; line-height: 1.55; color: #6e6e73; }
.pay-note { margin: 20px 0 0; font-size: 0.875rem; color: #6e6e73; }
.pay-note a, .pay-links a, .pay-links button { color: var(--brand); text-decoration: none; }
.pay-note a:hover, .pay-links a:hover, .pay-links button:hover { text-decoration: underline; text-underline-offset: 3px; }
.pay-links { margin: 18px 0 0; text-align: center; font-size: 0.9375rem; }
.pay-links button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }

/* What you're buying */
.pay-item { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: #f5f5f7; }
.pay-item__art { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--tint) url(/assets/mark.svg) center / 20px no-repeat; }
.pay-item__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pay-item__text strong { font-weight: 600; color: var(--ink); }
.pay-item__text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8125rem; color: #6e6e73; }
.pay-item__price { flex: none; font-weight: 600; color: var(--ink); }

/* Robux or euros */
.pay-options { display: grid; gap: 10px; margin-top: 20px; }
.pay-option {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 14px 18px;
  border: 1px solid #e3e3e8; border-radius: 16px; background: #fff; font: inherit; text-align: left; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pay-option:hover:not(:disabled) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.pay-option:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pay-option:disabled { cursor: default; opacity: 0.55; }
.pay-option__icon {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: #f5f5f7; color: var(--ink); font-weight: 700; font-size: 0.9375rem;
}
.pay-option__icon--robux { background: #e8ebff; color: var(--brand); }
.pay-option__text { flex: 1; display: grid; gap: 2px; }
.pay-option__text strong { font-weight: 600; color: var(--ink); }
.pay-option__text span { font-size: 0.8125rem; color: #6e6e73; }
.pay-option__price { flex: none; font-weight: 600; color: var(--ink); }

/* What happens on Roblox */
.pay-steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.pay-steps li { display: flex; gap: 14px; font-size: 1rem; line-height: 1.5; color: var(--ink); }
.pay-step__n {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: #e8ebff; color: var(--brand); font-size: 0.8125rem; font-weight: 700;
}
.pay-opening { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 28px 0 0; padding: 14px; border-radius: 14px; background: #f5f5f7; color: #6e6e73; font-size: 0.9375rem; }

.pay-button {
  display: inline-flex; align-items: center; justify-content: center; align-self: stretch; min-height: 50px; margin-top: 28px; padding: 0 24px;
  border: 0; border-radius: 14px; background: var(--brand); color: #fff; font: inherit; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.pay-button:hover { background: #0005d1; color: #fff; text-decoration: none; }
.pay-button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* The Valure spinner: a faint ring with an arc that grows and shrinks as it turns */
.pay-spinner { flex: none; display: block; color: var(--brand); animation: pay-spin 1.4s linear infinite; }
.pay-spinner .arc { animation: pay-arc 1.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; }
.pay-spinner--big { margin: 32px auto 0; }
.pay-check { display: grid; place-items: center; width: 52px; height: 52px; margin: 32px auto 0; border-radius: 50%; background: #34c759; }
.pay-check::after { content: ""; width: 18px; height: 9px; margin-top: -5px; border-left: 3.5px solid #fff; border-bottom: 3.5px solid #fff; transform: rotate(-45deg); }
.pay-spinner--big + .pay-title, .pay-check + .pay-title { text-align: center; }
.pay-spinner--big ~ .pay-lead, .pay-check ~ .pay-lead { text-align: center; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
@keyframes pay-arc {
  0% { stroke-dasharray: 1 200; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 115 200; stroke-dashoffset: -40; }
  100% { stroke-dasharray: 1 200; stroke-dashoffset: -163; }
}

.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, #f0f0f3 0%, #f7f7f9 40%, #f0f0f3 80%) 0 0 / 300% 100%; animation: pay-shimmer 1.6s ease-in-out infinite; }
@keyframes pay-shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.is-entering { animation: pay-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes pay-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .pay { padding-top: 16px; }
  .pay-card { padding: 22px; border-radius: 22px; }
  .pay-title { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sk, .is-entering { animation: none; }
  .pay-spinner { animation-duration: 4s; } .pay-spinner .arc { animation-duration: 3.6s; }
}
