/* copy-site kit file */
/* cl-shop.css: the shop pages (the title band, the vehicle band over the kit's parts pages, the product
   page with its rail of cards, the cart page and the cart drawer; the parts pages' own look is the kit's
   static/parts/ stylesheets, drawn in the --parts-* tokens cl-site.css maps), written against
   the site's tokens (cl-site.css :root), so the chrome agent's token block restyles them.
   Where the shop came from: templates, CSS and routes of the Carline Muffler demo (carlinemufflerburlington.ca, itself built from the Flowmaster site), made generic.
   The chrome (header, footer, .cl-btn, the fonts) is cl-site.css's and base.html's.
   Two layouts: from 980px the desktop; below, the title band in the phone stage's units (var(--mx)) and
   the shop parts a clean phone layout in px. */

:root {
  --cs-accent: var(--site-accent);
  --cs-accent-fg: var(--site-accent-fg);
  --cs-bg: var(--site-bg);
  --cs-fg: var(--site-fg);
  --cs-muted: var(--site-muted);
  --cs-line: var(--site-line);
  --cs-band: var(--site-band);
  --cs-card: var(--site-card);
  --cs-photo: #FFFFFF;   /* product photos sit on white whatever the theme */
  --cs-field: var(--site-field-bg);
  --cs-heading: var(--site-font-heading);
  --cs-body: var(--site-font-body);
  --cs-button-font: var(--site-font-button);
}

.cl-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cl-shop { display: block; background: var(--cs-bg); color: var(--cs-fg); font-family: var(--cs-body); overflow-x: clip; }
.cl-shop *, .cl-cd * { box-sizing: border-box; }
.cl-shop a { color: inherit; }
.cl-shop :focus-visible, .cl-cd :focus-visible { outline: 2px solid var(--cs-accent); outline-offset: 2px; }

/* ---- the secondary button (.cl-grey: filters, pager actions, Add to Cart on a card) ---- */
.cl-grey {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 10px; margin: 0;
  background: var(--site-button-bg); color: var(--site-button-fg) !important; border: 1px solid var(--site-button-bg); border-radius: var(--site-radius);
  font: 400 14px/normal var(--cs-button-font); letter-spacing: 0; text-decoration: none; text-align: center;
  cursor: pointer; transition: all 0.2s ease; -webkit-appearance: none; appearance: none;
}
.cl-grey:hover { background: var(--site-button-hover-bg); border-color: var(--site-button-hover-bg); color: var(--site-button-hover-fg) !important; }
.cl-grey:disabled, .cl-grey[aria-disabled="true"] { background: var(--site-disabled-bg); border-color: var(--site-disabled-bg); color: var(--site-disabled-fg) !important; cursor: default; }

/* the primary button (cl-site.css .cl-btn) in the flow of a page: the product page's Add to Cart and the
   cart's Check out or call button */
.cl-shop .cl-btn, .cl-cd .cl-btn { position: relative; text-decoration: none; cursor: pointer; }

/* the tick and the stock dot, in the accent colour */
.cl-tick { display: inline-block; width: 14px; height: 8px; margin: 0 8px 3px 1px; border: solid var(--cs-accent); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); vertical-align: middle; flex: none; }
.cl-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--cs-muted); vertical-align: 1px; flex: none; }

/* fields: the field colour, a rule, the site's radius */
.cl-select, .cl-input, .cl-qty {
  height: 42px; margin: 0; padding: 0 14px; width: 100%;
  background: var(--cs-field); color: var(--cs-fg); border: 1px solid var(--cs-line); border-radius: var(--site-radius);
  font: 400 16px/normal var(--cs-body); letter-spacing: -0.16px;
}
.cl-select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888888' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.cl-select:disabled { opacity: 0.5; cursor: default; }
.cl-select option { background: var(--cs-field); color: var(--cs-fg); }
.cl-select:focus-visible, .cl-input:focus-visible, .cl-qty:focus-visible { outline: 2px solid var(--cs-accent); outline-offset: 0; }
.cl-input::placeholder { color: var(--cs-muted); }
/* input.cl-qty: outranks a client theme's input[type="number"] { width: 100% }, which pushed Add to Cart off a phone */
input.cl-qty { width: 64px; max-width: 64px; padding: 0 4px; text-align: center; -moz-appearance: textfield; flex: none; }
.cl-qty::-webkit-inner-spin-button { opacity: 1; }

