/* Generated from assets/scss/pages/checkout.scss by scripts/build-css.mjs. Do not edit; edit the .scss source. */
/* Checkout and order confirmation. Shares the storefront theme tokens
   (--accent, --ink, --muted, --surface, --line...) so light, dark and
   admin-chosen accent colours all apply. */
.pf-co, .pf-oc {
  --co-radius: var(--rf-r-panel, 18px);
  --co-radius-sm: var(--rf-r-control, 12px);
  --co-ok: #0c6a4b;
  --co-ok-bg: #e8f5ee;
  --co-err: #b42318;
  --co-err-bg: #fef3f2;
  --co-warn: #8a4b00;
  --co-warn-bg: #fff6e5;
  --co-link: var(--accent);
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px clamp(16px, 3vw, 32px) 72px;
  color: var(--ink);
}

html[data-theme=dark] :is(.pf-co, .pf-oc) {
  --co-ok: #7ad7b0;
  --co-ok-bg: #12291f;
  --co-err: #fda29b;
  --co-err-bg: #37191a;
  --co-warn: #ffc56b;
  --co-warn-bg: #33250f;
  /* Accent as text on dark surfaces: lift it toward white for 4.5:1+. */
  --co-link: color-mix(in srgb, var(--accent) 50%, #ffffff);
}

.pf-co *, .pf-oc * {
  box-sizing: border-box;
}

.pf-co-muted {
  color: var(--muted);
  font-weight: 400;
}

/* Without JavaScript: card payment is unavailable, so hide its controls and
   always show the server-side Place button. With it: toggle via is-js-hidden. */
html:not(.pf-checkout-js) .pf-co-needs-js, .pf-checkout-js .is-js-hidden {
  display: none !important;
}

/* ---------- Top bar ---------- */
.pf-co__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.pf-co__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.pf-co__back:hover {
  color: var(--ink);
}

.pf-co__secure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.pf-co__secure .bi {
  color: var(--co-ok);
  font-size: 16px;
}

body:not(.pf-admin) .pf-co__title {
  margin: 0 0 24px;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* ---------- Layout ---------- */
.pf-co__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.pf-co__main {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.pf-co-summary {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 96px;
}

/* ---------- Alerts ---------- */
.pf-co-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  padding: 13px 16px;
  border-radius: var(--co-radius-sm);
  background: var(--co-ok-bg);
  color: var(--co-ok);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.pf-co-alert--error {
  background: var(--co-err-bg);
  color: var(--co-err);
}

.pf-co-alert .bi {
  font-size: 17px;
  line-height: 1.25;
  flex-shrink: 0;
}

.pf-co-alert[hidden] {
  display: none;
}

/* ---------- Steps ---------- */
.pf-co-step {
  border: 1px solid var(--line);
  border-radius: var(--co-radius);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pf-co-step.is-current {
  border-color: var(--line2);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px -18px rgba(16, 24, 40, 0.25);
}

.pf-co-step__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  min-height: 72px;
}

.pf-co-step__marker {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid var(--line2);
  color: var(--muted);
  background: var(--surface);
}

.pf-co-step.is-current .pf-co-step__marker {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.pf-co-step.is-done .pf-co-step__marker {
  border-color: var(--co-ok);
  background: var(--co-ok-bg);
  color: var(--co-ok);
  font-size: 17px;
}

.pf-co-step__titles {
  min-width: 0;
  flex: 1;
}

body:not(.pf-admin) .pf-co-step__titles h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.pf-co-step.is-upcoming .pf-co-step__titles h2 {
  color: var(--muted);
}

.pf-co-step__summary {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-co-step.is-current .pf-co-step__summary, .pf-co-step.is-upcoming .pf-co-step__summary {
  display: none;
}

.pf-co-step__edit {
  display: none;
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--co-link);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.pf-co-step__edit:hover {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.pf-co-step.is-done .pf-co-step__edit {
  display: inline-flex;
}

.pf-co-step__body {
  padding: 0 22px 22px 68px;
}

.pf-co-step__body[hidden] {
  display: none;
}

.pf-co-step.is-current .pf-co-step__body {
  animation: pf-co-open 0.22s ease-out;
}

@keyframes pf-co-open {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* ---------- Fields ---------- */
.pf-co-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 14px;
}

.pf-co-grid[hidden] {
  display: none;
}

.pf-co-field {
  display: grid;
  gap: 7px;
  align-content: start;
  min-width: 0;
}

.pf-co-field[hidden] {
  display: none;
}

.pf-co-field--full {
  grid-column: 1/-1;
}

.pf-co-field > label, .pf-co-label {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
}

.pf-co-optional {
  color: var(--muted);
  font-weight: 400;
}

.pf-co-optional[hidden] {
  display: none;
}

.pf-co :is(input[type=text], input[type=email], input[type=tel], select, textarea) {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid var(--line2);
  border-radius: var(--co-radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pf-co textarea {
  resize: vertical;
  min-height: 76px;
}

.pf-co :is(input, select, textarea):hover {
  border-color: color-mix(in srgb, var(--ink) 30%, var(--line2));
}

.pf-co :is(input[type=text], input[type=email], input[type=tel], select, textarea):focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.pf-co :is(input, select, textarea)[aria-invalid=true] {
  border-color: var(--co-err);
}

.pf-co-field small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.pf-co-field small.is-ok {
  color: var(--co-ok);
  font-weight: 600;
}

.pf-co-field small.is-error {
  color: var(--co-err);
  font-weight: 600;
}

.pf-co-inline {
  display: flex;
  gap: 8px;
}

.pf-co-inline input {
  flex: 1;
  min-width: 0;
}

.pf-co-hint {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.pf-co-hint.is-error {
  color: var(--co-err);
}

.pf-co-hint a, .pf-co-summary__head a {
  color: var(--co-link);
  font-weight: 650;
}

/* ---------- Buttons ---------- */
.pf-co-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.pf-co-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 12px 24px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.pf-co-btn:hover {
  background: var(--accent-hover, var(--accent));
  color: #fff;
}

.pf-co-btn:active {
  transform: translateY(1px);
}

.pf-co-btn:disabled {
  opacity: 0.65;
  cursor: progress;
}

.pf-co-btn[hidden] {
  display: none;
}

.pf-co-btn--quiet {
  min-height: 50px;
  padding-inline: 18px;
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line2);
}

.pf-co-btn--quiet:hover {
  background: var(--input-bg);
  color: var(--ink);
  border-color: var(--ink);
}

.pf-co-btn--pay {
  width: 100%;
  min-height: 56px;
  font-size: 16px;
  border-radius: 14px;
}

.pf-co-actions--pay {
  display: grid;
  justify-content: stretch;
}

.pf-co :focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.pf-co-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  animation: pf-co-spin 0.7s linear infinite;
}

@keyframes pf-co-spin {
  to {
    transform: rotate(360deg);
  }
}
/* ---------- Option tiles (delivery + payment) ---------- */
.pf-co-options {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.pf-co-option {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 18px 14px 14px;
  border: 1.5px solid var(--line2);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.pf-co-option[hidden] {
  display: none;
}

.pf-co-option:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line2));
}

.pf-co-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.pf-co-option:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.pf-co-option:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.pf-co-option__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--input-bg);
  color: var(--ink);
  font-size: 20px;
}

.pf-co-option:has(input:checked) .pf-co-option__icon {
  background: var(--accent);
  color: #fff;
}

.pf-co-option__text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.pf-co-option__text strong {
  font-size: 15px;
}

.pf-co-option__text small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.pf-co-option__price {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.pf-co-brands {
  display: flex;
  gap: 5px;
}

.pf-co-brands span {
  padding: 4px 7px;
  border: 1px solid var(--line2);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--surface);
}

.pf-co-address {
  margin-top: 18px;
}

.pf-co-pickupnote {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--co-radius-sm);
  background: var(--input-bg);
}

.pf-co-pickupnote[hidden] {
  display: none;
}

.pf-co-pickupnote .bi {
  color: var(--co-link);
  font-size: 18px;
  margin-top: 1px;
}

.pf-co-pickupnote div {
  display: grid;
  gap: 2px;
  font-size: 14px;
}

.pf-co-pickupnote span {
  color: var(--muted);
}

.pf-co-shiplist {
  display: grid;
  gap: 8px;
}

.pf-co-ship {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 16px;
  border: 1px solid var(--line2);
  border-radius: var(--co-radius-sm);
  cursor: pointer;
}

.pf-co-ship:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.pf-co-ship input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  margin: 0;
}

.pf-co-ship span {
  flex: 1;
}

/* ---------- Wallet ---------- */
.pf-co-wallet {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.pf-co-wallet__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--input-bg);
}

.pf-co-wallet__head div {
  display: grid;
  gap: 1px;
}

.pf-co-wallet__head span {
  color: var(--muted);
  font-size: 13px;
}

.pf-co-wallet__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--co-link);
  font-size: 18px;
}

