/* Jaunpils Bites V3 - checkout and basket page (/grozs/). Built from the approved previews web/previews/checkout/co.css + cart.css
   (19.11), picked look only: H3 honeycomb marks, Z2 green button, G1 "Atvērt grozu" as a text link, no disruption strip,
   no card form example, no preview tools. Loaded AFTER sidecart.css (which holds the tokens and the shared basket pieces:
   lines, quantity, undo, sums, delivery bar, ladder, green button) and only on the basket page and the checkout.
   Every rule starts with .cop (the page's <main>), so nothing here can touch the header, the footer or other pages.
   Markup: parts/co/*.php. Contrast notes (measured in the preview): field borders 3.26:1 on white; error red on white
   4.85:1, on yellow rows --co-err-d 6.2:1; Z2 button text 5.36:1. */

/* the site header is sticky: anything scrolled to (error list, focused field) must land below it */
html:has(>body.co){scroll-padding-top:76px}
@media(min-width:1100px){html:has(>body.co){scroll-padding-top:94px}}
.cop :is([id],input,select,textarea){scroll-margin-top:76px}
@media(min-width:1100px){.cop :is([id],input,select,textarea){scroll-margin-top:94px}}
body.co{background:var(--cream);padding-bottom:0}
body.co .strip{font-size:14px}
.co-red .cop .new{color:var(--co-new)}
.co-red .cop .co-hint button.new{color:var(--co-cream)}
.cop abbr[title]{text-decoration:none;color:var(--co-red);font-weight:700;border:0}
.cop{--co-hex-off:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 30'%3E%3Cpolygon points='13,1.6 24.4,8.2 24.4,21.8 13,28.4 1.6,21.8 1.6,8.2' fill='%23fff' stroke='%233A1E05' stroke-width='2.6' stroke-linejoin='round'/%3E%3C/svg%3E");--co-hex-on:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 30'%3E%3Cpolygon points='13,1.6 24.4,8.2 24.4,21.8 13,28.4 1.6,21.8 1.6,8.2' fill='%23FDC101' stroke='%233A1E05' stroke-width='2.6' stroke-linejoin='round'/%3E%3Cpath d='M7.4 15.4l3.9 3.9L18.8 11' fill='none' stroke='%233A1E05' stroke-width='3.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");--co-hex-bad:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 30'%3E%3Cpolygon points='13,1.6 24.4,8.2 24.4,21.8 13,28.4 1.6,21.8 1.6,8.2' fill='%23fff' stroke='%23E4002B' stroke-width='2.6' stroke-linejoin='round'/%3E%3C/svg%3E")}

/* our hidden boxes stay hidden, whatever display a class gives them (form.checkout[hidden] included) */
.cop [hidden]{display:none!important}

/* ---------- page frame ---------- */
.cop{padding:14px 0 40px}
.cop .co-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 16px;margin-bottom:12px}
.cop .co-head__h{margin:0;font-size:clamp(26px,6.4vw,40px);line-height:1.1}
.cop .co-head__how{font-weight:500;font-size:15px;text-underline-offset:4px;white-space:nowrap;padding:10px 0}
.cop .ct-count{font:500 .5em/1 var(--co-body)}
.cop .cop__grid{display:grid;gap:14px}
.cop .cop__main{display:grid;gap:14px;min-width:0}
.cop .cop__side{min-width:0}
@media(max-width:480px){.cop .wrap{padding-inline:12px}}
@media(min-width:980px){
  .cop{padding-top:26px}
  .cop .co-head{margin-bottom:20px}
  .cop .cop__grid{grid-template-columns:minmax(0,1fr) minmax(340px,420px);gap:28px;align-items:start}
  .cop .cop__side{grid-column:2;grid-row:1;position:sticky;top:96px;max-height:calc(100dvh - 110px);overflow:auto;border-radius:var(--co-r)}
  .cop .cop__main{grid-column:1;grid-row:1;gap:20px}
}