/* ================================================================================================
   The title band: the h1 centred in an 858 box, the paragraph 20px below it centred in 732; on a phone
   the phone stage's units (var(--mx)). The chrome agent matches it to the client's page titles.
   ================================================================================================ */
.cl-band { background: var(--cs-bg); color: var(--cs-fg); text-align: center; padding: 86px 20px 50px; }
.cl-band__h1 {
  position: relative; max-width: 858px; margin: 0 auto;
  font: 700 44px/44px var(--cs-heading); letter-spacing: -0.88px; color: var(--cs-fg); outline: none;
}
.cl-band__text { max-width: 732px; margin: 20px auto 0; }
.cl-band__text p { margin: 0; font: 400 16px/28.8px var(--cs-body); letter-spacing: -0.16px; }

/* ================================================================================================
   The vehicle band: full width in the band colour, 40px top and bottom, content in a 980 column
   ================================================================================================ */
.cl-vb { background: var(--cs-band); padding: 40px 20px; }
.cl-vb__in { max-width: 980px; margin: 0 auto; }
.cl-vb__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin-bottom: 16px; }
.cl-vb__title { margin: 0; font: 700 26px/normal var(--cs-heading); letter-spacing: -0.78px; color: var(--cs-fg); }
.cl-vb__fit { margin: 0; font: 400 16px/24px var(--cs-body); letter-spacing: -0.16px; color: var(--cs-fg); display: flex; align-items: center; }

.cl-ymm { display: flex; gap: 16px; align-items: center; }
.cl-ymm__field { flex: 1 1 0; min-width: 0; display: block; }
.cl-ymm__field[hidden] { display: none; }
.cl-ymm__actions { display: flex; align-items: center; gap: 16px; flex: none; }
.cl-ymm__go { min-width: 150px; }
.cl-ymm__reset { font: 400 14px/normal var(--cs-body); color: var(--cs-muted) !important; text-decoration: underline; }
.cl-ymm__reset[hidden] { display: none; }

/* ---- the picker's dropdown skin (partials/ymm.html and the product page's fit checker): the kit's
   kitYmmField mirrors each native select as a button wearing the field and a listbox panel of its
   options (fm-site.js mountSkin, the cl-ymm__ class names). With a script (html.cl-js) the select hides;
   without one the skin hides and the plain selects work. The field: the field colour, the rule, 16px text
   (no zoom on a phone's focus); the accent marks focus, the open field and its list, the chosen tick and
   the loading ring. The band stacks over the listing so a list can hang past it. ---- */
