/* Product Summary API v1: presentation shared by editable and historical summaries. */
.swp-cart-item{display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px;padding:12px;border:1px solid #e2e7ec;border-radius:14px}.swp-cart-item>img{width:76px;height:76px;object-fit:cover;border-radius:9px;background:#f3f5f7}.swp-cart-item-body{min-width:0}.swp-cart-item h3{margin:0 0 6px;color:#17252e;font-size:1rem}.swp-cart-item-details{display:grid;grid-template-columns:auto 1fr;gap:2px 8px;margin:0 0 10px;color:#596774;font-size:.82rem}.swp-cart-item-details dt{font-weight:700}.swp-cart-item-details dd{margin:0}.swp-cart-item-controls{display:flex;gap:10px;align-items:end;justify-content:space-between}.swp-cart-item-controls label{display:grid;gap:3px;color:#536372;font-size:.75rem}.swp-cart-item-controls input{width:74px;min-height:38px;padding:5px 8px;border:1px solid #ccd4dd;border-radius:8px;font:inherit}.swp-cart-item-controls strong{margin-left:auto;color:#09214f}.swp-cart-item-controls button{padding:6px;border:0;background:transparent;color:#9b3030;text-decoration:underline;cursor:pointer}@media(max-width:600px){.swp-cart-item{grid-template-columns:62px minmax(0,1fr);gap:9px;padding:10px}.swp-cart-item>img{width:62px;height:62px}.swp-cart-item-controls{gap:6px}}
.swp-cart-item{grid-template-columns:76px minmax(0,1fr);align-items:start}.swp-cart-product-image{width:76px;height:92px;object-fit:cover;border-radius:9px;background:#f3f5f7}.swp-cart-item-details{grid-template-columns:minmax(76px,auto) 1fr;row-gap:4px}.swp-cart-item-controls{flex-wrap:wrap}@media(max-width:600px){.swp-cart-item{grid-template-columns:62px minmax(0,1fr)}.swp-cart-product-image{width:62px;height:76px}}
.swp-cart-item{grid-template-columns:clamp(62px,12vw,92px) minmax(0,1fr);gap:clamp(9px,2vw,14px);padding:clamp(10px,2vw,15px)}.swp-cart-product-image{width:100%;height:clamp(74px,12vw,112px)}.swp-cart-item-body{display:grid;min-width:0;grid-template-columns:minmax(0,1fr);gap:5px}.swp-cart-item h3{font-size:clamp(.94rem,1.2vw,1.08rem);line-height:1.25}.swp-cart-item-details{grid-template-columns:max-content minmax(0,1fr);font-size:.82rem}.swp-cart-item-details dd{overflow-wrap:anywhere}.swp-cart-item-controls{display:grid;grid-template-columns:minmax(120px,auto) max-content minmax(0,1fr);gap:9px;align-items:center;padding-top:5px;border-top:1px solid #edf0f3}.swp-cart-item-controls strong{margin:0;white-space:nowrap}.swp-cart-item-actions{display:flex;justify-content:flex-end;gap:6px}.swp-cart-item-actions button{display:grid;min-width:36px;min-height:36px;place-items:center;padding:5px;border:1px solid #d5dce4;border-radius:9px;background:#fff;color:#247b9c;text-decoration:none;font-size:1rem;font-weight:700}.swp-cart-item-actions button:hover,.swp-cart-item-actions button:focus{border-color:#17637f;background:#17637f;color:#fff}.swp-cart-item-actions button[data-swp-remove]{padding:5px 8px;color:#a93636;text-decoration:none;font-size:.78rem}.swp-cart-item-actions button[data-swp-remove]:hover,.swp-cart-item-actions button[data-swp-remove]:focus{border-color:#a93636;background:#a93636;color:#fff}.swp-cart-item:focus-within{border-color:#a7bfd2}@media(min-width:1000px){.swp-cart-item{grid-template-columns:96px minmax(0,1fr)}.swp-cart-item-body{grid-template-columns:minmax(0,1fr) auto;column-gap:16px}.swp-cart-item-body>h3,.swp-cart-item-body>.swp-cart-item-details,.swp-cart-item-body>.swp-cart-artworks{grid-column:1}.swp-cart-item-body>.swp-cart-item-controls{grid-column:2;grid-row:1 / span 3;align-self:center;grid-template-columns:1fr;justify-items:end;border:0}.swp-cart-item-controls strong{justify-self:end}.swp-cart-item-actions{justify-content:flex-end}}@media(max-width:600px){.swp-cart-item{grid-template-columns:58px minmax(0,1fr);gap:8px}.swp-cart-product-image{height:72px}.swp-cart-item-details{grid-template-columns:1fr;gap:0}.swp-cart-item-details dt{margin-top:4px}.swp-cart-item-controls{grid-template-columns:1fr auto;gap:7px}.swp-cart-item-controls strong{grid-column:2;grid-row:1;justify-self:end}.swp-cart-item-actions{grid-column:1 / -1;justify-content:flex-start}.swp-cart-item-actions button[data-swp-remove]{margin-left:auto}}
.swp-cart-item-actions svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Cart rows: keep the media, product information, quantity, price and actions
   in a predictable grid at every viewport size. */
.swp-cart-panel,.swp-cart-items,.swp-cart-item,.swp-cart-item-body{box-sizing:border-box;min-width:0}
.swp-cart-item{width:100%;grid-template-columns:clamp(58px,12vw,88px) minmax(0,1fr);gap:clamp(8px,1.8vw,14px);align-items:start;padding:clamp(9px,1.8vw,14px)}
.swp-cart-product-image{width:100%;height:auto;aspect-ratio:4/5;max-height:112px;}
.swp-cart-item-body{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;}
.swp-cart-item h3{min-width:0;margin:0;font-size:clamp(.92rem,1.4vw,1.08rem);line-height:1.3;overflow-wrap:anywhere}
.swp-cart-item-details{grid-template-columns:max-content minmax(0,1fr);gap:2px 8px;margin:0;font-size:clamp(.74rem,1.1vw,.84rem);line-height:1.35}
.swp-cart-item-details dd{min-width:0;overflow-wrap:anywhere}
.swp-cart-item-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 10px;align-items:center;padding-top:8px;border-top:1px solid #edf0f3}
.swp-cart-item-controls label{min-width:0;gap:5px;font-size:.76rem}
.swp-cart-item-controls strong{grid-column:2;grid-row:1;justify-self:end;margin:0;white-space:nowrap;font-size:clamp(.88rem,1.3vw,1rem)}
.swp-cart-item-actions{grid-column:1/-1;width:100%;justify-content:flex-start;gap:7px}
.swp-cart-item-actions button{min-width:38px;min-height:38px}
.swp-cart-item-actions button[data-swp-remove]{margin-left:auto;}
.swp-cart-item-actions .du-cut-ruler{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
@media(min-width:760px){.swp-cart-item{grid-template-columns:88px minmax(0,1fr)}.swp-cart-item-body{grid-template-columns:minmax(0,1fr) auto;column-gap:16px}.swp-cart-item-body>h3,.swp-cart-item-body>.swp-cart-item-details,.swp-cart-item-body>.swp-cart-artworks,.swp-cart-item-body>.swp-service-assignments{grid-column:1}.swp-cart-item-body>.swp-cart-item-controls{grid-column:2;grid-row:1/span 4;align-self:center;grid-template-columns:1fr;justify-items:end;border:0;padding:0}.swp-cart-item-controls label{justify-items:end}.swp-cart-item-controls strong{grid-column:auto;grid-row:auto}.swp-cart-item-actions{justify-content:flex-end}}
@media(max-width:600px){.swp-cart-item{grid-template-columns:56px minmax(0,1fr);gap:8px;padding:9px}.swp-cart-product-image{max-height:72px}.swp-cart-item-body{gap:6px}.swp-cart-item-details{grid-template-columns:1fr;gap:1px}.swp-cart-item-details dt{margin-top:3px}.swp-cart-item-controls{grid-template-columns:minmax(0,1fr) auto;gap:7px}.swp-cart-item-actions{justify-content:flex-start}.swp-cart-item-actions button[data-swp-remove]{margin-left:auto}}
@media(max-width:360px){.swp-cart-item{grid-template-columns:48px minmax(0,1fr);gap:7px;padding:8px}.swp-cart-product-image{max-height:62px}.swp-cart-item-controls{gap:6px}}

/* Compact product details while keeping longer values readable. */
.swp-cart-item-body{gap:3px}
.swp-cart-item h3{margin-bottom:0}
.swp-cart-item-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 10px;margin:0}
@media(max-width:600px){.swp-cart-item-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px}.swp-cart-item-details dt{margin-top:0}}
@media(max-width:360px){.swp-cart-item-details{grid-template-columns:1fr}}
.swp-cart-variant-list{display:grid;gap:6px;width:100%;margin-top:3px}

.swp-cart-group-observation{grid-column:1/-1;margin:2px 0 0;color:#536372;font-size:.76rem;line-height:1.4;overflow-wrap:anywhere}
.swp-cart-group-observation strong{color:#243846;font-weight:750}

/* Product media and identity share the first row; size rows span beneath both. */
.swp-cart-item{grid-template-columns:clamp(58px,12vw,88px) minmax(0,1fr);grid-template-rows:auto auto;align-items:start}
.swp-cart-item-header{display:grid;grid-column:2;grid-row:1;align-content:start;gap:3px;min-width:0}
.swp-cart-item-header h3{min-width:0;margin:0;color:#17252e;font-size:clamp(.92rem,1.4vw,1.08rem);line-height:1.3;overflow-wrap:anywhere}
.swp-cart-item-context{min-width:0;margin:0;color:#536372;font-size:clamp(.72rem,1.05vw,.82rem);line-height:1.3;overflow-wrap:anywhere}
.swp-cart-item-context-2{color:#394b58}
.swp-cart-item-tags{display:flex;flex-wrap:wrap;align-items:center;gap:5px;min-width:0;margin-top:1px}
.swp-cart-tag{display:inline-flex;max-width:100%;align-items:center;padding:2px 8px;border:1px solid #d7e1eb;border-radius:999px;background:#f3f7fb;color:#294b67;font-size:clamp(.68rem,1vw,.78rem);font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.swp-cart-tag:is(button){font-family:inherit;text-align:left;cursor:pointer}
.swp-cart-tag:is(button):has(svg){gap:3px}
.swp-cart-tag:is(button) .swp-cart-tag-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.swp-cart-tag:is(button) svg{width:10px;height:10px;flex:0 0 10px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.swp-cart-tag:is(button):hover,.swp-cart-tag:is(button):focus-visible{box-shadow:0 0 0 2px #247b9c40}
.swp-cart-tag:is(button):focus-visible{outline:none}
.swp-cart-tag-school{border-color:#cbd9e8;background:#eef4fb;color:#244b77}
.swp-cart-tag-model{border-color:#d9e2e8;background:#f5f7f8;color:#425361}
.swp-cart-tag-color{border-color:#e6d6df;background:#fbf2f6;color:#74415b}
.swp-cart-item-breakdown{grid-column:1/-1;grid-row:2;min-width:0;width:100%}
.swp-cart-item-breakdown{margin-top:2px}
@media(min-width:760px){.swp-cart-item{grid-template-columns:88px minmax(0,1fr)}.swp-cart-product-image{width:88px;height:92px;aspect-ratio:auto}.swp-cart-item-breakdown{grid-column:1/-1}}
@media(max-width:600px){.swp-cart-item{grid-template-columns:56px minmax(0,1fr);gap:8px;padding:9px}.swp-cart-product-image{width:56px;height:70px;max-height:70px;aspect-ratio:auto}.swp-cart-item-header{gap:3px}.swp-cart-item-context{font-size:.72rem;line-height:1.25}.swp-cart-item-breakdown{margin-top:3px}}
@media(max-width:360px){.swp-cart-item{grid-template-columns:48px minmax(0,1fr);gap:7px;padding:8px}.swp-cart-product-image{width:48px;height:60px;max-height:60px}}
@media(max-width:600px){.swp-cart-variant-list{gap:2px}}

/* Tighten the product identity while keeping cart controls comfortable to tap. */
.swp-cart-item-header{row-gap:0}
.swp-cart-item-header h3{line-height:1.15}
.swp-cart-item-context{line-height:1.1}
.swp-cart-item-tags{margin-top:0}

/* Whole-card removal shares the individual removal icon and confirmation. */
.swp-cart-item{position:relative}
.swp-cart-item-header{padding-right:42px}

/* Compact school/model chips and keep every size row on the same rhythm. */
.swp-cart-item-header{row-gap:2px}
.swp-cart-item-header h3,.swp-cart-item-context,.swp-cart-item-tags,.swp-cart-group-observation{margin-block:0}
.swp-cart-item-tags{gap:3px}
.swp-cart-tag{padding:1px 6px;font-size:.68rem;line-height:1.2}
.swp-cart-variant-list{gap:0;margin-top:0}
.swp-cart-group-observation{line-height:1.25}

/* One 22px line rhythm across product, location, school, colour and notes. */
.swp-cart-drawer .swp-cart-item-header{row-gap:3px}
.swp-cart-drawer .swp-cart-item-header h3,.swp-cart-drawer .swp-cart-item-header .swp-cart-item-context,.swp-cart-drawer .swp-cart-item-header .swp-cart-group-observation{margin:0;padding-block:0;line-height:22px}
.swp-cart-drawer .swp-cart-item-tags{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin:0}
.swp-cart-drawer .swp-cart-item-tags .swp-cart-tag{box-sizing:border-box;min-height:22px;padding:0 5px;line-height:20px}

/* Join the school and colour chips into one continuous, single-line pair. */
.swp-cart-drawer .swp-cart-item-tags:has(.swp-cart-tag-school):has(.swp-cart-tag-color){flex-direction:row;flex-wrap:nowrap;align-items:center;gap:0;min-width:0}
.swp-cart-drawer .swp-cart-item-tags:has(.swp-cart-tag-school):has(.swp-cart-tag-color) .swp-cart-tag-school{flex:0 1 auto;min-width:0;border-right-width:0;border-radius:999px 0 0 999px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.swp-cart-drawer .swp-cart-item-tags:has(.swp-cart-tag-school):has(.swp-cart-tag-color) .swp-cart-tag-model{flex:0 1 auto;min-width:0;border-right-width:0;border-left-width:0;border-radius:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.swp-cart-drawer .swp-cart-item-tags:has(.swp-cart-tag-school):has(.swp-cart-tag-color) .swp-cart-tag-color{flex:0 0 auto;border-left-width:0;border-radius:0 999px 999px 0;white-space:nowrap}

/* Reduce only the gap beneath the product name by half. */
.swp-cart-drawer .swp-cart-item-header h3{margin-bottom:-1.5px}

/* Match the group header background to its grey footer. */
.swp-cart-item{--swp-cart-header-inset:clamp(9px,1.8vw,14px);--swp-cart-header-gap:clamp(8px,1.8vw,14px)}
.swp-cart-item::before{content:"";grid-area:1/1/2/-1;z-index:0;margin:calc(0px - var(--swp-cart-header-inset)) calc(0px - var(--swp-cart-header-inset)) calc(0px - var(--swp-cart-header-gap));border-radius:13px 13px 0 0;background:rgb(240,240,240);pointer-events:none}
.swp-cart-item>img,.swp-cart-item-header,.swp-cart-item-breakdown{position:relative;z-index:1}
@media(max-width:600px){.swp-cart-item{--swp-cart-header-inset:9px;--swp-cart-header-gap:8px}}
@media(max-width:360px){.swp-cart-item{--swp-cart-header-inset:8px;--swp-cart-header-gap:7px}}
.swp-cart-item>img.swp-cart-product-image{grid-column:1;grid-row:1}

/* Keep the card white; only the group total footer uses the grey background. */
.swp-cart-item{background:#fff}
.swp-cart-item::before{content:none}
.swp-cart-item>img.swp-cart-product-image{background:#f3f5f7}
.swp-cart-item-breakdown{margin-top:calc(0px - var(--swp-cart-header-gap));background:#fff}

/* Keep the service location line compact inside each cart group header. */
.swp-cart-drawer .swp-cart-item-header p.swp-cart-item-context-1{line-height:13px}

/* Extra notes sit below the image and product details, across the full card. */
.swp-cart-drawer .swp-cart-group-observation{grid-column:1/-1;grid-row:2;box-sizing:border-box;width:100%;margin:2px 0 4px;padding:0 2px;color:#536372;font-size:.76rem;line-height:1.35;overflow-wrap:anywhere}
.swp-cart-drawer .swp-cart-group-observation strong{color:#243846;font-weight:750}
.swp-cart-drawer .swp-cart-item-breakdown{grid-column:1/-1;grid-row:3}

/* Cart tags share one aligned label/chevron layout, including readonly colors. */
.swp-cart-drawer .swp-cart-item-tags .swp-cart-tag{display:inline-flex;align-items:center;justify-content:center;gap:4px;border-width:1px;border-style:solid;min-height:24px;line-height:1.25;padding:3px 6px;vertical-align:middle}
.swp-cart-drawer .swp-cart-item-tags button.swp-cart-tag{appearance:none;font-family:inherit;cursor:pointer}
.swp-cart-drawer .swp-cart-tag-chevron{display:block;flex:0 0 12px;width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.swp-cart-item-header.has-school-logo{position:relative;padding-right:clamp(120px,15vw,180px);min-height:76px}
.swp-cart-item-header .swp-cart-school-logo{position:absolute;right:48px;top:0;width:clamp(80px,10vw,130px);height:76px;object-fit:contain;background:transparent;border:0;border-radius:0}
.swp-product-review .swp-cart-item{align-self:start;margin:0}
.swp-product-review .swp-cart-item-header.has-school-logo{padding-right:80px;min-height:60px}
.swp-product-review .swp-cart-item-header .swp-cart-school-logo{position:absolute;right:0;top:0;width:70px;height:60px;max-width:100%;grid-row:auto;object-position:center top}
.swp-product-review .swp-cart-item-tags{max-width:100%;flex-wrap:wrap}
.swp-product-review .swp-cart-tag-school .swp-cart-tag-label{white-space:normal;overflow:visible;text-overflow:clip}
.si-product-summary{box-sizing:border-box;position:relative;font-family:inherit}.si-product-summary .swp-cart-product-image{display:block}.si-product-summary[data-readonly=true] .si-quantity-row__controls{display:none}.si-product-summary .swp-cart-school-logo{object-fit:contain}

.si-product-artworks{display:grid;gap:14px;margin-top:10px;border-top:1px solid #e0e6ed;padding-top:10px}.si-product-artwork{display:flex;gap:12px;align-items:flex-start;min-width:0}.si-product-artwork__image{width:72px;height:72px;object-fit:contain;flex:none}.si-product-artwork__copy{min-width:0;overflow-wrap:anywhere}.si-product-artwork__copy p{margin:3px 0;line-height:1.4;font-size:.875rem;white-space:pre-wrap}

.si-product-artworks[data-columns="2"]{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.si-product-artworks__column{display:grid;align-content:start;gap:4px;min-width:0}.si-product-artworks__title{margin:0!important;padding:0!important;font-size:14px!important;line-height:1.2!important;font-weight:700}.si-product-artwork__copy{display:flex;flex-direction:column;gap:2px}.si-product-artwork__copy>strong,.si-product-artwork__copy>p{margin:0!important;padding:0!important;line-height:1.2!important}.si-product-artwork__image{width:60px;height:60px}@media(max-width:560px){.si-product-artworks[data-columns="2"]{grid-template-columns:1fr}}

/* Give grouped product cards enough elevation to stand apart in the drawer and checkout. */
.swp-cart-item{border-color:var(--si-product-group-border,#cbd5df);box-shadow:var(--si-product-group-shadow,0 3px 10px rgba(24,37,59,.14))}
