/* Vaikų krautuvė: account + utility pages
   prisijungti, paskyra, uzsakymai, uzsakymas, sekti, grazinimo-forma, grazinimai, adresai, nustatymai,
   paieska, 404. Builds on css/styles.css (paieska + 404 also load css/category.css). */

:root {
  --acc-error: var(--c-tomato-dark);
  --acc-tap: 48px;
  --acc-side: 264px;
  --t-grey: #ECE9E4; --t-grey-ink: #5E626D;
}

[hidden] { display: none !important; }
.acc { padding-bottom: calc(var(--section-y) + 110px); } /* extra room: footer toys float above the wave */
.acc .crumbs { margin: 0; padding-left: 0; list-style: none; }
.panel { padding: 32px; border-radius: var(--radius-l); background: var(--c-white); box-shadow: var(--shadow); }
.acc-head { padding-block: 4px 32px; }
.acc-head .h2 { max-width: 28ch; }
.acc-head .lead { max-width: 60ch; margin-top: 10px; }
.acc-head__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; }
.acc-count { font-family: var(--font-sans); font-size: 18px; font-weight: 600; letter-spacing: 0; color: var(--c-muted); }

/* Design-variant marker (for Kajus: shows a second page state; remove in WooCommerce) */
.variant-tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 6px 14px; border-radius: 999px; background: var(--t-sun); color: var(--t-sun-ink); font-size: 14px; font-weight: 700; }
.variant { margin-top: 72px; padding-top: 40px; border-top: 2px dashed var(--c-line-strong); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.span-2 { grid-column: 1 / -1; }
.acc .input { height: 52px; }
.acc textarea.input { height: auto; min-height: 110px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.acc select.input { appearance: none; -webkit-appearance: none; padding-right: 44px; background: var(--c-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2A44' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 20px no-repeat; cursor: pointer; }
.input::placeholder { color: #9A9CA5; }
.field__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field__hint { font-size: 14px; color: var(--c-muted); line-height: 1.45; }
.field__opt { font-weight: 500; color: var(--c-muted); }
.field__error { display: flex; align-items: flex-start; gap: 6px; font-size: 14px; font-weight: 650; color: var(--acc-error); line-height: 1.4; }
.field__error::before { content: "!"; width: 18px; height: 18px; flex: none; display: grid; place-items: center; margin-top: 1px; border-radius: 50%; background: var(--acc-error); color: var(--c-white); font-size: 12px; font-weight: 800; line-height: 1; }
.input[aria-invalid="true"] { border-color: var(--acc-error); background-color: #FFF9F7; }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(201, 64, 42, .12); }
.link-btn { padding: 0; border: 0; background: none; font-size: 15px; font-weight: 650; color: var(--c-navy-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--c-navy); }
.link-btn--danger { color: var(--c-tomato-dark); }
.fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.fieldset legend { padding: 0; margin-bottom: 12px; font-size: 15px; font-weight: 650; }
.fieldset[aria-invalid="true"] .opt, .fieldset[aria-invalid="true"] .ritem { box-shadow: inset 0 0 0 1.5px var(--acc-error); }
.fieldset > .field__error { margin-top: 10px; }

/* Password field with show/hide */
.pw { position: relative; }
.pw .input { padding-right: 56px; }
.pw__toggle { position: absolute; top: 2px; right: 2px; width: var(--acc-tap); height: var(--acc-tap); display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--c-muted); transition: color .2s var(--ease), background-color .2s var(--ease); }
.pw__toggle:hover { color: var(--c-navy); background: var(--c-cream); }
.pw__toggle .icon { width: 20px; height: 20px; }

/* Checkbox (own class: category.css also styles .check) */
.acc-check { display: flex; align-items: flex-start; gap: 12px; min-height: 28px; font-size: 15px; line-height: 1.45; cursor: pointer; }
.acc-check input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; flex: none; margin: 0; border: 1.5px solid var(--c-line-strong); border-radius: 7px; background: var(--c-white) center / 16px no-repeat; transition: background-color .15s var(--ease), border-color .15s var(--ease); cursor: pointer; }
.acc-check input:checked { border-color: var(--c-navy); background-color: var(--c-navy); background-image: 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.acc-check input[aria-invalid="true"] { border-color: var(--acc-error); }
.acc-check a { font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.acc-check + .field__error { margin: -8px 0 0 36px; }

/* On/off switch: <label class="switch"><input type="checkbox" role="switch">… */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 12px 0; border-bottom: 1px solid var(--c-line); cursor: pointer; }
.switch:last-child { border-bottom: 0; }
.switch strong { display: block; font-size: 16px; }
.switch small { display: block; font-size: 14px; color: var(--c-muted); line-height: 1.4; }
.switch input { appearance: none; -webkit-appearance: none; position: relative; width: 52px; height: 30px; flex: none; margin: 0; border-radius: 999px; background: var(--c-line-strong); transition: background-color .2s var(--ease); cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--c-white); box-shadow: 0 1px 3px rgba(31, 42, 68, .25); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--c-sage); }
.switch input:checked::after { transform: translateX(22px); }
.switch input:disabled { opacity: .55; cursor: not-allowed; }
.switch:has(input:disabled) { cursor: default; }

/* Form messages */
.form-msg { padding: 12px 16px; border-radius: var(--radius-s); background: var(--c-tomato-tint); color: var(--acc-error); font-size: 15px; font-weight: 650; }
.form-ok { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: var(--c-sage-tint); color: var(--c-navy); line-height: 1.5; }
.form-ok > .icon { margin-top: 2px; flex: none; color: var(--c-sage); stroke-width: 2.4; }
.form-ok strong { display: block; }
.form-ok:focus { outline: none; }

/* ---------- Login / register (prisijungti.html) ---------- */
.auth { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.auth__card { display: flex; flex-direction: column; gap: 24px; padding: 36px; }
.auth__top { display: flex; align-items: center; gap: 16px; }
.auth__title { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -.015em; }
.auth__top p { margin-top: 2px; font-size: 15px; color: var(--c-muted); }
.auth__card--reg { background: linear-gradient(180deg, #FFF8F4 0, var(--c-white) 240px); }
.auth__switch { font-size: 15px; color: var(--c-muted); text-align: center; }
.auth__switch a { font-weight: 700; color: var(--c-navy); text-decoration: underline; text-underline-offset: 3px; }
.auth__back { display: inline-flex; align-items: center; gap: 6px; justify-self: start; min-height: 40px; padding: 0; border: 0; background: none; font-size: 15px; font-weight: 650; color: var(--c-navy-soft); }
.auth__back:hover { color: var(--c-navy); }
.auth__back .icon { transform: scaleX(-1); }
.auth__sub { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.auth__secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--c-muted); }
.auth__secure .icon { color: var(--c-sage); }

/* Social sign-in (Google) */
.social { display: grid; gap: 12px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--c-white); color: #1F1F1F; box-shadow: inset 0 0 0 1.5px var(--c-line-strong); font-size: 17px; font-weight: 700; cursor: pointer; transition: box-shadow .2s var(--ease), background-color .2s var(--ease); }
.social-btn:hover { box-shadow: inset 0 0 0 1.5px var(--c-navy), 0 6px 16px rgba(31, 42, 68, .08); }
.social-btn:disabled { opacity: .7; cursor: progress; }
.social-btn__logo { width: 22px; height: 22px; flex: none; }
.social__note { font-size: 14px; color: var(--c-muted); text-align: center; line-height: 1.45; }
.divider { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 650; color: var(--c-muted); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }

.perks { display: grid; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--c-cream); }
.perks li { display: flex; align-items: center; gap: 14px; line-height: 1.4; }
.perks li:nth-child(even) .pbadge { transform: rotate(4deg); }
.perks strong { display: block; font-size: 16px; }
.perks span { font-size: 14px; color: var(--c-muted); }

.auth__col { display: grid; gap: 24px; }
.guest { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 6px 18px; padding: 24px 28px; border-radius: var(--radius-l); background: var(--c-sand); }
.guest .pbadge { grid-row: span 2; }
.guest p { color: var(--c-navy-soft); }
.guest .link-arrow { justify-self: start; }
.guest strong { color: var(--c-navy); }

/* ---------- Account template (all account pages) ---------- */
.dash { display: grid; grid-template-columns: var(--acc-side) minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 8px; }
.dash__side { position: sticky; top: 148px; display: grid; gap: 16px; }
.dash__main { display: grid; gap: 24px; min-width: 0; }
.dash__main > *, .dash__side > * { min-width: 0; }
.dash__head .lead { max-width: 58ch; margin-top: 8px; }
.dash__head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }

.who { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius-l); background: var(--c-white); box-shadow: var(--shadow); }
.who__avatar { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--t-peach); color: var(--t-peach-ink); font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.who strong { display: block; line-height: 1.3; }
.who span { font-size: 14px; color: var(--c-muted); word-break: break-all; }

.acc-nav { padding: 8px; border-radius: var(--radius-l); background: var(--c-white); box-shadow: var(--shadow); }
.acc-nav a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: 14px; font-size: 16px; font-weight: 650; color: var(--c-navy-soft); transition: background-color .2s var(--ease), color .2s var(--ease); }
.acc-nav a:hover { background: var(--c-cream); color: var(--c-navy); }
.acc-nav a[aria-current="page"] { background: var(--c-navy); color: var(--c-white); }
.acc-nav .icon { width: 20px; height: 20px; flex: none; }
.acc-nav__count { margin-left: auto; min-width: 26px; padding: 0 8px; border-radius: 999px; background: var(--c-cream); color: var(--c-navy); font-size: 14px; font-weight: 800; line-height: 24px; text-align: center; }
.acc-nav a[aria-current="page"] .acc-nav__count { background: rgba(255, 255, 255, .16); color: var(--c-white); }
.acc-nav__sep { display: block; height: 1px; margin: 6px 14px; background: var(--c-line); }
.acc-nav__out { color: var(--c-muted) !important; }
.acc-nav__out:hover { color: var(--c-tomato-dark) !important; background: var(--c-tomato-tint) !important; }
.side-help { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--radius-l); background: var(--c-sand); font-size: 15px; }
.side-help strong { font-size: 16px; }
.side-help a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.box-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 22px; }
.box-title { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -.015em; }
.box-sub { margin-top: 4px; font-size: 15px; color: var(--c-muted); }
.box-head .link-arrow { font-size: 16px; }