.cl-vb, .cl-fit { position: relative; z-index: 5; }
.cl-ymm__field { position: relative; }
.cl-js .cl-ymm__field > .cl-select { display: none; }
html:not(.cl-js) .cl-ymm__btn, html:not(.cl-js) .cl-ymm__panel { display: none; }
.cl-ymm__btn {
  position: relative; display: block; width: 100%; height: 42px; margin: 0; padding: 0 44px 0 14px;
  background: var(--cs-field); color: var(--cs-fg); border: 1px solid var(--cs-line); border-radius: var(--site-radius);
  font: 400 16px/40px var(--cs-body); letter-spacing: -0.16px; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.cl-ymm__btn--empty { color: var(--cs-muted); }
.cl-ymm__btn:not(:disabled):hover { border-color: var(--cs-fg); }
.cl-ymm__btn:disabled { opacity: 0.45; cursor: default; }
.cl-shop .cl-ymm__btn:focus-visible { outline: 2px solid var(--cs-accent); outline-offset: -2px; }
.cl-ymm__btn[aria-expanded="true"], .cl-ymm__btn[aria-expanded="true"]:hover { border-color: var(--cs-accent); color: var(--cs-fg); }
/* the chevron at the right: muted, the accent and turned up while the list is open, an accent tick
   once the level is chosen, an accent ring while the level waits for its list */
.cl-ymm__btn::after {
  content: ""; position: absolute; top: 50%; right: 17px; width: 8px; height: 8px; margin-top: -6px;
  border: solid var(--cs-muted); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg);
  transition: transform 0.2s ease, margin-top 0.2s ease;
}
.cl-ymm__btn[aria-expanded="true"]::after { margin-top: -2px; border-color: var(--cs-accent); transform: rotate(225deg); }
.cl-ymm__btn:not(.cl-ymm__btn--empty):not(:disabled)[aria-expanded="false"]::after {
  right: 16px; width: 13px; height: 7px; margin-top: -6px;
  border-color: var(--cs-accent); border-width: 0 0 2px 2px; transform: rotate(-45deg);
}
.cl-ymm__field.is-loading .cl-ymm__btn { opacity: 0.8; }
.cl-ymm__field.is-loading .cl-ymm__btn::after {
  right: 14px; width: 14px; height: 14px; margin-top: -7px; border: 2px solid color-mix(in srgb, var(--cs-muted) 30%, transparent);
  border-top-color: var(--cs-accent); border-radius: 50%; transform: none; animation: cl-spin 0.7s linear infinite;
}
@keyframes cl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cl-ymm__field.is-loading .cl-ymm__btn::after { animation-duration: 2s; } }

.cl-ymm__panel {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60;
  max-height: min(320px, 50vh); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 4px 0; background: var(--cs-field); border: 1px solid var(--cs-accent);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25); scrollbar-width: thin; scrollbar-color: var(--cs-muted) var(--cs-field);
}
.cl-ymm__panel[hidden] { display: none; }
.cl-ymm__opt {
  position: relative; display: block; width: 100%; margin: 0; padding: 10px 40px 10px 14px;
  background: transparent; color: var(--cs-fg); border: 0; border-radius: 0;
  font: 400 16px/22px var(--cs-body); letter-spacing: -0.16px; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cl-ymm__opt[aria-selected="true"] { color: var(--cs-accent); }
.cl-ymm__opt[aria-selected="true"]::after {
  content: ""; position: absolute; top: 50%; right: 16px; width: 12px; height: 6px; margin-top: -5px;
  border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg);
}
.cl-shop .cl-ymm__opt:hover, .cl-shop .cl-ymm__opt:focus-visible, .cl-shop .cl-ymm__opt:focus { background: var(--cs-accent); color: var(--cs-accent-fg); outline: none; }

/* ---- the product page's crumbs ---- */
.cl-crumbs { padding: 24px 60px; max-width: 1440px; margin: 0 auto; font: 400 14px/21px var(--cs-body); color: var(--cs-muted); }
.cl-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.cl-crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--cs-line); }
.cl-crumbs a { text-decoration: none; }
.cl-crumbs a:hover { text-decoration: underline; }
.cl-crumbs [aria-current] { color: var(--cs-fg); }

