/* PixelVerseTM checkout + order-received styles */
:root {
  --navy: #0a3a5f;
  --navy-deep: #072b47;
  --blue: #0f8ed3;
  --green: #8db91c;
  --ink: #1d2433;
  --muted: #5b6474;
  --line: #c9d0d9;
  --line-soft: #e3e7ec;
  --panel: #f6f8fa;
  --danger: #c62828;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:focus-visible, button:focus-visible, input[type="checkbox"]:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.co-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.co-ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.co-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.co-header { background: var(--navy); }
.co-header__inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.co-logo img { max-height: 46px; width: auto; }
.co-nav { display: flex; gap: 26px; margin-left: auto; }
.co-nav a { color: #fff; text-decoration: none; font-size: 15px; opacity: .9; }
.co-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.co-call { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 14.5px; padding: 11px 18px; border-radius: 4px; white-space: nowrap; }
.co-call:hover { background: #0b7bb8; }
.co-call svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* ---------- Progress ---------- */
.co-main-wrap { padding-top: 26px; padding-bottom: 64px; }
.co-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 0; margin: 0 0 22px; padding: 0; font-size: 14px; color: var(--muted); }
.co-steps li { display: flex; align-items: center; gap: 8px; }
.co-steps li + li::before { content: ""; width: 36px; height: 1px; background: var(--line); margin: 0 12px; }
.co-steps__num { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center;
  font-size: 12px; font-weight: 600; background: #fff; }
.co-steps .is-done .co-steps__num { background: var(--green); border-color: var(--green); color: #fff; }
.co-steps .is-current { color: var(--ink); font-weight: 600; }
.co-steps .is-current .co-steps__num { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Coupon bar ---------- */
.co-coupon { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 14px 0; margin-bottom: 36px; font-size: 14px; }
.co-coupon > p { display: flex; align-items: center; gap: 6px; margin: 0; flex-wrap: wrap; }
.co-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.co-linkbtn:hover { color: var(--blue); }
.co-linkbtn--sm { font-size: 12.5px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.co-coupon__panel { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; max-width: 520px; }
.co-coupon__panel .co-input { flex: 1 1 220px; }
.co-coupon__msg { flex-basis: 100%; margin: 0; font-size: 13.5px; min-height: 0; }
.co-coupon__msg.is-ok { color: #4f7a06; }
.co-coupon__msg.is-error { color: var(--danger); }
.co-btn-ghost { height: 44px; padding: 0 18px; border: 1px solid var(--navy); background: #fff; color: var(--navy); font: inherit;
  font-weight: 600; border-radius: 4px; cursor: pointer; }
.co-btn-ghost:hover { background: var(--navy); color: #fff; }
.co-btn-ghost:disabled { opacity: .6; cursor: wait; }

/* ---------- Layout ---------- */
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; }
.co-section + .co-section { margin-top: 38px; }
.co-h { font-size: 22px; font-weight: 600; line-height: 1.3; margin: 0 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.co-h--card { border: 0; padding: 0; margin-bottom: 18px; }
.co-hint { margin: -10px 0 18px; font-size: 14px; color: var(--muted); }

/* ---------- Fields ---------- */
.co-field { margin-bottom: 18px; min-width: 0; }
.co-row { display: grid; gap: 0 18px; }
.co-row--2 { grid-template-columns: 1fr 1fr; }
.co-field label, .co-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; }
abbr[title="required"] { color: var(--danger); text-decoration: none; border: 0; cursor: help; }
.co-input { display: block; width: 100%; height: 44px; padding: 0 14px; font: inherit; font-size: 15px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 4px; transition: border-color .15s, box-shadow .15s; }
textarea.co-input { height: auto; padding: 11px 14px; resize: vertical; min-height: 96px; }
select.co-input { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235b6474' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.co-input::placeholder { color: #8a93a3; }
.co-input:focus, .co-stripe.StripeElement--focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(15, 142, 211, .18); }
.co-input--stack { margin-top: 8px; }
.co-input[aria-invalid="true"], .co-stripe.StripeElement--invalid { border-color: var(--danger); }
.co-field__error { margin: 6px 0 0; font-size: 13px; color: var(--danger); }
.co-field__error:empty { display: none; }

/* ---------- Order card ---------- */
.co-order { border: 1px solid var(--line-soft); border-radius: 6px; padding: 22px 20px 20px; background: #fff; }
.co-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.co-table th, .co-table td { padding: 14px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.co-table th { text-align: left; font-weight: 600; }
.co-table td:last-child, .co-table thead th:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.co-table tbody td:first-child, .co-table tfoot th { font-weight: 400; }
.co-table thead th { font-weight: 600; }
.co-table tfoot th { font-weight: 500; }
.co-table__total th, .co-table__total td { font-weight: 700; font-size: 15.5px; }
.co-qty { color: var(--muted); white-space: nowrap; }
.co-fee { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

.co-addons { border: 0; margin: 22px 0 0; padding: 0; }
.co-addons legend { font-size: 15px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.co-addon { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--line-soft);
  border-radius: 6px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.co-addon + .co-addon { margin-top: 8px; }
.co-addon:hover { border-color: var(--line); }
.co-addon.is-on { border-color: var(--blue); background: #f2f9fd; }
.co-addon input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--blue); cursor: pointer; }
.co-addon__name { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.co-addon__desc { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.co-addon__price { font-size: 14px; font-weight: 600; white-space: nowrap; text-align: right; }
.co-addon__price del { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }

/* ---------- Payment ---------- */
.co-pay { margin-top: 24px; }
.co-pay__title { font-size: 14.5px; font-weight: 600; margin: 0 0 10px; }
.co-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 4px; padding: 16px 14px 12px; }
.co-card .co-field { margin-bottom: 14px; }
.co-card .co-row { gap: 0 16px; }
.co-stripe { padding: 13px 14px; height: 46px; cursor: text; }
.co-brands { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.co-brand { display: inline-grid; place-items: center; height: 18px; min-width: 30px; padding: 0 3px; border-radius: 2px; font-size: 7.5px;
  font-weight: 800; letter-spacing: .02em; color: #fff; }
.co-brand--amex { background: #2e77bc; }
.co-brand--disc { background: #4a4a4a; font-size: 6px; }
.co-brand--visa { background: #1a1f71; font-size: 8.5px; font-style: italic; }
.co-brand--mc { position: relative; background: #fff; width: 30px; }
.co-brand--mc i { position: absolute; top: 3px; width: 12px; height: 12px; border-radius: 50%; }
.co-brand--mc i:first-child { left: 5px; background: #eb001b; }
.co-brand--mc i:last-child { left: 12px; background: #f79e1b; mix-blend-mode: multiply; }
.co-card__error { margin: 8px 0 0; font-size: 13px; color: var(--danger); }
.co-card__error:empty { display: none; }

.co-terms { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin: 20px 0 0; font-size: 13px; line-height: 1.5; cursor: pointer; }
.co-terms input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--navy); cursor: pointer; }
.co-terms.has-error span { color: var(--danger); }
.co-privacy { margin: 14px 0 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.co-form-error { margin: 16px 0 0; padding: 11px 14px; font-size: 13.5px; color: var(--danger); background: #fdeeee; border-left: 3px solid var(--danger); border-radius: 2px; }

.co-place { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; margin-top: 18px;
  background: var(--navy); color: #fff; border: 0; border-radius: 4px; font: inherit; font-size: 15px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; cursor: pointer; transition: background-color .15s; }
.co-place:hover { background: var(--navy-deep); }
.co-place:disabled { cursor: wait; opacity: .85; }
.co-place.is-busy::before { content: ""; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff;
  border-radius: 50%; animation: co-spin .8s linear infinite; }
@keyframes co-spin { to { transform: rotate(360deg); } }
.co-secure { display: flex; gap: 7px; align-items: flex-start; margin: 12px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.co-secure .co-ico { width: 14px; height: 14px; margin-top: 1px; }

/* ---------- Order received ---------- */
.ty-head { margin: 8px 0 30px; }
.ty-thanks { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 16px; font-weight: 500; }
.ty-check { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ty-meta { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.ty-meta > div { padding: 2px 16px; border-left: 1px solid var(--line-soft); }
.ty-meta > div:first-child { padding-left: 0; border-left: 0; }
.ty-meta dt { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin-bottom: 4px; }
.ty-meta dd { margin: 0; font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }

.co-panel { border: 1px solid var(--line-soft); border-radius: 6px; overflow: hidden; background: #fff; margin-bottom: 22px; }
.co-panel__head { margin: 0; padding: 16px 20px; font-size: 19px; font-weight: 600; background: var(--panel); border-bottom: 1px solid var(--line-soft); }
.ty-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ty-table th, .ty-table td { padding: 12px 20px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.ty-table td:last-child, .ty-table thead th:last-child { text-align: right; }
.ty-table tfoot th { font-weight: 400; }
.ty-table tfoot tr:last-child th, .ty-table tfoot tr:last-child td { border-bottom: 0; }
.ty-table__total th, .ty-table__total td { font-weight: 700; }

.ty-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.ty-grid .co-panel { margin-bottom: 0; }
.ty-address { display: flex; flex-direction: column; gap: 9px; padding: 18px 20px 20px; font-style: normal; font-size: 14.5px; }
.ty-contact { display: flex; align-items: center; gap: 7px; }
.ty-contact svg { width: 15px; height: 15px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linejoin: round; }
.ty-next { list-style: none; counter-reset: step; margin: 0; padding: 18px 20px 4px; }
.ty-next li { counter-increment: step; position: relative; padding-left: 38px; margin-bottom: 16px; font-size: 14px; }
.ty-next li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 700; display: grid; place-items: center; }
.ty-next strong { display: block; font-size: 14.5px; }
.ty-next span { color: var(--muted); }
.ty-help { margin: 0; padding: 0 20px 18px; font-size: 13.5px; color: var(--muted); }
.ty-help a { color: var(--ink); }

.co-empty { padding: 30px 28px; max-width: 640px; }
.co-empty .co-h { border: 0; padding: 0; margin-bottom: 10px; }
.co-empty p { margin: 0 0 18px; }
.co-btn-primary { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 4px; }
.co-btn-primary:hover { background: var(--navy-deep); }

/* ---------- Footer ---------- */
.co-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .8); font-size: 13.5px; }
.co-footer__inner { padding-top: 22px; padding-bottom: 22px; text-align: center; }
.co-footer p { margin: 4px 0; }
.co-footer a { color: #fff; margin: 0 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .co-grid { grid-template-columns: 1fr; gap: 34px; }
  .co-nav { display: none; }
  .co-call { margin-left: auto; }
  .ty-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .co-header__inner { min-height: 64px; gap: 14px; }
  .co-logo img { max-height: 36px; }
  .co-call span { display: none; }
  .co-call { padding: 10px 12px; }
  .co-row--2 { grid-template-columns: 1fr; }
  .co-card .co-row--2 { grid-template-columns: 1fr 1fr; }
  .co-steps__label { font-size: 13px; }
  .co-steps li + li::before { width: 14px; margin: 0 8px; }
  .co-steps li:not(.is-current) .co-steps__label { display: none; }
  .ty-meta { grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .ty-meta > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .ty-table th, .ty-table td { padding: 11px 14px; }
  .co-order { padding: 18px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .co-place.is-busy::before { animation-duration: 2.4s; }
}
