/*
Theme Name: Benssur Child
Description: Benssur custom child theme for Kadence.
Author: Benssur
Template: kadence
Version: 1.0.15
Text Domain: benssur-child
*/

/* Match the native purchase button, while keeping this a normal contact link. */
.woocommerce .benssur-bulk-enquiry-wrap { margin: 1em 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; clear: both; }
.woocommerce a.button.benssur-bulk-enquiry { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 50px; padding: 15px 25px; white-space: normal; }
.woocommerce .single_variation_wrap:has(.benssur-bulk-enquiry) .woocommerce-variation-add-to-cart { display: none; }

/* Hide only the stock badge; retain sale and bestseller badges and stock data. */
.single-product #kt-woo-badge-8323.kt-woo-badge-singular,
#kt-woo-badge-8323.kt-woo-badge-loop { display: none !important; }

.woocommerce .benssur-bulk-enquiry-wrap .benssur-bulk-enquiry-note { display: block; clear: both; float: none; width: 100%; margin: 0; font-family: inherit; font-size: 12px; line-height: 1.6; font-weight: 400; color: inherit; }
.woocommerce .benssur-bulk-enquiry-wrap a.benssur-bulk-enquiry { float: none; max-width: 100%; }

/* Keep the quantity selector and purchase button in one rounded row. */
.single-product form.cart:not(.variations_form):has(> .quantity),
.single-product .woocommerce-variation-add-to-cart:not(:has(.benssur-bulk-enquiry)),
.single-product form.bundle_form .bundle_button {
 display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 12px; width: 100%;
}
.single-product form.cart .quantity:not(.quantity_hidden) {
 flex: 1 0 92px; width: 92px; height: 54px; margin: 0 !important;
 border: 1px solid #cbd5e1; border-radius: 999px; overflow: hidden; float: none !important;
 display: flex; align-items: stretch;
}
.single-product form.cart .quantity input.qty {
 width: 38px; min-width: 0; height: 52px; padding: 0; border: 0; box-shadow: none; border-radius: 0;
}
.single-product form.cart .quantity input.minus,
.single-product form.cart .quantity input.plus {
 position: static; flex: 1; width: 26px; height: 52px; padding: 0; border: 0; border-radius: 0; background: transparent;
}
.single-product form.cart .single_add_to_cart_button {
 flex: 999 0 150px; min-width: max-content; height: 54px; min-height: 54px; margin: 0 !important; float: none !important;
 border-radius: 999px; padding: 10px 14px; white-space: nowrap; font-size: 16px;
}

.single-product .single_variation_wrap:has(.benssur-bulk-enquiry) .woocommerce-variation-add-to-cart { display: none; }

.single-product form.cart .single_add_to_cart_button { height: 54px !important; line-height: 1.3 !important; padding: 10px 14px !important; }

/* Match the footer newsletter field to the pill-shaped buttons. */
#colophon #mc_embed_signup_scroll input[type="email"] { border-radius: 999px !important; padding-left: 20px !important; padding-right: 20px !important; }

/* WooCommerce clearfix pseudo-elements must not occupy flex-row space. */
.single-product form.cart:has(> .quantity)::before,
.single-product form.cart:has(> .quantity)::after,
.single-product .woocommerce-variation-add-to-cart::before,
.single-product .woocommerce-variation-add-to-cart::after,
.single-product .bundle_button::before,
.single-product .bundle_button::after { display: none !important; }
.benssur-weekly-picks { max-width: var(--global-content-width,1290px); margin: 40px auto 64px; padding: 0 24px; }
.benssur-weekly-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px; margin-bottom:28px; }
.benssur-weekly-heading h2 { margin:0 0 6px; }
.benssur-weekly-heading p { margin:0; }
.benssur-weekly-heading .wp-block-button__link { background:#355d90; color:white; border-radius:999px; }

.benssur-weekly-heading > .wp-block-group__inner-container { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px; width:100%; }

/* Native main-gallery arrows: dark translucent chevrons at the image edges. */
.single-product .kadence-product-gallery-main .splide__arrow { color: rgba(0,0,0,.55); background: transparent; opacity: 1; }
.single-product .kadence-product-gallery-main .splide__arrow svg { fill: currentColor; }
.single-product .kadence-product-gallery-main .splide__arrow--prev { left: 2px !important; }
.single-product .kadence-product-gallery-main .splide__arrow--next { right: 2px !important; }
.single-product .kadence-product-gallery-main .splide__arrow:hover,
.single-product .kadence-product-gallery-main .splide__arrow:focus-visible { color: rgba(0,0,0,.85); }

/* Match the purchase button: pill edges, type size and height. */
.woocommerce .benssur-bulk-enquiry-wrap a.button.benssur-bulk-enquiry {
 border-radius: 999px; font-size: 16px; line-height: 1.3;
 min-height: 54px; padding: 10px 14px;
}

