/* ==========================================================================
   PPSR Lookup — checkout, order received and My Account
   ========================================================================== */

body.is-checkout, body.is-thankyou, body.is-account { background: var(--bg-soft); }
.wc-page { padding-block: clamp(20px, 4vw, 40px) clamp(48px, 8vw, 96px); }
.co-muted { color: var(--slate); }

/* Stepper ---------------------------------------------------------------- */
.co-steps { display: flex; justify-content: center; gap: 8px; margin: 0 0 clamp(20px, 4vw, 36px); padding: 0; list-style: none; counter-reset: s; }
.co-steps li { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--slate-2); }
.co-steps li + li::before { content: ""; width: clamp(16px, 5vw, 48px); height: 2px; margin-right: 4px; background: var(--line); border-radius: 2px; }
.co-steps li.is-done + li::before { background: var(--ok); }
.co-steps li > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 0.78rem; background: #fff; border: 2px solid var(--line); }
.co-steps .is-done { color: var(--slate); }
.co-steps .is-done > span { background: var(--ok); border-color: var(--ok); color: #fff; }
.co-steps .is-done .icon { width: 14px; height: 14px; stroke-width: 3; }
.co-steps .is-current { color: var(--ink); }
.co-steps .is-current > span { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 4px rgb(11 18 34 / 10%); }
@media (max-width: 520px) { .co-steps li:not(.is-current) { font-size: 0; gap: 0; } .co-steps li:not(.is-current) > span { font-size: 0.78rem; } }

/* Grid ------------------------------------------------------------------- */
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); gap: clamp(24px, 4vw, 48px); align-items: start; }
.co-main { grid-column: 1; grid-row: 1; display: grid; gap: 16px; min-width: 0; }
.co-aside { grid-column: 2; grid-row: 1; min-width: 0; }
.co-sticky { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
@media (max-width: 960px) {
	.co-grid { grid-template-columns: 1fr; }
	.co-main, .co-aside { grid-column: 1; grid-row: auto; }
	.co-sticky { position: static; }
}

.co-head { padding: 4px 4px 6px; }
.co-title { margin: 0; font: 700 clamp(1.9rem, 4vw, 2.6rem)/1.05 var(--font-display); letter-spacing: -0.03em; }
.co-lede { margin: 10px 0 0; color: var(--slate); font-size: 1.04rem; max-width: 56ch; }

/* Cards ------------------------------------------------------------------ */
.co-card { padding: clamp(20px, 3vw, 28px); background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); animation: co-in 0.6s var(--ease) both; }
.co-card--pay { animation-delay: 0.08s; }
@keyframes co-in { from { opacity: 0; transform: translateY(14px); } }
.co-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.co-card-head h2 { display: flex; align-items: center; gap: 12px; margin: 0; font: 700 1.2rem/1.2 var(--font-display); letter-spacing: -0.01em; }
.co-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--brand); color: var(--ink); font-size: 0.85rem; }
.co-login { font-size: 0.9rem; font-weight: 600; color: var(--green-ink); }

/* Woo form fields -------------------------------------------------------- */
.co-fields .woocommerce-billing-fields__field-wrapper, .co-fields .create-account { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; }
.woocommerce form .form-row, .co-fields .form-row { margin: 0; padding: 0; }
.co-fields .form-row-wide, .co-fields .create-account .form-row { grid-column: 1 / -1; }
.co-fields .form-row-first { grid-column: 1; }
.co-fields .form-row-last { grid-column: 2; }
@media (max-width: 480px) { .co-fields .form-row-first, .co-fields .form-row-last { grid-column: 1 / -1; } }

