/* One card action and one on-demand dialog for ordinary WooCommerce products. */
.mbs-catalog ul.products li.product .mbs-catalog-product-visual > button.mbs-qv-trigger,
.mbs-recommendation__visual > button.mbs-qv-trigger { position: absolute; z-index: 4; inset: auto 12px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: calc(100% - 24px); min-height: 50px; margin: 0; padding: 5px 5px 5px 20px; border: 1px solid #fff; border-radius: 999px; background: #fff; color: #000; font: 600 15px/1.3 Poppins,Archivo,Arial,sans-serif; text-align: left; opacity: 0; transform: translateY(14px); transition: opacity .25s ease, transform .25s ease, background-color .2s ease, color .2s ease; cursor: pointer; }
.mbs-qv-trigger__text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbs-qv-trigger__icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: #000; color: #fff; }
.mbs-catalog ul.products li.product .mbs-catalog-product-visual:hover > button.mbs-qv-trigger,
.mbs-catalog ul.products li.product .mbs-catalog-product-visual:focus-within > button.mbs-qv-trigger,
.mbs-recommendation__visual:hover > button.mbs-qv-trigger,
.mbs-recommendation__visual:focus-within > button.mbs-qv-trigger { opacity: 1; transform: none; }
.mbs-catalog ul.products li.product .mbs-catalog-product-visual > button.mbs-qv-trigger:hover,
.mbs-recommendation__visual > button.mbs-qv-trigger:hover { border-color: #000; background: #000; color: #fff; }
.mbs-catalog ul.products li.product .mbs-catalog-product-visual > button.mbs-qv-trigger:hover .mbs-qv-trigger__icon,
.mbs-recommendation__visual > button.mbs-qv-trigger:hover .mbs-qv-trigger__icon { background: #000; }
.mbs-qv-trigger:focus-visible { outline: 2px solid #1565c0 !important; outline-offset: 2px; opacity: 1 !important; transform: none !important; }

.mbs-qv { position: fixed; inset: 20px 20px 20px auto; box-sizing: border-box; width: min(500px,calc(100vw - 40px)); max-width: none; height: calc(100dvh - 40px); max-height: none; margin: 0; padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: #fff; color: #000; box-shadow: 0 20px 70px rgba(0,0,0,.16); font: 500 15px/1.6 Archivo,Arial,sans-serif; }
.mbs-qv[open] { display: flex; flex-direction: column; }
.mbs-qv::backdrop { background: rgba(0,0,0,.6); }
body.mbs-qv-open { overflow: hidden; }
.mbs-qv *, .mbs-qv *::before, .mbs-qv *::after { box-sizing: border-box; }
.mbs-qv [hidden] { display: none !important; }
.mbs-qv button { cursor: pointer; }
.mbs-qv :focus-visible { outline: 2px solid #1565c0; outline-offset: 3px; }
.mbs-qv-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 24px 24px 30px; scrollbar-width: thin; }
.mbs-qv-close { position: sticky; z-index: 5; top: 0; float: right; display: grid; place-items: center; width: 32px; height: 32px; margin: 0 0 -32px auto; padding: 0; border: 0; background: #fff; color: #000; }
.mbs-qv-close:hover, .mbs-qv-close:focus { background: #fff; color: #000; }
.mbs-qv-product { min-width: 0; }
.mbs-qv-sale { display: inline-block; margin-bottom: 8px; padding: 3px 12px; border-radius: 99px; background: #ffad93; color: #000; font-size: 13px; font-weight: 600; line-height: 24px; }
.mbs-qv-title { max-width: calc(100% - 36px); margin: 0 0 3px; color: #000; font: 600 28px/1.25 Poppins,Archivo,Arial,sans-serif; overflow-wrap: anywhere; }
.mbs-qv-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; min-height: 28px; font-size: 18px; font-weight: 600; line-height: 28px; }
.mbs-qv-price ins { background: transparent; color: #fd5e27; text-decoration: none; }
.mbs-qv-price del { order: 2; color: #737373; font-weight: 500; }
.mbs-qv-price ins { order: 1; }
.mbs-qv-gallery { margin-top: 26px; }
.mbs-qv-gallery__track { display: flex; gap: 10px; width: 100%; margin: 0; padding: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mbs-qv-gallery__track::-webkit-scrollbar { display: none; }
.mbs-qv-gallery__slide { flex: 0 0 60%; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 18px; background: #f2f2f2; scroll-snap-align: start; }
.mbs-qv-gallery__slide:only-child { flex-basis: 100%; }
.mbs-qv-gallery__slide img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.mbs-qv-gallery__controls { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 14px; }
.mbs-qv-gallery__progress { flex: 1; height: 2px; overflow: hidden; background: #e5e5e5; }
.mbs-qv-gallery__progress > span { display: block; width: var(--mbs-qv-progress-size,25%); height: 100%; margin-inline-start: var(--mbs-qv-progress-offset,0%); background: #000; }
.mbs-qv-gallery__controls button { width: 20px; height: 24px; padding: 0; border: 0; background: transparent; color: #000; font: 500 28px/20px Archivo,Arial,sans-serif; }
.mbs-qv-gallery__controls button:disabled { opacity: .4; cursor: default; }
.mbs-qv-gallery__controls button:hover, .mbs-qv-gallery__controls button:focus { background: transparent; color: #000; }
.mbs-qv-description { margin: 25px 0 28px; color: #555; font-size: 15px; line-height: 1.6; }
.mbs-qv-options { margin: 0 0 24px; padding: 0; border: 0; }
.mbs-qv-options legend { margin-bottom: 14px; padding: 0; color: #000; font-size: 15px; font-weight: 600; }
.mbs-qv-options legend span { color: #555; font-weight: 500; }
.mbs-qv-options__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.mbs-qv-options__choice { position: relative; cursor: pointer; }
.mbs-qv-options__choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mbs-qv-options__choice span { display: block; min-width: 70px; padding: 9px 17px; border: 1px solid #111; border-radius: 999px; background: #fff; color: #000; text-align: center; line-height: 24px; }
.mbs-qv-options__choice input:checked + span { background: #000; color: #fff; }
.mbs-qv-options__choice input:focus-visible + span { outline: 2px solid #1565c0; outline-offset: 3px; }
.mbs-qv-stock { margin: 0 0 22px; color: #198754; font-size: 15px; }
.mbs-qv-stock.is-unavailable { color: #757575; }
.mbs-qv-purchase { display: flex; gap: 8px; align-items: stretch; }
.mbs-qv-quantity { display: flex; align-items: center; flex: 0 0 116px; height: 50px; border: 1px solid #e1e1e1; border-radius: 999px; overflow: hidden; }
.mbs-qv-quantity button { display: grid; place-items: center; flex: 0 0 35px; height: 100%; padding: 0; border: 0; background: transparent; color: #000; font: 500 22px/1 Archivo,Arial,sans-serif; }
.mbs-qv-quantity button:disabled { color: #aaa; cursor: default; }
.mbs-qv-quantity button:hover, .mbs-qv-quantity button:focus { background: transparent; color: #000; }
.mbs-qv-quantity input[type="number"] { flex: 1; width: 40px; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: #fff; color: #000; text-align: center; font: 500 15px/1 Archivo,Arial,sans-serif; appearance: textfield; -moz-appearance: textfield; }
.mbs-qv-quantity input::-webkit-inner-spin-button, .mbs-qv-quantity input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.mbs-qv-add, .mbs-qv-buy { display: grid; place-items: center; min-height: 50px; padding: 10px 18px; border: 0; border-radius: 999px; font: 600 15px/1.4 Poppins,Archivo,Arial,sans-serif; text-align: center; }
.mbs-qv-add { flex: 1; background: #eee; color: #000; }
.mbs-qv-add:hover:not(:disabled) { background: #dedede; }
.mbs-qv-buy { width: 100%; margin-top: 16px; background: #000; color: #fff; }
.mbs-qv-buy:hover:not(:disabled) { background: #292929; }
.mbs-qv-add:disabled, .mbs-qv-buy:disabled { opacity: .5; cursor: default; }
.mbs-qv-error { margin: 14px 0 0; color: #b42318; font-size: 14px; }
.mbs-qv-more { display: flex; flex: 0 0 62px; align-items: center; justify-content: center; gap: 10px; border-top: 1px solid #e5e5e5; background: #fff; color: #000; font: 600 15px/1.4 Poppins,Archivo,Arial,sans-serif; text-decoration: none; }
.mbs-qv-more:hover { color: #000; text-decoration: underline; text-underline-offset: 4px; }
.mbs-qv-more span { font-size: 25px; line-height: 1; }

@media (max-width: 900px), (hover: none), (pointer: coarse) {
    .mbs-catalog ul.products li.product .mbs-catalog-product-visual > button.mbs-qv-trigger,
    .mbs-recommendation__visual > button.mbs-qv-trigger { opacity: 1; transform: none; }
}
@media (max-width: 767px) {
    .mbs-catalog ul.products li.product .mbs-catalog-product-visual > button.mbs-qv-trigger,
    .mbs-recommendation__visual > button.mbs-qv-trigger { inset: auto 10px 10px auto; justify-content: center; width: 38px; min-width: 38px; height: 38px; min-height: 38px; padding: 0; border-radius: 50%; }
    .mbs-qv-trigger__text { display: none; }
    .mbs-qv-trigger__icon { flex-basis: 30px; width: 30px; height: 30px; background: transparent; color: #000; }
    .mbs-catalog ul.products li.product .mbs-catalog-product-visual > button.mbs-qv-trigger:hover .mbs-qv-trigger__icon,
    .mbs-recommendation__visual > button.mbs-qv-trigger:hover .mbs-qv-trigger__icon { color: #fff; }
    .mbs-qv { inset: auto 0 0; width: 100vw; height: calc(100dvh - 40px); border-radius: 20px 20px 0 0; }
    .mbs-qv-scroll { padding: 20px 16px 25px; }
    .mbs-qv-title { font-size: 20px; }
    .mbs-qv-price { font-size: 16px; }
    .mbs-qv-gallery { margin-top: 18px; }
    .mbs-qv-gallery__slide { border-radius: 16px; }
    .mbs-qv-description { margin: 20px 0 24px; font-size: 14px; }
    .mbs-qv-options legend, .mbs-qv-stock { font-size: 14px; }
    .mbs-qv-options__choice span { min-width: 62px; padding: 7px 15px; font-size: 14px; }
    .mbs-qv-more { flex-basis: 50px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .mbs-qv-trigger, .mbs-recommendation__alternate { transition: none !important; }
}