/* ---------- shop messages (WooCommerce notices in our look: parts/co/wc-notice-*.php) ---------- */
.cop .woocommerce-notices-wrapper:empty{display:none}
.cop .co-note{margin:0 0 12px;padding:12px 14px;border-radius:12px;border:2px solid var(--co-ink);background:var(--co-warn-bg);font-weight:500;font-size:16px;line-height:1.35;color:var(--co-ink)}
.cop .co-note[hidden]{display:none}
.cop .co-note--err{background:#FFE1E1;border-color:var(--co-red)}
.cop .co-note--ok{background:#E4F2E8;border-color:var(--co-ok)}
.cop .co-note ul{margin:6px 0 0;padding-left:1.1em;list-style:disc;font-weight:400}
.cop .co-note li{padding:3px 0}
.cop .co-note a{font-weight:700}
/* a WooCommerce notice list: one message reads as a line, several as a list */
.cop .co-note ul.co-note__list{margin:0}
.cop .co-note ul.co-note__list.is-one{list-style:none;padding-left:0}
.cop .co-note .button,.cop .co-note .wc-forward,.cop .co-note .wc-backward{float:none;margin-left:6px;font-weight:700}
.cop .co-emptybox{margin:0 0 14px;padding:22px 18px;border-radius:var(--co-r);background:#fff;font-size:18px}
.cop .co-emptybox[hidden]{display:none}
.cop .co-emptybox a{font-weight:700;margin-left:8px}
.is-empty .cop form.checkout{display:none}

/* ---------- cards ---------- */
.cop .co-card{background:#fff;border-radius:var(--co-r);padding:16px 14px;min-width:0}
.cop .co-card h2{display:flex;align-items:center;gap:10px;font-size:26px;margin:0 0 14px}
.cop .co-card h2 i{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--co-honey);border:2px solid var(--co-ink);font:700 17px/1 var(--co-display);font-style:normal;flex:none}
@media(min-width:700px){.cop .co-card{padding:26px 28px}.cop .co-card h2{font-size:30px}}
@media(max-width:350px){.cop .co-card h2{font-size:23px}}

/* ---------- order summary (checkout): folded bar on phones, always-open column on computers ---------- */
.cop .co-sum{position:relative;background:var(--co-honey);border-radius:var(--co-r);padding:0;margin:0}
.cop .co-sum summary{display:flex;align-items:center;gap:8px;min-height:0;padding:14px 16px;font:700 18px/1.2 var(--co-display);cursor:pointer;list-style:none}
.cop .co-sum summary::-webkit-details-marker{display:none}
.cop .co-sum summary::after,.cop .co-sum[open] summary::after{content:none}
.cop .co-sum p{padding:0}
.cop .co-sum__t{min-width:0}
.cop .co-sum__t small{font-weight:500;font-size:15px}
.cop .co-sum__chg{margin-left:6px;font:700 14px/1 var(--co-display);text-decoration:underline;text-underline-offset:4px}
.cop .co-sum[open] .co-sum__chg{display:none}
.cop .co-sum__total{margin-left:auto;font-size:21px;white-space:nowrap}
.cop .co-sum__chev{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.cop .co-sum[open] .co-sum__chev{transform:rotate(180deg)}
.cop .co-sum__body{padding:0 16px 16px}
.cop .co-sum .co-meet{padding:8px 10px}
.cop .co-sum .co-undo{padding:8px 12px}
/* "Atvērt grozu" (his pick G1): a text link on the right; on computers it sits in the title row itself */
.cop .co-sum__open{display:flex;align-items:center;gap:8px;width:fit-content;min-height:44px;margin:-6px 0 4px auto;font:700 15px/1.1 var(--co-display);color:var(--co-ink);text-underline-offset:4px}
.cop .co-sum__open svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.cop .co-sum__open svg:first-child{display:none}
@media(min-width:980px){
  .cop .co-sum__open{position:absolute;top:14px;right:24px;margin:0}
  .cop .co-sum summary{padding:22px 24px 12px;font-size:24px}
  .js .cop .co-sum summary{pointer-events:none}
  .cop .co-sum__chev,.cop .co-sum summary .co-sum__total,.cop .co-sum__chg{display:none}
  .cop .co-sum__body{padding:0 24px 24px}
}

/* coupon box */
.cop .co-coupon{margin:8px 0 2px}
.cop .co-coupon__box{display:flex;gap:8px;margin:2px 0 6px}
.cop .co-coupon__box[hidden]{display:none}
.cop .co-coupon__box input{flex:1;min-width:0;font:inherit;font-size:max(1rem,17px);min-height:48px;padding:0 12px;border:2px solid var(--co-ink);border-radius:12px;background:#fff;color:var(--co-ink);text-transform:uppercase}
.cop .co-coupon__go{min-height:48px;padding:0 18px;font-size:16px}
/* messages on the honey box are ink, with a red mark for a problem (red text on honey is too weak) */
.cop .co-coupon__msg{display:flex;gap:6px;align-items:flex-start;font-size:15px;font-weight:700}
.cop .co-coupon__msg[hidden]{display:none}
.cop .co-coupon__msg.is-bad::before{content:"!";content:"!" / "";flex:none;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--co-err-d);color:#fff;font:700 12px/1 var(--co-body)}
/* the note where a coupon and the jar discount meet (owner's rule: the bigger one wins on mix jars) */
.cop .co-meet{margin:10px 0 0;padding:8px 10px;border-radius:10px;background:var(--co-cream);font-size:14px;line-height:1.35}
.cop .co-meet[hidden]{display:none}

/* ---------- fields ---------- */
.cop .form-row{display:flex;flex-direction:column;gap:5px;margin:0 0 14px;padding:0;min-width:0}
.cop .form-row[hidden]{display:none}
.cop .form-row label{font-weight:700;font-size:15px}
.cop .form-row label small{font-weight:400}
.cop .form-row input,.cop .form-row textarea,.cop .form-row select,.cop .co-find__box input,.cop .co-select select{font:inherit;font-size:max(1rem,17px);min-height:52px;margin:0;padding:0 14px;border:2px solid var(--co-field);border-radius:12px;background:#fff;color:var(--co-ink);width:100%;min-width:0;box-shadow:none}
.cop .form-row select{appearance:none;padding-right:42px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%233A1E05' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center/22px no-repeat;text-overflow:ellipsis}
.cop .form-row textarea{padding:12px 14px;min-height:96px;resize:vertical;line-height:1.4}
.cop .form-row input:focus-visible,.cop .form-row textarea:focus-visible,.cop .form-row select:focus-visible,.cop .co-find__box:focus-within,.cop .co-select select:focus-visible,.cop .co-coupon__box input:focus-visible{outline:0;border-color:var(--co-ink);box-shadow:0 0 0 2px var(--co-ink)}
.cop .form-row input[aria-invalid=true],.cop .form-row textarea[aria-invalid=true]{border-color:var(--co-red);background:#FFF5F5}
.cop .form-row .description{font-size:14px;color:var(--co-muted)}
.cop .form-2{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:start}
@media(max-width:350px){.cop .form-2{grid-template-columns:1fr}}
.cop .co-err{display:flex;gap:6px;align-items:flex-start;font-size:14px;font-weight:700;color:var(--co-red);line-height:1.3}
.cop .co-err::before{content:"!";content:"!" / "";flex:none;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--co-red);color:#fff;font:700 12px/1 var(--co-body)}
.cop .co-err[hidden]{display:none}
.cop .co-err--block{margin:8px 0 2px}
.cop .co-check{display:flex;gap:12px;align-items:flex-start;margin:12px 0;font-size:16px}
.cop .co-check input{appearance:none;flex:none;width:26px;height:26px;margin:0;border:2px solid var(--co-ink);border-radius:7px;background:#fff;display:grid;place-items:center}
.cop .co-check label{display:block;margin:-9px 0;padding:10px 0;cursor:pointer}
.cop .co-check label a.co-terms{font-weight:700;text-underline-offset:4px}   /* the terms link inside the tick's own sentence (owner 20.11) */
/* consent ticks (JB Checkout 0.3.2): a plain group, the heading above the three ticks */
.cop .co-consents{border:0;margin:0;padding:0;min-width:0}
.cop .co-consents__h{display:block;padding:0;margin:16px 0 0;font:700 16px/1.35 var(--co-body)}
.cop .co-company{margin:4px 0 6px;padding:14px 14px 2px;border-radius:14px;background:var(--co-soft);border:2px solid var(--co-line)}
.cop .co-company[hidden]{display:none}
.cop .co-more{margin:2px 0 0}
/* email hint: a warning with a one-tap fix, never a block */
.cop .co-hint{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:4px;padding:9px 12px;border-radius:10px;background:var(--co-warn-bg);border:2px solid var(--co-ink);font-size:15px;line-height:1.3}
.cop .co-hint[hidden]{display:none}
.cop .co-hint b{overflow-wrap:anywhere}
.cop .co-hint button{flex:none;min-height:44px;padding:0 14px;border:0;border-radius:9px;background:var(--co-ink);color:var(--co-cream);font:700 15px/1 var(--co-display)}
.cop .co-hint.is-plain button{display:none}

/* ---------- option rows (delivery and payment): radio + labels + a text that shows while the row is chosen ----------
   The chosen row also carries the class .is-on (printed by the server, kept by the script), so nothing must-see hangs on :has() alone. */
.cop .co-opts,.cop .co-pay{border:0;margin:0;padding:0;display:grid;gap:8px;min-width:0}
.cop .co-opt{position:relative;display:grid;grid-template-columns:26px auto minmax(0,1fr) auto;align-items:center;gap:6px 12px;min-height:60px;padding:10px 14px;border:2px solid transparent;border-radius:14px;background:var(--co-soft);cursor:pointer}
.cop .co-opt:is(.is-on,:has(>input:checked)){background:#FFE48A;border-color:var(--co-ink)}
.cop .co-opt:has(>input:focus-visible){outline:3px solid var(--co-ink);outline-offset:2px}
@supports not selector(:has(a)){.cop .co-opt>input:focus-visible{outline:3px solid var(--co-ink);outline-offset:2px}}
.cop .co-opt>input{appearance:none;margin:0;outline:0;cursor:pointer;display:grid;place-items:center}
.cop .co-plate{display:grid;place-items:center;width:62px;height:38px;padding:5px 7px;border-radius:9px;background:#fff;border:1px solid var(--co-line);cursor:pointer}
.cop .co-plate img{max-height:100%;width:auto;max-width:100%;object-fit:contain}
.cop .co-plate--pin svg{width:22px;height:22px;fill:none;stroke:var(--co-ink);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cop .co-opt__n{font:700 17px/1.2 var(--co-display);min-width:0;overflow-wrap:anywhere;cursor:pointer}
.cop .co-opt__n small{display:block;font:400 14px/1.3 var(--co-body);margin-top:2px}
.cop .co-opt__p{font:700 16px/1 var(--co-display);white-space:nowrap}
.cop .co-opt__p.is-free{color:var(--co-ok)}
.cop .co-opt__more{display:none;grid-column:2/-1;margin:0;font:400 14px/1.4 var(--co-body);cursor:default}
.cop .co-opt:is(.is-on,:has(>input:checked)) .co-opt__more{display:block}
.cop .co-opt__more a{font-weight:700;white-space:nowrap}
@media(max-width:480px){
  .cop .co-opt{gap:6px 10px;padding:10px 12px}
  .cop .co-plate{width:54px;height:36px;padding:5px 6px}
  .cop .co-opt__n{font-size:16px}
}
@media(max-width:360px){
  /* very narrow phones: the price drops under the name instead of colliding with it */
  .cop .co-opts .co-opt{grid-template-columns:26px auto minmax(0,1fr)}
  .cop .co-opts .co-opt__p{grid-column:3;justify-self:start;margin-top:-2px}
  .cop .co-plate{width:46px}
}

/* ---------- H3 honeycomb marks (his pick 19.11 night): option rows, tick boxes, picked locker, chosen bank.
   The mark is a picture on the input itself, so the focus ring is never cut. ---------- */
.cop .co-opt>input,.cop .co-check input{width:26px;height:30px;border:0;border-radius:6px;background:var(--co-hex-off) center/26px 30px no-repeat;box-shadow:none}
.cop .co-opt>input:checked,.cop .co-check input:checked{background-image:var(--co-hex-on);background-color:transparent}
.cop .co-opt>input:checked::before,.cop .co-check input:checked::before{content:none}
.cop .co-check input[aria-invalid=true]{background-image:var(--co-hex-bad);box-shadow:none}
.cop .co-check input{margin-top:-2px}
.cop .co-check input:focus-visible{outline:3px solid var(--co-ink);outline-offset:2px}
@media(prefers-reduced-motion:no-preference){
  .cop .co-opt>input:checked,.cop .co-check input:checked{animation:co-hex-pop .22s ease-out}
  @keyframes co-hex-pop{from{transform:scale(.7)}60%{transform:scale(1.12)}}
}

/* ---------- locker picker (L1) ---------- */
.cop .co-locker{margin-top:14px;padding:14px;border-radius:14px;background:var(--co-soft);border:2px solid var(--co-line)}
.cop .co-locker[hidden]{display:none}
.cop .co-locker.is-bad{border-color:var(--co-red)}
.cop .co-locker__h{font:700 17px/1.2 var(--co-display);margin-bottom:8px}
.cop .co-locker__note{margin-top:10px;font-size:14px;color:var(--co-muted)}
.cop .co-find__box{display:flex;align-items:center;gap:8px;padding-left:12px;border:2px solid var(--co-field);border-radius:12px;background:#fff}
.cop .co-find__box svg{width:22px;height:22px;fill:none;stroke:var(--co-ink);stroke-width:2.2;stroke-linecap:round;flex:none}
.cop .co-find__box input{border:0;padding-left:0;outline:0;background:transparent;box-shadow:none!important}
.cop .co-find__box input::-webkit-search-cancel-button{appearance:none;width:22px;height:22px;margin-right:10px;background:var(--co-ink);cursor:pointer;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' stroke='%23000' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' stroke='%23000' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}
.cop .co-find__last{margin-top:8px;font-size:14px}
.cop .co-find__last[hidden]{display:none}
.cop .co-find__last button{border:0;background:var(--co-honey);color:var(--co-ink);border-radius:99px;min-height:44px;padding:7px 14px;font:700 14px/1.15 var(--co-display);text-align:left}
.cop .co-find__list{margin-top:8px;display:grid;gap:4px;max-height:324px;overflow:auto;overscroll-behavior:contain}
.cop .co-find__list:empty{display:none}
.cop .co-find__list button{display:block;width:100%;min-height:48px;padding:9px 12px;border:0;border-radius:10px;background:#fff;color:var(--co-ink);text-align:left;font:500 16px/1.25 var(--co-body);overflow-wrap:anywhere}
.cop .co-find__list button:hover,.cop .co-find__list button:focus-visible{background:var(--co-honey)}
.cop .co-find__list li.more{padding:6px 12px;font-size:14px;color:var(--co-muted)}
.cop .co-find__none{margin-top:8px;font-size:15px}
.cop .co-find__none[hidden]{display:none}
.cop .co-picked{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:#fff;border:2px solid var(--co-ok)}
.cop .co-picked[hidden]{display:none}
.cop .co-picked svg{width:26px;height:30px;padding:0;border-radius:0;background:var(--co-hex-on) center/contain no-repeat;fill:none;stroke:none}
.cop .co-picked small{display:block;font-size:13px;font-weight:700}
.cop .co-picked b{font:700 16px/1.25 var(--co-display);overflow-wrap:anywhere}
.cop .co-picked button{border:0;background:none;color:var(--co-ink);min-height:44px;padding:0 2px;font:700 15px/1.2 var(--co-display);text-decoration:underline;text-underline-offset:4px}
.cop .co-locker.has-pick .co-find{display:none}
/* the plain select is the no-script way; with scripts on it only carries the value (the script also takes it out of the tab order).
   Without scripts the search box and the "picked" plate (its button needs the script) are hidden, so nothing shown is dead. */
.js .cop .co-select{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html:not(.js) .cop .co-find,html:not(.js) .cop .co-picked{display:none}
.cop .co-locker #lk-err{margin-top:8px}

/* ---------- offer slot (do_action jbc_checkout_offer; nothing uses it yet) ---------- */
.cop .co-bump{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 14px;border-radius:var(--co-r);background:var(--co-pine);color:var(--co-cream)}
.cop .co-bump img{width:64px;height:64px;object-fit:contain;border-radius:12px;background:#fff}
.cop .co-bump b{display:block;font:700 18px/1.2 var(--co-display)}
.cop .co-bump small{font-size:14px;line-height:1.3;display:block;margin-top:3px}
.cop .co-bump__t{cursor:pointer}
.cop .co-switch{position:relative;display:grid;place-items:center;width:66px;height:46px;cursor:pointer}
.cop .co-switch input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer}
.cop .co-switch i{position:relative;display:block;width:58px;height:34px;border-radius:99px;background:rgba(255,246,227,.25);border:2px solid var(--co-cream);transition:background .15s;pointer-events:none}
.cop .co-switch i::after{content:"";position:absolute;top:2px;left:2px;width:26px;height:26px;border-radius:50%;background:#fff;transition:transform .15s}
.cop .co-switch input:checked~i{background:var(--co-honey)}
.cop .co-switch input:checked~i::after{transform:translateX(24px)}
.cop .co-switch input:focus-visible~i{outline:3px solid var(--co-cream);outline-offset:2px}

/* ---------- payment rows (M1). Bank buttons, card and wallet logos and the ESTO warning stay here for the payment plugin. ---------- */
.cop #payment{margin:0;padding:0;background:none;border:0}
.cop .co-opt--pay{grid-template-columns:26px minmax(0,1fr) auto}
.cop .co-logos{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end;cursor:pointer}
/* every logo keeps its own shape (owner 22.11 on his iPhone: "make sure they are not distorted"): never squeezed sideways */
.cop .co-logos>img,.cop .ct-pays img{flex:0 0 auto;max-width:none;object-fit:contain}
.cop .co-logos>img{height:20px;width:auto}
.cop .co-logos>img[src*="master"]{height:24px}
.cop .co-logos .lg-wallet{height:30px}
.cop .co-logos .lg-wallet.lg-c2p{height:27px}
.cop .co-logos .lg-esto{height:26px}
/* card tiles: every tile is cropped to its own frame (all have the same shape) and drawn in the same box, so the outlines match */
.cop .co-logos>img.lg-tile{width:42px;height:27px;object-fit:contain}
.cop .co-chip{display:inline-flex;align-items:center;height:26px;padding:0 8px;border-radius:6px;background:#fff;border:1px solid var(--co-line)}
.cop .co-chip--doc svg{width:18px;height:18px;fill:none;stroke:var(--co-ink);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
/* the credit warning: black letters on a white background, at the bottom of the text, clearly readable */
.cop .co-warnline{display:block;margin-top:8px;padding:6px 8px;border:2px solid #000;border-radius:8px;background:#fff;color:#000;font:700 14px/1.25 var(--co-body)}
@media(max-width:480px){.cop .co-logos .lg-esto{height:22px}.cop .co-logos .lg-esto--wide{height:20px}}
@media(max-width:350px){
  .cop .co-logos .lg-esto--wide{height:17px}
  .cop .co-logos>img[src*="visa"]{height:16px}
  .cop .co-logos .lg-wallet{height:24px}
  .cop .co-logos .lg-c2p{display:none}
  .cop .co-logos>img.lg-tile{width:34px;height:22px}
}
/* bank row (B2): small passive logos when closed, big logo buttons when chosen. Closed: the logos keep their size and shape and go
   on to a second line when the row is too narrow (22.11: one squeezed line made Indexo and Paysera look flattened on an iPhone) */
.cop .co-opt--bank{grid-template-columns:26px minmax(0,1fr)}
.cop .co-logos--banks{grid-column:2/-1;justify-content:flex-start;flex-wrap:wrap;gap:0 4px;margin:-6px 0 -8px -6px;min-width:0}
.cop .co-logos--banks img{height:28px;width:auto;min-width:0;flex:0 0 auto}
.cop .co-opt--bank:is(.is-on,:has(>input:checked)) .co-logos--banks{display:none}
.cop .co-banks{display:none;border:0;margin:0;padding:0;min-width:0}
.cop .co-opt--bank:is(.is-on,:has(>input:checked)) .co-banks{display:grid;grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:4px}
.cop .co-banks__h{padding:0;margin-bottom:8px;font:700 14px/1.2 var(--co-display)}
.cop .co-bank{position:relative;display:block;cursor:pointer;min-width:0}
.cop .co-bank input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer}
.cop .co-bank>span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;min-height:60px;height:100%;padding:4px 6px;border-radius:10px;background:#fff;border:2px solid var(--co-field)}
.cop .co-bank>span img{height:44px;width:100%;object-fit:contain}
.cop .co-bank input:checked+span{border-color:var(--co-ink);box-shadow:inset 0 0 0 2px var(--co-ink)}
.cop .co-bank input:checked+span::after{content:"";position:absolute;top:-9px;right:-6px;width:21px;height:24px;background:var(--co-hex-on) center/contain no-repeat}
.cop .co-bank input:focus-visible+span{outline:3px solid var(--co-ink);outline-offset:2px}
.cop .co-bank input:disabled{cursor:not-allowed}
.cop .co-bank input:disabled+span{background:#F4EEDF;border-style:dashed}
.cop .co-bank input:disabled+span img{opacity:.4;filter:grayscale(1)}
.cop .co-banks .co-err,.cop .co-banks__legal{grid-column:1/-1}
.cop .co-banks .co-err,.cop .co-opt:is(.is-on,:has(>input:checked)) .co-err{color:var(--co-err-d)}
.cop .co-banks .co-err::before{background:var(--co-err-d)}
.cop .co-banks__legal{font-size:13px;line-height:1.35;color:var(--co-muted)}
.co-red .cop .co-banks__legal.new{color:var(--co-new)}
@media(min-width:700px){.cop .co-opt--bank:is(.is-on,:has(>input:checked)) .co-banks{grid-template-columns:repeat(5,minmax(0,1fr))}.cop .co-logos--banks img{height:32px}}
@media(max-width:350px){
  .cop .co-logos--banks img{height:22px}
  .cop .co-opt--bank:is(.is-on,:has(>input:checked)) .co-banks{grid-template-columns:1fr 1fr}
  .cop .co-bank>span img{height:38px}
  /* smallest phones: a little more room between the logos of the closed Internetbanka row, which wraps like on every phone */
  .cop .co-logos--banks{gap:0 6px;margin-bottom:-4px}
  .cop .co-logos--banks img{height:26px}
}

/* ---------- place order (#jbc-place keeps WooCommerce's classes form-row place-order: the field-row layout is taken off) ---------- */
.cop #jbc-place.form-row{display:block;margin:0;padding:0}
.cop .co-trust{display:flex;gap:8px;align-items:flex-start;justify-content:center;margin-top:16px;font-size:14px;text-align:left}
.cop .co-trust svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.cop .co-noscript{margin:0 0 6px}

/* WooCommerce's grey veil while it redraws the payment rows: a calm see-through cream, no spinner (its colours are inline styles) */
.cop .blockUI.blockOverlay{background:rgba(255,246,227,.55)!important;opacity:1!important;cursor:wait!important;border-radius:14px}
.cop .blockUI.blockMsg{display:none!important}

/* ---------- foot ---------- */
.cop .co-foot{margin-top:26px;padding-top:12px;border-top:2px dashed var(--co-line-d);display:flex;flex-wrap:wrap;gap:0 18px;justify-content:center;font-size:15px;font-weight:500}
.cop .co-foot a{display:inline-block;padding:11px 0}
.cop .co-foot p{flex-basis:100%;text-align:center;margin:0;text-wrap:balance}   /* balance: on a phone the phone number is not left alone on the second line */

/* ================= basket page (/grozs/) ================= */
.cop .ct-grid{display:grid;gap:14px}
@media(min-width:980px){
  /* lines and "add more" on the left, the summary on the right over both rows; the page order stays lines, summary, add more */
  .cop .ct-grid{grid-template-columns:minmax(0,1fr) minmax(340px,420px);grid-template-areas:"lines sum" "ups sum";gap:20px 28px;align-items:start}
  .cop .ct-lines{grid-area:lines}.cop .ct-ups{grid-area:ups}
  .cop .ct-side{grid-area:sum;position:sticky;top:96px}
}
.cop .ct-grid[hidden]{display:none}
.cop .ct-card{background:#fff;border-radius:var(--co-r);padding:16px 14px;min-width:0}
@media(min-width:700px){.cop .ct-card{padding:24px 28px}}
.cop .ct-card h2{font-size:24px;margin:0 0 12px}
.cop .ct-card form{margin:0}
/* lines on the page are roomier than in the checkout bar */
.cop .ct-card .co-lines li{grid-template-columns:72px minmax(0,1fr) auto}
.cop .ct-card .co-thumb,.cop .ct-card .co-thumb img{width:72px;height:72px}
.cop .ct-card .co-thumb{background:var(--co-soft)}
.cop .ct-card .co-lines li+li{border-top-color:var(--co-line)}
.cop .ct-card .co-lines__n b{font-size:19px}
.cop .ct-card .co-lines__p{font-size:19px}
.cop .wrap>.co-undo{margin:0 0 14px;background:#fff}
/* summary column */
.cop .ct-sum{background:var(--co-honey);border-radius:var(--co-r);padding:16px}
@media(min-width:980px){.cop .ct-sum{padding:22px 24px 24px}}
.cop .ct-sum h2{font-size:24px;margin:0 0 10px}
.cop .ct-sum .co-free{margin:0 0 12px}
.cop .ct-sum .co-totals{margin-top:6px}
.cop .ct-ship{font-size:14px;line-height:1.35;color:var(--co-ink)}
.cop .ct-totlabel-s{font:500 14px/1 var(--co-body)}
.cop .ct-sum .co-place{margin-top:14px}
.cop .ct-pays{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:center;margin-top:14px}
.cop .ct-pays img{height:24px;width:auto}
.cop .ct-pays img.lg-tile{width:37px;height:24px}
.cop .ct-pays span{font-size:14px;font-weight:500}
.cop .ct-pays[hidden],.cop .ct-pays img[hidden]{display:none}
.cop .ct-safe{display:flex;gap:8px;justify-content:center;align-items:flex-start;margin-top:10px;font-size:14px}
.cop .ct-safe svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.cop .ct-more{margin-top:12px;text-align:center;font:700 15px/1 var(--co-display)}
.cop .ct-more a{display:inline-block;padding:10px 0;text-underline-offset:4px}
/* "add one more flavour" row */
.cop .ct-ups[hidden]{display:none}
.cop .ct-ups h2{font-size:24px;margin-bottom:4px}
.cop .ct-ups>p{font-size:15px;margin-bottom:12px}
.cop .ct-ups__row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media(min-width:700px){.cop .ct-ups__row{grid-template-columns:repeat(4,minmax(0,1fr))}}
.cop .ct-up{display:grid;gap:6px;padding:10px;border-radius:14px;background:var(--co-soft);text-align:center;min-width:0}
.cop .ct-up img{width:100%;max-width:120px;height:auto;aspect-ratio:1;object-fit:contain;margin:0 auto;border-radius:12px;background:#fff}
.cop .ct-up b{font:700 16px/1.2 var(--co-display);overflow-wrap:anywhere}
.cop .ct-up small{font-size:14px}
.cop .ct-up button{min-height:44px;border:2px solid var(--co-ink);border-radius:11px;background:#fff;color:var(--co-ink);font:700 15px/1 var(--co-display)}
.cop .ct-up button:hover{background:var(--co-honey)}
.cop .ct-up button[disabled],.cop .ct-up button[aria-disabled=true],.cop .ct-up button[aria-disabled=true]:hover{border-color:var(--co-ok);color:var(--co-ok);background:#fff}
/* empty basket */
.cop .ct-empty{display:grid;justify-items:center;gap:12px;padding:36px 18px;border-radius:var(--co-r);background:#fff;text-align:center}
.cop .ct-empty[hidden]{display:none}
.cop .ct-empty img.ct-bee{width:160px;height:auto}
.cop .ct-empty h2{font-size:28px;margin:0}
.cop .ct-empty .co-place{width:auto;min-height:56px;padding:0 28px;margin-top:4px;text-decoration:none}
.is-empty .cop .ct-grid{display:none}

/* ================= WooCommerce's own thank-you and pay pages (light styling only, until the pages after the checkout are built) ================= */
.cop--after .woocommerce{font-size:16px}
.cop--after .woocommerce-order,.cop--after #order_review{display:grid;gap:14px;min-width:0}
.cop--after :is(.woocommerce-order-overview,.woocommerce-order-details,.woocommerce-customer-details,.woocommerce-bacs-bank-details,#order_review){margin:0;padding:16px 14px;border-radius:var(--co-r);background:#fff;min-width:0}
.cop--after .woocommerce-order-overview{display:grid;gap:8px;list-style:none}
.cop--after .woocommerce-order-overview li{margin:0}
.cop--after h2,.cop--after h3{font-size:clamp(20px,5vw,26px);margin:0 0 10px}
.cop--after table{display:block;width:100%;max-width:100%;overflow-x:auto;border-collapse:collapse;font-size:15px}
.cop--after :is(th,td){padding:8px 10px;border-bottom:1px solid var(--co-line);text-align:left;vertical-align:top;overflow-wrap:anywhere}
.cop--after .woocommerce-thankyou-order-received{margin:0 0 4px;font:700 20px/1.3 var(--co-display)}
.cop--after .button,.cop--after button[type=submit]{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 22px;border:0;border-radius:12px;background:var(--co-pay);color:#fff;font:700 18px/1.1 var(--co-display);text-decoration:none;cursor:pointer}
.cop--after #payment ul{list-style:none;padding:0;margin:0 0 12px;display:grid;gap:8px}
.cop--after #payment li{padding:10px 12px;border-radius:12px;background:var(--co-soft)}
@media(min-width:700px){.cop--after :is(.woocommerce-order-overview,.woocommerce-order-details,.woocommerce-customer-details,.woocommerce-bacs-bank-details,#order_review){padding:22px 26px}}

/* ---------- Windows high contrast: chosen things must still look chosen ---------- */
@media(forced-colors:active){
  .cop .co-opt>input:checked::before{background:CanvasText}
  .cop .co-opt:is(.is-on,:has(>input:checked)){border:3px solid Highlight}
  .cop .co-bank input:checked+span{outline:3px solid Highlight;outline-offset:-3px}
  .cop .co-check input:checked{background:Highlight}
  .cop .co-switch i{border:2px solid CanvasText}
  .cop .co-switch i::after{background:CanvasText}
  .cop .co-switch input:checked~i{background:Highlight;border-color:Highlight}
  .cop .form-row input:focus-visible,.cop .form-row textarea:focus-visible,.cop .form-row select:focus-visible,.cop .co-find__box:focus-within,.cop .co-select select:focus-visible,.cop .co-coupon__box input:focus-visible{outline:2px solid Highlight;outline-offset:1px}
}
@media(prefers-reduced-motion:reduce){.cop *,.cop *::before,.cop *::after{transition:none!important;animation:none!important}}