/* Status chip: same colours everywhere */
.status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: 999px; font-size: 15px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--new { background: var(--t-sun); color: var(--t-sun-ink); }     /* Vykdomas */
.status--sent { background: var(--t-sky); color: var(--t-sky-ink); }    /* Išsiųstas */
.status--done { background: var(--t-mint); color: var(--t-mint-ink); }  /* Pristatytas / Pinigai grąžinti */
.status--return { background: var(--t-lilac); color: var(--t-lilac-ink); } /* Grąžinamas */
.status--cancel { background: var(--t-grey); color: var(--t-grey-ink); }   /* Atšauktas */

/* Status timeline: <ol class="track" style="--steps:4;--progress:.667"> */
.track { --steps: 4; --progress: 0; position: relative; display: grid; grid-template-columns: repeat(var(--steps), minmax(0, 1fr)); margin: 8px 0 28px; }
.track::before, .track::after { content: ""; position: absolute; top: 19px; left: calc(100% / (var(--steps) * 2)); height: 4px; border-radius: 4px; }
.track::before { right: calc(100% / (var(--steps) * 2)); background: var(--c-line); }
.track::after { width: calc((100% - 100% / var(--steps)) * var(--progress)); background: var(--c-sage); }
.track li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.track__dot { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 50%; background: var(--c-white); color: var(--c-muted); box-shadow: inset 0 0 0 2px var(--c-line-strong), 0 0 0 6px var(--c-white); }
.track__dot .icon { width: 20px; height: 20px; stroke-width: 2.2; }
.track .is-done .track__dot { background: var(--c-sage); color: var(--c-white); box-shadow: 0 0 0 6px var(--c-white); }
.track .is-current .track__dot { background: var(--c-navy); color: var(--c-white); box-shadow: 0 0 0 6px var(--c-white), 0 0 0 10px var(--t-sky); }
.track strong { font-size: 16px; }
.track li > span:last-child { font-size: 14px; color: var(--c-muted); }
.track li:not(.is-done):not(.is-current) strong { color: var(--c-muted); }
.panel--tint .track__dot, .panel--tint .track .is-done .track__dot { box-shadow: inset 0 0 0 2px var(--c-line-strong), 0 0 0 6px #F4F8FC; }
.panel--tint .track .is-done .track__dot { box-shadow: 0 0 0 6px #F4F8FC; }
.panel--tint .track .is-current .track__dot { box-shadow: 0 0 0 6px #F4F8FC, 0 0 0 10px var(--t-sky); }

/* Overlapping product thumbnails */
.thumbs { display: flex; flex: none; }
.thumbs img { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; background: var(--c-sand); box-shadow: 0 0 0 3px var(--c-white); }
.thumbs img + img { margin-left: -14px; }
.thumbs--l img { width: 76px; height: 76px; border-radius: 18px; }

/* ---------- Dashboard (paskyra.html) ---------- */
.hello { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.hello .lead { margin-top: 8px; }
.ship { padding: 32px 36px; background: linear-gradient(160deg, #EAF1F9 0, #F4F8FC 55%, var(--c-white) 100%); box-shadow: inset 0 0 0 1.5px #D3DFEE, var(--shadow); }
.ship__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; margin-bottom: 28px; }
.ship__head .pbadge { width: 64px; height: 64px; border-radius: 20px; background: var(--c-white); }
.ship__head .pbadge .icon { width: 30px; height: 30px; }
.ship__kicker { font-size: 15px; font-weight: 650; color: var(--t-sky-ink); }
.ship__title { margin-top: 2px; font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.ship__eta { margin-top: 6px; font-size: 18px; color: var(--c-navy-soft); }
.ship__eta strong { color: var(--c-navy); }
.ship__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 18px 20px; border-radius: var(--radius); background: var(--c-white); box-shadow: 0 0 0 1px #DCE5F0; }
.ship__where { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--c-navy-soft); line-height: 1.45; }
.ship__where .icon { flex: none; color: var(--t-sky-ink); }
.ship__where strong { display: block; color: var(--c-navy); }
.ship__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ship__actions .btn { min-height: 56px; padding: 0 28px; font-size: 17px; }

.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.quick__tile { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 168px; padding: 22px; border-radius: var(--radius-l); background: var(--c-white); box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.quick__tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.quick__tile .pbadge { margin-bottom: 10px; }
.quick__tile strong { font-family: var(--font-display); font-size: 19px; font-weight: 800; line-height: 1.2; }
.quick__tile span:not(.pbadge) { font-size: 15px; color: var(--c-muted); }
.quick__tile > .icon { position: absolute; right: 20px; top: 26px; color: var(--c-line-strong); transition: color .2s var(--ease), transform .2s var(--ease); }
.quick__tile:hover > .icon { color: var(--c-navy); transform: translateX(3px); }

/* Order rows (dashboard) */
.orows { display: grid; }
.orow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.orow:first-child { padding-top: 0; }
.orow:last-child { padding-bottom: 0; border-bottom: 0; }
.orow__main strong { display: block; font-size: 17px; }
.orow__main span { font-size: 15px; color: var(--c-muted); }
.orow__sum { min-width: 80px; font-size: 17px; font-weight: 750; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Help card */
.helpbox { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 24px; padding: 28px 32px; border-radius: var(--radius-l); background: var(--c-sand); }
.helpbox h2 { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.helpbox p { margin-top: 4px; color: var(--c-navy-soft); }
.helpbox__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.helpbox__actions .btn--ghost { background: var(--c-white); box-shadow: none; }
.helpbox__links { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.helpbox__links a { font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Orders list (uzsakymai.html) ---------- */
.otools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
.otools .chip { min-height: 46px; cursor: pointer; border: 0; }
.otools .chip span { font-size: 14px; color: var(--c-muted); }
.chip[aria-pressed="true"] { background: var(--c-navy); color: var(--c-white); box-shadow: none; }
.chip[aria-pressed="true"] span { color: rgba(255, 255, 255, .7) !important; }
.osearch { position: relative; width: 300px; max-width: 100%; }
.osearch .input { height: 48px; padding-left: 46px; border-radius: 999px; }
.osearch .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--c-muted); pointer-events: none; }
.ocards { display: grid; gap: 16px; }
.ocard { display: grid; gap: 18px; padding: 24px 28px; }
.ocard__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.ocard__no { font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.ocard__date { font-size: 15px; color: var(--c-muted); }
.ocard__body { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 16px 18px; border-radius: var(--radius); background: var(--c-cream); }
.ocard__body .thumbs img { box-shadow: 0 0 0 3px var(--c-cream); }
.ocard__items { font-size: 16px; line-height: 1.45; }
.ocard__items small { display: block; font-size: 14px; color: var(--c-muted); }
.ocard__total { text-align: right; }
.ocard__total span { display: block; font-size: 14px; color: var(--c-muted); }
.ocard__total strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.ocard__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.ocard__note { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--c-navy-soft); }
.ocard__note .icon { color: var(--c-sage); }
.ocard__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.onone { padding: 28px; border-radius: var(--radius-l); background: var(--c-white); text-align: center; color: var(--c-navy-soft); box-shadow: var(--shadow); }

/* ---------- Order detail (uzsakymas.html) + public tracking (sekti.html) ---------- */
.odetail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.odetail__col { display: grid; gap: 24px; min-width: 0; }
.trackbox { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 18px 20px; border-radius: var(--radius); background: var(--c-cream); }
.trackbox dt { font-size: 14px; color: var(--c-muted); }
.trackbox dd { margin: 2px 0 0; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.trackbox__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 16px; }
.events { position: relative; display: grid; gap: 0; margin-top: 22px; }
.events li { position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; padding: 0 0 18px 26px; }
.events li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--c-line-strong); }
.events li::after { content: ""; position: absolute; left: 9px; top: 22px; bottom: 2px; width: 2px; background: var(--c-line); }
.events li:last-child { padding-bottom: 0; }
.events li:last-child::after { display: none; }
.events li:first-child::before { background: var(--c-sage); box-shadow: 0 0 0 4px var(--c-sage-tint); }
.events time { font-size: 14px; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.events p { font-size: 15px; line-height: 1.45; }
.events li:first-child p { font-weight: 700; }
.oitems { display: grid; }
.oitem { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.oitem:first-child { padding-top: 0; }
.oitem img { width: 76px; height: 76px; border-radius: 16px; object-fit: cover; background: var(--c-sand); }
.oitem a { font-weight: 700; line-height: 1.35; }
.oitem a:hover { text-decoration: underline; }
.oitem small { display: block; margin-top: 2px; font-size: 14px; color: var(--c-muted); }
.oitem__qty { font-size: 15px; color: var(--c-muted); white-space: nowrap; }
.oitem__sum { min-width: 76px; font-weight: 750; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sum { display: grid; gap: 10px; margin-top: 18px; font-size: 16px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.sum__total { padding-top: 12px; border-top: 1px solid var(--c-line); font-size: 19px; font-weight: 800; }
.sum__vat { font-size: 14px; color: var(--c-muted); }
.side-card { display: grid; gap: 10px; padding: 24px; }
.side-card h2 { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 19px; font-weight: 800; }
.side-card address, .side-card p { font-size: 15px; line-height: 1.55; color: var(--c-navy-soft); }
.side-card strong { color: var(--c-navy); }
.side-actions { display: grid; gap: 10px; }
.side-actions .btn { width: 100%; }
.paid { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--c-sage); }

/* Public tracking (sekti.html) */
.trk { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.trk__form { display: grid; gap: 20px; padding: 36px; }
.trk__form .btn { min-height: 58px; font-size: 17px; }
.trk__aside { display: grid; gap: 16px; }
.trk-tip { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; padding: 22px 24px; border-radius: var(--radius-l); background: var(--c-white); box-shadow: 0 0 0 1px var(--c-line); }
.trk-tip .pbadge { grid-row: span 2; }
.trk-tip p { font-size: 15px; color: var(--c-navy-soft); line-height: 1.5; }
.trk-tip a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.trk__main { display: grid; gap: 24px; min-width: 0; }
.trk-result { scroll-margin-top: 160px; }
.trk-result:focus { outline: none; }
.trk-result__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 26px; }
.trk-result__login { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 26px; padding: 18px 20px; border-radius: var(--radius); background: var(--c-sand); }

/* ---------- Returns (grazinimo-forma.html, grazinimai.html) ---------- */
.steps { display: grid; gap: 20px; }
.step { display: grid; gap: 18px; }
.step__head { display: flex; align-items: center; gap: 14px; }
.step__num { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--c-navy); color: var(--c-white); font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.step__title { font-family: var(--font-display); font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.opts--1 { grid-template-columns: minmax(0, 1fr); }
.opt { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--c-white); box-shadow: inset 0 0 0 1.5px var(--c-line-strong); cursor: pointer; transition: box-shadow .2s var(--ease), background-color .2s var(--ease); }
.opt:hover { box-shadow: inset 0 0 0 1.5px var(--c-navy); }
.opt:has(input:checked) { background: #FBFCFE; box-shadow: inset 0 0 0 2.5px var(--c-navy); }
.opt:has(input:disabled) { background: var(--c-cream); cursor: not-allowed; opacity: .75; }
.opt:has(input:disabled):hover { box-shadow: inset 0 0 0 1.5px var(--c-line-strong); }
.opt:has(input:focus-visible) { outline: 2px solid var(--c-tomato); outline-offset: 3px; }
.opt input[type="radio"] { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 1px 0 0; border: 1.5px solid var(--c-line-strong); border-radius: 50%; background: var(--c-white); cursor: inherit; }
.opt input[type="radio"]:checked { border: 7px solid var(--c-navy); }
.opt strong { display: block; font-size: 16px; line-height: 1.35; }
.opt small { display: block; margin-top: 3px; font-size: 14px; color: var(--c-muted); line-height: 1.45; }
.ritems { display: grid; gap: 12px; }
.ritem { display: grid; grid-template-columns: auto 64px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--radius); background: var(--c-white); box-shadow: inset 0 0 0 1.5px var(--c-line-strong); }
.ritem:has(input:checked) { box-shadow: inset 0 0 0 2.5px var(--c-navy); }
.ritem .acc-check { min-height: 24px; }
.ritem img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--c-sand); }
.ritem label.ritem__name { font-weight: 700; line-height: 1.35; cursor: pointer; }
.ritem small { display: block; font-size: 14px; font-weight: 500; color: var(--c-muted); }
.ritem__qty { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--c-muted); }
.ritem__qty select.input { width: 84px; height: 44px; }
.ritem__qty select.input:disabled { background-color: var(--c-cream); color: var(--c-muted); opacity: .6; cursor: not-allowed; }
.upload { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 18px; border: 2px dashed var(--c-line-strong); border-radius: var(--radius); background: var(--c-white); }
.upload .btn { background: var(--c-white); cursor: pointer; }
.upload:has(input:focus-visible) .btn { outline: 2px solid var(--c-tomato); outline-offset: 2px; }
.upload__name { font-size: 15px; color: var(--c-muted); overflow-wrap: anywhere; }
.field__label { font-size: 15px; font-weight: 650; }
.upload .field__hint { flex-basis: 100%; }
.upload.is-wanted { border-color: var(--c-tomato); background: #FFF9F7; }
.rnote { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: var(--radius); background: var(--c-cream); font-size: 15px; color: var(--c-navy-soft); line-height: 1.5; }
.rnote .icon { flex: none; margin-top: 2px; color: var(--t-sky-ink); }
.submitbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
.submitbar .btn { min-height: 58px; padding: 0 34px; font-size: 17px; }
.next-steps { display: grid; gap: 12px; counter-reset: ns; margin: 6px 0 4px; }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; line-height: 1.5; }
.next-steps li::before { content: counter(ns); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--t-mint); color: var(--t-mint-ink); font-weight: 800; }
.done-card { display: grid; justify-items: start; gap: 16px; padding: 36px; }
.done-card .pbadge { width: 64px; height: 64px; }
.done-card .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rcard { display: grid; gap: 18px; padding: 24px 28px; }
.rcard__steps { --steps: 4; margin-bottom: 4px; }
.rcard__steps .track__dot { width: 34px; height: 34px; }
.rcard__steps.track::before, .rcard__steps.track::after { top: 15px; }
.rcard__steps .track__dot .icon { width: 16px; height: 16px; }
.rcard__steps strong { font-size: 15px; }

/* ---------- Addresses (adresai.html) ---------- */
.addr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.addr__card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--radius-l); background: var(--c-white); box-shadow: var(--shadow); }
.addr__card.is-default { box-shadow: inset 0 0 0 2px var(--c-navy), var(--shadow); }
.addr__head { display: flex; align-items: center; gap: 12px; padding-right: 110px; }
.addr__head strong { font-size: 17px; }
.addr__card address { font-size: 16px; line-height: 1.6; color: var(--c-navy-soft); }
.addr__tag { position: absolute; top: 20px; right: 20px; padding: 3px 12px; border-radius: 999px; background: var(--c-navy); color: var(--c-white); font-size: 14px; font-weight: 700; }
.addr__card:not(.is-default) .addr__tag { display: none; }
.addr__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--c-line); }
.addr__card.is-default [data-addr-default] { display: none; }
.addr__confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 14px; border-radius: var(--radius-s); background: var(--c-tomato-tint); font-size: 15px; font-weight: 650; }
.addr__new { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; width: 100%; border: 2px dashed var(--c-line-strong); border-radius: var(--radius-l); background: transparent; font-size: 17px; font-weight: 700; color: var(--c-navy-soft); cursor: pointer; transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease); }
.addr__new:hover { border-color: var(--c-navy); color: var(--c-navy); background: var(--c-white); }
.addr-form { scroll-margin-top: 160px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 999px; background: var(--c-cream); }
.seg label { position: relative; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 650; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--c-white); box-shadow: var(--shadow); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--c-tomato); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }

