/* Explicitly opted-in cards only: do not restyle historical documents/editors. */
.gpc-card.gpc-card{position:relative;display:grid;grid-template-columns:100px minmax(0,1fr);grid-template-rows:auto auto auto;gap:10px 12px;padding:12px;margin:0;min-width:0;align-content:start;border:1px solid var(--gemma-border,#d3e1db);border-radius:15px;background:var(--gemma-surface-soft,#f6faf8);color:var(--gemma-text,#203a48);overflow:hidden}
.gpc-card .gpc-media{grid-column:1;grid-row:1;display:block;min-width:0;width:auto;height:110px;box-sizing:border-box;align-self:start;margin:0}
/* Definite tracks prevent portrait images' intrinsic size from expanding the frame. */
.gpc-card .gpc-media>*,.gpc-card .gpc-media:is(button,a){box-sizing:border-box;width:100%;height:110px;min-width:0;min-height:0;margin:0;padding:0;border:1px solid var(--gemma-border,#d3e1db);border-radius:10px;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);place-items:center;background:#fff}
.gpc-card .gpc-media img{display:block;box-sizing:border-box;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;padding:8px;object-fit:contain;object-position:center}
.gpc-card .gpc-identity{grid-column:2;grid-row:1;display:block;min-width:0;margin:0}
.gpc-card.gpc-card .gpc-heading{display:flow-root;grid-column:auto;grid-row:auto;margin:0;padding:9px 10px;border:1px solid var(--gemma-border,#d3e1db);border-radius:8px;background:var(--gemma-surface,#fff);font-size:1rem;line-height:1.3;overflow-wrap:anywhere}
.gpc-card .gpc-heading>a,.gpc-card .gpc-heading>button{display:inline;width:auto;min-height:0;margin:0;padding:0;border:0;background:transparent;color:var(--gemma-heading,#203a48);font:inherit;font-weight:800;text-align:left;white-space:normal;cursor:pointer}
.gpc-card .gpc-tools{float:right;display:flex;flex-direction:column;align-items:flex-end;gap:3px;margin:-5px -6px 3px 7px}
.gpc-card .gpc-discount-slot{display:contents}.gpc-card .gpc-tools:has(.gpc-discount-slot:empty):not(:has(button)){display:none}
.gpc-card .gpc-discount{display:inline-flex;float:none;margin:0;padding:6px 10px;background:#f4511e;color:#fff;border-radius:9px;font-size:.86rem;font-weight:900;line-height:1.2}
.gpc-card .gpc-video{display:grid;place-items:center;width:34px;min-height:30px;height:30px;padding:0;margin:0;border:0;background:transparent;cursor:pointer}
.gpc-video svg{width:28px;height:28px;fill:red}.gpc-video svg path{fill:#fff}
.gpc-description{display:block;min-width:0;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem;line-height:1.5;color:var(--gemma-muted,#607169);cursor:help}
.gpc-description-tooltip{position:fixed;z-index:10050;box-sizing:border-box;max-height:60vh;overflow:auto;white-space:normal;padding:12px 14px;background:var(--gemma-surface,#fff);color:var(--gemma-text,#203a48);border:1px solid var(--gemma-border,#d3e1db);border-radius:10px;box-shadow:0 8px 28px #0003;font-size:.85rem;line-height:1.6;text-align:left}
.gpc-card .gpc-commerce{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0;align-content:start;margin:0;padding:0}
.gpc-card .gpc-commercial{grid-column:1;grid-row:1;display:grid;gap:7px;align-content:start;min-width:0;overflow-wrap:anywhere}
.gpc-card .gpc-controls{grid-column:2;grid-row:1;display:grid;gap:7px;align-self:start;align-content:start;min-width:0;overflow-wrap:anywhere;margin:0;padding:0}
.gpc-card .gpc-controls select{width:100%;min-width:0;min-height:42px;padding:8px 5px;font-size:.85rem;border:1px solid var(--gemma-input-border,#b9d1c4);border-radius:9px;background:var(--gemma-input-bg,#fff);color:var(--gemma-text,#203a48)}
.gpc-card .gpc-stock{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;align-self:start;gap:7px;min-width:0;margin:0;padding:0;font-size:.75rem}
.gpc-card .gpc-stock>*:not(button){grid-column:1/-1;margin:0}.gpc-card .gpc-stock>button{min-width:0;width:100%;min-height:44px;white-space:normal;overflow-wrap:anywhere;margin:0;padding:8px;font:inherit;font-weight:800}.gpc-stock>button:only-of-type{grid-column:1/-1}
.gpc-card .gpc-price{display:grid;gap:3px;min-width:0;font-size:.8rem}.gpc-card .gpc-price p{margin:0}
.gpc-card .gpc-price-line{display:flex;flex-wrap:nowrap;align-items:center;gap:4px;min-width:0;margin:0}
.gpc-card .gpc-amounts{display:inline-flex;align-items:baseline;gap:4px;min-width:0;white-space:nowrap;font-size:clamp(.73rem,1.15vw,1rem);font-weight:800}
.gpc-card .gpc-amounts strong{font-size:inherit}.gpc-card .gpc-amounts del{font-size:.85em;font-weight:400;color:var(--gemma-muted,#607169)}
.gpc-card .gpc-price-line>button{flex:0 0 22px;width:22px;height:22px;min-height:22px;padding:0;border:1px solid var(--gemma-green,#008957);border-radius:50%;background:#fff;color:#008957;font:bold 14px Georgia;cursor:pointer}
.gpc-card .gpc-piece-price,.gpc-card .gpc-piece-placeholder{display:flex;flex-wrap:wrap;gap:4px;font-size:.75rem;color:var(--gemma-muted,#607169)}.gpc-piece-price>*,.gpc-piece-placeholder>*{white-space:nowrap}
.gpc-card .gpc-piece-price>*,.gpc-card .gpc-piece-placeholder>*{font-size:inherit;font-weight:400}
.gpc-card .gpc-piece-price,.gpc-card .gpc-piece-placeholder{font-size:.75rem;line-height:1.5;min-height:1.5em}.gpc-card .gpc-piece-placeholder{visibility:hidden;pointer-events:none}
.gpc-card .gpc-stock.cli-recs__stock{padding:0}.gpc-card .gpc-stock.cli-recs__stock>p:first-child{justify-self:start;padding:3px 7px;border:1px solid #79d7a4;border-radius:16px;background:var(--gemma-surface-muted,#e7f7ef);color:var(--gemma-deep-green,#008957);font-weight:800;font-size:.75rem}.gpc-card .gpc-stock.cli-recs__stock.is-exhausted{padding:8px;border:1px solid #ed8797;border-radius:9px;background:var(--gemma-danger-soft,#fff1f3)}.gpc-card .gpc-stock.cli-recs__stock.is-exhausted>p:first-child{border:0;border-radius:0;background:none;padding:0;color:var(--gemma-text,#203a48)}
.gpc-card .gpc-policy{margin:0;font-size:.78rem;line-height:1.5}
.gpc-card .gpc-purchase{display:inline-block;justify-self:start;padding:4px 7px;border:1px solid var(--gemma-border,#d3e1db);border-radius:999px;background:#fff;color:#24362f;font-size:.75rem;font-weight:800;line-height:1.25;white-space:normal}.gpc-card .gpc-purchase.is-recent{border-color:#92d5af;background:#e5f7ed;color:#006d42}.gpc-card .gpc-purchase.is-warning{border-color:#efc477;background:#fff0cf;color:#864b00}.gpc-card .gpc-purchase.is-stale{border-color:#e6a2ad;background:#fde7eb;color:#a12138}
html[data-gemma-theme="night"] .gpc-purchase.is-recent{border-color:#247a50;background:#123c29;color:#89e0b1}html[data-gemma-theme="night"] .gpc-purchase.is-warning{border-color:#9d6b17;background:#3c2b0e;color:#ffd48a}html[data-gemma-theme="night"] .gpc-purchase.is-stale{border-color:#904153;background:#3e1821;color:#ffabb9}
.gpc-code,.gpc-minimum{display:block;color:var(--gemma-muted,#607169);font-size:.8rem;margin:0;text-align:left}
.gpc-card [role=status]:empty,.gpc-card .gpc-stock:empty{display:none}.gpc-card .gpc-commercial small{max-width:100%}
.gpc-card .gpc-extras{grid-column:1/-1;grid-row:4;min-width:0}
.gpc-grid.gpc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;min-width:0}.gpc-grid>h2,.gpc-grid>h3,.gpc-grid>h4,.gpc-grid>section:not(.gpc-card),.gpc-grid>.b2bc-search-group{grid-column:1/-1}
@supports(grid-template-rows:subgrid){.gpc-grid>.gpc-card.gpc-card{grid-row:span 3;grid-template-rows:subgrid}}
@supports(grid-template-rows:subgrid){.cli-home-products__rail{grid-template-rows:auto auto auto}.cli-home-products__rail>.gpc-card.gpc-card{grid-row:span 3;grid-template-rows:subgrid}}
@media(max-width:1100px){.gpc-grid.gpc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.gpc-grid.gpc-grid{grid-template-columns:minmax(0,1fr)}.gpc-card.gpc-card{grid-template-columns:74px minmax(0,1fr)}.gpc-card .gpc-amounts{font-size:.9rem}.gpc-card .gpc-commerce{gap:10px}}
.gpc-card button:focus-visible,.gpc-card a:focus-visible,.gpc-description:focus-visible{outline:2px solid var(--gemma-focus,#008957);outline-offset:2px}
.gpc-card[hidden],.gpc-card [hidden],.gpc-grid[hidden]{display:none!important}
.gpc-card .gpc-order-form{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;margin:0;padding:0;align-content:start}.gpc-card .gpc-order-form>.b2bd-quantity{margin:0;padding:0;min-width:0}.gpc-card .gpc-order-form .b2bd-stepper{margin:0;width:100%}
.gpc-card .gpc-order-form .b2bd-stepper{grid-template-columns:minmax(24px,30%) minmax(0,1fr) minmax(24px,30%);max-width:none}
.gpc-card .gpc-order-form .b2bd-stepper input{width:100%;min-width:0;font-size:18px;padding:7px 1px}.gpc-card .gpc-order-form .b2bd-stepper button{min-width:0;min-height:44px;font-size:24px}
.gpc-card .gpc-order-form>.b2bd-quantity{position:relative}.gpc-card .gpc-order-form .b2bd-check{position:absolute;right:3px;bottom:-7px;font-size:16px;pointer-events:none}
.b2bi-row-body:has(>.gpc-card),.cli-shop-import-row__body:has(>.gpc-card){display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.b2bi-row-body>.gpc-card,.cli-shop-import-row__body>.gpc-card{width:100%;max-width:680px;justify-self:center}
.cli-shop-import-replacement:has(>.gpc-card){display:grid;grid-template-columns:24px minmax(0,1fr)}
.gpc-card .b2bi-commercial-host,.gpc-card .cli-shop-import-row__commercial{margin:0;padding:0;border:0;background:none}
.gpc-card .cli-shop-import-quantity,.gpc-card .cli-shop-import-controls{min-width:0;width:100%}
.gpc-card .b2br-replacement-picker{grid-template-columns:minmax(0,1fr);margin:0;padding:0}
/* The bearer editor retains its own theme switch and mutation controllers. */
html:has(#order-picker){--gemma-surface:var(--surface);--gemma-surface-soft:var(--soft);--gemma-text:var(--text);--gemma-heading:var(--text);--gemma-muted:var(--muted);--gemma-border:var(--border);--gemma-input-bg:var(--surface);--gemma-input-border:var(--border)}
.gpc-card.picker-product .picker-buy{display:grid;grid-template-columns:minmax(0,1fr)}
.gpc-card.picker-product .picker-photo{width:100%;height:100%;padding:0;border:0}
.gpc-card.picker-product .picker-history{margin:0;font-size:.75rem}
.gpc-card.picker-product .picker-stepper{display:flex;width:100%;min-width:0}
.gpc-card.picker-product .picker-stepper input{min-width:0;width:100%}
.gpc-card.bf-product .bf-info{min-width:0;width:auto}
.gpc-card.bf-product .bf-qty{margin:0;width:100%;min-width:0}
.gpc-card.bf-product .bf-discount{position:static}
.gpc-card.bf-product .bf-unit{margin:0}
.gpc-card.bf-product .bf-price{font-size:inherit}
.gpc-dialog>header{padding:0;background:none;border:0;box-shadow:none}
.gpc-card .gpc-stock.b2bc-stock,.gpc-card .gpc-stock.b2br-stock{padding:8px;border-radius:9px}.gpc-card .gpc-stock.b2bc-stock:has(.is-unavailable),.gpc-card .gpc-stock.b2br-stock.is-unavailable{border:1px solid #ed8797;background:var(--gemma-danger-soft,#fff1f3)}
.gpc-dialog{width:min(1180px,94vw);max-height:90dvh;padding:20px;border:1px solid var(--gemma-border,#d3e1db);border-radius:16px;background:var(--gemma-surface,#fff);color:var(--gemma-text,#203a48);overflow:auto}.gpc-dialog::backdrop{background:#001a12aa}.gpc-dialog header{display:flex;align-items:start;justify-content:space-between;gap:15px}.gpc-dialog header h2{margin:0 0 20px}.gpc-dialog header button{font-size:26px;min-width:44px;min-height:44px}.gpc-detail-photos{display:flex;gap:10px;overflow:auto}.gpc-detail-photos img{width:180px;height:200px;object-fit:contain}.gpc-videos{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:12px}.gpc-videos iframe{width:100%;aspect-ratio:16/9;border:0}.gpc-dialog-body img{max-width:100%}
.gpc-card .gpc-stock.cli-recs__stock:not(.is-exhausted){border:0;background:none;border-radius:0}
.gpc-card .gpc-stock.cli-recs__stock.is-limited>p:first-child{border-color:#efc477;background:#fff0cf;color:#864b00}
.gpc-card .gpc-stock.cli-recs__stock.is-unknown>p:first-child{border-color:var(--gemma-border,#d3e1db);background:var(--gemma-surface-soft,#f6faf8);color:var(--gemma-muted,#607169)}
html[data-gemma-theme="night"] .gpc-card .gpc-stock.cli-recs__stock:not(.is-exhausted):not(.is-unknown):not(.is-limited)>p:first-child{border-color:#247a50;background:#123c29;color:#89e0b1}
html[data-gemma-theme="night"] .gpc-card .gpc-stock.cli-recs__stock.is-limited>p:first-child{border-color:#9d6b17;background:#3c2b0e;color:#ffd48a}
html[data-gemma-theme="night"] .gpc-card .gpc-stock.cli-recs__stock.is-exhausted,html[data-gemma-theme="night"] .gpc-card .gpc-stock.b2br-stock.is-unavailable,html[data-gemma-theme="night"] .gpc-card .gpc-stock.b2bc-stock:has(.is-unavailable){background:#3e1821;border-color:#904153;color:#ffabb9}
html[data-gemma-theme="night"] .gpc-card .gpc-stock.cli-recs__stock.is-exhausted>p:first-child{color:#ffabb9}
/* Employee category-list pilot only; other shared consumers retain their variant. */
.gpc-card.gpc-category-pilot .gpc-heading>a,.gpc-card.gpc-category-pilot .gpc-heading>a:hover,.gpc-card.gpc-category-pilot .gpc-heading>a:focus{text-decoration:none}
html .gpc-card.gpc-category-pilot .gpc-stock.b2bc-stock,html .gpc-card.gpc-category-pilot .gpc-stock.b2bc-stock:has(.is-unavailable){border:0;border-radius:0;background:transparent;box-shadow:none;padding:0}
.gpc-card.gpc-category-pilot .gpc-piece-price .gpc-vat{font:inherit;color:inherit}
.gpc-card.gpc-category-pilot .gpc-piece-inline-placeholder{visibility:hidden;display:inline-flex;gap:4px;pointer-events:none}

/* Approved ordering appearance: explicit adapters only; historical/BF variants unchanged. */
.gpc-detail-current .gpc-price{display:grid;gap:3px;min-width:0;font-size:.8rem}.gpc-detail-current .gpc-price p{margin:0}
.gpc-detail-current .gpc-price-line{display:flex;flex-wrap:nowrap;align-items:center;gap:4px;min-width:0;margin:0}
.gpc-detail-current .gpc-amounts{display:inline-flex;align-items:baseline;gap:4px;min-width:0;white-space:nowrap;font-size:clamp(.73rem,1.15vw,1rem);font-weight:800}
.gpc-detail-current .gpc-amounts strong{font-size:inherit}.gpc-detail-current .gpc-amounts del{font-size:.85em;font-weight:400;color:var(--gemma-muted,#607169)}
.gpc-detail-current .gpc-price-line>button{flex:0 0 22px;width:22px;height:22px;min-height:22px;padding:0;border:1px solid var(--gemma-green,#008957);border-radius:50%;background:#fff;color:#008957;font:bold 14px Georgia;cursor:pointer}
.gpc-detail-current .gpc-piece-price,.gpc-detail-current .gpc-piece-placeholder{display:flex;flex-wrap:wrap;gap:4px;font-size:.75rem;color:var(--gemma-muted,#607169)}.gpc-piece-price>*,.gpc-piece-placeholder>*{white-space:nowrap}
.gpc-detail-current .gpc-piece-price>*,.gpc-detail-current .gpc-piece-placeholder>*{font-size:inherit;font-weight:400}
.gpc-detail-current .gpc-piece-price,.gpc-detail-current .gpc-piece-placeholder{font-size:.75rem;line-height:1.5;min-height:1.5em}.gpc-detail-current .gpc-piece-placeholder{visibility:hidden;pointer-events:none}
.gpc-card.gpc-current .gpc-heading>a,.gpc-card.gpc-current .gpc-heading>a:hover,.gpc-card.gpc-current .gpc-heading>a:focus{text-decoration:none}
html .gpc-card.gpc-current .gpc-stock,html .gpc-card.gpc-current .gpc-stock:is(.is-exhausted,.is-unavailable),html .gpc-card.gpc-current .gpc-stock:has(.is-unavailable),html .gpc-card.gpc-current .gpc-stock>p:first-child,html .gpc-card.gpc-current .gpc-stock>.cli-shop-availability,html .gpc-detail-current .b2bc-stock,html .gpc-detail-current .cli-shop-availability{border:0;border-radius:0;background:transparent;box-shadow:none;padding:0}
:is(.gpc-card.gpc-current,.gpc-detail-current) .gpc-piece-price .gpc-vat{font:inherit;color:inherit}
:is(.gpc-card.gpc-current,.gpc-detail-current) .gpc-piece-inline-placeholder{visibility:hidden;display:inline-flex;gap:4px;pointer-events:none}
.gpc-detail-current .gpc-discount{position:static;float:none;margin:0;justify-self:start;padding:4px 8px;border-radius:8px;background:#f4511e;color:#fff;font-size:.85rem;font-weight:800}
/* Keep the approved 50/50 row bounded when cart package prices become wide. */
.gpc-card.gpc-current .gpc-commercial,.gpc-card.gpc-current .gpc-price{grid-template-columns:minmax(0,1fr)}
.gpc-card.gpc-current .gpc-amounts{gap:.25em}
.gpc-card.gpc-current .gpc-amounts strong{font-size:inherit}
.gpc-card.gpc-current .gpc-piece-inline-placeholder{max-width:100%;overflow:hidden}
@media(max-width:680px){
 .gpc-card.gpc-current .gpc-amounts{flex-direction:column;align-items:flex-start;gap:0}
 .gpc-card.gpc-current .gpc-price-line{align-items:flex-end}
 .gpc-card.gpc-current .gpc-controls input{box-sizing:border-box;min-width:0;width:100%;padding-inline:1px;font-size:18px}
}
