/* Nasypanej Quickbuy V7 — stable mobile entrance and native cart rounding. */
html.ns-qb-open{overflow:hidden!important}
#ns-qb-dialog:not([open]){display:none!important}
#ns-qb-dialog[open]{box-sizing:border-box;position:fixed;inset:0;margin:auto;padding:20px;display:flex;flex-direction:column;gap:12px;width:min(500px,calc(100vw - 32px));max-width:100%;height:auto;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);border:0;border-radius:6px;color:#151515;background:#fff;box-shadow:0 12px 45px #0003;overflow:hidden;font:inherit;line-height:1.35;overscroll-behavior:contain}
#ns-qb-dialog::backdrop{background:rgba(0,0,0,.48)}
#ns-qb-dialog *,#ns-qb-dialog *::before,#ns-qb-dialog *::after{box-sizing:border-box}
#ns-qb-dialog .ns-qb-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;margin:0;padding:0 0 12px;border-bottom:1px solid #e8e8e8;background:#fff}
#ns-qb-dialog h2,#ns-qb-dialog h3{margin:0;color:#111;line-height:1.3;font:inherit;font-weight:750;text-transform:none}
#ns-qb-dialog h2{font-size:20px}
#ns-qb-dialog button{font:inherit;letter-spacing:normal;text-transform:none;cursor:pointer;box-shadow:none;margin:0}
#ns-qb-dialog button:disabled{cursor:default}
#ns-qb-dialog .ns-qb-close{display:grid;place-items:center;flex:none;width:36px;height:36px;padding:0;border:1px solid #ddd;border-radius:3px;background:#fff;color:#111;font-size:26px;line-height:1}
#ns-qb-dialog .ns-qb-content{display:flex;flex-direction:column;gap:12px;flex:0 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:1px 0}
#ns-qb-dialog .ns-qb-product{display:flex;gap:12px;align-items:center;min-height:128px}
#ns-qb-dialog .ns-qb-product img{width:128px;height:128px;object-fit:contain;flex:none;margin:0}
#ns-qb-dialog .ns-qb-product-copy{min-width:0;overflow-wrap:anywhere}
#ns-qb-dialog .ns-qb-product h3{font-size:22px;font-weight:800}
#ns-qb-dialog .ns-qb-section{font-size:15px}
#ns-qb-dialog .ns-qb-options{display:grid;gap:8px}
#ns-qb-dialog .ns-qb-option{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:60px;text-align:left;background:#fff;color:#111;padding:10px 12px;border:1px solid #d5d5d5;border-radius:3px}
#ns-qb-dialog .ns-qb-option[aria-pressed=true]{border-color:#c82026;box-shadow:inset 0 0 0 1px #c82026;background:#fff8f8}
#ns-qb-dialog .ns-qb-option:disabled{background:#f6f6f6;color:#666}
#ns-qb-dialog .ns-qb-option-main,#ns-qb-dialog .ns-qb-option-side{display:flex;flex-direction:column;gap:4px;min-width:0}
#ns-qb-dialog .ns-qb-option-side{align-items:flex-end;text-align:right;flex:none}
#ns-qb-dialog .ns-qb-option-main strong{font-size:14px;overflow-wrap:anywhere}
#ns-qb-dialog .ns-qb-instock,#ns-qb-dialog .ns-qb-unavailable{font-size:11px}
#ns-qb-dialog .ns-qb-instock{color:#28703b}
#ns-qb-dialog .ns-qb-unavailable{color:#666}
#ns-qb-dialog .ns-qb-price{font-size:17px;white-space:nowrap}
#ns-qb-dialog .ns-qb-discount{align-self:flex-end;background:#c82026;color:#fff;font-size:10px;font-weight:700;padding:2px 6px;border-radius:3px;white-space:nowrap}
#ns-qb-dialog .ns-qb-quantity{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 0}
#ns-qb-dialog .ns-qb-quantity label{font-size:14px;font-weight:650;margin:0;color:#111}
#ns-qb-dialog .ns-qb-stepper{display:flex;height:42px;border:1px solid #d5d5d5;border-radius:3px;overflow:hidden;background:#fff}
#ns-qb-dialog .ns-qb-stepper button{width:40px;height:100%;padding:0;border:0;border-radius:0;color:#111;background:#f5f5f5;font-size:19px}
#ns-qb-dialog .ns-qb-stepper button:disabled{color:#aaa}
#ns-qb-dialog .ns-qb-stepper input{width:48px;min-width:0;height:100%;border:0;border-inline:1px solid #e5e5e5;border-radius:0;margin:0;padding:0;background:#fff;color:#111;text-align:center;font:inherit;font-size:16px;appearance:textfield;-moz-appearance:textfield}
#ns-qb-dialog .ns-qb-stepper input::-webkit-inner-spin-button,#ns-qb-dialog .ns-qb-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#ns-qb-dialog .ns-qb-status{font-size:12px;color:#555;margin:0;flex:none;line-height:1.45}
#ns-qb-dialog .ns-qb-footer{flex:none;padding:0;margin:0;background:#fff}
#ns-qb-dialog .ns-qb-footer:empty{display:none}
#ns-qb-dialog .ns-qb-submit{width:100%;min-height:48px;background:#c82026;color:#fff;border:0;border-radius:3px;padding:10px;font-size:15px;font-weight:750;line-height:1.3}
#ns-qb-dialog .ns-qb-submit:disabled{background:#e5e5e5;color:#777}
#ns-qb-dialog .ns-qb-detail{display:block;text-align:center;color:#444;font-size:12px;text-decoration:underline;flex:none;padding:2px 0}
#ns-qb-dialog :focus-visible{outline:2px solid #c82026;outline-offset:1px}
@media(max-width:767px){#ns-qb-dialog[open]{inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);border-radius:6px 6px 0 0;padding:16px 16px calc(14px + env(safe-area-inset-bottom,0px));gap:10px}#ns-qb-dialog .ns-qb-header{padding-bottom:8px}#ns-qb-dialog h2{font-size:18px}}
@media(max-width:340px){#ns-qb-dialog[open]{padding-inline:12px}#ns-qb-dialog .ns-qb-option{padding:9px}#ns-qb-dialog .ns-qb-price{font-size:15px}}

/* V2 — visual-only refinements, scoped to the quickbuy panel. */
#ns-qb-dialog .ns-qb-content>*{flex-shrink:0}
#ns-qb-dialog .ns-qb-product{gap:16px;padding-bottom:10px;border-bottom:1px solid #ededed}
#ns-qb-dialog .ns-qb-product-copy{display:flex;flex-direction:column;gap:6px;flex:1}
#ns-qb-dialog .ns-qb-subtitle{font-size:13px;color:#666;margin:0;line-height:1.4}
#ns-qb-dialog .ns-qb-rating{display:flex;align-items:center;gap:7px;font-size:12px;color:#666}
#ns-qb-dialog .ns-qb-stars{font-size:16px;line-height:1.2;letter-spacing:1px;background:linear-gradient(to right,#e1ae24 var(--ns-qb-stars,0%),#d3d3d3 var(--ns-qb-stars,0%));background-clip:text;-webkit-background-clip:text;color:transparent;white-space:nowrap}
#ns-qb-dialog .ns-qb-option{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:10px;min-height:68px;padding:12px}
#ns-qb-dialog .ns-qb-radio{width:18px;height:18px;border:1px solid #aaa;border-radius:50%;display:grid;place-items:center;flex:none}
#ns-qb-dialog .ns-qb-option[aria-pressed=true] .ns-qb-radio{border-color:#c82026}
#ns-qb-dialog .ns-qb-option[aria-pressed=true] .ns-qb-radio::after{content:"";width:10px;height:10px;border-radius:50%;background:#c82026}
#ns-qb-dialog .ns-qb-option-main strong{font-size:15px;font-weight:750}
#ns-qb-dialog .ns-qb-discount{align-self:flex-start}
#ns-qb-dialog .ns-qb-price{font-size:19px;font-weight:800}
#ns-qb-dialog .ns-qb-old-price{font-size:12px;color:#666;white-space:nowrap;line-height:1.2;text-decoration:line-through}
#ns-qb-dialog .ns-qb-submit{font-size:17px;font-weight:800;min-height:50px;text-transform:uppercase;letter-spacing:.25px}
@media(max-width:365px){#ns-qb-dialog .ns-qb-product{gap:10px;min-height:116px}#ns-qb-dialog .ns-qb-product img{width:112px;height:112px}#ns-qb-dialog .ns-qb-product h3{font-size:19px}#ns-qb-dialog .ns-qb-option{gap:7px;padding:10px 8px}#ns-qb-dialog .ns-qb-price{font-size:17px}}

@media(max-height:460px){#ns-qb-dialog[open]{overflow-y:auto;overscroll-behavior:contain}#ns-qb-dialog .ns-qb-content{flex:none;overflow:visible}}

/* V5: remove empty status spacing, put product navigation directly below CTA. */
#ns-qb-dialog .ns-qb-status:empty{display:none}
#ns-qb-dialog .ns-qb-submit{display:flex;align-items:center;justify-content:center;gap:8px}
#ns-qb-dialog .ns-qb-submit svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#ns-qb-dialog .ns-qb-submit+.ns-qb-detail{margin-top:8px}


/* Nasypanej – pouze vnější rohy okna Přidáno do košíku. */
#colorbox:has(.advanced-order-wrapper, .advanced-order),
#colorbox:has(.advanced-order-wrapper, .advanced-order) :is(#cboxWrapper, #cboxContent, #cboxLoadedContent),
#colorbox :is(.advanced-order-wrapper, .advanced-order) {
  border-radius: 6px !important;
}

/* V6: balanced icon and caption; only the quickbuy CTA changes. */
#ns-qb-dialog .ns-qb-submit{display:flex;align-items:center;justify-content:center;gap:8px;text-align:center;line-height:1.2;white-space:normal}
#ns-qb-dialog .ns-qb-submit svg{display:block;width:22px;height:22px;flex:0 0 22px;margin:0;padding:0;align-self:center}
#ns-qb-dialog .ns-qb-submit-label{display:block;min-width:0;margin:0;padding:0;line-height:1.2}
@media (max-width:365px){#ns-qb-dialog .ns-qb-submit{font-size:15px;gap:7px}}
/* Mobile only: entrance via transform, not layout or scroll animation. */
@media (max-width:767px) and (prefers-reduced-motion:no-preference){
  #ns-qb-dialog[open]{animation:ns-qb-enter-v7 180ms cubic-bezier(.2,.7,.25,1) both}
  #ns-qb-dialog[open]::backdrop{animation:ns-qb-backdrop-v6 160ms ease-out both}
}
@keyframes ns-qb-enter-v7{from{transform:translateY(100%)}to{transform:translateY(0)}}
@keyframes ns-qb-backdrop-v6{from{opacity:0}to{opacity:1}}

/* V7: explicitly sold-out native variant. */
#ns-qb-dialog .ns-qb-soldout{font-size:11px;color:#c82026}
html .products-block .p-tools a[aria-busy="true"]{cursor:progress}