/* ---------- Settings (nustatymai.html) ---------- */
.set-list { display: grid; }
.login-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius); background: var(--c-cream); }
.login-row__logo { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--c-white); box-shadow: 0 0 0 1px var(--c-line); }
.login-row__logo svg:not(.icon) { width: 24px; height: 24px; }
.login-row strong { display: block; }
.login-row small { font-size: 14px; color: var(--c-muted); }
.login-row .status { font-size: 14px; }
.login-rows { display: grid; gap: 12px; }
.danger { box-shadow: inset 0 0 0 1.5px #F2C9BF, var(--shadow); }
.danger .box-title { color: var(--c-tomato-dark); }
.danger__confirm { display: grid; gap: 16px; margin-top: 20px; padding: 20px; border-radius: var(--radius); background: var(--c-tomato-tint); }
.danger__confirm ul { display: grid; gap: 6px; padding-left: 20px; list-style: disc; font-size: 15px; }
.btn--danger { background: var(--c-tomato-dark); color: var(--c-white); }
.btn--danger:hover { background: #A93522; }
.details__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.optional { border-radius: var(--radius); background: var(--c-cream); }
.optional summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 0 20px; font-weight: 700; cursor: pointer; list-style: none; }
.optional summary::-webkit-details-marker { display: none; }
.optional summary .icon { transition: transform .2s var(--ease); }
.optional[open] summary .icon { transform: rotate(180deg); }
.optional__body { padding: 0 20px 20px; }

/* ---------- Info note ---------- */
.wl-note { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; padding: 16px 20px; border-radius: var(--radius); background: var(--c-white); box-shadow: 0 0 0 1px var(--c-line); font-size: 15px; color: var(--c-navy-soft); }
.wl-note a { font-weight: 700; color: var(--c-navy); text-decoration: underline; text-underline-offset: 3px; }

/* Empty / no-results / 404 states */
.empty { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 720px; margin: 0 auto; padding: 48px 40px 52px; border-radius: var(--radius-l); background: var(--c-white); box-shadow: var(--shadow); text-align: center; }
.empty .mascot { margin-bottom: 8px; }
.empty > p { max-width: 48ch; color: var(--c-navy-soft); }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.empty .chips { justify-content: center; }
.empty__label { margin-top: 14px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.tips { display: grid; gap: 10px; width: 100%; max-width: 520px; margin: 6px 0; text-align: left; }
.tips li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-radius: var(--radius-s); background: var(--c-cream); font-size: 15px; line-height: 1.45; }
.tips .icon { margin-top: 1px; color: var(--c-sage); stroke-width: 2.4; }

/* ---------- Search results (paieska.html) ---------- */
.srch-cats { display: flex; align-items: center; gap: 16px; padding-bottom: 28px; }
.srch-cats__label { flex: none; font-size: 15px; font-weight: 700; }
.srch-cats .chip { min-height: 44px; padding: 0 16px; }
.srch-cats .chip span { font-size: 14px; font-weight: 600; color: var(--c-muted); }
.srch-cats .chip.is-active span { color: rgba(255, 255, 255, .7); }
.srch-hint { margin: -8px 0 24px; font-size: 15px; color: var(--c-muted); }
.srch-hint a { font-weight: 700; color: var(--c-navy); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 404 ---------- */
.nf { position: relative; padding-top: 24px; }
.nf__card { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 860px; margin: 0 auto; padding: 56px 48px 52px; border-radius: 36px; background: var(--t-peach); box-shadow: inset 0 0 0 2px rgba(229, 83, 58, .12); text-align: center; }
.nf__art { position: relative; display: grid; place-items: center; width: 200px; height: 160px; }
.nf__art::before { content: ""; position: absolute; inset: 14px 26px 0; border-radius: 50%; background: var(--c-white); }
.nf__art .mascot { position: relative; width: 132px; height: 132px; margin-top: 20px; }
.nf__code { font-family: var(--font-display); font-size: 15px; font-weight: 800; letter-spacing: .12em; color: var(--c-tomato-dark); }
.nf__card > p { max-width: 50ch; color: var(--c-navy-soft); font-size: 17px; }
.nf-search { position: relative; width: 100%; max-width: 600px; margin-top: 12px; }
.nf-search .input { height: 64px; padding: 0 150px 0 56px; border: 0; border-radius: 999px; font-size: 17px; box-shadow: 0 0 0 1.5px var(--c-line-strong), var(--shadow); }
.nf-search .input:focus { box-shadow: 0 0 0 2px var(--c-navy), 0 0 0 6px rgba(31, 42, 68, .08); }
.nf-search > .icon { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--c-muted); pointer-events: none; }
.nf-search .btn { position: absolute; top: 7px; right: 7px; min-height: 50px; }
.nf__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.nf__actions .btn--ghost { background: var(--c-white); box-shadow: none; }
.nf__actions .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--c-navy); }
.nf__cats { margin-top: 64px; }
.nf__cats .subcats { border-top: 0; }
.nf__cats .subcats__list { padding-top: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .odetail { grid-template-columns: minmax(0, 1fr); }
  .orow { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .orow .btn { display: none; }
}
@media (max-width: 1100px) {
  .dash { grid-template-columns: 236px minmax(0, 1fr); gap: 28px; }
  .trk { grid-template-columns: minmax(0, 1fr); }
  .helpbox { grid-template-columns: auto minmax(0, 1fr); }
  .helpbox__actions, .helpbox__links { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .dash { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .dash__side { position: static; }
  .dash__side .who, .dash__side .side-help { display: none; }
  .acc-nav { display: flex; gap: 8px; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; overflow-x: auto; scrollbar-width: none; border-radius: 0; background: none; box-shadow: none; }
  .acc-nav::-webkit-scrollbar { display: none; }
  .acc-nav a { flex: none; min-height: 46px; padding: 0 18px; border-radius: 999px; background: var(--c-white); box-shadow: inset 0 0 0 1px var(--c-line); white-space: nowrap; font-size: 15px; }
  .acc-nav a[aria-current="page"] { box-shadow: none; }
  .acc-nav .icon { width: 18px; height: 18px; }
  .acc-nav__sep { display: none; }
  .acc-nav__count { margin-left: 2px; }
  .srch-cats { flex-direction: column; align-items: flex-start; gap: 10px; }
  .addr { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .panel, .auth__card { padding: 22px 18px; border-radius: var(--radius); }
  .form-grid, .opts { grid-template-columns: minmax(0, 1fr); }
  .guest { padding: 20px; }
  .ship { padding: 22px 18px; }
  .ship__head { grid-template-columns: auto minmax(0, 1fr); gap: 14px; margin-bottom: 22px; }
  .ship__head .pbadge { width: 52px; height: 52px; border-radius: 16px; }
  .ship__head .thumbs { display: none; }
  .ship__eta { font-size: 16px; }
  .ship__foot { padding: 16px; }
  .ship__actions, .ship__actions .btn { width: 100%; }
  .quick { gap: 12px; }
  .quick__tile { min-height: 0; padding: 18px 16px; }
  .quick__tile > .icon { display: none; }
  .quick__tile strong { font-size: 17px; }
  .quick__tile span:not(.pbadge) { font-size: 14px; }
  .orow { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .orow .thumbs { display: none; }
  .orow .status { grid-column: 1; grid-row: 2; justify-self: start; }
  .orow__sum { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .helpbox { padding: 22px 18px; }
  .helpbox__actions .btn { flex: 1 1 100%; }
  /* Vertical timeline on phones */
  .track { grid-template-columns: minmax(0, 1fr); margin-bottom: 22px; }
  .track::before, .track::after { top: calc(100% / (var(--steps) * 2)); left: 19px; width: 4px; }
  .track::before { right: auto; bottom: calc(100% / (var(--steps) * 2)); height: auto; }
  .track::after { height: calc((100% - 100% / var(--steps)) * var(--progress)); }
  .track li { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-content: center; column-gap: 16px; min-height: 60px; text-align: left; }
  .track__dot { grid-row: span 2; margin: 0; }
  .rcard__steps.track li { grid-template-columns: 34px minmax(0, 1fr); min-height: 52px; }
  .rcard__steps.track::before, .rcard__steps.track::after { left: 15px; }
  .otools { display: grid; grid-template-columns: minmax(0, 1fr); }
  .otools .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter); scrollbar-width: none; }
  .otools .chip { flex: none; }
  .osearch { width: 100%; }
  .ocard, .rcard { padding: 20px 18px; }
  .ocard__body { grid-template-columns: minmax(0, 1fr) auto; padding: 14px; }
  .ocard__body .thumbs { grid-column: 1 / -1; }
  .ocard__actions { width: 100%; margin-left: 0; }
  .ocard__actions .btn { flex: 1 1 auto; }
  .trackbox { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .events li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .oitem { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 6px 14px; }
  .oitem img { width: 64px; height: 64px; grid-row: span 2; }
  .oitem__qty { grid-column: 2; }
  .oitem__sum { grid-column: 3; grid-row: 1 / span 2; }
  .trk__form { padding: 22px 18px; }
  .ritem { grid-template-columns: auto 56px minmax(0, 1fr); padding: 14px; }
  .ritem img { width: 56px; height: 56px; }
  .ritem__qty { grid-column: 3; }
  .submitbar .btn, .done-card .actions .btn { width: 100%; }
  .done-card { padding: 24px 18px; }
  .addr__head { padding-right: 0; }
  .addr__tag { position: static; align-self: flex-start; order: -1; }
  .login-row { grid-template-columns: auto minmax(0, 1fr); }
  .login-row > :last-child { grid-column: 1 / -1; }
  .empty { padding: 36px 20px; }
  .nf__card { padding: 36px 20px; border-radius: var(--radius-l); }
  .nf-search .input { height: 56px; padding: 0 64px 0 48px; font-size: 16px; }
  .nf-search > .icon { left: 18px; }
  .nf-search .btn { top: 5px; right: 5px; min-height: 46px; width: 46px; padding: 0; }
  .nf-search .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nf__actions .btn { width: 100%; }
  .nf__cats { margin-top: 44px; }
}
