/* Flatsome-style Quick View: hover trigger on the card + centred modal. */

/* --- Hover trigger (live: Flatsome .quick-view) ---
   A full-width #2f2f36 bar at the bottom of the overflow-hidden .mcb-card-image, parked below it
   and sliding up on image hover: 180 x 30 at 1440 (78% bold uppercase, 5px vertical padding). */
.mcb-quickview {
  position: absolute;
  top: auto; right: 0; bottom: 0; left: 0;
  display: block;
  margin: 0;
  padding: 5px 0;
  background: #2f2f36;
  color: #fff;
  font-size: 78%;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: normal;
  text-align: center;
  text-transform: uppercase;
  border-radius: 0;
  opacity: 0;
  transform: translateY(100%);
  transition: all 200ms ease-out;
}
.mcb-card-image:hover .mcb-quickview { opacity: .9; transform: translateY(0); }
/* The long form beats woocommerce.css's `.woocommerce ul.products li.product a { text-decoration: none }`. */
.mcb-quickview:hover, .mcb-quickview:focus,
.woocommerce ul.products li.product a.mcb-quickview:hover,
.woocommerce ul.products li.product a.mcb-quickview:focus { color: #fff; text-decoration: underline; }
/* Flatsome's 48em rule (768 included): no Quick View on tablet and phone. */
@media (max-width: 768px) { .mcb-quickview { display: none !important; } }
/* iPad (foundation.css "ipad Grid fixes": html[data-useragent*='iPad'] .quick-view {bottom:0; opacity:1;
   background:rgba(0,0,0,.1)}): the bar is opaque at rest, still parked below the image, so a tap slides
   up a translucent bar. Live's card hover (.product-image:hover .quick-view) outranks that rule, so the
   hover's .9 opacity still applies; restated here, where the UA rule would otherwise win. */
html[data-useragent*='iPad'] .mcb-quickview { bottom: 0; opacity: 1; background: rgba(0, 0, 0, .1); }
html[data-useragent*='iPad'] .mcb-card-image:hover .mcb-quickview { opacity: .9; }
/* iPad portrait (foundation.css iPad block: .quick-view {display:block !important; bottom:0; opacity:1}):
   back on the 768px layout, over both 48em hides (shop.css's is .mcb-card-image .mcb-quickview). Keyed on
   the device's screen, not the viewport. Its rgba(0,0,0,.1) background loses on live to the Theme Options
   .product-image .quick-view {background-color:#2f2f36}, so only the iPad rule above turns it translucent. */
@media all and (device-width: 768px) and (device-height: 1024px) and (orientation: portrait) {
  .mcb-card-image .mcb-quickview { display: block !important; bottom: 0; opacity: 1; }
  .mcb-card-image:hover .mcb-quickview { opacity: .9; }
}

/* --- Modal (live: Magnific Popup .mfp-bg + .product-lightbox) ---
   A #0b0b0b/.6 overlay; a white 875px box (90% below that), centred, no padding or shadow. Its
   Foundation .row.collapse holds a 7/12 image column (510.4 x 680.5 at 1440, edge to edge) and a
   5/12 summary column padded 30px 30px 10px. The close x sits flush in the top-right corner. */
.mcb-qv[hidden] { display: none; }
.mcb-qv {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; padding: 0; overflow-x: hidden; overflow-y: auto;
  outline: none; /* it takes focus on open; Magnific's .mfp-wrap is outline:none too */
}
/* Open/close motion (live: Magnific). assets/quickview.js shows the modal, adds .is-ready 16ms later
   (.mfp-ready) and .is-removing on close, for the 300ms removalDelay. The overlay fades 0 -> .6
   over .2s; the box comes in over .3s from 20px higher at .95 scale and transparent, and on close
   only fades (.3s), its transform left as it is. All ease. Live ignores prefers-reduced-motion. */
.mcb-qv__overlay { position: fixed; inset: 0; background: #0b0b0b; opacity: 0; transition: opacity .2s; }
.mcb-qv.is-ready .mcb-qv__overlay { opacity: .6; }
.mcb-qv.is-removing .mcb-qv__overlay { opacity: 0; }
/* The motion is on a full-width box round the dialog, as on live's .mfp-content (its .product-lightbox
   is the 875px box inside), so the zoom's centre and the text's raster mid-zoom match live's. It lets
   clicks through beside the dialog, to the overlay, which closes. */
.mcb-qv__content {
  position: relative; z-index: 1; width: 100%; margin: auto 0; pointer-events: none;
  opacity: 0; transform: translateY(-20px) scale(.95); transition: transform .3s, opacity .3s;
}
.mcb-qv.is-ready .mcb-qv__content { opacity: 1; transform: translate(0, 0); }
.mcb-qv.is-ready.is-removing .mcb-qv__content { opacity: 0; }
.mcb-qv__dialog {
  position: relative;
  width: 90%; max-width: 875px; margin: 0 auto; padding: 0;
  background: #fff; box-shadow: none; text-align: left; pointer-events: auto;
}

/* --- Loading ring (live: Flatsome's .ux-loading.dark, put after the clicked .quick-view) ---
   While the request runs the page stays undimmed and a 30px ring spins over the card image (.5s a
   turn): a 3px rgba(0,0,0,.1) border with a white left edge, at .8 opacity. Its top-left corner is
   10px up and left of the image's centre, not 15: live's inline head CSS overrides Flatsome's -15px
   margins with .ux-loading { margin-left: -10px; margin-top: -10px }. */
.mcb-qv-loading {
  position: absolute; top: 50%; left: 50%; z-index: 99999;
  box-sizing: border-box; width: 30px; height: 30px; margin: -10px 0 0 -10px;
  border: 3px solid rgba(0, 0, 0, .1); border-left-color: #fff; border-radius: 50%;
  opacity: .8; pointer-events: none;
  animation: mcb-qv-spin .5s infinite linear;
}
@keyframes mcb-qv-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.mcb-qv__close {
  position: absolute; top: 0; right: 0; z-index: 2;
  display: block; width: 40px; height: 40px; margin: 0; padding: 0;
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  font: 400 28px/40px Arial, monospace; color: #777; text-align: center; text-transform: none;
  opacity: .65; cursor: pointer;
  outline: none; /* Magnific: button.mfp-close { outline: none }, so no ring when tabbed to */
}
/* Foundation's button:hover/:focus inset shade greys the whole 40x40 box behind the x. */
.mcb-qv__close:hover, .mcb-qv__close:focus {
  background: transparent; color: #777; opacity: 1; box-shadow: inset 0 150px 20px 50px rgba(0, 0, 0, .2);
}
.mcb-qv__close:active { top: 1px; }
.mcb-qv__loading { padding: 40px 0; text-align: center; color: #888; }

/* --- Product layout inside the modal: image column left, summary right ---
   space-between pins the summary to the right edge as live's float:right does (792.92, not 792.91). */
.mcb-qv .mcb-qv__product { display: flex; align-items: flex-start; justify-content: space-between; gap: 0; margin: 0; }
.mcb-qv__media { flex: 0 0 58.33333%; width: 58.33333%; max-width: 58.33333%; min-width: 0; }
.mcb-qv__summary { flex: 0 0 41.66667%; width: 41.66667%; max-width: 41.66667%; min-width: 0; padding: 30px 30px 10px; }
/* Not woocommerce.css's floated 48% product-page summary with its 2em bottom margin. */
.mcb-qv .mcb-qv__product div.mcb-qv__summary.summary { float: none; margin: 0; }

/* --- Image slider (live: Flickity .product-gallery-slider.ux-slider.slider-nav-small) ---
   As tall as the tallest slide; the 15%-wide arrow strips (max 80px) wait 15% outside their edge at
   opacity 0 and slide in at .7 on hover, 1 on the arrow itself, where the 32px #111 arrow goes #2f2f36. */
.mcb-qv__slider { position: relative; overflow: hidden; }
.mcb-qv__slider:focus { outline: none; } /* flickity.css: .flickity-enabled:focus { outline: none } */
/* Flickity's .is-draggable: no text selection or tap highlight, a grab cursor over the slides and
   grabbing while pressed (assets/quickview.js drags it). pan-y leaves vertical swipes to the page. */
.mcb-qv__slider {
  -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; touch-action: pan-y;
}
.mcb-qv__slider .mcb-qv__track { cursor: grab; }
.mcb-qv__slider.is-pointer-down .mcb-qv__track { cursor: grabbing; }
.mcb-qv__track { display: flex; align-items: flex-start; transition: transform .3s ease-out; }
.mcb-qv__slide { flex: 0 0 100%; width: 100%; min-width: 0; }
.mcb-qv__slide img { display: block; width: 100%; max-width: 100%; height: auto; margin: 0; }
.mcb-qv__arrow {
  position: absolute; top: 0; bottom: 0; z-index: 1;
  display: block; width: 15%; max-width: 80px; height: auto; margin: 0; padding: 0;
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  color: #111; line-height: 1; cursor: pointer; opacity: 0;
  transition: transform .3s, opacity .3s;
}
.mcb-qv__arrow--prev { left: 0; transform: translateX(-15%); }
.mcb-qv__arrow--next { right: 0; transform: translateX(15%); }
/* Hover only: a keyboard-focused arrow stays hidden unless the slider is hovered too, as on live. */
.mcb-qv__slider:hover .mcb-qv__arrow { opacity: .7; transform: translateX(0); }
/* Live: Flatsome's button:focus inset shade on a focused arrow (seen once the slider is hovered), cleared
   by .js-flickity .flickity-prev-next-button:hover while the arrow itself is hovered. */
.mcb-qv__arrow:focus { box-shadow: inset 0 150px 20px 50px rgba(0, 0, 0, .2); }
.mcb-qv__slider .mcb-qv__arrow:hover { background: transparent; opacity: 1; box-shadow: none; }
.mcb-qv__arrow svg {
  position: absolute; top: 50%; left: 50%; display: block;
  width: 100%; max-width: 32px; height: auto; max-height: 32px; padding: 10%;
  transform: translate(-50%, -50%); fill: #111; transition: all .3s;
}
.mcb-qv__arrow:hover svg { fill: #2f2f36; } /* Theme Options primary, over Flatsome's #627f9a */

/* --- Summary (live: .product-lightbox-inner.product-info) ---
   Bold 26px title with a black link, a 30x3 rule at 10% black, a black 19.2px price, the 90% #777
   short description clipped to a 220px scroll box, then bold #777 stock. Prefixed with
   .mcb-qv .mcb-qv__product to beat woocommerce.css and the product-page rules in shop.css
   (the modal root carries .woocommerce, so ".woocommerce div.product …" rules reach in here). */
.mcb-qv .mcb-qv__product .mcb-qv__summary h1.mcb-qv__title {
  margin: 0 0 5px; padding: 0; font-size: 26px; line-height: 1.4; font-weight: 700;
  letter-spacing: normal; text-transform: none; color: #555;
}
.mcb-qv .mcb-qv__product .mcb-qv__title a { color: #000; }
.mcb-qv .mcb-qv__product .mcb-qv__divider {
  display: block; width: 30px; height: 3px; margin: 15px 0; background: #000; opacity: .1;
}
.mcb-qv .mcb-qv__product .mcb-qv__summary p.price,
.mcb-qv .mcb-qv__product .mcb-qv__summary span.price {
  display: block; margin: 0 0 24px; font-size: 19.2px; line-height: 19.2px; font-weight: 400; color: #000;
}
.mcb-qv .mcb-qv__product .mcb-qv__summary .single_variation span.price { margin: 0 0 15px; }
.mcb-qv .mcb-qv__product .woocommerce-product-details__short-description {
  max-height: 220px; overflow-x: auto; margin: 0; font-size: 90%; line-height: 1; color: #777;
}
.mcb-qv .mcb-qv__product .woocommerce-product-details__short-description p { margin: 0 0 1.25em; font-size: 1em; line-height: 1.6; }
.mcb-qv .mcb-qv__product .mcb-qv__summary p.stock {
  margin: 0 0 20px; font-size: 16px; line-height: 25.6px; font-weight: 700; color: #777;
}

/* --- Add to cart: the button, then the -/+ stepper (styled in product.css), then the meta --- */
/* Live sets up the form 600ms after the open (assets/quickview.js puts .is-init on then): until then
   there are no -/+ buttons, and a variable product has no button row at all (Flatsome's
   .single_variation_wrap { display: none }, which wc_variation_form overrides as it starts). Live
   has no woocommerce.css, so no form.cart clearfix: with the row hidden, the Value table's 20px
   bottom margin runs out through the form's and merges with its 16px. */
.mcb-qv:not(.is-init) .quantity input.minus,
.mcb-qv:not(.is-init) .quantity input.plus,
.mcb-qv:not(.is-init) .single_variation_wrap { display: none; }
.mcb-qv:not(.is-init) .mcb-qv__product .mcb-qv__summary form.variations_form::after { content: none; }
.mcb-qv .mcb-qv__product .mcb-qv__summary form.cart { margin: 0 0 16px; line-height: 16px; }
.mcb-qv .mcb-qv__product .mcb-qv__summary form.cart .single_add_to_cart_button {
  float: none; display: inline-block; vertical-align: baseline; height: auto;
  margin: 0 0 20px; padding: 13px 24px 12px;
  font-family: var(--mcb-font-head); font-size: 16px; line-height: 16px; font-weight: 400;
  letter-spacing: normal; text-transform: uppercase;
  background: #2f2f36; color: #fff; border: 0; border-radius: 0; opacity: 1; box-shadow: none;
}
.mcb-qv .mcb-qv__product .mcb-qv__summary form.cart .single_add_to_cart_button:hover,
.mcb-qv .mcb-qv__product .mcb-qv__summary form.cart .single_add_to_cart_button:focus {
  background: #2f2f36; color: #fff; opacity: 1; box-shadow: inset 0 150px 20px 50px rgba(0, 0, 0, .2);
}
.mcb-qv .mcb-qv__product .mcb-qv__summary form.cart .variations_button .single_add_to_cart_button { vertical-align: top; }
.mcb-qv .mcb-qv__product .mcb-qv__summary form.cart .single_add_to_cart_button.disabled,
.mcb-qv .mcb-qv__product .mcb-qv__summary form.cart .single_add_to_cart_button:disabled {
  background: #627f9a; color: #fff; opacity: .6; box-shadow: none; cursor: default;
}
/* Variation form (gift voucher "Value"): the product page's Flatsome table and select (product.css),
   for the modal. Live's label sits in a td, Woo 11's in a th; both are covered. */
.mcb-qv .mcb-qv__product .mcb-qv__summary form.variations_form { position: relative; }
.mcb-qv .mcb-qv__product .mcb-qv__summary form.cart .variations { width: 100%; margin: 0 0 20px; border: 0; border-collapse: collapse; }
.mcb-qv .mcb-qv__product .mcb-qv__summary form.cart .variations th,
.mcb-qv .mcb-qv__product .mcb-qv__summary form.cart .variations td {
  padding: 7.875px 0; border: 0; font-size: 14px; line-height: 15.75px; vertical-align: middle; text-align: left;
}
.mcb-qv .mcb-qv__product .mcb-qv__summary form.cart .variations td.value { position: static; }
.mcb-qv .mcb-qv__product .mcb-qv__summary form.cart .variations label {
  display: block; margin: 0; font-size: 13.3px; line-height: 15.75px; font-weight: 700; color: #4d4d4d; text-align: left;
}
.mcb-qv .mcb-qv__product .mcb-qv__summary form.cart .variations select {
  display: block; width: 100%; min-width: 0; max-width: none; height: 36px; margin: 0; padding: 0 10px;
  font-family: var(--mcb-font-body); font-size: 13.3px; line-height: 30px; color: #333;
  border: 1px solid #ddd; border-radius: 0; box-shadow: inset 0 -1.3em 1em 0 rgba(0, 0, 0, .02);
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background: #fff url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAHCAYAAAD9NeaIAAAAXklEQVR42mLMzs42Z2Bg2AnE/AzEgb9AHD9lypSlRKpnYALik0DsDsQfibUAiIm2AGYJA5EWkWUBsiWELCLbAnRLcFlEkQXYLEG3iGILQIAFhzjMIiUgXs5AIQAIMACUkxvwyNEvVQAAAABJRU5ErkJggg==") no-repeat 100% 50% / auto 15%;
}
.mcb-qv .mcb-qv__product .mcb-qv__summary form.cart .variations select:hover { box-shadow: inset 0 -1.8em 1em 0 transparent; }
.mcb-qv .mcb-qv__product .mcb-qv__summary form.cart .reset_variations {
  display: block; position: absolute; top: -10px; right: 0; margin: 0;
  font-size: 11px; line-height: 15.75px; color: #000; opacity: .5;
}
.mcb-qv .mcb-qv__product .product_meta { font-size: 90%; line-height: 1; }
.mcb-qv .mcb-qv__product .product_meta > span {
  display: block; padding: 7px 0; border-top: 1px dotted #ddd; font-size: 80%; line-height: 1;
}
.mcb-qv .mcb-qv__product .product_meta a { color: #000; }

/* Below Foundation's large grid the columns stack (Quick View itself is hidden there). */
@media (max-width: 767px) {
  .mcb-qv .mcb-qv__product { display: block; }
  .mcb-qv__media, .mcb-qv__summary { width: 100%; max-width: none; }
}

body.mcb-qv-lock { overflow: hidden; }
