/* Cart page styles – independent from editor styles */
:root{
  --bg:#f6f6f6;
  --card:#ffffff;
  --text:#111;
  --muted:#666;
  --border:#e6e6e6;
  --shadow: 0 6px 18px rgba(0,0,0,0.08);
  --radius: 16px;
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); }

.topbar{
  display:flex; align-items:center; justify-content:space-between;
  gap: 12px;
  padding: 18px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 5;
}
.brand-title{ font-weight: 900; letter-spacing: 0.06em; }
.brand-sub{ color: var(--muted); font-size: 19px; margin-top: 0px; }

/* Handwritten subtitle in topbar (e.g., "Cart & checkout") */
.brand-sub{
  font-family: system-ui;
  margin-left: 5px;
}

/* Currency selector row: keep label and select on one line */
.currency-row,
.currency-select-row,
.currency-selector,
#currencyRow,
#currencySelector{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.currency-row label,
.currency-select-row label,
.currency-selector label,
#currencyRow label,
#currencySelector label{
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
}
.currency-row select,
.currency-select-row select,
.currency-selector select,
#currencyRow select,
#currencySelector select{
  width: auto;
  min-width: 110px;
}

/* Remove the "Europe (initial)" helper label in the shipping card header */
.sidebar > section.card:first-of-type .card-head > .muted{
  display: none;
}



.top-actions{ display:flex; gap: 10px; align-items:center; }

.layout{
  display:grid;
  grid-template-columns: minmax(420px, 1fr) minmax(360px, 420px);
  gap: 16px;
  padding: 16px;
  align-items: start;
}