.pf-co-wallet .pf-co-hint {
  margin: 0;
  padding: 14px 16px;
}

.pf-co-switch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.pf-co-switch > span:first-child {
  display: grid;
  gap: 2px;
}

.pf-co-switch small {
  color: var(--muted);
  font-size: 13px;
}

.pf-co-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.pf-co-switch__track {
  position: relative;
  width: 46px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--line2);
  transition: background-color 0.18s ease;
}

.pf-co-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease;
}

.pf-co-switch input:checked + .pf-co-switch__track {
  background: var(--accent);
}

.pf-co-switch input:checked + .pf-co-switch__track::after {
  transform: translateX(18px);
}

.pf-co-switch input:focus-visible + .pf-co-switch__track {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Payment ---------- */
.pf-co-covered {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--co-ok-bg);
  color: var(--co-ok);
}

.pf-co-covered .bi {
  font-size: 24px;
}

.pf-co-covered div {
  display: grid;
  gap: 2px;
}

.pf-co-covered span {
  color: var(--ink);
  font-size: 14px;
}

.pf-co-paystatus {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--co-radius-sm);
  font-size: 14px;
  line-height: 1.45;
  background: var(--input-bg);
}

.pf-co-paystatus[hidden] {
  display: none;
}

.pf-co-paystatus.is-error {
  background: var(--co-err-bg);
  color: var(--co-err);
}

