body.ksca-atelier .ksd-checkout .ksd-comment label small {
  display: inline-block;
  margin-inline-start: 16px;
  letter-spacing: .065em;
  line-height: 1.5;
  white-space: nowrap;
}
body.ksca-atelier .ksd-cart-layout .woocommerce-Price-amount,
body.ksca-atelier .ksd-cart-layout .cart_totals td {
  white-space: nowrap;
}
body.ksca-atelier .ksd-cart-layout .cart_totals .order-total td {
  width: auto;
}

/* Let the price column grow with its number instead of overflowing into quantity. */
@media (min-width: 851px) {
  body.ksca-atelier .ksd-cart-layout table.cart tr.cart_item {
    grid-template-columns: 68px minmax(0, 1fr) max-content max-content 30px;
    grid-template-areas: "photo name quantity subtotal remove" "photo price quantity subtotal remove";
    column-gap: 26px;
  }
  body.ksca-atelier .ksd-cart-layout table.cart td.product-subtotal {
    min-width: max-content;
  }
}

@media (max-width: 850px) {
  body.ksca-atelier .site-header.ksca-mobile-ready,
  body.ksca-atelier.single-product .site-header.ksca-mobile-ready {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    border-radius: 0 0 20px 20px;
    top: var(--ksca-admin-offset, 0px);
    padding-top: env(safe-area-inset-top, 0px);
    transition: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body.ksca-atelier .site-header.ksca-mobile-ready .masthead,
  body.ksca-atelier.single-product .site-header.ksca-mobile-ready .masthead,
  body.ksca-atelier .site-header.ksca-mobile-ready.ksca-header-floating .masthead {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin-inline: 0;
    border-width: 0;
    border-radius: 0 0 20px 20px;
    padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px));
    transform: none;
    background: var(--surface);
    transition: box-shadow .18s ease;
  }
  body.ksca-atelier .site-header.ksca-mobile-ready .masthead .header-search-shell {
    left: 8px;
    right: 8px;
  }
  body.ksca-atelier .site-header.ksca-mobile-ready .masthead .brand-clean,
  body.ksca-atelier.single-product .site-header.ksca-mobile-ready .masthead .brand-clean {
    margin: 0 !important;
  }
  body.ksca-atelier .site-header.ksca-mobile-ready .masthead .ksca-header-links {
    display: flex !important;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    margin: 0 auto 0 2px;
  }
  body.ksca-atelier .site-header.ksca-mobile-ready .ksca-header-links > :not([data-catalog-open]) {
    display: none;
  }
  body.ksca-atelier .site-header.ksca-mobile-ready .masthead .catalog-button {
    display: block !important;
    position: relative;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    margin: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ink);
    transform: none;
  }
  body.ksca-atelier .site-header.ksca-mobile-ready .catalog-button > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  body.ksca-atelier .site-header.ksca-mobile-ready .catalog-button > svg { display: none; }
  body.ksca-atelier .site-header.ksca-mobile-ready .catalog-button::before,
  body.ksca-atelier .site-header.ksca-mobile-ready .catalog-button::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 16px;
    width: 26px;
    height: 2px;
    background: currentColor;
  }
  body.ksca-atelier .site-header.ksca-mobile-ready .catalog-button::after { top: 26px; }
  body.ksca-atelier .ksd-cart-layout .cart_totals .order-total th { width: 25%; }
  body.ksca-atelier .ksd-cart-layout .cart_totals .order-total .amount { font-size: clamp(27px, 7.6vw, 38px); }
}

@media (max-width: 600px) {
  body.ksca-atelier .ksd-cart-layout table.cart tr.cart_item {
    grid-template-columns: 56px minmax(0, 1fr) 28px;
    grid-template-areas: "photo name remove" "photo price price" "quantity quantity quantity";
    gap: 12px;
    padding: 18px;
  }
  body.ksca-atelier .ksd-cart-layout table.cart td.product-quantity {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    align-self: center;
    margin-top: 10px;
  }
  body.ksca-atelier .ksd-cart-layout table.cart td.product-subtotal {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: end;
    align-self: center;
    margin-top: 10px;
    max-width: calc(100% - 136px);
  }
  body.ksca-atelier .ksd-cart-layout td.product-price .ksd-price-saving {
    display: flex;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 3px;
  }
  body.ksca-atelier .ksd-cart-layout td.product-subtotal .ksd-price-saving {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }
  body.ksca-atelier .ksd-cart-layout td.product-subtotal .ksd-price-saving del {
    font-size: 14px;
    line-height: 1.2;
  }
  body.ksca-atelier .ksd-cart-layout td.product-subtotal .ksd-price-saving ins {
    font-size: 24px;
    line-height: 1.2;
  }
}
@media (max-width: 380px) {
  body.ksca-atelier .ksd-cart-layout table.cart td.product-subtotal {
    grid-row: 4;
    max-width: none;
    margin-top: 0;
  }
  body.ksca-atelier .ksd-cart-layout .cart_totals { padding: 20px; }
  body.ksca-atelier .ksd-cart-layout .cart_totals .order-total th { font-size: 18px; }
}
/* Totals use the full card width; labels can wrap, money cannot. */
body.ksca-atelier .ksd-cart-layout .cart_totals{container-type:inline-size}
body.ksca-atelier .ksd-cart-layout .cart_totals table tr{display:flex;align-items:baseline;gap:16px}
body.ksca-atelier .ksd-cart-layout .cart_totals table th{flex:1 1 auto;min-width:0;width:auto;padding-inline-end:0}
body.ksca-atelier .ksd-cart-layout .cart_totals table td{flex:0 0 auto;width:auto;max-width:none;padding-inline-start:0}
body.ksca-atelier .ksd-cart-layout .cart_totals .order-total .amount{font-size:clamp(26px,9cqi,42px);line-height:1.3}
@media(min-width:851px) and (max-width:1100px){
 body.ksca-atelier .ksd-cart-layout{grid-template-columns:minmax(0,1fr)}
 body.ksca-atelier .ksd-cart-layout .cart-collaterals{width:100%;max-width:500px;justify-self:end}
}
@media(min-width:851px) and (max-width:1100px){
 body.ksca-atelier .ksd-cart-layout .cart-collaterals{width:100%!important;position:static}
}
