/* NW Tire Wheel - styles for the cart, checkout, thank-you and policy pages (same look as the rest of the site). */
:root {
  --navy: #111111; --navy-2: #262626; --blue: #d0121b; --blue-dark: #a80e15;
  --ink: #111827; --muted: #5b6475; --bg: #f4f6fa; --card: #ffffff; --line: #e3e7ee;
  --ok: #15803d; --err: #b42318; --radius: 14px; --shadow: 0 10px 30px rgba(11, 18, 32, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--blue-dark); }
img { display: block; max-width: 100%; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 20px; border-radius: 10px;
  font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.1;
  transition: transform .08s ease, background .15s ease, border-color .15s ease; font-family: inherit; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover:not([disabled]) { background: var(--blue-dark); }
.btn-outline { background: #fff; color: var(--ink); border-color: #cfd5df; }
.btn-outline:hover { border-color: var(--ink); }
.btn-block { width: 100%; }

/* Header (identical to the other pages) */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; color: var(--ink); border-bottom: 3px solid var(--blue); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 39px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: #222; text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.header-call { padding: 10px 16px; font-size: 15px; }

.page-title { padding: 28px 0 8px; }
.page-title h1 { margin: 0; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -.01em; }
.page-title p { margin: 6px 0 0; color: var(--muted); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; padding: 16px 0 48px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.panel h2 { margin: 0 0 14px; font-size: 19px; }
.summary { position: sticky; top: 92px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.summary .row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 19px; font-weight: 800; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.free { color: var(--ok); font-weight: 700; }

/* Cart lines */
.line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line:last-child { border-bottom: 0; }
.line img { width: 96px; height: 96px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.line h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.35; }
.line .unit { color: var(--muted); font-size: 14px; }
.line .controls { display: flex; gap: 14px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.line select { padding: 8px 10px; border: 1px solid #cfd5df; border-radius: 8px; font: inherit; background: #fff; min-height: 40px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue-dark); font: inherit; font-weight: 700; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
.line .amount { font-weight: 800; font-size: 17px; white-space: nowrap; }

.notice { border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; font-size: 14px; }
.notice.warn { background: #fff7e6; border: 1px solid #f5d08a; color: #7a4b00; }
.notice.err { background: #fdecea; border: 1px solid #f2b8b5; color: var(--err); }
.notice.ok { background: #e8f6ee; border: 1px solid #a8d8bb; color: #0f5b2d; }
.empty { text-align: center; padding: 48px 20px; }
.empty h2 { margin: 0 0 8px; }

/* Forms */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fields .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.field input, .field select { width: 100%; padding: 11px 12px; border: 1px solid #cfd5df; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); min-height: 46px; }
.field input:focus, .field select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field.bad input, .field.bad select { border-color: var(--err); }
.field .msg { color: var(--err); font-size: 13px; margin-top: 4px; min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sub-h { margin: 22px 0 10px; font-size: 16px; }
.sub-h:first-of-type { margin-top: 0; }
#payment { min-height: 120px; }
.steps { display: flex; gap: 10px; margin: 0 0 16px; font-size: 13px; font-weight: 700; color: var(--muted); }
.steps .on { color: var(--blue); }

.policy h2 { margin: 28px 0 8px; font-size: 20px; }
.policy h2:first-child { margin-top: 0; }
.policy p, .policy li { max-width: 70ch; }

footer { background: var(--navy); color: #b8b8b8; padding: 30px 0; font-size: 14px; margin-top: 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
footer a { color: #e4e4e4; text-decoration: none; }
footer a:hover { color: #fff; }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
.photo-note { font-size: 12px; color: #8f8f8f; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 820px) {
  .site-header .wrap { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding: 8px 0 0; }
  .header-call { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0; gap: 20px; padding-top: 4px; }
  .nav a:not(.nav-keep) { display: none; }
  .brand-logo { height: 32px; }
}
@media (max-width: 520px) {
  .line { grid-template-columns: 72px minmax(0, 1fr); }
  .line img { width: 72px; height: 72px; }
  .line .amount { grid-column: 2; }
  .fields { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
}