.pf-co-paystatus.is-warn {
  background: var(--co-warn-bg);
  color: var(--co-warn);
}

.pf-co-paystatus .bi {
  font-size: 18px;
  flex-shrink: 0;
}

.pf-co-paystatus strong {
  display: block;
}

.pf-co-paystatus .pf-co-spinner {
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  border-top-color: var(--accent);
  margin-top: 1px;
}

.pf-co-fineprint {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pf-co-fineprint[hidden] {
  display: none;
}

.pf-co-fineprint .bi {
  color: var(--co-ok);
  margin-top: 1px;
}

/* ---------- Summary ---------- */
.pf-co-summary__toggle {
  display: none;
}

.pf-co-summary__body {
  border: 1px solid var(--line);
  border-radius: var(--co-radius);
  background: var(--surface);
  padding: 22px;
}

.pf-co-summary__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

body:not(.pf-admin) .pf-co-summary__head h2 {
  margin: 0;
  font-size: 18px;
}

.pf-co-summary__head a {
  font-size: 14px;
  text-decoration: none;
}

.pf-co-items {
  list-style: none;
  margin: 0;
  padding: 0 0 16px;
  display: grid;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  max-height: 320px;
  overflow-y: auto;
}

.pf-co-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.pf-co-item__thumb {
  position: relative;
  width: 56px;
  height: 72px;
  border-radius: 10px;
  background: var(--input-bg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.pf-co-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
}

.pf-co-item__qty {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.pf-co-item__body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.pf-co-item__name {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pf-co-item__meta {
  color: var(--muted);
  font-size: 13px;
}

.pf-co-item__price {
  font-weight: 650;
  font-size: 14px;
}

.pf-co-totals {
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.pf-co-totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.pf-co-totals dt {
  color: var(--muted);
}

.pf-co-totals dd {
  margin: 0;
  font-weight: 600;
}

.pf-co-totals .is-saving :is(dt, dd) {
  color: var(--co-ok);
  font-weight: 600;
}

.pf-co-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.pf-co-total > span {
  font-size: 16px;
  font-weight: 650;
}

.pf-co-total strong {
  font-size: 26px;
  letter-spacing: -0.02em;
}

.pf-co-total .pf-co-muted {
  font-size: 13px;
  letter-spacing: 0;
  margin-right: 2px;
}

.pf-co-saved, .pf-co-earn {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.pf-co-saved {
  background: var(--co-ok-bg);
  color: var(--co-ok);
}

.pf-co-earn {
  background: var(--accent-soft);
  color: var(--ink);
}

.pf-co-earn .bi {
  color: var(--co-link);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .pf-co__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .pf-co-summary, .pf-co__main {
    grid-column: 1;
    grid-row: auto;
  }
  .pf-co-summary {
    position: static;
  }
  .pf-co-summary__toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    cursor: pointer;
  }
  .pf-co-summary__toggle > span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--co-link);
    font-weight: 650;
  }
  .pf-co-summary__toggle .bi-chevron-down {
    transition: transform 0.2s ease;
  }
  .pf-co-summary__toggle[aria-expanded=true] .bi-chevron-down {
    transform: rotate(180deg);
  }
  .pf-co-summary__toggle strong {
    font-size: 17px;
  }
  .pf-checkout-js .pf-co-summary__body {
    display: none;
    margin-top: 8px;
  }
  .pf-checkout-js .pf-co-summary.is-open .pf-co-summary__body {
    display: block;
  }
  html:not(.pf-checkout-js) .pf-co-summary__toggle {
    display: none;
  }
}
@media (max-width: 640px) {
  .pf-co, .pf-oc {
    padding-top: 16px;
    padding-bottom: 48px;
  }
  body:not(.pf-admin) .pf-co__title {
    margin-bottom: 16px;
  }
  .pf-co-step__head {
    padding: 16px;
    min-height: 64px;
    gap: 12px;
  }
  .pf-co-step__body {
    padding: 0 16px 18px;
  }
  .pf-co-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .pf-co-actions .pf-co-btn {
    width: 100%;
  }
  .pf-co-option {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 12px 14px 12px 12px;
  }
  .pf-co-option__icon {
    width: 40px;
    height: 40px;
  }
  .pf-co-option__price, .pf-co-brands {
    grid-column: 2;
    justify-self: start;
  }
  .pf-co-summary__body {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pf-co-step.is-current .pf-co-step__body, .pf-oc-hero__check {
    animation: none !important;
  }
}
/* =====================================================================
   Order confirmation
   ===================================================================== */
.pf-oc {
  max-width: 1040px;
}

.pf-oc-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 32px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.pf-oc-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, var(--co-ok)));
}

.pf-oc-hero__check {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--co-ok-bg);
  color: var(--co-ok);
  animation: pf-oc-pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.pf-oc-hero__check svg {
  width: 40px;
  height: 40px;
}

.pf-oc-hero__check path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: pf-oc-draw 0.45s 0.25s ease-out forwards;
}

