/* =========================
   QUANTITY PILL + CONTROLS
   ========================= */

/* Woo default quantity wrapper spacing */
.quantity.buttons_added {
    margin-top: 20px !important;
    margin-bottom: 40px !important;
}

/* Quantity pill */
form.cart.boiron-pdp-qty-labeled .quantity {
    float: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0;

    margin-top: 12px;
    margin-bottom: 16px;
    padding: 6px 14px;

    border-radius: 999px;
    background: #f4f5f7;
    border: 1px solid #dde2e8;
}

span.boiron-qty-label {
    font-weight: 500;
    font-size: 20px;
    margin-right: 12px;
}

/* Label inside the pill, on the left */
/* form.cart.boiron-pdp-qty-labeled .quantity::before {
    content: "Quantity";
    font-weight: 500;
    font-size: 20px;
    margin-right: 12px;
} */

/* Circular - / + buttons */
form.cart.boiron-pdp-qty-labeled .quantity .minus,
form.cart.boiron-pdp-qty-labeled .quantity .plus {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: 2px solid #0076c0 !important;
    background: #ffffff !important;
    color: #0076c0 !important;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    padding: 0 !important;
    margin: 0 !important;
}

/* Hover for - / + */
form.cart.boiron-pdp-qty-labeled .quantity .minus:hover,
form.cart.boiron-pdp-qty-labeled .quantity .plus:hover {
    background: #0076c0 !important;
    color: #ffffff !important;
}

/* Number value between - and + */
form.cart.boiron-pdp-qty-labeled .quantity input.qty {
    display: inline-block !important;
    position: static !important;
    z-index: 1 !important;

    width: 2.6em !important;
    min-width: 2.2em !important;
    margin: 0 16px !important;

    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    color: #333333 !important;
    text-align: center !important;
}

/* Remove browser number spinners */
form.cart.boiron-pdp-qty-labeled .quantity input.qty::-webkit-outer-spin-button,
form.cart.boiron-pdp-qty-labeled .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
form.cart.boiron-pdp-qty-labeled .quantity input.qty[type="number"] {
    -moz-appearance: textfield;
}

/* =========================
   ACTIONS ROW & BUTTONS
   ========================= */

/* Base actions row */
form.cart.boiron-pdp-qty-labeled .actions {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 16px !important;
    width: 100% !important;
}

/* Columns (.cart and .stores) – desktop/tablet default: 50/50 */
form.cart.boiron-pdp-qty-labeled .actions > .cart,
form.cart.boiron-pdp-qty-labeled .actions > .stores {
    display: flex !important;
    align-items: stretch !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
}

/* Orange button fills its .cart column */
form.cart.boiron-pdp-qty-labeled .actions > .cart > .single_add_to_cart_button {
    width: 100% !important;
    margin: 0 !important;
}

/* Find a Store widget fills its .stores column */
form.cart.boiron-pdp-qty-labeled .actions > .stores .ps-widget {
    width: 100% !important;
}

/* Core button styling (no height jump on hover) */
form.cart.boiron-pdp-qty-labeled .single_add_to_cart_button.button,
form.cart.boiron-pdp-qty-labeled .single_add_to_cart_button.button:hover {
    border-radius: 100px !important;
    padding: 20px 30px !important;
    line-height: 1.2 !important;
    height: auto !important;
    display: inline-block !important;
    text-align: center !important;
    font-size: 1.0625rem !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    min-width: 200px !important;
    border-width: 2px !important;
}

/* Color change on hover only */
form.cart.boiron-pdp-qty-labeled .single_add_to_cart_button.button {
    background-color: #FF6200 !important;
    border-color: #FF6200 !important;
    color: #fff !important;
    transition: background-color .1s ease-in, border-color .1s ease-in !important;
}
form.cart.boiron-pdp-qty-labeled .single_add_to_cart_button.button:hover {
    background-color: #d62717 !important;
    border-color: #d62717 !important;
}

/* Green Find a Store button style */
.ps-widget.ps-66cf536d6066b80609c37fb0.ps-enabled {
    width: 100%;
    display: inline-block !important;
    padding: 10px !important;
    /* margin-top: -15px !important; */
    border-radius: 100px !important;
    position: relative !important;
    background-color: #5DAF2F !important;
    border: #5DAF2F !important;
    font-family: 'Montserrat' !important;
    height: 65px;
}
.ps-widget.ps-66cf536d6066b80609c37fb0.ps-enabled:hover {
    background-color: #226500 !important;
    border-color: #226500 !important;
}
.ps-button-label {
    font-size: 1.0625rem;
    text-transform: uppercase;
    text-align: center;
    font-weight: 600;
}

/* Keep "Add to an existing subscription?" snug under the buttons */
.wcsatt-add-to-subscription-wrapper.closed.active {
    margin-top: 0 !important;
}

/* =========================================
   DESKTOP/TABLET: TWO BUTTONS SIDE BY SIDE
   ========================================= */
