/**
 * Lomobee — WhatsApp Order Styles
 * assets/css/whatsapp-order.css
 *
 * Smaller, precisely positioned buttons.
 * No inline styles. Inherits brand tokens where available.
 */

/* =========================================================================
   SHARED BUTTON BASE
   ========================================================================= */
.lomo-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    min-height: 44px;          /* smaller than ATC (54px) */
    padding: 10px 18px;

    background: #25D366;
    color: #ffffff;
    border: none;
    border-radius: 8px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;

    cursor: pointer;
    transition: background 0.2s ease, transform 0.16s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 12px rgba(37, 211, 102, .24);
}

.lomo-wa-btn:hover,
.lomo-wa-btn:focus-visible {
    background: #1ebe5c;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, .32);
    color: #ffffff;
    text-decoration: none;
    outline: none;
}

.lomo-wa-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(37, 211, 102, .18);
}

/* Single clean SVG icon — no stroke, pure fill */
.lomo-wa-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: block;
    fill: currentColor;
}

/* Small hint line */
.lomo-wa-hint {
    margin: 6px 0 0;
    font-size: 11px;
    color: #7A6F68;
    text-align: center;
    line-height: 1.4;
}

/* =========================================================================
   1. SINGLE PRODUCT PAGE
   Must be full-width below the ATC form, never beside it.
   ========================================================================= */

/* Wrapper rendered after woocommerce_after_add_to_cart_form */
.lomo-wa-product-wrap {
    width: 100%;
    margin-top: 10px;
    /* Force a new block context so it always starts below the flex row */
    display: block;
    clear: both;
}

/* Ensure the button never sneaks into the flex row of qty+ATC */
#pp-app-wrapper .lomo-wa-product-wrap,
.pp-action-area ~ .lomo-wa-product-wrap,
.lomo-wa-product-wrap {
    display: block !important;
    width: 100% !important;
    clear: both !important;
}

#pp-app-wrapper .lomo-wa-product-btn,
.lomo-wa-product-btn {
    width: 100% !important;
    max-width: 100% !important;
}

/* =========================================================================
   2. CART PAGE
   Sits inside .lomo-summary-lines, rendered after Proceed to Checkout.
   ========================================================================= */
.lomo-wa-cart-wrap {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #E2D9CF;
    text-align: center;
}

.lomo-wa-cart-btn {
    font-size: 13px;
}

/* =========================================================================
   3. CHECKOUT PAGE
   Below Place Order — inside the order review aside.
   ========================================================================= */
.lomo-wa-checkout-wrap {
    margin-top: 10px;
    text-align: center;
}

/* "or" divider */
.lomo-wa-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 10px;
    color: #B5ADA7;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.lomo-wa-divider::before,
.lomo-wa-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E2D9CF;
}

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */
@media ( prefers-reduced-motion: reduce ) {
    .lomo-wa-btn {
        transition: background 0.1s ease;
    }
    .lomo-wa-btn:hover { transform: none; }
}
.lomo-wa-btn .lomo-wa-icon,
.lomo-wa-checkout-wrap .lomo-wa-icon,
.lomo-wa-cart-wrap .lomo-wa-icon {
    fill: currentColor !important;
    stroke: none !important;
}