/* ---- the cards ---- */
.cl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.cl-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cl-card { display: flex; flex-direction: column; background: var(--cs-card); min-width: 0; }
.cl-card__media { display: block; aspect-ratio: 1; background: var(--cs-photo); padding: 16px; }
.cl-card__media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cl-card__text { padding: 24px 24px 0; }
.cl-card__text p { margin: 0; }
.cl-card__line { font: 400 14px/21px var(--cs-body); letter-spacing: -0.14px; color: var(--cs-muted); }
.cl-card__title { margin: 8px 0 0; font: 400 18px/27px var(--cs-body); letter-spacing: -0.18px; color: var(--cs-fg); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cl-card__title a { text-decoration: none; }
.cl-card__title a:hover { text-decoration: underline; }
.cl-card__text .cl-card__mfg { margin-top: 8px; font: 400 14px/21px var(--cs-body); color: var(--cs-muted); }
.cl-card__text .cl-card__price { margin-top: 16px; font: 700 26px/31px var(--cs-heading); letter-spacing: -0.78px; color: var(--cs-fg); }
.cl-card__cur { font: 400 14px/normal var(--cs-body); letter-spacing: 0; color: var(--cs-muted); }
.cl-card__list { font: 400 16px/normal var(--cs-body); letter-spacing: 0; color: var(--cs-muted); }
.cl-card__stock { margin-top: 8px !important; font: 400 14px/21px var(--cs-body); color: var(--cs-fg); display: flex; align-items: center; }
.cl-card__stock.is-local .cl-dot { background: var(--cs-accent); }
.cl-card__stock.is-out-of-stock { color: var(--cs-accent); }
.cl-card__stock.is-out-of-stock .cl-dot { background: transparent; border: 1px solid var(--cs-accent); }
.cl-card__hint, .cl-card__ship, .cl-card__alert { font: 400 14px/21px var(--cs-body); color: var(--cs-muted); }
.cl-card__text .cl-card__fits { margin-top: 8px; font: 400 14px/21px var(--cs-body); color: var(--cs-fg); display: flex; align-items: center; }
.cl-card__buy { display: flex; gap: 12px; padding: 24px; margin: auto 0 0; }
.cl-card__add { flex: 1; }

/* ================================================================================================
   The product page
   ================================================================================================ */
.cl-pd__top { max-width: 1440px; margin: 0 auto; padding: 0 60px 60px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.cl-pd__main { background: var(--cs-photo); aspect-ratio: 1; padding: 24px; }
.cl-pd__main img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cl-pd__thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.cl-pd__thumb { width: 80px; height: 80px; padding: 6px; background: var(--cs-photo); border: 0; cursor: pointer; }
.cl-pd__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cl-pd__thumb.is-selected { outline: 2px solid var(--cs-accent); outline-offset: 0; }
.cl-pd__buy p { margin: 0; }
.cl-pd__line { font: 400 14px/21px var(--cs-body); letter-spacing: -0.14px; color: var(--cs-muted); }
.cl-pd__title { margin: 8px 0 0; font: 700 34px/39px var(--cs-heading); letter-spacing: -0.68px; color: var(--cs-fg); }
.cl-pd__buy .cl-pd__part { margin-top: 12px; font: 400 14px/21px var(--cs-body); color: var(--cs-muted); }
.cl-pd__offer { margin-top: 24px; }
.cl-pd__offer .cl-pd__price { font: 700 36px/normal var(--cs-heading); letter-spacing: -0.72px; color: var(--cs-fg); }
.cl-pd__cur { font: 400 16px/normal var(--cs-body); letter-spacing: 0; color: var(--cs-muted); }
.cl-pd__list { font: 400 18px/normal var(--cs-body); letter-spacing: 0; color: var(--cs-muted); }
.cl-pd__offer .cl-pd__stock { margin-top: 12px !important; font-size: 16px; line-height: 24px; }
.cl-pd__offer .cl-pd__ship { margin-top: 4px; font: 400 16px/24px var(--cs-body); color: var(--cs-muted); }
.cl-pd__form { display: flex; gap: 12px; margin-top: 32px; align-items: stretch; }
.cl-pd__qty { height: 49px; }
.cl-pd__add { flex: 1; min-width: 0; max-width: 324px; height: 49px; cursor: pointer; }
.cl-pd__add .cl-btn-label { font-size: 18px; line-height: 24px; }
.cl-pd__more { display: flex; gap: 12px; margin-top: 24px !important; flex-wrap: wrap; }
.cl-pd__more .cl-grey { min-width: 150px; }
.cl-pd__phone { margin-top: 24px !important; font: 400 16px/24px var(--cs-body); color: var(--cs-fg); }
.cl-pd__note { margin-top: 24px !important; font: 400 14px/21px var(--cs-body); color: var(--cs-muted); }

.cl-fit { margin-top: 32px; background: var(--cs-band); padding: 24px; }
.cl-fit__title { margin: 0 0 16px; font: 700 20px/normal var(--cs-heading); letter-spacing: -0.6px; color: var(--cs-fg); }
.cl-fit__picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cl-fit__picker .cl-ymm__field[data-fm-fit-submodel-field], .cl-fit__picker .cl-ymm__field[data-fm-fit-engine-field] { grid-column: 1 / -1; }
.cl-fit__answer p { margin: 16px 0 0; font: 400 16px/24px var(--cs-body); color: var(--cs-fg); }
.cl-fit__verdict { display: flex; align-items: center; flex-wrap: wrap; }
.cl-fit__verdict[hidden], .cl-fit__alert[hidden] { display: none; }
.cl-fit__verdict.is-no { color: var(--cs-accent) !important; }
.cl-fit__verdict a { color: var(--cs-fg); margin-left: 6px; }
.cl-fit__universal { margin-top: 32px !important; font: 400 16px/24px var(--cs-body); color: var(--cs-muted); }

/* the details in an inset band: the band colour with 60px round a panel, the text 170px in */
.cl-inset { background: var(--cs-band); padding: 60px; }
.cl-inset__panel { background: var(--cs-bg); padding: 70px 170px; max-width: 1320px; margin: 0 auto; }
.cl-pd__h2 { margin: 0 0 16px; font: 700 26px/normal var(--cs-heading); letter-spacing: -0.78px; color: var(--cs-fg); }
.cl-inset__panel > * + .cl-pd__h2 { margin-top: 48px; }
.cl-pd__desc, .cl-pd__features { font: 400 18px/32.4px var(--cs-body); letter-spacing: -0.18px; color: var(--cs-fg); }
.cl-pd__desc p { margin: 0 0 16px; }
.cl-pd__desc ul, .cl-pd__features { margin: 0; padding-left: 24px; }
.cl-table { width: 100%; border-collapse: collapse; font: 400 16px/28.8px var(--cs-body); color: var(--cs-fg); }
.cl-table th, .cl-table td { text-align: left; vertical-align: top; padding: 6px 16px 6px 0; border-bottom: 1px solid var(--cs-band); }
.cl-table tbody th { width: 40%; font-weight: 400; color: var(--cs-muted); }
.cl-table thead th { color: var(--cs-muted); font-weight: 400; }
.cl-pd__fits { max-height: 520px; overflow: auto; }
.cl-pd__docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font: 400 16px/24px var(--cs-body); }
.cl-pd__docs span { color: var(--cs-muted); }
.cl-pd__rail { max-width: 1440px; margin: 0 auto; padding: 60px 60px 80px; }
.cl-pd__rail-title { margin-bottom: 32px; }

/* ================================================================================================
   The cart page: the band, then the lines (840) and the summary (440), 40 apart
   ================================================================================================ */
.cl-cart { max-width: 1440px; margin: 0 auto; padding: 0 60px 80px; }
.cl-cart[aria-busy="true"], .cl-cd__body[aria-busy="true"] { opacity: 0.6; }
.cl-cart__layout { display: grid; grid-template-columns: minmax(0, 840fr) minmax(0, 440fr); gap: 40px; align-items: start; }
.cl-cart__count { margin: 0 0 16px; font: 400 16px/24px var(--cs-body); color: var(--cs-muted); }
.cl-cart__error, .cl-cd__error { margin: 0 0 24px; padding: 12px 16px; border: 1px solid var(--cs-accent); color: var(--cs-fg); font: 400 16px/24px var(--cs-body); }
.cl-line { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 24px; background: var(--cs-card); padding: 24px; color: var(--cs-fg); }
.cl-line + .cl-line { margin-top: 16px; }
.cl-line__img { display: block; width: 120px; height: 120px; background: var(--cs-photo); padding: 8px; }
.cl-line__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cl-line__info p { margin: 0; }
.cl-line__brand { font: 400 14px/21px var(--cs-body); color: var(--cs-muted); }
.cl-line__title { display: block; font: 400 18px/27px var(--cs-body); letter-spacing: -0.18px; color: var(--cs-fg) !important; text-decoration: none; }
.cl-line__title:hover { text-decoration: underline; }
.cl-line__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px !important; font: 400 14px/21px var(--cs-body); color: var(--cs-muted); }
.cl-line__meta > span { display: inline-flex; align-items: center; }
.cl-line__special { color: var(--cs-accent); font-weight: 400; }
.cl-line__unit { margin-top: 4px !important; font: 400 14px/21px var(--cs-body); color: var(--cs-muted); }
.cl-line__row { display: flex; align-items: center; gap: 24px; margin-top: 16px; }
.cl-line__total { margin: 0; font: 700 26px/31px var(--cs-heading); letter-spacing: -0.78px; color: var(--cs-fg); text-align: right; white-space: nowrap; }
.cl-line__total s { font: 400 14px/normal var(--cs-body); color: var(--cs-muted); }
.cl-line__remove { background: none; border: 0; padding: 0; font: 400 14px/normal var(--cs-body); color: var(--cs-muted); text-decoration: underline; cursor: pointer; }
.cl-stepper { display: inline-flex; border: 1px solid var(--cs-line); height: 42px; }
.cl-stepper button { width: 42px; height: 40px; background: var(--cs-field); color: var(--cs-fg); border: 0; font: 400 20px/1 var(--cs-body); cursor: pointer; }
.cl-stepper button:hover { background: var(--cs-band); }
.cl-stepper input { width: 48px; height: 40px; background: var(--cs-field); color: var(--cs-fg); border: 0; border-left: 1px solid var(--cs-line); border-right: 1px solid var(--cs-line); text-align: center; font: 400 16px/1 var(--cs-body); -moz-appearance: textfield; }
.cl-stepper input::-webkit-inner-spin-button, .cl-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cl-cart__continue { display: inline-block; margin-top: 24px; font: 400 16px/24px var(--cs-body); color: var(--cs-muted) !important; }

