/**
 * Copyright © Wolters Kluwer. All rights reserved.
 * PDP guest entry (2026-07-28 review, repositioned 2026-07-29): Amazon-style contrast.
 *   - "Buy now" (guest)  = PRIMARY, solid WK blue — full-width row directly UNDER the
 *                          qty + Add-to-Cart row (relocated there by buy-now.js).
 *   - "Add to Cart"      = SECONDARY, white with blue outline.
 * The demotion of Add to Cart is scoped to body.speedy-buynow-active — a class buy-now.js only
 * adds when the Buy-now button actually renders (eligible products), so non-eligible PDPs that
 * merely load this stylesheet keep their normal solid Add-to-Cart button.
 */

/* ---- Buy now wrapper: hidden until buy-now.js relocates it (no flash at page bottom) ---- */
.pdp-buynow-wrap { display: none; margin: 10px 0 0; }
.pdp-buynow-wrap.pdp-buynow-wrap--ready { display: block; }

/* ---- Buy now (primary, solid blue), full width ---- */
.speedy-buy-now.action.primary,
button.speedy-buy-now {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    background: #006bb4;
    color: #fff;
    border: 1px solid #006bb4;
    border-radius: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .2px;
    cursor: pointer;
    transition: background .15s ease;
}
.speedy-buy-now.action.primary:hover,
button.speedy-buy-now:hover { background: #005a99; border-color: #005a99; }

/* ---- Add to Cart demoted to SECONDARY (white / blue outline) — only when Buy-now is present ---- */
/* V3 buy box: the add-to-cart carries pdpv3-btn--primary (solid blue); override to outline.
   High-specificity id selector + !important to beat the V3 theme's own button rule. */
body.speedy-buynow-active button#product-addtocart-button,
body.speedy-buynow-active button#product-addtocart-button.pdpv3-btn--primary,
body.speedy-buynow-active button#product-addtocart-button.pdpv3-btn--cart {
    background: #fff !important;
    color: #006bb4 !important;
    border: 1px solid #006bb4 !important;
    background-image: none !important;
}
body.speedy-buynow-active button#product-addtocart-button:hover { background: #f0f7fc !important; }
/* keep the cart glyph/text readable in the outlined state */
body.speedy-buynow-active button#product-addtocart-button svg,
body.speedy-buynow-active button#product-addtocart-button .action-label,
body.speedy-buynow-active button#product-addtocart-button .pdpv3-btn__lbl {
    color: #006bb4 !important;
    fill: #006bb4 !important;
}

/* Standard PDP add-to-cart: only demote when our Buy-now is present. */
body.speedy-buynow-active .box-tocart .action.tocart {
    background: #fff !important;
    color: #006bb4 !important;
    border: 1px solid #006bb4 !important;
}

@media (max-width: 600px) {
    .speedy-buy-now.action.primary, button.speedy-buy-now { height: 52px; font-size: 17px; }
}
