/* Preview-only compatibility with the existing product-tile layout overrides. */
html body .anya-site #create.home-configurator .home-product-tabs>button.home-mini-tab{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:8px!important;height:44px!important;min-height:44px!important;padding:8px 12px!important;border-radius:30px!important}
html body .anya-site #create.home-configurator .home-product-tabs>button.home-mini-tab>span,html body .anya-site #create.home-configurator .home-product-tabs>button.home-mini-tab>strong{position:static!important;transform:none!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;align-self:center!important}
html body .anya-site #create.home-configurator .home-product-tabs>button.home-mini-tab>span{font-size:20px!important;line-height:1!important}
html body .anya-site #create.home-configurator .home-product-tabs>button.home-mini-tab>strong{font-size:15px!important;line-height:1.2!important}

/* Keep desktop basket rows compact; mobile keeps its existing layout. */
@media (min-width:701px) {
  html body .anya-basket .anya-basket-heading { margin-bottom:14px; }
  html body .anya-basket .anya-basket-heading h1 { font-size:clamp(36px,3.2vw,48px); margin:0; }
  html body .anya-basket .anya-basket-list-actions { margin:0 0 4px; }
  html body .anya-basket .anya-basket-item {
    grid-template-columns:72px minmax(0,1fr) auto;
    grid-template-areas:"image description price" "image brief brief" "image actions actions";
    gap:5px 12px; padding:12px 0; align-items:start;
  }
  html body .anya-basket .cart-model-preview { width:72px; }
  html body .anya-basket .anya-basket-description h2 { font-size:14px; line-height:1.4; margin:0; }
  html body .anya-basket .anya-item-price { margin:0; }
  html body .anya-basket .cart-item-brief { margin:0; font-size:11px; }
  html body .anya-basket .cart-item-actions { margin:2px 0 0; gap:7px; }
  html body .anya-basket .cart-item-actions>button:not(.anya-remove-item) { flex-basis:28px; width:28px; height:28px; }
  html body .anya-basket .cart-item-actions .cart-configure { margin-left:5px; padding:7px 10px; font-size:11px; }
  html body .anya-basket .cart-item-actions .anya-remove-item { font-size:11px; }
}

/* Six creation choices stay in reading order: two columns, three rows. */
@media(max-width:760px){
 html body .anya-site #create.home-configurator .home-product-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-flow:row!important;gap:8px!important}
 html body .anya-site #create.home-configurator .home-product-tabs>button{grid-column:auto!important;grid-row:auto!important;min-width:0!important}
}

/* Compact mobile rows keep the details with their preview and actions together. */
@media(max-width:700px){
 html body .anya-basket .anya-basket-item{grid-template-columns:60px minmax(0,1fr) auto;grid-template-areas:"image description price" "image brief brief" "actions actions actions";gap:5px 10px;padding:12px 0}
 html body .anya-basket .cart-model-preview{width:60px}
 html body .anya-basket .anya-basket-description h2{font-size:13px;line-height:1.35}
 html body .anya-basket .anya-item-price{align-self:start;text-align:right}
 html body .anya-basket .cart-item-brief{align-self:start;margin:0}
 html body .anya-basket .cart-item-actions{gap:6px;margin:3px 0 0}
 html body .anya-basket .cart-item-actions .cart-configure{margin-left:5px;padding:8px 10px}
}

/* Cart previews are square renders; never crop them into a portrait slot. */
html body .anya-site .anya-checkout-item>.cart-model-preview{width:72px;height:72px;aspect-ratio:1;align-self:start}
html body .anya-site .anya-checkout-item>.cart-model-preview>img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;border-radius:0}
@media(max-width:700px){html body .anya-site .anya-checkout-item>.cart-model-preview{width:65px;height:65px}}

/* Create choices: storefront typography, with the product type emphasized. */
html body .anya-site #create.home-configurator .home-product-tabs {
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;align-items:stretch!important;
}
html body .anya-site #create.home-configurator .home-product-tabs>button:is(.home-main-tab,.home-mini-tab) {
 display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
 box-sizing:border-box!important;gap:4px!important;min-width:0!important;height:153px!important;min-height:153px!important;padding:12px!important;
 border-radius:24px!important;background:#f2d0d9!important;font-family:AnyaInter,Inter,Arial,sans-serif!important;
}
html body .anya-site #create.home-configurator .home-product-tabs>button>.create-choice-visual {
 position:relative!important;transform:none!important;width:100%!important;height:64px!important;max-height:64px!important;margin:0!important;flex:0 0 64px!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
}
html body .anya-site #create.home-configurator .home-product-tabs>button>.create-choice-visual>img {
 display:block!important;position:static!important;transform:none!important;width:100%!important;height:64px!important;max-height:64px!important;object-fit:contain!important;
}
html body .anya-site #create.home-configurator .home-product-tabs>button>.create-choice-label {
 display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;
 position:static!important;transform:none!important;width:100%!important;height:39px!important;margin:0!important;padding:0!important;
}
html body .anya-site #create.home-configurator .home-product-tabs .create-choice-label>strong {
 display:block!important;position:static!important;transform:none!important;margin:0!important;font-size:18px!important;font-weight:700!important;line-height:1.2!important;letter-spacing:normal!important;
}
html body .anya-site #create.home-configurator .home-product-tabs .create-choice-description {
 display:block!important;position:static!important;transform:none!important;margin:0!important;font-size:12px!important;font-weight:400!important;line-height:1.2!important;
}
html body .anya-site #create.home-configurator .home-product-tabs .create-choice-visual>.home-print-icon {
 display:grid!important;place-items:center!important;box-sizing:border-box!important;width:60px!important;height:60px!important;margin:0!important;
 font-style:normal!important;font-size:38px!important;line-height:1!important;border:6px solid #faf3df!important;border-radius:8px!important;
 background:repeating-linear-gradient(90deg,#612731 0 8px,#f2bbc9 8px 16px)!important;color:#fff2e9!important;box-shadow:3px 4px 0 #b9828b!important;
}
@media(max-width:760px) {
 html body .anya-site #create.home-configurator .home-product-tabs {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 html body .anya-site #create.home-configurator .home-product-tabs>button:is(.home-main-tab,.home-mini-tab) {height:112px!important;min-height:112px!important;padding:8px 6px!important;gap:4px!important;border-radius:16px!important}
 html body .anya-site #create.home-configurator .home-product-tabs>button>.create-choice-visual {height:42px!important;max-height:42px!important;flex-basis:42px!important}
 html body .anya-site #create.home-configurator .home-product-tabs>button>.create-choice-visual>img {height:42px!important;max-height:42px!important}
 html body .anya-site #create.home-configurator .home-product-tabs .create-choice-label>strong {font-size:14px!important}
 html body .anya-site #create.home-configurator .home-product-tabs .create-choice-description {font-size:10px!important}
 html body .anya-site #create.home-configurator .home-product-tabs>button.home-mini-tab {height:44px!important;min-height:44px!important}
 html body .anya-site #create.home-configurator .home-product-tabs>button.home-mini-tab>.create-choice-visual {display:none!important}
 html body .anya-site #create.home-configurator .home-product-tabs>button.home-mini-tab>.create-choice-label {height:auto!important}
}