.cl-sum { background: var(--cs-band); padding: 40px; color: var(--cs-fg); }
.cl-sum__title { margin: 0 0 24px; font: 700 26px/normal var(--cs-heading); letter-spacing: -0.78px; }
.cl-sum__code { display: flex; gap: 12px; margin-bottom: 16px; }
.cl-sum__code .cl-input { flex: 1; }
.cl-sum__code .cl-grey { min-width: 90px; }
.cl-sum__error { margin: -8px 0 16px; color: var(--cs-accent); font: 400 14px/21px var(--cs-body); }
.cl-sum__codes { list-style: none; margin: 0 0 16px; padding: 0; font: 400 14px/21px var(--cs-body); }
.cl-sum__codes button { background: none; border: 0; color: var(--cs-muted); cursor: pointer; font-size: 18px; }
.cl-sum__rows { margin: 0; font: 400 16px/28.8px var(--cs-body); }
.cl-sum__rows > div { display: flex; justify-content: space-between; gap: 16px; }
.cl-sum__rows dt, .cl-sum__rows dd { margin: 0; }
.cl-sum__rows .cl-sum__total { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--cs-line); font: 700 30px/33px var(--cs-heading); letter-spacing: -0.6px; }
.cl-sum__total small { font: 400 14px/normal var(--cs-body); letter-spacing: 0; color: var(--cs-muted); }
.cl-sum__ship { display: flex; align-items: center; margin: 16px 0 0; font: 400 14px/21px var(--cs-body); color: var(--cs-fg); }
.cl-sum__tax, .cl-sum__notice { margin: 4px 0 0; font: 400 14px/21px var(--cs-body); color: var(--cs-muted); }
.cl-sum__note { margin: 24px 0 16px; font: 400 16px/24px var(--cs-body); color: var(--cs-fg); }
.cl-sum__cta { display: flex !important; width: 100%; height: 49px; margin-top: 24px; text-decoration: none; }
.cl-sum__note + .cl-sum__cta { margin-top: 0; }
.cl-sum__cta .cl-btn-label { font-size: 18px; line-height: 24px; }
.cl-sum__mail { display: flex; width: 100%; margin-top: 12px; }
.cl-sum__secure { margin: 12px 0 0; text-align: center; font: 400 14px/21px var(--cs-body); color: var(--cs-muted); }
.cl-sum__notefield { margin-top: 24px; font: 400 14px/21px var(--cs-body); color: var(--cs-muted); }
.cl-sum__notefield summary { cursor: pointer; }
.cl-sum__notefield textarea { height: auto; margin-top: 8px; padding: 10px 14px; resize: vertical; }
.cl-cart__empty { padding: 20px 0 40px; text-align: center; }
.cl-cart__empty-title { margin: 0 0 32px; font: 700 26px/normal var(--cs-heading); letter-spacing: -0.78px; color: var(--cs-fg); }
.cl-cart__brands { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0; }
.cl-cart__brands .cl-grey { min-width: 170px; }