@media (max-width: 1000px){
  .layout{ grid-template-columns: 1fr; }
  .sidebar{ position: static; }
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-head{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 16px 10px 16px;
  border-bottom: 1px solid var(--border);
}
.card-head h2{ margin:0; font-size: 18px; }
.muted{ color: var(--muted); }
.small{ font-size: 12px; }

.btn{
  appearance: none;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
}
.btn:hover{ filter: brightness(0.95); }
.btn.ghost{ background: transparent; color:#111; }
.btn.pay{ width: 100%; padding: 14px 16px; border-radius: 14px; }

.cart-list{ padding: 12px; display:flex; flex-direction: column; gap: 12px; }

.cart-item{
  display:grid;
  grid-template-columns: 240px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

@media (max-width: 560px){
  .cart-item{ grid-template-columns: 1fr; }
  .preview{ height: 220px; }
}

.preview{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow:hidden;
  display:block;
  min-height: 240px;
}
.preview-img{ width: 100%; height: 100%; object-fit: contain; background:#fff; }

.item-top{
  display:flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}
.title{ font-weight: 900; }
.icon-btn{
  border: 1px solid var(--border);
  background: #fff;
  color: #111;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  line-height: 28px;
}
.icon-btn:hover{ filter: brightness(0.96); }

.controls{
  margin-top: 10px;
  display:grid;
  grid-template-columns: minmax(190px,1.6fr) repeat(4,minmax(105px,1fr));
  gap: 10px;
}
@media (max-width: 780px){
  .controls{ grid-template-columns: 1fr; }
}
label{ display:flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; }
input, select{
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 10px;
  font-size: 14px;
  outline: none;
}
input:focus, select:focus{ border-color: #111; }

.product-photo{
  margin-top: 10px;
  border: 1px dashed #cfcfcf;
  border-radius: 14px;
  padding: 10px;
}
.product-photo-head{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.product-photo-box{
  width: 100%;
  aspect-ratio: auto;
  padding: 10px;
  background: linear-gradient(135deg, #f1f1f1, #ffffff);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.product-photo-img{
  width:100%;
  height:100%;
  object-fit: cover;
  opacity: 0.95;
}

/* Product photo grid (2 technical views) */
.product-photo-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 350px));
  gap: 12px;
  padding: 0;
  align-items: start;
  justify-content: center;
}
.product-photo-grid .product-photo-img{
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* Mobile: stack product photos */
@media (max-width: 760px){
  .product-photo-grid{
    grid-template-columns: 1fr;
  }
  .product-photo-grid .product-photo-img{
    max-width: 350px;
    justify-self: center;
  }
}

.line{
  margin-top: 10px;
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.sidebar{ position: sticky; top: 84px; display:flex; flex-direction: column; gap: 16px; }
.form{ padding: 12px 16px 16px 16px; display:flex; flex-direction: column; gap: 10px; }

.grid2{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3{ display:grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 520px){
  .grid2, .grid3{ grid-template-columns: 1fr; }
}

.check{ flex-direction: row; align-items: center; gap: 10px; font-weight: 800; }
.check input{ width: 18px; height: 18px; }

.invoice{ border-top: 1px solid var(--border); padding-top: 10px; }
.totals{ padding: 12px 16px; display:flex; flex-direction: column; gap: 10px; }
.totals .row{ display:flex; justify-content: space-between; }
.totals .total{ padding-top: 10px; border-top: 1px solid var(--border); font-size: 16px; }

.totals .promo-discount-row{
  color:#166534;
}
.totals .promo-discount-row b{
  color:#166534;
}
.promo-code-box{
  display:grid;
  grid-template-columns:auto minmax(0, 1fr) auto;
  align-items:center;
  gap:8px;
  padding-top:10px;
  border-top:1px solid var(--border);
}
.promo-code-box label{
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
}
.promo-code-box input{
  min-width:0;
  height:34px;
  padding:7px 9px;
  border:1px solid var(--border);
  border-radius:10px;
  font:inherit;
}
.promo-code-btn{
  height:34px;
  padding:0 12px;
  border-radius:10px;
}
.promo-code-message{
  min-height:18px;
}
.promo-code-message.is-ok{ color:#166534; font-weight:700; }
.promo-code-message.is-error{ color:#b91c1c; font-weight:700; }
@media (max-width:560px){
  .promo-code-box{ grid-template-columns:1fr auto; }
  .promo-code-box label{ grid-column:1 / -1; }
}

.paybox{ padding: 0 16px 16px 16px; display:flex; flex-direction: column; gap: 10px; }

.empty{
  padding: 20px 16px;
}
.empty-title{ font-weight: 900; font-size: 16px; margin-bottom: 6px; }
.hidden{ display:none !important; }


/* Udostępnianie projektu */
.consents{margin:10px 0 12px;padding:10px;border:1px solid rgba(255,255,255,0.08);border-radius:10px}
.check{display:flex;gap:10px;align-items:flex-start;margin:6px 0;font-size:14px;line-height:1.35}
.check input{margin-top:2px}



@media (max-width: 560px){
  .topbar{
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 14px;
  }
  .top-actions{
    width: 100%;
    justify-content: stretch;
  }
  .top-actions .btn{
    flex: 1 1 auto;
  }
  .layout{
    padding: 12px;
    gap: 12px;
  }
  .sidebar{
    top: 0;
  }
  .btn.pay{ position: sticky; bottom: 10px; }
}


.linklike{
  appearance:none;
  border:0;
  background:none;
  padding:0;
  margin:0;
  color:#111;
  text-decoration:underline;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}

.required-consents{
  border: 1px solid var(--border);
  background: #fafafa;
}

.terms-modal{
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.terms-modal.hidden{ display:none !important; }
.terms-modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.45);
}
.terms-modal__dialog{
  position: relative;
  width: min(760px, calc(100vw - 24px));
  max-height: min(82vh, 900px);
  margin: min(6vh, 36px) auto;
  background:#fff;
  border:1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.terms-modal__head,
.terms-modal__foot{
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.terms-modal__foot{
  border-bottom: 0;
  border-top: 1px solid var(--border);
  display:flex;
  justify-content:flex-end;
}
.terms-modal__head h2{
  margin:0;
  font-size:18px;
}
.terms-modal__body{
  padding: 16px;
  overflow:auto;
  line-height:1.55;
}
.terms-modal__body p{
  margin: 0 0 12px 0;
}
body.terms-open{
  overflow:hidden;
}

@media (max-width: 560px){
  .terms-modal__dialog{
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    margin: 8px auto;
    border-radius: 14px;
  }
}


/* Language selector and payment trust badges */
.site-language{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:900;
  color:#111;
  white-space:nowrap;
}
.site-language select,
.siteLangSelect{
  width:auto;
  min-width:76px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:800;
}
.payment-trust{
  display:grid;
  grid-template-rows:auto auto;
  gap:8px;
  margin-top:0;
  padding:10px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
}
.payment-trust-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  align-items:center;
}
.payment-trust-row--secure{
  grid-template-columns:minmax(0, 1fr) auto;
}
.payment-trust-img{
  display:block;
  width:100%;
  max-width:100%;
  height:44px;
  object-fit:contain;
  padding:4px 8px;
  border:1px solid rgba(0,0,0,0.08);
  border-radius:12px;
  background:#fff;
}
.payment-trust-img--secure{
  height:42px;
  justify-self:stretch;
}
.payment-trust-text{
  justify-self:end;
  font-size:12px;
  font-weight:900;
  color:#2a2f36;
  white-space:nowrap;
}
@media (max-width: 560px){
  .site-language{ width:100%; justify-content:space-between; }
  .site-language select{ flex:0 0 96px; }
  .payment-trust-row,
  .payment-trust-row--secure{ grid-template-columns:1fr; }
  .payment-trust-text{ justify-self:center; white-space:normal; text-align:center; }
  .payment-trust-img{ height:40px; }
}

/* Shared compact language switcher on cart page */
.siteLangMenu{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  flex:0 0 42px;
}
.siteLangButton{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  flex:0 0 42px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  color:#111;
  text-decoration:none;
  box-shadow:0 8px 20px rgba(0,0,0,.06);
  cursor:pointer;
  padding:0;
  line-height:1;
}
.siteLangButton:hover,
.siteLangButton:focus-visible{
  background:#111;
  color:#fff;
  outline:none;
}
.siteLangIcon{width:22px;height:22px;display:block;}
.siteLangList{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  z-index:500;
  display:none;
  min-width:112px;
  padding:6px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  box-shadow:0 14px 34px rgba(0,0,0,.16);
}
.siteLangMenu.is-open .siteLangList{display:block;}
.siteLangOption{
  width:100%;
  border:0;
  background:transparent;
  color:#111;
  border-radius:10px;
  padding:9px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-weight:900;
  cursor:pointer;
}
.siteLangOption:hover,
.siteLangOption.is-active{
  background:#111;
  color:#fff;
}
.siteLangFlag{font-size:16px;line-height:1;}
@media (max-width:560px){
  .top-actions{gap:8px;}
  .siteLangMenu,.siteLangButton{width:40px;height:40px;flex-basis:40px;}
}


/* v5: stable cart topbar + compact language switcher */
.brand{
  display:flex;
  align-items:center;
  min-width:390px;
  flex:0 0 390px;
}
.brand-logo{
  flex:0 0 210px;
  width:210px;
  max-width:210px;
}
.brand-logo .squared-logo{
  display:block;
  width:210px;
  height:auto;
}
.brand-sub{
  flex:0 0 170px;
  width:170px;
  max-width:170px;
  min-width:170px;
  font-size:16px;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.site-language{ display:none !important; }
.siteLangList{ min-width:128px; }
.siteLangOption{ min-height:36px; }
@media (max-width: 680px){
  .topbar{ align-items:flex-start; }
  .brand{ min-width:0; flex:1 1 auto; }
  .brand-logo{ flex:0 0 170px; width:170px; max-width:170px; }
  .brand-logo .squared-logo{ width:170px; }
  .brand-sub{ flex:0 0 140px; width:140px; min-width:140px; max-width:140px; font-size:14px; }
  .top-actions{ flex-wrap:wrap; justify-content:flex-end; }
}


/* Voucher / promo additions */
.voucher-credit-row b{ color:#176b3a; }
.voucher-code-box{ margin-top:8px; }
.voucher-buy-box{
  margin-top:10px;
  padding:10px 12px;
  border-radius:14px;
  background:linear-gradient(135deg, rgba(20,61,122,.06), rgba(45,139,87,.08));
  border:1px solid rgba(0,0,0,.08);
}
.voucher-buy-title{
  font-size:12px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
  margin-bottom:8px;
}
.voucher-buy-row{
  display:grid;
  grid-template-columns:auto minmax(72px,1fr) auto;
  gap:8px;
  align-items:center;
}
.voucher-buy-row label{
  font-size:12px;
  font-weight:800;
  color:var(--muted);
}
.voucher-buy-row input{
  width:100%;
  min-height:36px;
  border:1px solid var(--border);
  border-radius:10px;
  padding:7px 9px;
  font:inherit;
  background:#fff;
}
.cart-item.is-voucher .preview{
  background:linear-gradient(135deg, #143d7a, #2d8b57);
  display:flex;
  align-items:center;
  justify-content:center;
}
.cart-item.is-voucher .preview-img{
  width:80%;
  height:80%;
  object-fit:contain;
  border-radius:12px;
  box-shadow:none;
}
.cart-item.is-voucher .controls label:not(.voucher-qty-label),
.cart-item.is-voucher .product-photo{
  display:none !important;
}
.cart-item.is-voucher .controls{
  grid-template-columns:minmax(80px, 160px);
}
@media (max-width: 640px){
  .voucher-buy-row{
    grid-template-columns:1fr;
  }
  .voucher-buy-row .btn{
    width:100%;
  }
}


/* v37 cart UX: gallery return, logo confirmation, BLIK badges */
.cart-brand-link{
  color:inherit;
  text-decoration:none;
  cursor:pointer;
}
.cart-brand-link:hover .brand-logo,
.cart-brand-link:focus-visible .brand-logo{
  filter:brightness(.96);
}
.btn:disabled,
.btn[disabled]{
  opacity:.42;
  cursor:not-allowed;
  filter:grayscale(.2);
  pointer-events:none;
}
.top-actions #backToGalleryBtn{
  white-space:nowrap;
}
.payment-trust{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
  margin-top:0;
  padding:10px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
}
.payment-trust-row,
.payment-trust-row--secure{ display:contents; }
.payment-trust-img,
.payment-trust-img--secure{
  width:100%;
  height:44px;
  min-height:44px;
  max-height:44px;
  object-fit:contain;
  padding:4px 8px;
  border:1px solid rgba(0,0,0,0.08);
  border-radius:12px;
  background:#fff;
  justify-self:stretch;
}
.payment-trust-img--blik{
  object-fit:contain;
  background:#fff;
}
.payment-trust-text{ display:none!important; }
.cart-leave-modal{
  position:fixed;
  inset:0;
  z-index:1200;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
}
.cart-leave-modal.hidden{ display:none!important; }
.cart-leave-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.38);
}
.cart-leave-modal__dialog{
  position:relative;
  width:min(420px, calc(100vw - 28px));
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:0 18px 50px rgba(0,0,0,.22);
  padding:18px;
  text-align:center;
}
.cart-leave-modal__dialog h2{
  margin:0 0 8px;
  font-size:18px;
}
.cart-leave-modal__dialog p{
  margin:0 0 16px;
  color:var(--muted);
  line-height:1.4;
}
.cart-leave-modal__actions{
  display:flex;
  justify-content:center;
  gap:10px;
}
.cart-leave-modal__actions .btn{
  min-width:96px;
}
@media (max-width:560px){
  .top-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
  }
  .top-actions .btn{
    width:100%;
    padding-left:10px;
    padding-right:10px;
  }
  .payment-trust{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
  }
  .payment-trust-img,
  .payment-trust-img--secure{
    height:40px;
    min-height:40px;
    max-height:40px;
    padding:4px 6px;
  }
}

/* v38: cart top action buttons — right aligned + rhombus style */
.top-actions{
  margin-left:auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:1px;
  flex-wrap:wrap;
}
.top-actions #backToGalleryBtn,
.top-actions #clearCartBtn{
  border-radius:0;
  border:1px solid rgba(0,0,0,.18);
  min-height:40px;
  padding:10px 18px;
  font-weight:900;
  letter-spacing:.015em;
  box-shadow:0 8px 20px rgba(0,0,0,.10);
  clip-path:polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transition:filter .16s ease, transform .16s ease, box-shadow .16s ease;
}
.top-actions #backToGalleryBtn{
  background:#0f3f68;
  color:#fff;
  border-color:#0b2f4e;
}
.top-actions #clearCartBtn{
  background:#7a1f1f;
  color:#fff;
  border-color:#5f1717;
  clip-path:polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.top-actions #backToGalleryBtn:not(:disabled):hover,
.top-actions #backToGalleryBtn:not(:disabled):focus-visible,
.top-actions #clearCartBtn:not(:disabled):hover,
.top-actions #clearCartBtn:not(:disabled):focus-visible{
  filter:brightness(1.08) saturate(1.08);
  transform:translateY(-1px);
  box-shadow:0 0 0 3px rgba(255,255,255,.85), 0 0 22px rgba(255,235,130,.65), 0 12px 26px rgba(0,0,0,.16);
  outline:none;
}
.top-actions #backToGalleryBtn:disabled,
.top-actions #clearCartBtn:disabled{
  background:#c9c9c9;
  color:#555;
  border-color:#b9b9b9;
  box-shadow:none;
}
@media (max-width:560px){
  .topbar{
    align-items:flex-start;
  }
  .top-actions{
    width:100%;
    margin-left:auto;
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
  }
  .top-actions .btn,
  .top-actions #backToGalleryBtn,
  .top-actions #clearCartBtn{
    width:auto;
    flex:0 0 auto;
    min-width:118px;
    max-width:calc(50vw - 18px);
    padding-left:14px;
    padding-right:14px;
    font-size:12px;
    white-space:normal;
    text-align:center;
  }
}
@media (max-width:360px){
  .top-actions #backToGalleryBtn,
  .top-actions #clearCartBtn{
    min-width:112px;
    max-width:100%;
  }
}


/* v39: voucher target highlight from Home link */
#voucherBuyBox{
  scroll-margin-top:110px;
}
#voucherBuyBox:target{
  animation:sqVoucherTargetBlink .42s ease-in-out 0s 6;
}
@keyframes sqVoucherTargetBlink{
  0%,100%{ box-shadow:0 0 0 0 rgba(255,221,77,0); filter:none; }
  50%{ box-shadow:0 0 0 4px rgba(255,221,77,.85), 0 0 26px rgba(255,221,77,.75); filter:brightness(1.05); }
}