@media (min-width: 1025px) {

    /* Make sure actions is a horizontal flex row */
    form.cart.boiron-pdp-qty-labeled .actions {
        display: flex !important;
        flex-direction: row !important;    /* ← key: side-by-side */
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        gap: 16px !important;
        width: 100% !important;
    }

    /* Each column (cart + stores) takes 50% */
    form.cart.boiron-pdp-qty-labeled .actions > .cart,
    form.cart.boiron-pdp-qty-labeled .actions > .stores {
        display: flex !important;
        align-items: stretch !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    /* Button fills its half-width column, aligned left */
    form.cart.boiron-pdp-qty-labeled .actions > .cart > .single_add_to_cart_button {
        width: 100% !important;
        margin: 0 !important;
    }

    form.cart.boiron-pdp-qty-labeled .actions > .stores .ps-widget {
        width: 100% !important;
    }
}


/* =========================
   MOBILE / TABLET LAYOUT
   ========================= */

@media (max-width: 1024px) {
    /* Stack buttons full width */
    form.cart.boiron-pdp-qty-labeled .actions {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    form.cart.boiron-pdp-qty-labeled .actions > .cart,
    form.cart.boiron-pdp-qty-labeled .actions > .stores {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* =========================
   SINGLE-BUTTON PDP CASES
   (no .stores or hidden .stores)
   ========================= */

/* Only .cart in actions → treat as single button (desktop/tablet) */
@media (min-width: 1025px) {
    form.cart.boiron-pdp-qty-labeled .actions > .cart:only-child {
        flex: 0 0 50% !important;
        max-width: 420px !important;
        /* left-aligned within content area */
    }
}

/* When .stores is hidden via inline style or "No Sellers Found",
   also treat as single-button layout. */
form.cart.boiron-pdp-qty-labeled .actions > .stores[style*="display: none"] {
    display: none !important;
}

/* Hide the actual "No Sellers Found" widget if present */
.ps-widget.ps-no-sku.ps-disabled[aria-label="No Sellers Found"] {
    display: none !important;
}

/* Layout adjustment when .stores exists but is hidden */
@media (min-width: 1025px) {
    form.cart.boiron-pdp-qty-labeled .actions:has(> .stores[style*="display: none"]) > .cart {
        flex: 0 0 50% !important;
        max-width: 420px !important;
    }
}

/* =========================
   QUANTITY WRAPPER LAYOUT
   (label OUTSIDE the pill)
   ========================= */

/* Quantity row: full width above the buttons */
form.cart.boiron-pdp-qty-labeled .boiron-qty-wrap {
    display: flex !important;          /* block-level flex, not inline-flex  */
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;

    width: 100% !important;
    /* margin: 16px 0 24px !important;    */
    /* margin-bottom: -10px !important;
    margin-top: 5px !important; */
}

/* Label styling (outside the pill) */
form.cart.boiron-pdp-qty-labeled .boiron-qty-wrap .boiron-qty-label {
    display: inline-block !important;
    font-weight: 500 !important;
    font-size: 20px !important;
    margin: 0 !important;
}

/* Remove extra margin on the pill inside the wrapper */
form.cart.boiron-pdp-qty-labeled .boiron-qty-wrap .quantity {
    margin: 0 !important;
}

/* Stack Quantity row ABOVE the buttons on all PDPs */
form.cart.boiron-pdp-qty-labeled {
    display: flex !important;
    flex-direction: column !important;   /* vertical stack: qty, then buttons */
    align-items: flex-start !important;
    gap: 24px !important;                /* space between qty row and buttons */
    margin-top: -50px !important;
}

/* Quantity wrapper: treat as a full-width row */
form.cart.boiron-pdp-qty-labeled .boiron-qty-wrap {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
}

/* Remove extra margins on the pill inside the wrapper */
form.cart.boiron-pdp-qty-labeled .boiron-qty-wrap .quantity {
    margin: 0 !important;
}

/* Variation PDP: put Quantity and buttons on separate rows */
form.cart.boiron-pdp-qty-labeled .woocommerce-variation-add-to-cart {
    display: block !important;       /* stop Astra/Woo flex here */
}

/* Simple product PDP (no variation) – target boiron-qty-wrap */
.single-product .product.product-type-simple form.cart.boiron-pdp-qty-labeled > .boiron-qty-wrap {
    margin-bottom: -20px !important;
    margin-top: 10px !important;
}

.single-product .product.product-type-simple form.cart.boiron-pdp-qty-labeled > .actions.boiron-has-stores  {
    margin-bottom: -80px !important;
}

/* Simple product PDP – main Elementor price */
.single-product .product.product-type-simple
    .elementor-widget-woocommerce-product-price p.price {
    font-size: 22px !important;
}

/* Single variable product – variation price in add-to-cart area */
.single-product .product.product-type-variable
    form.cart .single_variation_wrap
    .woocommerce-variation-price span.price {
    font-size: 22px !important;
}

/* Bundle PDP */
.single-product .product.product-type-bundle
    form.cart.boiron-pdp-qty-labeled .bundle_button > .boiron-qty-wrap {
        margin-top: 20px !important;
    }

.single-product .product.product-type-bundle
    form.cart.boiron-pdp-qty-labeled .bundle_button > .quantity.buttons_added {
    margin-bottom: -20px !important;
}

.single-product .product.product-type-bundle
    form.cart.boiron-pdp-qty-labeled .bundle_button > .actions.boiron-has-stores  {
        margin-top: 50px !important;
        margin-bottom: -50px !important;
}

