/* ==========================================================================
   BOWY USA LLC — FULFILLMENT STYLESHEET (PRODUCT, CART & CHECKOUT)
   Copyright (c) 2026 BOWY USA LLC. All rights reserved. Confidential and Proprietary.
   ==========================================================================
   Loaded on product, cart and checkout pages.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FULFILLMENT CARDS, CART BANNERS & PILLS
   -------------------------------------------------------------------------- */
/* ==========================================================
   PDP ADD-TO-CART NOTICE: VIEW CART BUTTON LAYOUT
   ========================================================== */
.single-product .woocommerce-notices-wrapper .woocommerce-message,
.single-product .woocommerce-message {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px 16px !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.5 !important;
}
.single-product .woocommerce-message a.button,
.single-product .woocommerce-message a.wc-forward {
    order: 2 !important;
    float: none !important;
    position: static !important;
    transform: none !important;
    margin: 0 0 0 auto !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}

/* ==========================================================
   HOME DEPOT-STYLE PDP FULFILLMENT INFORMATION CARDS
   ========================================================== */
.bowy-fulfillment-container {
    margin: 16px 0 20px 0;
    font-family: inherit;
    max-width: 460px;
}
.bowy-fulfillment-tiles-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.bowy-fulfillment-tiles-grid.single-option {
    grid-template-columns: minmax(0, 220px);
}
@media (max-width: 480px) {
    .bowy-fulfillment-tiles-grid {
        grid-template-columns: 1fr;
    }
}

.bowy-fulfillment-tile {
    position: relative;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 114px;
    box-sizing: border-box;
    cursor: default;
    transition: border-color 0.15s ease-in-out;
}
.bowy-fulfillment-tile.info-only {
    cursor: default;
}
.bowy-fulfillment-tile.info-only:hover {
    border-color: #94a3b8;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.bowy-tile-header-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.bowy-tile-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #0b1626;
    letter-spacing: -0.2px;
}

.bowy-tile-info-list {
    list-style: none;
    margin: 0 0 8px 0;
    padding: 0;
    font-size: 12px;
    color: #475569;
    line-height: 1.35;
}
.bowy-tile-info-list li {
    overflow-wrap: break-word;
}

.bowy-tile-price-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 5px;
    margin-top: auto;
    min-width: 0;
}
.bowy-tile-price {
    font-size: 16px;
    font-weight: 800;
    color: #0b1626;
    letter-spacing: -0.3px;
    white-space: nowrap;
}
.bowy-tile-price.price-free {
    color: #059669;
}
.bowy-tile-fee-label {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: break-word;
}
.bowy-tile-fee-label strong {
    color: #059669;
    font-weight: 700;
}

.bowy-fulfillment-header-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 9px;
    letter-spacing: 0.01em;
}
.bowy-fulfillment-price-basis {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    margin: -6px 0 9px 0;
}

.bowy-fulfillment-perk-badge {
    margin-top: 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 7px 11px;
    font-size: 11.5px;
    color: #166534;
    line-height: 1.35;
    display: flex;
    align-items: center;
    gap: 6px;
}
.bowy-perk-check {
    font-weight: 800;
    color: #16a34a;
    font-size: 13px;
    flex-shrink: 0;
}
.bowy-free-fee {
    color: #059669 !important;
    font-weight: 700 !important;
}

/* ==========================================================
   HOME DEPOT-STYLE SHOPPING CART FULFILLMENT BANNER & SELECTOR
   ========================================================== */

/* Hide premature address, shipping calculator, and methods on cart page */
.woocommerce-cart .woocommerce-shipping-destination,
.woocommerce-cart .shipping-calculator-button,
.woocommerce-cart .shipping-calculator-form,
.woocommerce-cart .woocommerce-shipping-calculator,
.woocommerce-cart .cart_totals ul#shipping_method {
    display: none !important;
}

/* Cart Totals: Clean TBD line item for Fulfillment */
.woocommerce-cart .cart_totals tr.shipping td .bowy-shipping-tbd-badge {
    font-weight: 600;
    color: #64748b;
    display: inline-block;
}

/* ==========================================================
   CHECKOUT LEFT PANEL: FULFILLMENT SELECTOR CARDS
   ========================================================== */

/* FFL Checkout Injected Notices: Spanning Full Width (Fixing 1-alphabet vertical slicing) */