.pf-oc-hero.is-reserved .pf-oc-hero__check {
  background: var(--co-warn-bg);
  color: var(--co-warn);
}

@keyframes pf-oc-pop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes pf-oc-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pf-oc-hero__check path {
    animation: none;
    stroke-dashoffset: 0;
  }
}
.pf-oc-hero__order {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.pf-oc-hero__order button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.pf-oc-hero__order button:hover {
  border-color: var(--accent);
}

body:not(.pf-admin) .pf-oc-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.pf-oc-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 60ch;
}

.pf-oc-hero p strong {
  color: var(--ink);
}

.pf-oc-hero__actions {
  grid-column: 1/-1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.pf-oc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
}

.pf-oc-btn:hover {
  background: var(--accent-hover, var(--accent));
  color: #fff;
}

.pf-oc-btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line2);
}

.pf-oc-btn--ghost:hover {
  background: var(--input-bg);
  color: var(--ink);
  border-color: var(--ink);
}

.pf-oc-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--co-warn-bg);
  color: var(--co-warn);
  font-size: 14px;
  line-height: 1.5;
}

.pf-oc-banner .bi {
  font-size: 18px;
}

.pf-oc-banner strong {
  display: block;
}

.pf-oc-progress {
  margin-top: 14px;
  padding: 24px 28px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}

body:not(.pf-admin) .pf-oc-progress h2, body:not(.pf-admin) .pf-oc-card h2 {
  margin: 0 0 18px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.pf-oc-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--oc-steps, 4), minmax(0, 1fr));
}

.pf-oc-steps li {
  position: relative;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 8px;
  padding-right: 12px;
  font-size: 14px;
  color: var(--muted);
}

.pf-oc-steps li::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 30px;
  right: 6px;
  height: 2px;
  background: var(--line2);
}

.pf-oc-steps li:last-child::before {
  display: none;
}

.pf-oc-steps li.is-done::before {
  background: var(--co-ok);
}

.pf-oc-steps__dot {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 2px solid var(--line2);
  font-size: 13px;
}

.pf-oc-steps li.is-done .pf-oc-steps__dot {
  background: var(--co-ok);
  border-color: var(--co-ok);
  color: #fff;
}

.pf-oc-steps li.is-current .pf-oc-steps__dot {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.pf-oc-steps li.is-current .pf-oc-steps__dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.pf-oc-steps li :is(strong) {
  color: var(--ink);
  font-weight: 650;
}

.pf-oc-steps li.is-upcoming strong {
  color: var(--muted);
  font-weight: 500;
}

.pf-oc-steps small {
  font-size: 12px;
  color: var(--muted);
}

.pf-oc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}

.pf-oc-col {
  display: grid;
  gap: 14px;
}

.pf-oc-card {
  padding: 24px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.pf-oc-detail {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.pf-oc-detail + .pf-oc-detail {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.pf-oc-detail__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--input-bg);
  color: var(--co-link);
  font-size: 18px;
}

.pf-oc-detail > div > span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 2px;
}

.pf-oc-detail strong {
  display: block;
  font-size: 15px;
  line-height: 1.4;
}

.pf-oc-detail p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
}

.pf-oc-points {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--accent-soft);
}

.pf-oc-points .bi {
  font-size: 26px;
  color: var(--co-link);
}

.pf-oc-points strong {
  display: block;
  font-size: 16px;
}

.pf-oc-points span {
  color: var(--muted);
  font-size: 14px;
}

.pf-oc-account {
  padding: 20px;
  border-radius: 20px;
  border: 1px dashed var(--line2);
}

.pf-oc-account strong {
  display: block;
  margin-bottom: 4px;
}

.pf-oc-account p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.pf-oc-notfound {
  max-width: 560px;
  margin: 40px auto;
  text-align: center;
  padding: 40px 28px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.pf-oc-notfound .bi {
  font-size: 36px;
  color: var(--muted);
}

.pf-oc-notfound p {
  color: var(--muted);
}

@media (max-width: 860px) {
  .pf-oc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .pf-oc-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 26px 20px;
    text-align: left;
    gap: 16px;
  }
  .pf-oc-hero__check {
    width: 60px;
    height: 60px;
  }
  .pf-oc-hero__check svg {
    width: 32px;
    height: 32px;
  }
  .pf-oc-hero__actions .pf-oc-btn {
    flex: 1 1 100%;
  }
  .pf-oc-progress, .pf-oc-card {
    padding: 20px;
  }
  .pf-oc-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .pf-oc-steps li {
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 0;
    padding: 0 0 20px;
  }
  .pf-oc-steps li::before {
    top: 30px;
    bottom: 2px;
    left: 13px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .pf-oc-steps__dot {
    grid-row: 1/span 2;
  }
}
/* =====================================================================
   Order tracking (track-order.php)
   ===================================================================== */
.pf-tr-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.pf-tr-share:hover {
  border-color: var(--ink);
}

.pf-tr-hero {
  position: relative;
  overflow: hidden;
  margin-top: 6px;
  padding: 30px 32px 28px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.pf-tr-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--accent);
}

