/* Only sizing and WooCommerce/Bootstrap compatibility need local rules. */
#coderra-quick-view .modal-dialog { max-width: min(1040px, calc(100% - 1rem)); }
#coderra-quick-view .coderra-quick-view-frame { max-height: 72vh; max-height: 72dvh; }
#coderra-quick-view [hidden] { display: none !important; }
html.coderra-quick-view-document { margin: 0 !important; padding: 0 !important; overflow-x: hidden; }
/* Reserve the image stage even before the replacement image has loaded. */
.coderra-quick-view-product .coderra-quick-view-image { height: 400px; }
.coderra-quick-view-product .coderra-quick-view-image-cover { z-index: 1; pointer-events: none; transition: opacity 180ms ease; }
.coderra-quick-view-product .bos4w-display-options label { padding: .75rem; border-radius: .75rem; }
@media (prefers-reduced-motion: reduce) {
    .coderra-quick-view-product .coderra-quick-view-image-cover { transition: none; }
}
.coderra-quick-view-product select { white-space: normal; }
.coderra-quick-view-product #coderra-quick-view-notices { scroll-margin: 1rem; }
.coderra-quick-view-product #coderra-quick-view-notices:empty { display: none; }
/* Keep native notice contents/icons inside Bootstrap's themed alert panels. */
.coderra-quick-view-product #coderra-quick-view-notices .alert > .woocommerce-message,
.coderra-quick-view-product #coderra-quick-view-notices .alert > .woocommerce-info,
.coderra-quick-view-product #coderra-quick-view-notices .alert > .woocommerce-error {
    background: transparent;
    border: 0;
    color: inherit;
    margin: 0;
    padding: 0 0 0 2rem;
}
.coderra-quick-view-product #coderra-quick-view-notices .woocommerce-message::before,
.coderra-quick-view-product #coderra-quick-view-notices .woocommerce-info::before,
.coderra-quick-view-product #coderra-quick-view-notices .woocommerce-error::before { top: 0; left: 0; color: inherit; }
@media (max-width: 767.98px) {
    .coderra-quick-view-product .coderra-quick-view-image { height: 180px; }
}
/* Keep the theme's +/- indicator, with a clearer size and weight. */
.coderra-quick-view-product .block-collaspe-group .accordion-button::after { font-size: 1.5rem; font-weight: 700; line-height: 1; }

#coderra-quick-view-notices .alert-success {
	background: var(--bs-june-bud);
    color: var(--bs-secondary);
	border: rgba(var(--bs-body-bg-rgb), 0.85);
}

#coderra-quick-view-description-accordion button.accordion-button {
	color: var(--color-scheme-headings);
}

/* Keep the main price; retain native variation descriptions and stock notices. */
.coderra-quick-view-product .woocommerce-variation-price { display: none; }

/* Preserve aspect ratio even if the compiled theme lacks object-fit utilities. */
.coderra-quick-view-product .coderra-quick-view-image img { object-fit: contain; }
