/* === А. Постійний напис "+ доставка" у підсумках === */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value::after,
.wc-block-components-order-summary-footer-item .wc-block-components-totals-item__value::after,
.order-total .amount::after, 
.cart-subtotal .amount::after {
    content: " + доставка за тарифами НП" !important;
    display: block !important;
    font-size: 13px !important;
    color: #e65100 !important;
    font-weight: normal !important;
    text-align: right !important;
    margin-top: 4px !important;
}

/* === Б. Стилі для блокування кнопок (керується JS-класом) === */
.cart-blocked-buttons .wc-block-cart__submit-button,
.cart-blocked-buttons #place_order,
.cart-blocked-buttons .wc-block-components-button {
    opacity: 0.3 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

/* === В. Попередження всередині товарів === */
.custom-kadence-alert-box {
    display: flex; align-items: center; background-color: rgba(247, 99, 12, 0.15) !important;
    border-left: 5px solid rgb(247, 99, 12) !important; padding: 15px 20px !important; 
    margin: 20px 0 !important; border-radius: 4px !important;
}
.custom-kadence-alert-box .alert-icon-wrap {
    margin-right: 15px !important; display: flex; align-items: center; justify-content: center;
    background-color: rgb(247, 99, 12) !important; color: #fff !important; 
    width: 30px; height: 30px; border-radius: 50%; font-weight: bold; font-size: 18px; flex-shrink: 0;
}
.custom-kadence-alert-box .alert-text { 
    color: #222 !important; font-size: 14px !important; line-height: 1.5 !important; 
    margin: 0 !important; font-weight: 400 !important; 
}
.custom-kadence-alert-box .alert-text strong { 
    color: rgb(247, 99, 12) !important; font-weight: 700 !important; 
}

/* === Г. Фікс накладень на мобільних (кошик/чекаут) === */
@media (max-width: 920px) {
    body.woocommerce-page .wc-block-cart__submit-button_sticky,
    body.woocommerce-page .wc-block-cart__submit,
    body.woocommerce-page .wc-block-components-checkout-place-order-button-wrapper_sticky,
    body.woocommerce-page .wp-block-woocommerce-cart-items-block + div {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 10px 0 !important;
    }
    body.woocommerce-page .wc-block-cart__submit button,
    body.woocommerce-page .wc-block-cart__submit-button,
    body.woocommerce-page #place_order,
    body.woocommerce-page .wc-block-components-checkout-place-order-button {
        position: relative !important;
        width: 100% !important;
        display: block !important;
        margin-bottom: 30px !important;
    }
}

/* === Д. Верхній ряд шапки на мобільних === */
@media (max-width: 600px) {
    #top-header-bar, 
    .header-top-row,
    .kadence-announcement-bar {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
        min-height: auto !important;
    }
    .header-top-row text,
    .header-top-row a,
    .kadence-announcement-bar-text,
    .kadence-announcement-bar,
    #top-header-bar .custom-html-id,
    #top-header-bar .navigation {
        font-size: 12px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        letter-spacing: 0px !important;
    }
}

/* === Е. Галочки та відступи в підвалі === */
.site-footer .footer-widget-area ul li::before,
.site-footer .widget_nav_menu ul li::before,
.site-footer .footer-section-wrap .widget:last-child ul li::before {
    content: none !important;
}
.site-footer .footer-section-wrap .widget:last-child ul,
.site-footer .footer-section-wrap .widget:last-child li {
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}
@media (max-width: 767px) {
    .site-footer .footer-container,
    .site-footer .footer-widget-area,
    .site-footer .footer-section-wrap {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .site-footer .sidebar-container {
        margin-bottom: 30px !important;
    }
}

/* === Ж. Мобільна липка панель === */
@media (max-width: 767px) {
    body .mobile-sticky-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: #ffffff;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 99999;
        box-shadow: 0 -2px 15px rgba(0,0,0,0.08);
        padding-bottom: env(safe-area-inset-bottom);
    }
    body .mobile-sticky-bar a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #666;
        flex: 1;
        font-size: 11px;
        gap: 4px;
    }
    body .mobile-sticky-bar a svg, 
    body .mobile-sticky-bar a i, 
    body .mobile-sticky-bar a img {
        width: 24px;
        height: 24px;
        font-size: 24px;
        display: block;
        margin: 0 auto;
    }
    body .mobile-sticky-bar a:active,
    body .mobile-sticky-bar a.active {
        color: #f7630c; 
    }
    body {
        padding-bottom: 75px;
    }
    body.woocommerce-cart .woocommerce, 
    body.woocommerce-checkout #customer_details, 
    body.woocommerce-checkout #order_review,
    body.woocommerce-page .entry-content {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
}
@media (min-width: 768px) {
    body .mobile-sticky-bar { 
        display: none; 
    }
}