.pf-tr-hero.is-good::before {
  background: var(--co-ok);
}

.pf-tr-hero.is-bad::before {
  background: var(--co-err);
}

.pf-tr-hero.is-muted::before {
  background: var(--line2);
}

.pf-tr-hero__main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
}

.pf-tr-hero__icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: #fff;
  background: var(--accent);
}

.pf-tr-hero.is-good .pf-tr-hero__icon {
  background: var(--co-ok);
}

.pf-tr-hero.is-bad .pf-tr-hero__icon {
  background: var(--co-err-bg);
  color: var(--co-err);
}

.pf-tr-hero.is-muted .pf-tr-hero__icon {
  background: var(--input-bg);
  color: var(--muted);
}

.pf-tr-hero__meta {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

body:not(.pf-admin) .pf-tr-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.pf-tr-hero__msg {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 56ch;
}

.pf-tr-hero__updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.pf-tr-callout {
  display: grid;
  gap: 6px;
  justify-items: start;
  min-width: 260px;
  max-width: 320px;
  padding: 18px;
  border-radius: 16px;
  background: var(--input-bg);
}

.pf-tr-callout__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pf-tr-callout strong {
  font-size: 16px;
  line-height: 1.35;
}

.pf-tr-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.pf-tr-callout .pf-oc-btn {
  margin-top: 6px;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
  width: 100%;
}

.pf-tr-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.pf-tr-code code {
  font-size: 14px;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  background: none;
  padding: 0;
  color: inherit;
}

.pf-tr-code:hover {
  border-color: var(--accent);
}

.pf-tr-steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(var(--tr-steps, 6), minmax(0, 1fr));
}

.pf-tr-steps li {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  padding: 0 4px;
  text-align: center;
}

.pf-tr-steps li::before {
  content: "";
  position: absolute;
  top: 19px;
  left: calc(-50% + 24px);
  right: calc(50% + 24px);
  height: 3px;
  border-radius: 3px;
  background: var(--line2);
}

.pf-tr-steps li:first-child::before {
  display: none;
}

.pf-tr-steps li.is-done::before, .pf-tr-steps li.is-current::before {
  background: var(--accent);
}

.pf-tr-steps__dot {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 17px;
  background: var(--surface);
  border: 2px solid var(--line2);
  color: var(--muted);
}

.pf-tr-steps li.is-done .pf-tr-steps__dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pf-tr-steps li.is-current .pf-tr-steps__dot {
  border-color: var(--accent);
  color: var(--co-link);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 16%, transparent);
}

.pf-tr-steps__label {
  display: grid;
  gap: 2px;
}

.pf-tr-steps__label strong {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 650;
}

.pf-tr-steps li.is-upcoming strong {
  color: var(--muted);
  font-weight: 500;
}

.pf-tr-steps li.is-current strong {
  color: var(--co-link);
}

.pf-tr-steps small {
  color: var(--muted);
  font-size: 12px;
}

.pf-tr-feed {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pf-tr-feed li {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 22px;
}

.pf-tr-feed li:last-child {
  padding-bottom: 0;
}

.pf-tr-feed li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
}

.pf-tr-feed li:last-child::before {
  display: none;
}

.pf-tr-feed__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--input-bg);
  color: var(--muted);
  font-size: 15px;
}

.pf-tr-feed li.is-latest .pf-tr-feed__dot {
  background: var(--accent);
  color: #fff;
}

.pf-tr-feed__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
  padding-top: 5px;
}

.pf-tr-feed__head strong {
  font-size: 15px;
}

