/* The checker lives inside the shop's existing header, footer and content frame. */
/* Focus and drag targets must be in place before the next pointer movement. */
html:has(.tg-commerce-frame #tg-delivery),
html:has(.tgr-home-checker :focus) {
    scroll-behavior:auto;
}
#tg-delivery :is(input, select, button, [draggable="true"]) {
    scroll-margin-block-start:calc(var(--head-h, 144px) + var(--tgr-admin-h, 0px) + 24px);
}
body.tg-reference.tg-commerce-frame #tg-main:has(#tg-delivery) {
    max-width: none; padding: var(--head-h, 144px) 0 0; margin-inline: 0;
}
#tg-delivery {
    --paper: #f4f3ee; --ink: #19191b; --muted: #555552; --line: #d8d7cf;
    --signal: var(--yellow, #ffdf00); --edge: max(5vw, calc((100% - 1440px) / 2));
    background: var(--paper); color: var(--ink); font: 400 1rem/1.5 Barlow, Arial, sans-serif;
    display: flow-root; overflow-wrap: anywhere;
}
#tg-delivery *, #tg-delivery *::before, #tg-delivery *::after {box-sizing:border-box}
#tg-delivery [hidden] {display:none !important}
#tg-delivery .tgs-sr {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#tg-delivery :is(h1,h2) {font-family:"Barlow Condensed",Impact,sans-serif;font-weight:800;font-style:italic;text-transform:uppercase;letter-spacing:-.015em;color:inherit;margin:0;line-height:1}
#tg-delivery h1 {font-size:clamp(3.25rem,6.4vw,6.5rem);text-wrap:balance}
#tg-delivery h2 {font-size:clamp(1.85rem,3.1vw,3.45rem)}
#tg-delivery p {margin:0;color:inherit;line-height:1.5}
#tg-delivery :is(.tgs-label,.tgs-crumb) {display:block;text-transform:uppercase;font-size:.75rem;letter-spacing:.16em;font-weight:750}
#tg-delivery .tgs-intro {display:flex;justify-content:space-between;align-items:center;gap:2rem;padding:clamp(2.4rem,5.5vw,5.5rem) var(--edge);background:var(--ink);color:#fff;border-bottom:6px solid var(--signal)}
#tg-delivery .tgs-crumb {color:var(--signal);margin-bottom:1rem}
#tg-delivery .tgs-intro p {margin-top:1.2rem;max-width:54ch;color:#deded8;font-size:clamp(1rem,1.55vw,1.25rem)}
#tg-delivery .tgs-ticket {width:15rem;flex:none;padding:1rem 1.25rem;background:var(--signal);color:#141414;transform:rotate(-2deg)}
#tg-delivery .tgs-ticket-top,#tg-delivery .tgs-cartcap,#tg-delivery .tgs-listmeta,#tg-delivery .tgs-resultbox .tgs-row {display:flex;align-items:baseline;justify-content:space-between;gap:.6rem}
#tg-delivery .tgs-ticket-top {font-size:.72rem;letter-spacing:.14em}
#tg-delivery .tgs-ticket strong {font-size:2.5rem;line-height:1.3;display:block}
#tg-delivery .tgs-ticket strong small {font-size:1.1rem}
#tg-delivery .tgs-ticket-bottom {padding-top:.45rem;border-top:1px dashed #605900;font-size:.78rem}
#tg-delivery :is(.tgs-dest,.tgs-workbench,.tgs-factshead,.tgs-detailsGrid,.tgs-contact),#tg-delivery noscript p {margin-inline:var(--edge)}
#tg-delivery .tgs-dest {display:flex;flex-wrap:wrap;align-items:end;gap:1rem 1.6rem;padding:clamp(1.4rem,3vw,2.6rem) 0;border-bottom:2px solid var(--ink)}
#tg-delivery .tgs-dest>div:first-child {flex:1 1 19rem}
#tg-delivery .tgs-dest h2 {font-size:clamp(1.6rem,2.6vw,2.6rem);margin-top:.35rem}
#tg-delivery .tgs-field {flex:1 1 10rem;min-width:0;max-width:18rem}
#tg-delivery .tgs-field label {font-size:.9rem;font-weight:650;display:block;margin:0 0 .3rem}
#tg-delivery .tgs-field small {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#tg-delivery :is(input,select) {width:100%;min-width:0;height:2.85rem;padding:0 .7rem;background-color:white;color:var(--ink);font:inherit;border:1px solid #96968f;border-radius:2px}
#tg-delivery .tgs-workbench {display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:clamp(1rem,2.5vw,2.5rem);align-items:start;margin-block:2rem clamp(3rem,6vw,6rem)}
#tg-delivery .tgs-pane {min-width:0;background:white;border:1px solid var(--line);padding:clamp(1rem,2.1vw,2rem)}
#tg-delivery .tgs-workbench h2 {font-size:clamp(1.8rem,2.65vw,2.85rem)}
#tg-delivery .tgs-panelhead p {margin:.5rem 0 1.1rem;color:var(--muted)}
#tg-delivery .tgs-filters {display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:.6rem}
#tg-delivery .tgs-search {position:relative}
#tg-delivery .tgs-search span {position:absolute;top:50%;left:.65rem;transform:translateY(-52%);font-size:1.4rem;pointer-events:none}
#tg-delivery .tgs-search input {padding-left:2rem}
#tg-delivery .tgs-listmeta {margin-top:1.1rem;padding:.5rem 0;border-block:1px solid var(--line);color:var(--muted);font-size:.75rem}
#tg-delivery #tg-sh-products {list-style:none;padding:0;margin:0;max-height:25rem;overflow-y:auto;scrollbar-width:thin}
#tg-delivery .tgs-product,#tg-delivery .tgs-cartline {display:flex;align-items:center;gap:.75rem;padding:.6rem 0;margin:0;border-bottom:1px solid var(--line);width:auto;float:none;background:transparent}
#tg-delivery .tgs-product[draggable] {cursor:grab}
#tg-delivery .tgs-thumb {width:3rem;height:3rem;flex:none;display:grid;place-items:center;background:var(--paper);font-weight:700;font-size:.75rem}
#tg-delivery .tgs-thumb img {width:100%;height:100%;object-fit:contain}
#tg-delivery .tgs-info {flex:1;min-width:0}
#tg-delivery .tgs-info b,#tg-delivery .tgs-info small {display:block;line-height:1.3}
#tg-delivery .tgs-info small {color:var(--muted);margin-top:.2rem;font-size:.8rem}
#tg-delivery button,#tg-delivery .tgs-asklink,#tg-delivery .tgs-contact>a {cursor:pointer;box-shadow:none;min-height:2.75rem;color:var(--ink);background:var(--signal);border:1px solid transparent;border-radius:2px;padding:.55rem 1rem;font:700 1rem/1.15 Barlow,Arial,sans-serif;text-transform:none;letter-spacing:normal}
#tg-delivery :is(.tgs-plus,.tgs-qty button,.tgs-remove) {width:2.75rem;flex:none;display:inline-grid;place-items:center;padding:0;font-size:1.35rem}
#tg-delivery .tgs-qty {display:flex;align-items:center;gap:.45rem;font-variant-numeric:tabular-nums}
#tg-delivery .tgs-qty button,#tg-delivery .tgs-remove,#tg-delivery #tg-sh-more {background:transparent;border-color:var(--line)}
#tg-delivery button:disabled {opacity:.54;cursor:default}
#tg-delivery button:not(:disabled):hover,#tg-delivery .tgs-asklink:hover,#tg-delivery .tgs-contact>a:hover {color:white;background:#222}
#tg-delivery :focus-visible {outline:3px solid #2764a4;outline-offset:2px}
#tg-delivery #tg-sh-moreWrap {text-align:center;margin-top:1rem}
#tg-delivery .tgs-parcel {border-top:5px solid var(--signal)}
#tg-delivery .tgs-parcel.tgs-drag {outline:3px solid var(--ink);background:#fffce6}
#tg-delivery .tgs-count {color:var(--muted);font-size:.85rem}
#tg-delivery .tgs-cartcap {margin:0 0 .65rem}
#tg-delivery .tgs-dropzone {border:1px dashed #919188;padding:1.5rem .7rem;text-align:center;margin-top:1rem;background:var(--paper)}
#tg-delivery .tgs-dropzone :is(b,small,.tgs-box) {display:block}
#tg-delivery .tgs-dropzone .tgs-box {font-size:1.65rem}
#tg-delivery #tg-sh-cartLines {max-height:22rem;overflow:auto}
#tg-delivery .tgs-resultbox {background:var(--ink);color:white;padding:1rem 1.1rem;margin-top:1rem}
#tg-delivery .tgs-resultbox strong {color:var(--signal);font-size:clamp(1.6rem,2.5vw,2.55rem);line-height:1.15;white-space:nowrap}
#tg-delivery .tgs-resultbox small {display:block;color:#e0dfd9}
#tg-delivery .tgs-resultbox .tgs-fee {margin-top:.7rem;padding-top:.6rem;border-top:1px solid #666}
#tg-delivery .tgs-asklink,#tg-delivery .tgs-contact>a {display:inline-flex;align-items:center;text-decoration:none}
#tg-delivery .tgs-asklink {margin-top:.7rem}
#tg-delivery #tg-sh-liveActions {margin-top:.9rem}
#tg-delivery #tg-sh-live {width:100%}
#tg-delivery .tgs-snapshot,#tg-delivery #tg-sh-liveStatus {font-size:.82rem;color:var(--muted);margin-top:.55rem}
#tg-delivery #tg-sh-liveStatus:empty {display:none}
#tg-delivery .tgs-noresults {list-style:none;padding:1rem 0}
#tg-delivery .tgs-factshead {margin-bottom:1.5rem}
#tg-delivery .tgs-factshead h2 {margin-top:.4rem}
#tg-delivery .tgs-detailsGrid {columns:2;column-gap:2rem}
#tg-delivery .tgs-detailsGrid details {break-inside:avoid;background:white;border-top:2px solid var(--ink);margin-bottom:.8rem;padding:0 1.1rem}
#tg-delivery summary {display:flex;align-items:center;justify-content:space-between;gap:1rem;list-style:none;cursor:pointer;font-size:1.08rem;font-weight:700;padding:1rem 0}
#tg-delivery summary::-webkit-details-marker {display:none}
#tg-delivery summary::after {content:'+';font-size:1.4rem}
#tg-delivery details[open]>summary::after {content:'−'}
#tg-delivery details p,#tg-delivery .tgs-carrier-links {padding:0 0 .9rem;margin:0}
#tg-delivery details a {color:inherit;text-decoration:underline;text-underline-offset:3px}
#tg-delivery .tgs-carrier-links {display:flex;flex-wrap:wrap;gap:.3rem 1rem;list-style:none}
#tg-delivery .tgs-carrier-links li {margin:0}
#tg-delivery .tgs-contact {display:flex;align-items:center;justify-content:space-between;gap:1rem;background:var(--ink);color:white;padding:clamp(1.3rem,3vw,3rem);margin-block:2rem 3.5rem}
#tg-delivery .tgs-contact h2 {font-size:clamp(1.7rem,2.8vw,3rem)}
#tg-delivery .tgs-contact p {margin-top:.5rem}
#tg-delivery .tgs-contact>a {flex:none}
@media(max-width:760px) {
    #tg-delivery {--edge:clamp(1rem,4.5vw,2rem)}
    #tg-delivery .tgs-ticket {display:none}
    #tg-delivery .tgs-workbench {grid-template-columns:1fr;margin-top:1rem}
    #tg-delivery .tgs-dest {display:grid;grid-template-columns:1fr 1fr;gap:.8rem}
    #tg-delivery .tgs-dest>div:first-child,#tg-delivery #tg-sh-regionField {grid-column:1/-1}
    #tg-delivery .tgs-field {max-width:none}
    #tg-delivery #tg-sh-products {max-height:17.5rem}
    #tg-delivery .tgs-detailsGrid {columns:1}
    #tg-delivery .tgs-contact {align-items:start;flex-direction:column}
}
@media(max-width:420px) {
    #tg-delivery .tgs-filters {grid-template-columns:1fr}
    #tg-delivery .tgs-cartline {flex-wrap:wrap}
    #tg-delivery .tgs-cartline>.tgs-info {min-width:7rem}
}

/* The home section uses the full comparison width, with personal advice below. */
body.tg-reference .tgr-table-after .calc-split:has(> .tgr-home-checker) {
    grid-template-columns: minmax(0, 1fr);
}
.tgr-home-checker #tg-delivery { --edge: clamp(.75rem, 2vw, 2rem); }
.tgr-home-checker { min-width: 0; scroll-margin-top: calc(var(--head-h, 144px) + var(--tgr-admin-h, 0px)); }
