/* =========================================================
   BSM Single Delivery Day Cart – Frontend Styles (FINAL)
   ========================================================= */

/* ------------------------------
   Cart Delivery Day Summary
-------------------------------- */
.bsm-cart-delivery-summary {
    background: linear-gradient(135deg, #E63946 0%, #F78DA7 100%);
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(230, 57, 70, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bsm-cart-delivery-summary h3 {
    margin: 0 0 10px;
    font-size: 1.2em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bsm-cart-delivery-summary .delivery-icon {
    font-size: 1.4em;
}

.bsm-delivery-date {
    font-size: 1.1em;
    font-weight: 500;
    margin: 8px 0;
}

.bsm-delivery-items-count {
    opacity: 0.9;
    font-size: 0.95em;
}

/* ------------------------------
   Product Page Delivery Info
-------------------------------- */
.bsm-product-delivery-info {
    background: #FFF8F0;
    border: 2px solid #FFDAC1;
    border-radius: 8px;
    padding: 16px;
    margin: 15px 0;
    position: relative;
}

.bsm-product-delivery-info::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #E63946, #F78DA7);
    border-radius: 8px 8px 0 0;
}

.bsm-product-delivery-info h4 {
    margin: 0 0 12px;
    color: #2D2D2D;
    font-size: 1.1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bsm-delivery-day-display {
    font-size: 1.05em;
    color: #E63946;
    font-weight: 600;
    margin: 8px 0;
}

.bsm-estimated-date {
    color: #8D6E63;
    font-size: 0.95em;
    font-style: italic;
}

/* ------------------------------
   Woo Error / Action Buttons
-------------------------------- */
.bsm-sddc-error-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 12px;
}

/* Core button lock (prevents hover jump) */
body .woocommerce-notices-wrapper .bsm-sddc-error-actions a.button,
body .woocommerce-notices-wrapper .bsm-sddc-error-actions button.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.55em !important;

    box-sizing: border-box !important;
    line-height: 1.1 !important;

    padding: 12px 18px !important;
    min-height: 44px !important;

    transform: none !important;
    transition: none !important;
    white-space: normal;
    margin: 0 !important;
}

/* Lock sizing on hover / focus */
body .woocommerce-notices-wrapper .bsm-sddc-error-actions a.button:hover,
body .woocommerce-notices-wrapper .bsm-sddc-error-actions button.button:hover,
body .woocommerce-notices-wrapper .bsm-sddc-error-actions a.button:focus,
body .woocommerce-notices-wrapper .bsm-sddc-error-actions button.button:focus {
    padding: 12px 18px !important;
    min-height: 44px !important;
    transform: none !important;
}

/* Arrow: force inline (Divi / MuseoVR fix) */
body .woocommerce-notices-wrapper .bsm-sddc-error-actions a.button::after,
body .woocommerce-notices-wrapper .bsm-sddc-error-actions button.button::after,
body .woocommerce-notices-wrapper .bsm-sddc-error-actions a.button:hover::after,
body .woocommerce-notices-wrapper .bsm-sddc-error-actions button.button:hover::after {
    position: static !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;

    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;

    transform: none !important;
    margin-left: 0.55em !important;
    line-height: 1 !important;
    vertical-align: middle;
}

/* ------------------------------
   Responsive
-------------------------------- */
@media (max-width: 768px) {
    .bsm-sddc-error-actions {
        flex-direction: column;
        align-items: stretch;
    }

    body .woocommerce-notices-wrapper .bsm-sddc-error-actions a.button,
    body .woocommerce-notices-wrapper .bsm-sddc-error-actions button.button {
        width: 100%;
    }
}

/* ------------------------------
   Reduced Motion
-------------------------------- */
@media (prefers-reduced-motion: reduce) {
    body .woocommerce-notices-wrapper .bsm-sddc-error-actions a.button,
    body .woocommerce-notices-wrapper .bsm-sddc-error-actions button.button {
        transition: none !important;
    }
}

/* ------------------------------
   Print
-------------------------------- */
@media print {
    .bsm-sddc-error-actions {
        display: none !important;
    }

    .bsm-cart-delivery-summary,
    .bsm-product-delivery-info {
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
    }
}


/* Breakdown list for mixed one-time/subscription carts */
.bsm-sddc-delivery-breakdown{margin:0.5em 0 0;padding-left:1.25em;}
.bsm-sddc-delivery-breakdown li{margin:0.25em 0;}
.bsm-sddc-delivery-breakdown .bsm-sddc-delivery-date{opacity:0.85;}


/* Breakdown product lists */
.bsm-sddc-breakdown-products{
    margin: 6px 0 0 0;
    padding-left: 18px;
    list-style: disc;
}
.bsm-sddc-breakdown-products li{
    margin: 2px 0;
    opacity: 0.95;
}
