#tt-shop{max-width:1200px;margin:2rem auto;padding:0 1rem;color:inherit}
/* Explicit choices override legacy studio widths; original keeps all existing styles. */
#tt-shop[data-shop-view][data-shop-width="960"]{max-width:960px;width:100%;box-sizing:border-box}
#tt-shop[data-shop-view][data-shop-width="1200"]{max-width:1200px;width:100%;box-sizing:border-box}
#tt-shop[data-shop-view][data-shop-width="1440"]{max-width:1440px;width:100%;box-sizing:border-box}
#tt-shop[data-shop-view][data-shop-width="full"]{max-width:none;width:100%;box-sizing:border-box}
#tt-shop[data-shop-view="tiles"][data-shop-width] .tt-offers{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:1.25rem;align-items:stretch}
#tt-shop[data-shop-view="tiles"][data-shop-width] .tt-product{display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere;padding:1.25rem;border:1px solid #cbdad5;border-radius:12px;background:#fff;color:inherit;box-shadow:0 4px 16px #203b3410}
#tt-shop[data-shop-view="tiles"][data-shop-width] .tt-offer{display:flex;flex-direction:column;align-items:stretch;gap:1rem;border:0;padding:0;margin:0 0 1rem}
#tt-shop[data-shop-view="tiles"][data-shop-width] .tt-offer b{display:block;font-size:1.3rem;line-height:1.3}
#tt-shop[data-shop-view="tiles"][data-shop-width] .tt-offer small{margin-top:.75rem;white-space:pre-line}
#tt-shop[data-shop-view="tiles"][data-shop-width] .tt-offer strong{font-size:1.2rem;white-space:normal}
#tt-shop[data-shop-view="tiles"][data-shop-width] .tt-gallery{order:-1;margin:0 0 1rem;display:flex;flex-wrap:wrap;gap:.4rem}
#tt-shop[data-shop-view="tiles"][data-shop-width] .tt-gallery a:first-child{flex-basis:100%;width:100%}
#tt-shop[data-shop-view="tiles"][data-shop-width] .tt-gallery a:first-child img{width:100%;height:10rem;object-fit:contain;background:#f6f9f7;border-radius:8px}
#tt-shop[data-shop-view="tiles"][data-shop-width] [data-cart-add]{margin-top:auto;align-self:stretch}
#tt-shop[data-shop-view="tiles"][data-shop-width] .tt-options{min-width:0}
@media(max-width:550px){#tt-shop[data-shop-view="tiles"][data-shop-width] .tt-offers{grid-template-columns:minmax(0,1fr)}}
#tt-shop [hidden]{display:none!important}
#tt-shop .tt-cart-ready .tt-shopping-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:1.25rem;align-items:start}
#tt-shop .tt-cart-ready.tt-cart-below .tt-shopping-layout{display:block}
#tt-shop .tt-cart-below .tt-basket{position:static;max-height:none}
#tt-shop .tt-catalog{min-width:0}
#tt-shop .tt-basket{position:sticky;top:6rem;background:#f5f8fc;color:#263344;max-height:calc(100vh - 7rem);overflow:auto}
/* Helix overflow-x:hidden creates a non-scrolling overflow-y:auto ancestor.
   Clip horizontal overflow without creating a scroll container on shop pages only. */
@media(min-width:801px){
html:has(#tt-shop .tt-cart-ready:not(.tt-cart-below)),body:has(#tt-shop .tt-cart-ready:not(.tt-cart-below)){overflow-x:clip;overflow-y:visible}
body .body-innerwrapper:has(#tt-shop .tt-cart-ready:not(.tt-cart-below)){overflow-x:clip;overflow-y:visible}
}
#tt-shop .tt-basket h2{font-size:1.3rem;margin:0 0 1rem}
#tt-shop [data-cart-items]{list-style:none;margin:0;padding:0}
#tt-shop [data-cart-items]>li{display:grid;gap:.5rem;padding:1rem 0;border-bottom:1px solid #c9d4e0;overflow-wrap:anywhere}
#tt-shop [data-cart-items] small{white-space:normal}
#tt-shop [data-cart-items] b{justify-self:end}
#tt-shop .tt-cart-controls{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;justify-content:space-between}
#tt-shop .tt-cart-controls label{display:flex;align-items:center;gap:.5rem;margin:0}
#tt-shop .tt-cart-controls input{width:4.5rem;padding:.4rem;border:1px solid #a9b6c3;border-radius:5px}
#tt-shop .tt-cart-controls .tt-cart-remove{background:transparent;color:#744040;padding:.4rem;text-decoration:underline}
#tt-shop [data-cart-add]{margin:.5rem 0 1rem}
#tt-shop #tt-address{scroll-margin-top:7rem}
@media(max-width:800px){#tt-shop .tt-cart-ready .tt-shopping-layout{display:block}#tt-shop .tt-basket{position:static;max-height:none}}
#tt-shop .tt-card,#tt-shop .tt-notice{border:1px solid #d8e1ea;border-radius:12px;padding:1.25rem;margin:1rem 0}
#tt-shop .tt-notice{background:#eef5fb;color:#243950}
#tt-shop .tt-card legend{float:none;width:auto;padding:0 .35rem;font-weight:600}
#tt-shop .tt-offer{display:grid;grid-template-columns:minmax(0,1fr) auto 6rem;align-items:center;gap:.8rem;padding:.8rem 0;border-bottom:1px solid #d8e1ea}
#tt-shop .tt-quantity{display:flex;flex-direction:column;align-items:flex-start;font-size:.85rem;gap:.2rem}
#tt-shop .tt-quantity input[type=number]{max-width:6rem;width:100%;padding:.35rem;border:1px solid #a9b6c3;border-radius:6px}
#tt-shop .tt-sum{margin:1rem 0 0;text-align:right;font-weight:700}
#tt-shop .tt-summary{padding:0;list-style:none}
#tt-shop .tt-summary li{display:grid;grid-template-columns:1fr auto;gap:.3rem .8rem;padding:.65rem 0;border-bottom:1px solid #d8e1ea}
#tt-shop .tt-summary small{grid-column:1/-1}
@media(max-width:550px){#tt-shop .tt-offer{grid-template-columns:minmax(0,1fr) 5rem}#tt-shop .tt-offer>strong{grid-column:1;grid-row:2}#tt-shop .tt-quantity{grid-column:2;grid-row:1/3}}
#tt-shop .tt-offer small{display:block;margin-top:.2rem}
#tt-shop .tt-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:1rem}
#tt-shop .tt-fields input{display:block;width:100%;border:1px solid #a9b6c3;border-radius:6px;padding:.6rem}
#tt-shop button{background:#1a5391;color:white;border:0;border-radius:8px;padding:.7rem 1.2rem}
#tt-shop footer{margin:2rem 0;font-size:.9em}
#tt-shop .ttcf-credit { margin:2rem 0 1rem; text-align:center; }
#tt-shop .tt-trap{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

#tt-shop .tt-gallery { display:flex; flex-wrap:wrap; gap:.65rem; margin:.4rem 0 1rem; }
#tt-shop .tt-gallery img { display:block; width:6rem; height:5rem; object-fit:contain; border:1px solid #d8e1ea; border-radius:4px; }
#tt-shop .tt-draft-preview { border-inline-start:3px solid #947330; padding-inline-start:1rem; }
#tt-shop .tt-draft-preview h2 { margin-top:0; }
#tt-shop .tt-draft-tag { justify-self:start; background:#fff3cc; color:#654b0b; border-radius:5px; padding:.15em .55em; font-size:.85em; }
@media(max-width:550px){#tt-shop .tt-draft-tag{grid-column:2;grid-row:1/3}}
#tt-shop .tt-product { scroll-margin-top:8rem; }
#tt-shop .tt-edit-product { display:inline-block; margin:.45rem 0 .9rem; padding:.35rem .85rem; border:1px solid currentColor; border-radius:.5rem; font-weight:600; text-decoration:none; }
#tt-shop .tt-gallery a { cursor:zoom-in; }
#tt-shop .tt-lightbox { box-sizing:border-box; position:fixed; inset:0; margin:auto; width:min(44rem,92vw); max-height:90vh; max-height:90dvh; padding:1rem; border:0; border-radius:1rem; background:#fff; color:#263344; box-shadow:0 1.3rem 5rem #0005; }
#tt-shop .tt-lightbox:not([open]), #tt-shop .tt-lightbox [hidden] { display:none; }
#tt-shop .tt-lightbox::backdrop { background:rgba(12,18,27,.72); }
#tt-shop .tt-lightbox-head, #tt-shop .tt-lightbox-nav { display:flex; align-items:center; justify-content:space-between; gap:.75rem; }
#tt-shop .tt-lightbox h2 { font-family:inherit; font-weight:600; font-size:1.15rem; line-height:1.3; margin:0; overflow-wrap:anywhere; }
#tt-shop .tt-lightbox-image { display:block; width:100%; height:min(56vh,26rem); object-fit:contain; margin:.8rem auto; background:#f7f7f7; border-radius:.5rem; }
#tt-shop .tt-lightbox-nav { justify-content:center; }
#tt-shop .tt-lightbox button { min-height:2.75rem; min-width:2.75rem; }
#tt-shop .tt-steps { display:flex; flex-wrap:wrap; gap:.45rem; list-style:none; padding:0; margin:1rem 0; }
#tt-shop .tt-steps li { padding:.25rem .7rem; border:1px solid #c3cedb; border-radius:1.2rem; }
#tt-shop .tt-steps [aria-current] { background:#eaf2ff; color:#144980; font-weight:650; }
#tt-shop .tt-offer:has(input:checked) { background:#f0f5fb; }
#tt-shop #tt-buchung { scroll-margin-top:6rem; }
#tt-shop .tt-options { display:flex; flex-wrap:wrap; gap:.8rem; margin:.5rem 0 1rem; padding:.8rem; border:1px solid #c3cedb; border-radius:.6rem; }
#tt-shop .tt-options legend { float:none; width:auto; font-size:1rem; font-weight:600; padding:0 .3rem; }
#tt-shop .tt-options label { flex:1 1 10rem; display:grid; gap:.3rem; }
#tt-shop .tt-options select { min-height:2.75rem; width:100%; padding:.4rem; border:1px solid #aab8c9; border-radius:.3rem; background:white; color:#263344; }
#tt-shop .tt-options small { flex-basis:100%; }
#tt-shop .tt-gallery .tt-video-thumb { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.4rem; width:112px; min-height:84px; padding:.5rem; color:#164a78; background:#eaf2ff; border:1px solid #c3cedb; border-radius:.5rem; cursor:pointer; text-decoration:none; }
#tt-shop .tt-video-thumb span:first-child { font-size:1.8rem; }
#tt-shop .tt-lightbox-video { display:block; width:100%; max-height:56vh; margin:.8rem auto; background:#101827; border-radius:.5rem; }
#tt-shop .tt-summary-options { white-space:normal; font-size:.9rem; color:#49586a; }
#tt-shop .tt-customer-note { display:grid; gap:.4rem; margin-top:1rem; }
#tt-shop .tt-customer-note textarea { box-sizing:border-box; width:100%; padding:.7rem; border:1px solid #aab8c9; border-radius:.4rem; font:inherit; resize:vertical; }
#tt-shop .tt-stock-state{font-weight:600;color:#315b64;margin:.6rem 0}
#tt-shop .tt-stock-state:empty{display:none}
#tt-shop button:disabled{opacity:.5;cursor:not-allowed}