/* ================================================================================================
   The cart drawer: 420 from the right, a rule on its left
   ================================================================================================ */
/* the drawer and its overlay sit above any client header (a sticky header at z-index 991 hid the drawer's title on one copy) */
.cl-cd-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(0, 0, 0, 0.5); opacity: 0; transition: opacity 0.25s ease; }
.cl-cd-overlay.is-open { opacity: 1; }
.cl-cd {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 10001; width: 420px; max-width: 100vw;
  background: var(--cs-bg); color: var(--cs-fg); border-left: 1px solid var(--cs-band);
  font-family: var(--cs-body); transform: translateX(100%); transition: transform 0.25s ease;
}
.cl-cd.is-open { transform: none; }
.cl-cd[hidden], .cl-cd-overlay[hidden] { display: none; }
.cl-cd__body { height: 100%; display: flex; flex-direction: column; overflow-y: auto; }
.cl-cd__head { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px solid var(--cs-band); }
.cl-cd__title { margin: 0; font: 700 26px/normal var(--cs-heading); letter-spacing: -0.78px; color: var(--cs-fg); }
.cl-cd__count { color: var(--cs-muted); }
.cl-cd__close { width: 36px; height: 36px; background: none; border: 0; color: var(--cs-fg); font: 300 36px/1 var(--cs-body); cursor: pointer; transition: transform 0.2s ease, color 0.2s ease; }
.cl-cd__close:hover { color: var(--cs-muted); transform: rotate(180deg); }
.cl-cd__error { margin: 16px 24px 0; }
.cl-cd__lines { padding: 16px 24px; }
.cl-line--sm { grid-template-columns: 80px minmax(0, 1fr); gap: 16px; padding: 16px; }
.cl-line--sm .cl-line__img { width: 80px; height: 80px; padding: 4px; }
.cl-line--sm .cl-line__title { font-size: 16px; line-height: 24px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cl-line--sm .cl-line__row { justify-content: space-between; margin-top: 12px; }
.cl-line--sm .cl-line__total { font-size: 20px; line-height: 24px; letter-spacing: -0.6px; }
.cl-line--sm .cl-line__remove { margin-top: 8px; }
.cl-line--sm .cl-stepper { height: 36px; }
.cl-line--sm .cl-stepper button { width: 36px; height: 34px; }
.cl-line--sm .cl-stepper input { width: 40px; height: 34px; }
.cl-cd__foot { margin-top: auto; padding: 24px; background: var(--cs-band); }
.cl-cd__foot .cl-sum__rows .cl-sum__total { font-size: 24px; line-height: 28px; }
.cl-cd__view { display: block; margin-top: 16px; text-align: center; font: 400 14px/21px var(--cs-body); color: var(--cs-muted) !important; }
.cl-cd__empty { padding: 32px 24px; display: grid; gap: 12px; }
.cl-cd__empty p { margin: 0; color: var(--cs-muted); }
.cl-cd__empty-title { margin: 0 0 12px !important; font: 700 26px/normal var(--cs-heading) !important; letter-spacing: -0.78px; color: var(--cs-fg) !important; }

/* the kit's add-to-cart feedback (kit-cart.js) in the site's colours */
.kit-cart-error { color: var(--cs-accent) !important; font-family: var(--cs-body) !important; padding: 0 24px 16px; }

/* ================================================================================================
   Below 980px: the title band in the phone stage's units (var(--mx)), the shop parts a phone layout
   ================================================================================================ */
@media (max-width: 1239.98px) and (min-width: 980px) {
  .cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cl-inset__panel { padding: 60px 80px; }
}
@media (max-width: 979.98px) {
  .cl-band { padding: 32px 16px 24px; }
  .cl-band__h1 { left: 0; max-width: none; font-size: 36px; line-height: 38px; letter-spacing: -0.62px; }
  .cl-band__text { max-width: none; margin-top: 14px; }
  .cl-band__text p { font-size: 16px; line-height: 1.5; letter-spacing: 0; }
  .cl-band--small .cl-band__text p { font-size: 14px; line-height: 1.5; }

  .cl-vb { padding: 32px 20px; }
  .cl-vb__title { font-size: 22px; letter-spacing: -0.66px; }
  .cl-ymm { flex-direction: column; align-items: stretch; gap: 12px; }
  .cl-ymm .cl-select, .cl-ymm .cl-ymm__btn { height: 48px; }
  .cl-ymm__btn { line-height: 46px; }
  .cl-ymm__opt { padding-top: 12px; padding-bottom: 12px; }
  .cl-ymm__actions { justify-content: space-between; }
  .cl-ymm__go { flex: 1; min-height: 48px; }

  .cl-crumbs { padding-left: 20px; padding-right: 20px; }
  .cl-crumbs { padding-top: 16px; padding-bottom: 16px; }


  .cl-grid, .cl-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .cl-card__text { padding: 16px 16px 0; }
  .cl-card__buy { padding: 16px; flex-wrap: wrap; }

  .cl-pd__top { grid-template-columns: minmax(0, 1fr); padding: 0 20px 40px; gap: 24px; }
  .cl-pd__title { font-size: 26px; line-height: 30px; letter-spacing: -0.52px; }
  .cl-pd__offer .cl-pd__price { font-size: 30px; }
  .cl-pd__add { max-width: none; }
  .cl-fit__picker { grid-template-columns: minmax(0, 1fr); }
  .cl-fit__picker .cl-select, .cl-fit__picker .cl-ymm__btn { height: 48px; }
  .cl-inset { padding: 0; }
  .cl-inset__panel { padding: 40px 20px; }
  .cl-pd__desc, .cl-pd__features { font-size: 16px; line-height: 28.8px; letter-spacing: -0.16px; }
  .cl-pd__rail { padding: 40px 20px 60px; }

  .cl-cart { padding: 0 20px 60px; }
  .cl-cart__layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cl-line { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .cl-line__img { width: 96px; height: 96px; }
  .cl-line > .cl-line__total { grid-column: 2; text-align: left; font-size: 22px; }
  .cl-sum { padding: 24px 20px; }
}
@media (max-width: 599.98px) {
  .cl-grid, .cl-grid--4 { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cl-card__media { max-height: 300px; aspect-ratio: auto; height: min(300px, calc(100vw - 40px)); }
  .cl-card__buy { flex-wrap: nowrap; }
  .cl-cd { width: 100vw; border-left: 0; }
}
@media (max-width: 979.98px) {
  .cl-pd__fits { overflow-x: auto; }
  .cl-pd__fits .cl-table { min-width: 560px; font-size: 14px; line-height: 21px; }
  .cl-pd__specs { font-size: 14px; line-height: 21px; }
}

/* The kit's checkout page (kit-checkout.css) in the site's colours, through its --kc-* tokens alone (storefront-kit
   README, Checkout): ink and soft text both full contrast, the Pay button the cart's Check out. Outside any layer
   like every token, and main.kc-page so it wins over the kit's own unlayered .kc-page defaults, loaded after this. */
main.kc-page {
  --kc-ink: var(--site-fg);
  --kc-soft: var(--site-muted);
  --kc-line: var(--site-line);
  --kc-surface: var(--site-card);
  --kc-bg: var(--site-bg);
  --kc-accent: var(--site-button-bg);
}
