/* Carte Blanche, the surprise kit (17/11/2026): the page of product 381626219 and its line in the cart.
   Markup in snipplets/mainstream/kit-carte-blanche.tpl, behaviour in js/mainstream-kit-carte-blanche-20261117.js.
   Colours and type are the store's own (paper #f8f7f3, title #263b31, green #365542, Gelasio and DM Sans). */

.mainstream-theme .ms-kit-page {
    --ms-kit-card: #f8f7f3;
    --ms-kit-line: #daddd2;
    --ms-kit-title: #263b31;
    --ms-kit-green: #365542;
    --ms-kit-muted: #70796e;
    --ms-kit-soft: #dce3d5;
    --ms-kit-soft-line: #9bad8e;
    --ms-kit-pill: #e7e9df;
}

/* ---------- photo: follows the vibe touched ---------- */
.mainstream-theme .ms-kit-stage { position: relative; }
.mainstream-theme .ms-kit-hero { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #e6e2d6; border-radius: 6px; }
.mainstream-theme .ms-kit-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.mainstream-theme .ms-kit-photo.is-on { opacity: 1; }
.mainstream-theme .ms-kit-hero-tag { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(248, 247, 243, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 600 12px/1.3 'DM Sans', sans-serif; letter-spacing: .02em; color: var(--ms-kit-title); }

/* ---------- heading ---------- */
.mainstream-theme .ms-kit-page .ms-kit-sub { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--ms-kit-muted); }

/* ---------- builder ---------- */
.mainstream-theme .ms-kit-builder { margin: 14px 0 0; text-align: left; scroll-margin-top: 120px; }
.mainstream-theme .ms-kit-each { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--ms-kit-pill); font: 500 12.5px/1.5 'DM Sans', sans-serif; color: var(--ms-kit-title); }
.mainstream-theme .ms-kit-rule { height: 1px; margin: 22px 0; background: var(--ms-kit-line); }
.mainstream-theme .ms-kit-claim { margin: 0; font: 400 24px/1.2 'Gelasio', Georgia, serif; letter-spacing: -.03em; color: var(--ms-kit-title); }
.mainstream-theme .ms-kit-lead { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; color: #4b534a; }
.mainstream-theme .ms-kit-pick-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 22px 0 10px; }
.mainstream-theme .ms-kit-pick-title h2 { margin: 0; font: 600 15px/1.4 'DM Sans', sans-serif; letter-spacing: 0; color: var(--ms-kit-title); }
.mainstream-theme .ms-kit-pick-title span { font: 500 13px/1.4 'DM Sans', sans-serif; color: var(--ms-kit-muted); font-variant-numeric: tabular-nums; }
.mainstream-theme .ms-kit-meter { height: 6px; margin: 0 0 12px; border-radius: 3px; background: #e2e4d9; overflow: hidden; }
.mainstream-theme .ms-kit-meter div { width: 0; height: 100%; background: var(--ms-kit-green); transition: width .2s ease; }
.mainstream-theme .ms-kit-list { display: grid; gap: 8px; }
.mainstream-theme .ms-kit-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border: 1px solid var(--ms-kit-line); border-radius: 14px; background: var(--ms-kit-card); cursor: pointer; transition: background .15s, border-color .15s; }
.mainstream-theme .ms-kit-row.has { background: var(--ms-kit-soft); border-color: var(--ms-kit-soft-line); box-shadow: 0 1px 0 #fff inset; }
.mainstream-theme .ms-kit-row > img { display: block; width: 54px; height: 66px; border-radius: 9px; object-fit: cover; }
.mainstream-theme .ms-kit-row-text b { display: block; font: 400 19px/1.15 'Gelasio', Georgia, serif; letter-spacing: -.02em; color: var(--ms-kit-title); }
.mainstream-theme .ms-kit-row-text i { display: block; margin-top: 2px; font: normal 400 12.5px/1.4 'DM Sans', sans-serif; color: var(--ms-kit-muted); }
.mainstream-theme .ms-kit-step { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 10px; background: #eceade; }
.mainstream-theme .ms-kit-row.has .ms-kit-step { background: #f8f7f3; }
.mainstream-theme .ms-kit-step button { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; font: 400 20px/1 'DM Sans', sans-serif; color: var(--ms-kit-title); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.mainstream-theme .ms-kit-step button:disabled { opacity: .3; cursor: default; }
.mainstream-theme .ms-kit-step button:focus-visible { outline: 2px solid var(--ms-kit-title); outline-offset: 2px; }
.mainstream-theme .ms-kit-step output { min-width: 20px; text-align: center; font: 600 15px/1 'DM Sans', sans-serif; color: var(--ms-kit-title); font-variant-numeric: tabular-nums; }
.mainstream-theme .ms-kit-builder.nudge .ms-kit-pick-title span { color: var(--ms-kit-green); font-weight: 700; }
.mainstream-theme .ms-kit-builder.nudge .ms-kit-meter { box-shadow: 0 0 0 2px var(--ms-kit-soft-line); }

.mainstream-theme .ms-kit-added { margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--ms-kit-line); border-radius: 14px; background: var(--ms-kit-card); font-size: 14px; line-height: 1.5; color: #2c302b; }
.mainstream-theme .ms-kit-added[hidden], .mainstream-theme .ms-kit-fail[hidden] { display: none; }
.mainstream-theme .ms-kit-added b { display: block; font-weight: 600; color: var(--ms-kit-title); }
.mainstream-theme .ms-kit-added span { display: block; }
.mainstream-theme .ms-kit-added i { display: block; margin-top: 6px; font-style: normal; color: var(--ms-kit-muted); }
.mainstream-theme .ms-kit-fail { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: #f3ead6; font-size: 13.5px; line-height: 1.45; color: #5b4a1f; }

/* ---------- the store's own purchase block, on the kit page ---------- */
/* One kit per add: no quantity field, and the button takes the whole row. The button comes right after the list,
   before the delivery estimate, so nobody has to look for it after choosing the sixth perfume. */
.mainstream-theme .ms-kit-page .js-product-quantity-container { display: none; }
.mainstream-theme .ms-kit-page #product_form { display: flex; flex-direction: column; margin-top: 16px !important; padding-top: 0; border-top: 0; }
.mainstream-theme .ms-kit-page #product_form > .row { order: -1; }
.mainstream-theme .ms-kit-page #product_form .ms-purchase-actions { grid-template-columns: minmax(0, 1fr); }
.mainstream-theme .ms-kit-page #product_form .js-buy-button-container { flex: 0 0 100%; max-width: 100%; }
.mainstream-theme .ms-kit-page #product_form .js-addtocart[type="submit"] { width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- the kit line in the cart ---------- */
.mainstream-theme .ms-kit-cart-mix { margin-top: 4px; font: 400 12.5px/1.45 'DM Sans', sans-serif; color: #4b534a; }
.mainstream-theme .ms-kit-cart-mix span { display: block; }
.mainstream-theme .ms-kit-cart-mix a { display: inline-block; margin-top: 4px; color: #365542; text-decoration: underline; text-underline-offset: 3px; }
/* The kit line cannot grow in the cart: each kit is put together on its page. */
.mainstream-theme .js-cart-item[data-store="cart-item-381626219"] [data-component="quantity.plus"] { visibility: hidden; pointer-events: none; }
.mainstream-theme .js-cart-item[data-store="cart-item-381626219"] .js-cart-quantity-input { pointer-events: none; }

@media (min-width: 768px) {
    .mainstream-theme .ms-kit-claim { font-size: 26px; }
    /* Beside the builder the photo stays on screen while the list scrolls, so it is sized to show whole. */
    .mainstream-theme .ms-kit-hero { width: min(100%, max(320px, calc((100vh - 190px) * .8))); margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
    .mainstream-theme .ms-kit-photo, .mainstream-theme .ms-kit-meter div, .mainstream-theme .ms-kit-row { transition: none; }
}