/* v40: keep Back to gallery active after clearing cart + visible voucher currency */
.voucher-buy-field{
  display:flex;
  align-items:center;
  min-width:0;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  overflow:hidden;
}
.voucher-buy-field input#voucherAmountInput{
  border:0;
  border-radius:0;
  flex:1 1 auto;
  min-width:0;
  background:transparent;
}
.voucher-amount-currency{
  flex:0 0 auto;
  min-width:48px;
  padding:0 10px;
  font-size:12px;
  font-weight:900;
  color:#111;
  text-align:center;
  border-left:1px solid var(--border);
  align-self:stretch;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#f7f7f7;
}
@media (max-width:640px){
  .voucher-buy-field{ width:100%; }
}

/* === CART SUMMARY / MOBILE HEADER FIXES v40 === */
.discount-codes-toggle{
  width:100%;
  margin:10px 0 0;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  color:#111;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font:inherit;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(0,0,0,.04);
}
.discount-codes-arrow{
  font-size:18px;
  line-height:1;
  transition:transform .18s ease;
  transform-origin:center;
}
.discount-codes-toggle[aria-expanded="true"] .discount-codes-arrow{
  transform:rotate(180deg);
}
.discount-codes-panel{
  display:grid;
  grid-template-rows:0fr;
  opacity:0;
  overflow:hidden;
  transition:grid-template-rows .2s ease, opacity .18s ease, margin-top .2s ease;
  margin-top:0;
}
.discount-codes-panel > *{
  min-height:0;
}
.discount-codes-panel.is-open{
  grid-template-rows:1fr;
  opacity:1;
  margin-top:8px;
}
.discount-codes-panel.is-open > *{
  overflow:visible;
}
.applied-vouchers-list{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:7px;
}
.applied-voucher-chip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:7px 9px;
  border:1px solid rgba(23,107,58,.22);
  border-radius:10px;
  background:rgba(23,107,58,.07);
}
.applied-voucher-chip > span{
  display:flex;
  align-items:baseline;
  gap:8px;
  min-width:0;
}
.applied-voucher-chip b{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.applied-voucher-chip small{
  color:#176b3a;
  font-weight:900;
  white-space:nowrap;
}
.applied-voucher-chip button{
  width:26px;
  height:26px;
  flex:0 0 26px;
  border:0;
  border-radius:50%;
  background:#fff;
  color:#6c1d1d;
  font-size:17px;
  line-height:1;
  cursor:pointer;
}

@media (max-width:560px){
  .top-actions{
    width:100% !important;
    display:grid !important;
    grid-template-columns:40px minmax(0,1fr) auto auto !important;
    align-items:center !important;
    justify-content:stretch !important;
    gap:2px !important;
    margin-left:0 !important;
  }
  .top-actions .siteLangMenu{
    grid-column:1 !important;
    justify-self:start !important;
    margin:0 !important;
  }
  .top-actions #backToGalleryBtn{
    grid-column:3 !important;
  }
  .top-actions #clearCartBtn{
    grid-column:4 !important;
  }
  .top-actions #backToGalleryBtn,
  .top-actions #clearCartBtn{
    min-width:108px !important;
    max-width:none !important;
    margin:0 !important;
    padding-left:12px !important;
    padding-right:12px !important;
  }
}
@media (max-width:360px){
  .top-actions{
    grid-template-columns:38px minmax(0,1fr) auto auto !important;
  }
  .top-actions #backToGalleryBtn,
  .top-actions #clearCartBtn{
    min-width:100px !important;
    padding-left:9px !important;
    padding-right:9px !important;
    font-size:11px !important;
  }
}
/* === /CART SUMMARY / MOBILE HEADER FIXES v40 === */
/* v40 correction: reliable sliding container with multiple child rows */
.discount-codes-panel{
  display:block !important;
  max-height:0 !important;
  opacity:0 !important;
  overflow:hidden !important;
  margin-top:0 !important;
  transition:max-height .24s ease, opacity .18s ease, margin-top .2s ease !important;
}
.discount-codes-panel.is-open{
  max-height:520px !important;
  opacity:1 !important;
  overflow:visible !important;
  margin-top:8px !important;
}


/* Single-use voucher breakdown */
.applied-voucher-chip > span{
  align-items:flex-start;
  flex-direction:column;
  gap:2px;
}
.applied-voucher-chip small{
  white-space:normal;
  line-height:1.25;
}


/* SQUARED multilayer plexiglass cart v1 */
.plexi-thickness-control[hidden],.plexi-layers-control[hidden]{display:none!important}
.cart-item .plexiLayers[readonly]{background:#f3f4f6;color:#555;cursor:not-allowed}
.sq-prod-card--spec{display:grid;place-items:center;text-align:center;padding:14px;background:linear-gradient(145deg,#f5f7fa,#fff);border:1px solid rgba(0,0,0,.1)}
.sq-spec-stack{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;line-height:1.25}
.sq-spec-stack>span{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#666}.sq-spec-stack>strong{font-size:24px}.sq-spec-stack>small{font-size:10px;color:#666}
.sq-prod-card--plexi-image img{object-fit:cover!important;width:100%!important;height:100%!important}
@media(max-width:980px) and (min-width:781px){.controls{grid-template-columns:repeat(2,minmax(0,1fr))}}