.woocommerce form .form-row label, .co-fields label { display: block; margin-bottom: 6px; font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.woocommerce form .form-row .required { color: var(--alert); text-decoration: none; border: 0; }
.woocommerce form .form-row .optional { font-weight: 400; color: var(--slate-2); }
.woocommerce-input-wrapper { display: block; position: relative; }
.woocommerce form .input-text, .woocommerce form select, .woocommerce-page form .input-text, .co input[type="email"], .co input[type="text"], .co input[type="tel"], .co input[type="password"] {
	width: 100%; min-height: 52px; padding: 12px 16px;
	font-size: 1rem; color: var(--ink);
	background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
	transition: border-color 0.2s, box-shadow 0.2s;
	-webkit-appearance: none; appearance: none;
}
.woocommerce form .input-text:hover { border-color: #c9d1de; }
.woocommerce form .input-text:focus { outline: 0; border-color: var(--sky); box-shadow: 0 0 0 4px rgb(10 155 234 / 15%); }
.woocommerce form .form-row.woocommerce-invalid .input-text { border-color: var(--alert); box-shadow: 0 0 0 4px rgb(229 72 77 / 12%); }
.woocommerce form .form-row.woocommerce-validated .input-text { border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); }
.woocommerce form .form-row.woocommerce-validated .woocommerce-input-wrapper::after {
	content: ""; position: absolute; right: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%;
	background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
	animation: pop 0.35s var(--ease-spring);
}
.woocommerce form .form-row .description, .co-fields .description { display: block; margin-top: 6px; font-size: 0.82rem; color: var(--slate); }
/* Live field messages (checkout.js) */
.co-field-msg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 7px 0 0; font-size: 0.85rem; line-height: 1.4; color: var(--slate); animation: co-in 0.25s var(--ease); }
.co-field-msg::before { content: ""; width: 16px; height: 16px; flex: none; margin-right: 2px; border-radius: 50%; background: currentColor center / 10px no-repeat; -webkit-mask: radial-gradient(circle, #000 64%, transparent 66%); mask: radial-gradient(circle, #000 64%, transparent 66%); }
.co-hint .co-field-msg { color: var(--slate); }
.co-error .co-field-msg { color: #b42318; }
.co-warn .co-field-msg { color: #93590b; }
.co-ok .co-field-msg { color: #067647; }
.co-field-msg button { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.co-field-msg button:hover { text-decoration-thickness: 2px; }
.form-row.co-warn .input-text { border-color: color-mix(in srgb, var(--warn) 70%, var(--line)); box-shadow: 0 0 0 4px rgb(232 160 26 / 14%); }
.form-row.has-msg .description { display: none; }
.woocommerce form .form-row .checkout-inline-error-message { margin: 7px 0 0; font-size: 0.85rem; color: #b42318; }

/* Payment ---------------------------------------------------------------- */
.co-cards { display: inline-flex; gap: 6px; }
.cc { display: block; width: 38px; height: 24px; border-radius: 5px; background: #fff center / 80% no-repeat; box-shadow: inset 0 0 0 1px var(--line); }
.cc-visa { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 16'%3E%3Ctext x='24' y='13' text-anchor='middle' font-family='Arial,sans-serif' font-weight='900' font-style='italic' font-size='15' fill='%231A1F71'%3EVISA%3C/text%3E%3C/svg%3E"); }
.cc-mc { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 20'%3E%3Ccircle cx='12' cy='10' r='8' fill='%23EB001B'/%3E%3Ccircle cx='20' cy='10' r='8' fill='%23F79E1B' fill-opacity='.9'/%3E%3C/svg%3E"); background-size: 70%; }
.cc-amex { background-color: #1f72cd; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 16'%3E%3Ctext x='24' y='12' text-anchor='middle' font-family='Arial,sans-serif' font-weight='900' font-size='11' fill='white'%3EAMEX%3C/text%3E%3C/svg%3E"); box-shadow: none; }

#payment { background: transparent; }
#payment .wc_payment_methods { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; border: 0; }
#payment .wc_payment_method { position: relative; padding: 0; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
#payment .wc_payment_method:has(> input:checked) { border-color: var(--ink); box-shadow: 0 0 0 3px rgb(11 18 34 / 6%); }
#payment .wc_payment_method > input[type="radio"] { position: absolute; left: 18px; top: 20px; width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
#payment .wc_payment_method > label { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px; margin: 0; padding: 14px 16px 14px 48px; font-weight: 600; cursor: pointer; }
#payment .wc_payment_method > label img { max-height: 24px; width: auto; margin-left: 4px; display: inline-block; }
#payment .payment_box { margin: 0; padding: 4px 16px 18px; background: transparent; font-size: 0.92rem; color: var(--slate); }
#payment .payment_box::before { display: none; }
#payment .payment_box p:first-child { margin-top: 0; }
#payment .payment_box fieldset { margin: 0; padding: 0; border: 0; }
#payment ul.wc_payment_methods li.wc_payment_method:only-child > input[type="radio"] { display: none; }
#payment ul.wc_payment_methods li.wc_payment_method:only-child > label { padding-left: 16px; }
#payment .woocommerce-SavedPaymentMethods { padding: 0; list-style: none; }
#payment .place-order { margin: 0; padding: 0; display: grid; gap: 14px; }

.co-terms { display: grid; gap: 12px; }
.co-disclosure { margin: 0; padding: 0; font-size: 0.625rem; line-height: 1.55; color: var(--slate); background: none; border: 0; }
.co-disclosure a { color: inherit; text-decoration: none; }
.co-disclosure strong { color: var(--ink); }
.woocommerce-privacy-policy-text p { margin: 0; font-size: 0.8rem; color: var(--slate); }
.co-agree label { position: relative; display: flex !important; gap: 12px; align-items: flex-start; margin: 0 !important; font-weight: 400 !important; font-size: 0.76rem !important; line-height: 1.5; color: var(--slate) !important; cursor: pointer; }
.co-agree input[type="checkbox"] { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.co-check { display: grid; place-items: center; width: 22px; height: 22px; flex: none; margin-top: 1px; border: 2px solid #c3cbd8; border-radius: 7px; background: #fff; color: transparent; transition: all 0.2s var(--ease); }
.co-check .icon { width: 14px; height: 14px; stroke-width: 3.5; transform: scale(0.4); transition: transform 0.25s var(--ease-spring); }
.co-agree input:checked + .co-check { background: var(--ink); border-color: var(--ink); color: #fff; }
.co-agree input:checked + .co-check .icon { transform: none; }
.co-agree input:focus-visible + .co-check { outline: 3px solid color-mix(in srgb, var(--sky) 60%, transparent); outline-offset: 2px; }
.co-agree.woocommerce-invalid .co-check { border-color: var(--alert); animation: shake 0.4s; }
.co-agree a { color: var(--ink); font-weight: 600; }

.co-pay { min-height: 62px; font-size: 1.12rem; }
.co-pay .icon { transition: none; }
.processing .co-pay { color: transparent; }
.processing .co-pay::before { content: ""; position: absolute; width: 22px; height: 22px; border: 3px solid rgb(11 18 34 / 25%); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.7s linear infinite; }
.co-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 0.8rem; color: var(--slate); }
.co-trust span { display: inline-flex; align-items: center; gap: 6px; }
.co-trust .icon { width: 15px; height: 15px; color: var(--green-ink); }

/* Aside: vehicle --------------------------------------------------------- */
.co-vehicle { overflow: hidden; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow); animation: co-in 0.6s var(--ease) both; }
.co-vehicle-visual { position: relative; display: grid; place-items: end center; height: 150px; padding: 0 28px 14px; background: radial-gradient(120% 90% at 50% 0%, #1e2944 0%, var(--ink) 70%); overflow: hidden; }
.co-vehicle-grid { position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / 6%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 6%) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(transparent, #000 40%); -webkit-mask-image: linear-gradient(transparent, #000 40%); }
.co-vehicle-visual::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 10px; height: 30px; background: radial-gradient(ellipse, rgb(43 232 162 / 35%), transparent 70%); filter: blur(6px); }
.co-car { position: relative; z-index: 1; width: 100%; max-width: 280px; animation: drive-in 0.9s var(--ease) both 0.15s; }
.co-car .car-shadow { fill: rgb(0 0 0 / 40%); }
@keyframes drive-in { from { opacity: 0; transform: translateX(-60px); } }
.co-vehicle-id { padding: 18px 20px 20px; display: grid; justify-items: start; gap: 8px; }
.co-vehicle-title { margin: 4px 0 0; font: 700 1.3rem/1.2 var(--font-display); letter-spacing: -0.02em; }
/* Vehicle record: register-style, uppercase values, masked tails */
.co-record { width: 100%; margin: 6px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.co-record > div { min-width: 0; padding: 10px 12px; background: var(--bg-soft); }
.co-record dt { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--slate-2); }
.co-record dd { display: flex; align-items: center; gap: 6px; margin: 3px 0 0; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.co-record dd.mono { font-size: 0.86rem; letter-spacing: 0.06em; }
.co-masked { color: var(--slate-2); letter-spacing: 0.04em; }
.co-record dd.mono { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 480px) {
	/* Long values (VIN, vehicle type) get the full width; dense packing keeps the grid tidy. */
	.co-record { grid-auto-flow: row dense; }
	.co-record > .is-wide { grid-column: 1 / -1; }
}
.co-reveal { display: flex; align-items: center; gap: 8px; width: 100%; margin: 4px 0 0; padding: 10px 12px; font-size: 0.86rem; font-weight: 600; color: var(--green-ink); background: color-mix(in srgb, var(--mint) 12%, white); border-radius: 10px; }
.co-reveal .icon { width: 16px; height: 16px; flex: none; }

/* Aside: locked results */
.co-locked { padding: 18px 20px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); animation: co-in 0.6s var(--ease) both 0.06s; }
.co-locked-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.co-locked-h { margin: 0; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); }
.co-locked-count { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; font-size: 0.74rem; font-weight: 700; color: var(--green-ink); background: color-mix(in srgb, var(--mint) 14%, white); border-radius: 999px; }
.co-locked-count .icon { width: 12px; height: 12px; stroke-width: 3; }
.co-locked ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* Locked, not loading: static, with a padlock badge and a redacted value. */
.co-locked li {
	position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1px 10px;
	padding: 10px 34px 10px 10px; background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: 12px;
	transition: border-color 0.2s, background-color 0.2s;
}
.co-locked li:hover { background: #fff; border-color: var(--line); }
.co-locked-ico { grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #fff; color: var(--slate); box-shadow: inset 0 0 0 1px var(--line-2); }
.co-locked-ico .icon { width: 16px; height: 16px; }
.co-locked-name { font-size: 0.84rem; font-weight: 600; line-height: 1.25; }
.co-locked-val { font-size: 0.78rem; font-weight: 600; color: var(--slate); filter: blur(3.5px); user-select: none; -webkit-user-select: none; }
.co-locked-pad { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; }
.co-locked-pad .icon { width: 11px; height: 11px; stroke-width: 2.6; }
.co-locked li:hover .co-locked-pad { animation: lock-nudge 0.5s var(--ease); }
@keyframes lock-nudge { 25% { transform: rotate(-12deg); } 60% { transform: rotate(9deg); } }
.co-locked-val { white-space: nowrap; overflow: hidden; }
@media (max-width: 480px) {
	.co-locked li { grid-template-columns: minmax(0, 1fr); padding: 10px 32px 10px 12px; }
	.co-locked-ico { display: none; }
}

/* Aside: order summary */
.co-order { padding: 20px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); animation: co-in 0.6s var(--ease) both 0.12s; }
.co-order-h { margin: 0 0 14px; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); }
.co-order-toggle { display: none; }
@media (max-width: 960px) {
	.co-order-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 0; border: 0; background: none; font-weight: 600; }
	.co-order-toggle span { display: inline-flex; align-items: center; gap: 6px; color: var(--green-ink); }
	.co-order-toggle .icon { transition: transform 0.3s var(--ease); }
	.co-order-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
	.co-order-toggle strong { font: 700 1.2rem var(--font-display); }
	.co-order-h { display: none; }
	.co-order:not(.is-open) #order_review { display: none; }
	.co-order.is-open #order_review { margin-top: 16px; animation: co-in 0.35s var(--ease); }
}

.co-summary { display: grid; gap: 16px; }
.co-line { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; }
.co-line-ico { width: 40px; height: 40px; border-radius: 11px; }
.co-line-name strong { display: block; font-size: 0.95rem; line-height: 1.3; }
.co-line-name small { font-size: 0.82rem; color: var(--slate); }
.co-line-price { font-weight: 700; }
.co-due { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0; border-block: 1px dashed var(--line); }
.co-due span { font-weight: 600; }
.co-due strong { font: 800 2rem/1 var(--font-display); letter-spacing: -0.03em; }
.co-due strong small, .co-due .includes_tax { display: block; font: 400 0.75rem var(--font-body); color: var(--slate); letter-spacing: 0; text-align: right; }

.co-timeline { position: relative; margin: 0; padding: 0 0 0 22px; list-style: none; display: grid; gap: 14px; }
.co-timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: repeating-linear-gradient(var(--line) 0 4px, transparent 4px 8px); }
.co-timeline li { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 0 12px; font-size: 0.86rem; }
.co-timeline li::before { content: ""; position: absolute; left: -22px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2.5px solid #c3cbd8; }
.co-timeline li.is-now::before { background: var(--mint); border-color: var(--mint); box-shadow: 0 0 0 4px rgb(43 232 162 / 22%); }
.co-timeline b { grid-column: 1; font-weight: 700; }
.co-timeline span { grid-column: 1; color: var(--slate); }
.co-timeline em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-weight: 700; }

.co-breakdown { font-size: 0.88rem; }
.co-breakdown summary { display: inline-flex; align-items: center; gap: 4px; color: var(--slate); font-weight: 600; cursor: pointer; list-style: none; }
.co-breakdown summary::-webkit-details-marker { display: none; }
.co-breakdown summary .icon { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.co-breakdown[open] summary .icon { transform: rotate(180deg); }
.co-breakdown table { width: 100%; margin-top: 10px; border-collapse: collapse; }
.co-breakdown th, .co-breakdown td { padding: 8px 0; border-top: 1px solid var(--line-2); text-align: left; vertical-align: top; font-weight: 400; color: var(--slate); }
.co-breakdown td { text-align: right; color: var(--ink); }
.co-breakdown .order-total th, .co-breakdown .order-total td { font-weight: 700; color: var(--ink); }
.co-breakdown .recurring-totals th { padding-top: 14px; font-weight: 700; color: var(--ink); }

/* Notices ---------------------------------------------------------------- */
.woocommerce-NoticeGroup, .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-error, .woocommerce-message, .woocommerce-info {
	position: relative; margin: 0 0 16px; padding: 14px 16px 14px 48px; list-style: none;
	font-size: 0.94rem; border-radius: 12px; animation: co-in 0.4s var(--ease);
}
.woocommerce-error::before, .woocommerce-message::before, .woocommerce-info::before { content: "!"; position: absolute; left: 16px; top: 14px; display: grid; place-items: center; width: 20px; height: 20px; font-size: 0.78rem; font-weight: 800; border-radius: 50%; color: #fff; }
.woocommerce-error { color: #912018; background: var(--alert-soft); border: 1px solid #f9c9cb; }
.woocommerce-error::before { background: var(--alert); }
.woocommerce-error li + li { margin-top: 6px; }
.woocommerce-error a, .woocommerce-message a, .woocommerce-info a { font-weight: 700; color: inherit; }
.woocommerce-message { color: #05603a; background: var(--ok-soft); border: 1px solid #b7ebcf; }
.woocommerce-message::before { content: "✓"; background: var(--ok); }
.woocommerce-info { color: var(--ink-3); background: #fff; border: 1px solid var(--line); }
.woocommerce-info::before { content: "i"; background: var(--sky); }
.woocommerce-error .button, .woocommerce-message .button, .woocommerce-info .button { float: right; margin-left: 12px; font-weight: 700; text-decoration: underline; background: none; border: 0; padding: 0; color: inherit; }

/* Order received --------------------------------------------------------- */
.ty { max-width: 720px; margin-inline: auto; }
.ty-card { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 48px); text-align: center; background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); animation: co-in 0.6s var(--ease) both; }
.ty-check { width: 76px; height: 76px; margin: 0 auto 18px; display: block; }
.ty-check circle { fill: var(--ok-soft); stroke: var(--ok); stroke-width: 3; stroke-dasharray: 202; stroke-dashoffset: 202; animation: draw 0.7s var(--ease) forwards 0.2s; }
.ty-check path { fill: none; stroke: var(--ok); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw 0.45s var(--ease) forwards 0.75s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ty-confetti { position: absolute; inset: 0; pointer-events: none; }
.ty-confetti i { position: absolute; top: -12px; left: calc(var(--i) * 5.6% + 2%); width: 8px; height: 14px; border-radius: 2px; background: var(--mint); opacity: 0; animation: confetti 2.4s var(--ease) forwards; animation-delay: calc(var(--i) * 45ms + 0.6s); }
.ty-confetti i:nth-child(3n) { background: var(--sky); }
.ty-confetti i:nth-child(4n) { background: var(--warn); width: 6px; height: 6px; border-radius: 50%; }
@keyframes confetti { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(320px) rotate(540deg); } }
.ty-title { margin: 0; font: 700 clamp(1.8rem, 4vw, 2.4rem)/1.1 var(--font-display); letter-spacing: -0.03em; }
.ty-lede { margin: 12px auto 28px; max-width: 48ch; color: var(--slate); }
.ty-badge { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; }
.ty-badge--err { background: var(--alert-soft); color: var(--alert); }
.ty-badge .icon { width: 30px; height: 30px; }
.ty-report { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 18px; padding: 16px 18px; text-align: left; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-lg); }
.ty-kicker { display: block; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate-2); }
.ty-report-body strong { display: block; font: 700 1.1rem/1.25 var(--font-display); }
.ty-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 0.86rem; font-weight: 600; color: var(--ok); }
.ty-spin { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--sky); border-radius: 50%; animation: spin 0.7s linear infinite; }
.ty-report [aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.ty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.ty-tile { display: grid; justify-items: center; gap: 2px; padding: 16px 10px; border: 1px solid var(--line-2); border-radius: var(--r); }
.ty-tile .icon { margin-bottom: 6px; color: var(--green-ink); }
.ty-tile b { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-2); }
.ty-tile span { font-weight: 700; }
.ty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.ty-note { margin: 22px 0 0; font-size: 0.84rem; color: var(--slate); }
@media (max-width: 560px) {
	.ty-report { grid-template-columns: 80px 1fr; }
	.ty-report .btn { grid-column: 1 / -1; }
	.ty-grid { grid-template-columns: 1fr; }
}

/* My Account ------------------------------------------------------------- */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-MyAccount-navigation ul { margin: 0; padding: 8px; list-style: none; display: grid; gap: 2px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: 10px; font-weight: 500; text-decoration: none; color: var(--slate); transition: background-color 0.2s, color 0.2s; }
.woocommerce-MyAccount-navigation a:hover { background: var(--bg-soft); color: var(--ink); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: #fff; }
.woocommerce-MyAccount-content { min-width: 0; padding: clamp(20px, 3vw, 32px); background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.woocommerce-MyAccount-content table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.woocommerce-MyAccount-content th, .woocommerce-MyAccount-content td { padding: 12px 8px; text-align: left; border-bottom: 1px solid var(--line-2); }
.woocommerce-MyAccount-content .button, .woocommerce .button, .woocommerce button.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; font-weight: 600; color: #fff; background: var(--ink); border: 0; border-radius: 12px; text-decoration: none; cursor: pointer; }
.woocommerce-MyAccount-content .button:hover, .woocommerce .button:hover { background: var(--ink-3); }
.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content { min-width: 0; }
.woocommerce-MyAccount-content > p:first-child { margin-top: 0; }
@media (max-width: 800px) {
	/* minmax(0, 1fr) stops the scrolling tab strip from widening the page. */
	.woocommerce-account .woocommerce { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.woocommerce-MyAccount-navigation { position: relative; margin-inline: calc(var(--gutter) * -1); }
	.woocommerce-MyAccount-navigation::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 40px; background: linear-gradient(90deg, transparent, var(--bg-soft)); pointer-events: none; }
	.woocommerce-MyAccount-navigation ul { display: flex; gap: 6px; padding: 2px var(--gutter); overflow-x: auto; background: none; border: 0; border-radius: 0; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); }
	.woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
	.woocommerce-MyAccount-navigation li { scroll-snap-align: start; }
	.woocommerce-MyAccount-navigation a { white-space: nowrap; padding: 9px 14px; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.92rem; }
	.woocommerce-MyAccount-navigation .is-active a { border-color: var(--ink); }
	.woocommerce-MyAccount-content { padding: 18px; }
	.woocommerce-MyAccount-content table { display: block; overflow-x: auto; }
	.acc-list a { padding: 12px; gap: 10px; }
	.acc-list .pill { display: none; }
}

/* Logged-out account page: login form */
.woocommerce-account:not(.logged-in) .woocommerce { display: block; max-width: 440px; margin-inline: auto; }
.woocommerce-account:not(.logged-in) .woocommerce > h2 { margin: 8px 0 16px; text-align: center; }
.woocommerce-form-login, .woocommerce-ResetPassword { padding: clamp(22px, 4vw, 36px); background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow); display: grid; gap: 14px; }
.woocommerce-form-login .woocommerce-form-login__rememberme { display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important; font-weight: 500 !important; }
.woocommerce-form-login .woocommerce-form-login__rememberme input { width: 18px; height: 18px; accent-color: var(--ink); }
.woocommerce-form-login .button { width: 100%; min-height: 52px; margin-top: 4px; }
.woocommerce-form-login .lost_password { margin: 0; text-align: center; font-size: 0.92rem; }
.woocommerce-form-login .lost_password a { color: var(--slate); }
.woocommerce-account .woocommerce > h2, .woocommerce-MyAccount-content h2, .woocommerce-MyAccount-content h3 { font: 700 1.5rem/1.2 var(--font-display); letter-spacing: -0.02em; }
.acc-hello { margin: 0 0 20px; }
.acc-hello h2 { margin: 0; }
.acc-hello p { margin: 4px 0 0; color: var(--slate); }
.acc-member { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 28px; }
.acc-member div { padding: 14px; background: var(--bg-soft); border-radius: var(--r); }
.acc-member b { display: block; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-2); }
.acc-member span { font-weight: 700; }
@media (max-width: 520px) { .acc-member { grid-template-columns: 1fr; } }

.acc-search { margin-bottom: 32px; }
.acc-search-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.acc-search-head h2, .acc-h { margin: 0; font: 700 1.3rem/1.2 var(--font-display); }
.acc-h { margin-bottom: 14px; }
.acc-search .lookup { box-shadow: none; border: 1px solid var(--line); background: var(--bg-soft); }
.acc-meter { display: grid; gap: 6px; min-width: 180px; font-size: 0.84rem; font-weight: 600; color: var(--slate); }
.acc-meter i { display: block; height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.acc-meter b { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.acc-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; padding: 18px; background: var(--bg-soft); border-radius: var(--r); }
.acc-empty p { margin: 0; }
.acc-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.acc-list a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none; border: 1px solid var(--line-2); border-radius: 14px; transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s; }
.acc-list a:hover { border-color: var(--line); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.acc-list .swatch { width: 18px; height: 18px; }
.acc-list-main { flex: 1; min-width: 0; }
.acc-list-main strong { display: block; }
.acc-list-main small { color: var(--slate); }
.acc-list .icon-arrow { color: var(--slate-2); }

/* Checkout step 1: find the vehicle --------------------------------------- */
.co-card--search { padding: clamp(14px, 2.4vw, 22px); }
.co-card--search .lookup { padding: 0; background: none; box-shadow: none; }
/* Keep checkout field styles off the number-plate input. */
.co input.lookup-input, .acc-search input.lookup-input { min-height: 0; padding: 0; font-size: clamp(1.9rem, 5vw, 2.6rem); border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.co .lookup.is-vin input.lookup-input, .acc-search .lookup.is-vin input.lookup-input { padding-block: 10px; font-size: clamp(1.05rem, 3.4vw, 1.4rem); }
.co-help { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 0 4px; font-size: 0.88rem; color: var(--slate); }
.co-help .icon { margin-top: 2px; color: var(--sky); }
.co-vehicle--empty .co-vehicle-visual { place-items: center; }
.co-car--ghost { opacity: 0.55; animation: bob 4s ease-in-out infinite; }
.co-car--ghost .car-glass { fill: #0b1222; opacity: 0.6; }
.co-vehicle-q { position: absolute; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; font: 800 1.4rem/1 var(--font-display); color: var(--ink); background: var(--brand); border-radius: 50%; box-shadow: 0 0 0 8px rgb(43 232 162 / 18%); animation: ping-soft 2.4s ease-in-out infinite; }
@keyframes ping-soft { 50% { box-shadow: 0 0 0 14px rgb(43 232 162 / 6%); } }
.co-order-h--show { display: block !important; }
.co--start .co-vehicle-id .co-muted { margin: 0; font-size: 0.92rem; }
@media (max-width: 960px) { .co--start .co-aside { order: 2; } }

/* Stripe for WooCommerce ---------------------------------------------------- */
/* Express checkout (Apple Pay / Google Pay / Link). Stripe toggles display itself. */
.co-main > #wc-stripe-express-checkout-element {
	margin: 0 !important; padding: 16px; background: #fff;
	border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
	animation: co-in 0.5s var(--ease) both;
}
/* Stripe shows this with an inline display:block, so centre with text-align, not flex. */
#wc-stripe-express-checkout-button-separator {
	margin: 0 !important; font-size: 0 !important; line-height: 20px; text-align: center !important;
	background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat;
}
#wc-stripe-express-checkout-button-separator::before {
	content: "or pay by card"; display: inline-block; padding: 0 12px;
	font-size: 0.82rem; font-weight: 600; color: var(--slate); background: var(--bg-soft);
}

/* Payment Element inside the method list */
#payment .payment_method_stripe > label img, #payment .payment_method_stripe .stripe-icon { max-height: 22px; }
#payment .wc-stripe-upe-element, #payment #wc-stripe-upe-form { margin: 0; padding: 0; border: 0; }
#payment .wc-stripe-upe-element { min-height: 120px; }
#payment .woocommerce-SavedPaymentMethods-saveNew, #payment .wc-stripe-save-payment-method { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 0.88rem; }
#payment .stripe-source-errors, #payment .wc-stripe-upe-errors { margin-top: 10px; color: var(--alert); font-size: 0.88rem; }
#payment .testmode-info { margin: 0 0 12px; padding: 10px 12px; font-size: 0.84rem; color: #93590b; background: var(--warn-soft); border-radius: 10px; }
