/* Checkout shares the storefront's color palette without changing product layout. */
.pdp-page .shop-button {
  display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 14px;
  border:1px solid #1F5BFF;border-radius:8px;font-size:14px;font-weight:600;text-align:center;line-height:1.25;
}
.pdp-page .shop-primary {background:#1F5BFF;color:#fff}
.pdp-page .shop-primary:hover {background:#1848cc}
.pdp-page .shop-secondary {background:#fff;color:#2148ab;border-color:#CCD7EE}
.pdp-page .shop-secondary:hover {background:#EFF4FF;border-color:#1F5BFF}
.pdp-page .kit-quick-add {min-height:42px;margin-top:6px;border:0;border-radius:6px;background:#EFF4FF;color:#1848cc;font-size:13px;font-weight:600}
.pdp-page .kit-quick-add:hover {background:#E0EAFF}
.pdp-page .shop-icon-button {
  display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid #E2E8F0;
  border-radius:8px;background:#fff;color:#334155;font-size:24px;line-height:1;
}
.pdp-page .shop-icon-button:hover {background:#F1F5F9;color:#0F172A}
.pdp-page .cart-error {padding:10px 14px;background:#FFF1F2;color:#9F1239;border-radius:8px}
.pdp-page .shop-cart-dialog {
  /* Keep the catalogue grid width after subtracting its sidebar and outer gutters. */
  width:calc(min(100%,1376px) - 48px - 220px - 26px + 44px + 2px);max-width:none;max-height:calc(100dvh - 40px);
  margin:auto;padding:0;border:1px solid #E2E8F0;border-radius:16px;color:#0F172A;background:#fff;overflow:hidden;
}
.pdp-page .shop-cart-dialog[open] {display:flex;flex-direction:column}
.shop-cart-dialog::backdrop {background:#0D141E88}
.shop-dialog-header {
  flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;
  border-bottom:1px solid #E2E8F0;
}
.pdp-page .shop-dialog-header h2 {font-size:23px;font-weight:700;letter-spacing:-.4px;margin:0}
.shop-dialog-header button {flex:none}
.shop-cart-dialog .cart-error {margin:8px 22px 0}
.shop-dialog-body {overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:0 22px 18px}
.shop-dialog-footer {flex:none;padding:14px 22px 18px;border-top:1px solid #E2E8F0;background:#F8FAFC}
.shop-dialog-total {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;color:#475569;font-size:14px}
.shop-dialog-total strong {color:#0F172A;font-size:20px;font-variant-numeric:tabular-nums}
.shop-dialog-buttons {display:grid;grid-template-columns:1fr 1fr;gap:10px}

.shop-cart-line {
  display:grid;grid-template-columns:64px minmax(0,1fr) auto minmax(85px,auto) 40px;
  align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid #E2E8F0;
}
.shop-cart-line:last-child {border-bottom:0}
.shop-cart-photo {display:grid;place-items:center;width:64px;height:64px;border-radius:8px;background:#F8FAFC}
.shop-cart-photo img {width:64px;height:64px;object-fit:contain;padding:4px;mix-blend-mode:multiply}
.shop-line-info {display:grid;gap:3px;min-width:0}
.shop-line-info a {font-weight:650;color:#0F172A;overflow-wrap:anywhere}
.shop-line-info a:hover {color:#1F5BFF}
.shop-line-info span {font-size:12px;color:#475569;line-height:1.3}
.shop-stepper {
  display:inline-grid;grid-template-columns:36px 31px 36px;align-items:center;text-align:center;
  justify-self:start;border:1px solid #E2E8F0;border-radius:8px;overflow:hidden;font-variant-numeric:tabular-nums;
}
.pdp-page .shop-stepper button {width:36px;min-height:38px;padding:0;border:0;background:#F1F5F9;color:#0F172A;font-size:19px}
.pdp-page .shop-stepper button:disabled {color:#8190A5;cursor:default}
.pdp-page .shop-stepper button:focus-visible {outline-offset:-2px}
.shop-stepper output {font-size:14px;font-weight:650}
.shop-line-total {text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.shop-empty {padding-block:20px}
.shop-suggestions {margin-top:12px;padding-top:14px;border-top:1px solid #E2E8F0}
.pdp-page .shop-suggestions h3,.pdp-page #shop-quick-checks h3 {margin:0 0 10px;font-size:17px}
#shop-quick-checks {padding-top:16px}
.checkout-main {padding-top:22px;min-height:45vh}
.pdp-page .checkout-main h1 {font-size:34px;letter-spacing:-.8px;line-height:1.15;margin:12px 0 18px}
.checkout-crumb {display:flex;align-items:center;gap:8px;font-size:13px;color:#475569}
.checkout-layout {display:grid;grid-template-columns:minmax(0,1fr) minmax(265px,330px);gap:20px;align-items:start}
.checkout-layout>div {display:grid;gap:16px;min-width:0}
.checkout-panel {min-width:0;border:1px solid #E2E8F0;border-radius:12px;background:#fff;padding:18px 20px}
.pdp-page .checkout-panel h2 {font-size:21px;font-weight:700;margin:0 0 10px;letter-spacing:-.3px}
.checkout-summary {position:sticky;top:var(--kit-purchase-top,124px);background:#F8FAFC}
.checkout-summary dl {display:grid;gap:9px;margin:14px 0 12px;font-size:14px}
.checkout-summary dl div {display:flex;justify-content:space-between;gap:12px}
.checkout-summary dd,.checkout-success dd {margin:0;color:#0F172A;font-weight:600}
.checkout-summary dt,.checkout-success dt {color:#475569}
.checkout-total {display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:4px 10px;border-top:1px solid #CBD5E1;padding-top:12px;margin:0;font-size:15px}
.checkout-total strong {font-size:25px;font-variant-numeric:tabular-nums}
.checkout-note {margin:7px 0 14px;color:#475569;font-size:13px;line-height:1.45}
.checkout-summary .shop-button {width:100%;min-height:48px}
#checkout-form fieldset {display:grid;gap:10px;min-width:0;border:0;padding:0;margin:0 0 18px}
#checkout-form legend {padding:0 0 8px;font-size:16px;font-weight:700}
.checkout-fields {display:grid;grid-template-columns:1fr 1fr;gap:12px}
#checkout-form label {min-width:0;font-size:14px;font-weight:550}
#checkout-form :is(input:not([type=radio]),textarea) {
  display:block;width:100%;margin-top:5px;padding:9px 11px;min-height:43px;border:1px solid #CBD5E1;
  border-radius:7px;background:#fff;color:#0F172A;font-size:16px;
}
#checkout-form textarea {resize:vertical;font:inherit;font-size:16px}
.checkout-options {display:grid;gap:6px}
.pdp-page .checkout-options label {
  display:flex;align-items:flex-start;gap:9px;min-height:42px;padding:9px 10px;background:#fff;
  border:1px solid #E2E8F0;border-radius:8px;font-size:14px;line-height:1.4;cursor:pointer;
}
.checkout-options label:has(input:checked) {background:#EFF4FF;border-color:#9AB6FF}
.checkout-options input {flex:none;margin:2px 0 0;width:17px;height:17px;accent-color:#1F5BFF}
.checkout-optional {font-size:12px;color:#475569;font-weight:400}
.checkout-success {max-width:660px}
.checkout-status {color:#047857;font-weight:650;font-size:14px;margin-bottom:5px}
.checkout-success ul {padding-left:20px;margin:12px 0}
.checkout-success dl {display:grid;gap:7px;padding:12px 0;margin:12px 0;border-block:1px solid #E2E8F0}
.checkout-success dl div {display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px}
.checkout-success dd {overflow-wrap:anywhere}
.checkout-panel .shop-button {margin-top:8px}
.cart-page .kit-footer {padding-bottom:28px}

@media(max-width:760px) {
  .pdp-page .shop-cart-dialog {width:100%;max-width:100%;max-height:calc(100dvh - 20px);margin:auto 0 0;border-radius:16px 16px 0 0}
  .shop-dialog-header {padding:12px 14px}
  .pdp-page .shop-dialog-header h2 {font-size:19px}
  .shop-dialog-body {padding:0 15px 14px}
  .shop-dialog-footer {padding:10px 14px calc(12px + env(safe-area-inset-bottom,0px))}
  .shop-dialog-buttons .shop-button {min-height:46px;font-size:12px;padding-inline:5px}
  .shop-dialog-total strong {font-size:17px}
  .shop-cart-line {grid-template-columns:64px minmax(0,1fr) 40px;gap:8px 10px;padding:12px 0}
  .shop-cart-photo {grid-area:1 / 1;align-self:start}
  .shop-line-info {grid-area:1 / 2}
  .shop-remove {grid-area:1 / 3;align-self:start}
  .shop-stepper {grid-area:2 / 2}
  .shop-line-total {grid-area:2 / 3 / 3 / 4;justify-self:end;font-size:13px}
  .checkout-main {padding-top:16px}
  .pdp-page .checkout-main h1 {font-size:28px;margin-bottom:14px}
  .checkout-layout,.checkout-fields {grid-template-columns:minmax(0,1fr)}
  .checkout-panel {padding:14px}
  .checkout-summary {position:static}
  .checkout-success .shop-button {width:100%}
}