.pf-tr-feed__head time {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.pf-tr-feed p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.pf-oc-account .pf-oc-btn {
  min-height: 44px;
}

@media (max-width: 900px) {
  .pf-tr-hero__main {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .pf-tr-callout {
    grid-column: 1/-1;
    max-width: none;
    min-width: 0;
  }
  .pf-tr-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .pf-tr-steps li {
    grid-template-columns: 40px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    text-align: left;
    gap: 14px;
    padding: 0 0 18px;
  }
  .pf-tr-steps li:last-child {
    padding-bottom: 0;
  }
  .pf-tr-steps li::before {
    display: block;
    top: auto;
    bottom: 100%;
    left: 18px;
    right: auto;
    width: 3px;
    height: 18px;
  }
  .pf-tr-steps li:first-child::before {
    display: none;
  }
  .pf-tr-steps li::after {
    content: none;
  }
}
@media (max-width: 640px) {
  .pf-tr-hero {
    padding: 24px 18px 20px;
  }
  .pf-tr-hero__main {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .pf-tr-hero__icon {
    width: 52px;
    height: 52px;
    font-size: 24px;
    border-radius: 14px;
  }
  .pf-tr-share span {
    display: none;
  }
  .pf-tr-share {
    width: 44px;
    justify-content: center;
    padding: 0;
  }
}
.pf-co-items + .pf-co-total {
  border-top: 0;
  margin-top: 0;
}

/* =====================================================================
   Account order page (order.php). Builds on the tracking styles above.
   ===================================================================== */
.pf-or-topactions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

a.pf-tr-share {
  text-decoration: none;
}

.pf-tr-callout.is-warn {
  background: var(--co-warn-bg);
}

.pf-tr-callout.is-warn .pf-tr-callout__label, .pf-tr-callout.is-warn strong {
  color: var(--co-warn);
}

.pf-or .pf-co-alert {
  margin-top: 14px;
}

.pf-or-itemlink {
  color: var(--ink);
  text-decoration: none;
}

.pf-or-itemlink:hover {
  text-decoration: underline;
}

.pf-or .pf-co-item__thumb {
  text-decoration: none;
}

.pf-or-note {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--input-bg);
  box-shadow: inset 3px 0 0 var(--accent);
}

.pf-or-note + .pf-or-note {
  margin-top: 10px;
}

.pf-or-note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.pf-or-note time {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.pf-or-returns .pf-co-hint {
  margin: 0 0 14px;
}

.pf-or-returns .pf-oc-btn {
  min-height: 46px;
}

.pf-or-link {
  color: var(--co-link);
  font-weight: 650;
  font-size: 14px;
}

.pf-or-return__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  font-size: 15px;
}

.pf-or-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--co-link);
  font-size: 13px;
  font-weight: 650;
}

.pf-or-returnform {
  display: grid;
  gap: 8px;
}

.pf-or-returnform fieldset {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
}

.pf-or-returnform legend, .pf-or-field {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
}

.pf-or-field {
  margin-top: 8px;
}

.pf-or-returnitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.pf-or-returnitem label {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-size: 14px;
}

.pf-or-returnitem small {
  color: var(--muted);
  font-size: 13px;
}

.pf-or-returnform :is(input, select, textarea) {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.pf-or-returnitem input {
  width: 78px;
  flex: none;
  text-align: center;
}

.pf-or-returnform textarea {
  resize: vertical;
  min-height: 88px;
}

.pf-or-returnform :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.pf-or-returnactions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .pf-or-topactions .pf-tr-share span {
    display: none;
  }
  .pf-or-topactions .pf-tr-share {
    width: 44px;
    justify-content: center;
    padding: 0;
  }
  .pf-or-returnactions .pf-oc-btn {
    flex: 1 1 100%;
  }
}
/* Order lookup (track-order.php without a link) */
.pf-tr-lookup {
  max-width: 520px;
  margin: 24px auto;
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  text-align: center;
}

.pf-tr-lookup__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--co-link);
  font-size: 26px;
}

body:not(.pf-admin) .pf-tr-lookup h1 {
  margin: 0 0 6px;
  font-size: clamp(26px, 4vw, 32px);
  letter-spacing: -0.02em;
}

.pf-tr-lookup > p {
  margin: 0 0 20px;
  color: var(--muted);
}

.pf-tr-lookup .pf-co-alert {
  margin-bottom: 16px;
  text-align: left;
}

.pf-tr-lookup__form {
  display: grid;
  gap: 14px;
  text-align: left;
}

.pf-or-field-row {
  display: grid;
  gap: 6px;
}

.pf-or-field-row > label, .pf-tr-lookup__check label {
  font-size: 14px;
  font-weight: 650;
}

.pf-or-field-row small {
  color: var(--muted);
  font-size: 13px;
}

.pf-tr-lookup__form input:not([type=hidden]) {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.pf-tr-lookup__form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.pf-tr-lookup__form .pf-oc-btn {
  width: 100%;
  margin-top: 4px;
}

.pf-tr-lookup__alt {
  margin: 18px 0 0 !important;
  font-size: 14px;
}

.pf-tr-lookup__alt a {
  color: var(--co-link);
  font-weight: 650;
}

@media (max-width: 640px) {
  .pf-tr-lookup {
    padding: 28px 18px;
    margin: 8px auto;
  }
}
/* =====================================================================
   Cart (cart.php)
   ===================================================================== */
.pf-cart2 .pf-co__layout {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.pf-cart2-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.pf-cart2-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.pf-cart2-row__thumb {
  width: 84px;
  height: 108px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--input-bg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.pf-cart2-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pf-cart2-row__info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.pf-cart2-row__meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pf-cart2-row__name {
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.pf-cart2-row__name:hover {
  text-decoration: underline;
}

.pf-cart2-row__cond {
  color: var(--muted);
  font-size: 14px;
}

.pf-cart2-row__stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--co-warn-bg);
  color: var(--co-warn);
  font-size: 12.5px;
  font-weight: 650;
}

.pf-cart2-row__controls {
  display: grid;
  justify-items: center;
  gap: 6px;
}

body:not(.pf-admin) .pf-cart2-stepper {
  display: flex;
  align-items: center;
  height: 44px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

body:not(.pf-admin) .pf-cart2-stepper button {
  width: 40px;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

body:not(.pf-admin) .pf-cart2-stepper button:disabled {
  color: var(--line2);
  cursor: not-allowed;
}

body:not(.pf-admin) .pf-cart2-stepper button:not(:disabled):hover {
  background: var(--input-bg);
}

body:not(.pf-admin) .pf-cart2-stepper input {
  width: 42px;
  height: 100%;
  border: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
  -moz-appearance: textfield;
}

body:not(.pf-admin) .pf-cart2-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

body:not(.pf-admin) .pf-cart2-remove {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  width: auto;
  height: auto;
}

body:not(.pf-admin) .pf-cart2-remove:hover {
  color: var(--co-err);
  background: var(--co-err-bg);
}

.pf-cart2-row__total {
  min-width: 72px;
  text-align: right;
  font-size: 17px;
  font-weight: 700;
}

.pf-cart2-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.pf-cart2-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.pf-cart2-clear:hover {
  color: var(--co-err);
}

.pf-cart2-checkout {
  margin-top: 18px;
  text-decoration: none;
}

.pf-cart2-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.pf-cart2-hint a {
  color: var(--co-link);
  font-weight: 650;
}

.pf-cart2-trust {
  list-style: none;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.pf-cart2-trust li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pf-cart2-trust .bi {
  color: var(--co-ok);
  margin-top: 1px;
}

.pf-cart2-summary .pf-co-totals dd {
  text-align: right;
}

.pf-cart2-empty {
  max-width: 520px;
  margin: 40px auto;
  padding: 44px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  text-align: center;
}

.pf-cart2-empty__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--co-link);
  font-size: 28px;
}

body:not(.pf-admin) .pf-cart2-empty h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

.pf-cart2-empty p {
  margin: 0 0 20px;
  color: var(--muted);
}

.pf-cart2-empty__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .pf-cart2 .pf-co__layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .pf-cart2-summary {
    order: 2;
  }
  .pf-cart2 .pf-co-summary__body {
    display: block !important;
  }
}
@media (max-width: 640px) {
  .pf-cart2-row {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    grid-template-areas: "thumb info total" "thumb controls controls";
    gap: 10px 14px;
    padding: 14px;
  }
  .pf-cart2-row__thumb {
    grid-area: thumb;
    width: 72px;
    height: 92px;
  }
  .pf-cart2-row__info {
    grid-area: info;
  }
  .pf-cart2-row__total {
    grid-area: total;
    align-self: start;
    min-width: 0;
    font-size: 16px;
  }
  .pf-cart2-row__controls {
    grid-area: controls;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}
/* =====================================================================
   Account order history (account.php)
   ===================================================================== */
.pf-orderlist {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.pf-orderlist__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.pf-orderlist__thumbs {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.pf-orderlist__thumbs > span {
  width: 48px;
  height: 62px;
  border-radius: 9px;
  overflow: hidden;
  border: 2px solid var(--surface);
  background: var(--input-bg);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px var(--line);
}

.pf-orderlist__thumbs > span + span {
  margin-left: -18px;
}

.pf-orderlist__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pf-orderlist__more {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.pf-orderlist__main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.pf-orderlist__title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.pf-orderlist__title:hover {
  text-decoration: underline;
}

.pf-orderlist__meta {
  color: var(--muted);
  font-size: 13.5px;
}

.pf-orderlist__status {
  width: fit-content;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 650;
  background: var(--input-bg);
  color: var(--ink);
}

.pf-orderlist__status.is-paid, .pf-orderlist__status.is-completed, .pf-orderlist__status.is-ok {
  background: #e8f5ee;
  color: #0c6a4b;
}

.pf-orderlist__status.is-pending {
  background: #fff4de;
  color: #8a4b00;
}

.pf-orderlist__status.is-cancelled, .pf-orderlist__status.is-err {
  background: #fef3f2;
  color: #b42318;
}

html[data-theme=dark] .pf-orderlist__status.is-paid, html[data-theme=dark] .pf-orderlist__status.is-completed, html[data-theme=dark] .pf-orderlist__status.is-ok {
  background: #12291f;
  color: #7ad7b0;
}

html[data-theme=dark] .pf-orderlist__status.is-pending {
  background: #33250f;
  color: #ffc56b;
}

html[data-theme=dark] .pf-orderlist__status.is-cancelled, html[data-theme=dark] .pf-orderlist__status.is-err {
  background: #37191a;
  color: #fda29b;
}

.pf-orderlist__side {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.pf-orderlist__side strong {
  font-size: 17px;
}

.pf-orderlist__side small {
  color: var(--muted);
  font-size: 12.5px;
}

.pf-orderlist__actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pf-orderlist__btn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.pf-orderlist__btn:hover {
  border-color: var(--ink);
}

.pf-orderlist__btn.is-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

@media (max-width: 700px) {
  .pf-orderlist__item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }
  .pf-orderlist__thumbs {
    grid-column: 1/-1;
  }
  .pf-orderlist__side {
    grid-column: 1/-1;
    grid-template-columns: auto 1fr;
    justify-items: start;
    align-items: center;
    text-align: left;
  }
  .pf-orderlist__actions {
    justify-content: flex-end;
  }
}
.pf-orderlist__status.is-shipped {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--co-link);
}

.pf-orderlist__status.is-refunded {
  background: var(--input-bg);
  color: var(--muted);
}

body:not(.pf-admin) .pf-cart2-stepper {
  width: auto;
  flex: none;
}

@media (max-width: 640px) {
  .pf-cart2-row__controls {
    gap: 8px;
  }
  body:not(.pf-admin) .pf-cart2-stepper {
    width: 132px;
  }
  body:not(.pf-admin) .pf-cart2-remove {
    margin-left: auto;
  }
}
/* =====================================================================
   Pre-orders (preorder.php)
   ===================================================================== */
.pf-po {
  padding-top: 24px;
  padding-bottom: 64px;
}

body:not(.pf-admin) .pf-container.pf-po {
  max-width: 1040px;
}

.pf-po > .pf-co__back {
  margin-bottom: 10px;
}

.pf-po > .pf-co-alert {
  margin-bottom: 14px;
}

.pf-po-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.pf-po-main, .pf-po-side {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.pf-po-main {
  padding: clamp(20px, 3.5vw, 32px);
  min-width: 0;
}

.pf-po-side {
  position: sticky;
  top: 96px;
  padding: 22px;
}

body:not(.pf-admin) .pf-po-side h2 {
  margin: 0 0 12px;
  font-size: 17px;
}

.pf-po-side__note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.pf-po-side__note .bi {
  color: var(--co-ok);
  margin-top: 1px;
}

.pf-po-side .pf-co-totals dd {
  text-align: right;
}

.pf-po-game {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.pf-po-game__thumb {
  width: 96px;
  height: 124px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--input-bg);
  display: grid;
  place-items: center;
}

.pf-po-game__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pf-po-game__eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

body:not(.pf-admin) .pf-po-game h1 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.pf-po-game__release {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--co-link);
  font-size: 13.5px;
  font-weight: 650;
}

.pf-po-form {
  display: grid;
  gap: 18px;
}

.pf-po-legend {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.pf-po-terms {
  list-style: none;
  margin: 0;
  padding: 16px;
  display: grid;
  gap: 10px;
  border-radius: 14px;
  background: var(--input-bg);
}

.pf-po-terms li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

.pf-po-terms .bi {
  color: var(--co-link);
  margin-top: 2px;
}

.pf-po-pay {
  display: grid;
  gap: 10px;
}

.pf-po-pay form {
  margin: 0;
}

.pf-po-credit {
  width: 100%;
}

.pf-po-pay .pf-co-hint {
  margin: 2px 0 0;
  text-align: center;
}

.pf-po-steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pf-po-steps li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.pf-po-steps li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: calc(-50% + 20px);
  right: calc(50% + 20px);
  height: 3px;
  border-radius: 3px;
  background: var(--line2);
}

.pf-po-steps li:first-child::before {
  display: none;
}

.pf-po-steps li:is(.is-done, .is-current)::before {
  background: var(--accent);
}

.pf-po-steps__dot {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--line2);
  background: var(--surface);
}

.pf-po-steps li.is-done .pf-po-steps__dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pf-po-steps li.is-current {
  color: var(--ink);
}

.pf-po-steps li.is-current .pf-po-steps__dot {
  border-color: var(--accent);
  color: var(--co-link);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 15%, transparent);
}

.pf-po-status {
  padding: 20px;
  border-radius: 16px;
  background: var(--input-bg);
  display: grid;
  gap: 12px;
}

body:not(.pf-admin) .pf-po-status h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.pf-po-status > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.pf-po-status > p strong {
  color: var(--ink);
}

.pf-po-status--ready {
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
}

.pf-po-status--cancelled {
  background: var(--input-bg);
}

.pf-po-status .pf-co-total {
  margin-top: 0;
}

.pf-po-totals {
  margin-top: 4px;
}

.pf-po-cancel {
  margin: 14px 0 0;
  text-align: center;
}

.pf-po-cancel__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.pf-po-cancel__btn:hover {
  color: var(--co-err);
  background: var(--co-err-bg);
}

@media (max-width: 860px) {
  .pf-po-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .pf-po-side {
    position: static;
  }
}
@media (max-width: 560px) {
  .pf-po-game {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }
  .pf-po-game__thumb {
    width: 72px;
    height: 94px;
  }
  .pf-po-steps li {
    font-size: 11.5px;
  }
  .pf-po-steps__dot {
    width: 30px;
    height: 30px;
  }
  .pf-po-steps li::before {
    top: 14px;
    left: calc(-50% + 16px);
    right: calc(50% + 16px);
  }
}
/* Pre-order deposit line on orders */
.pf-co-totals .is-deposit :is(dt, dd) {
  color: var(--co-link);
  font-weight: 600;
}

.pf-po-credit {
  flex-wrap: wrap;
  row-gap: 2px;
}

.pf-po-credit .pf-co-muted {
  flex-basis: 100%;
  font-size: 13px;
}
