/*
 * NetPear Commerce — UI Polish
 * Header basket + WooCommerce notices.
 */

/* ==========================================
   1. HEADER SHOPPING BAG
   ========================================== */

#np-header .np-megamenu-parent > li.npc-cart-menu-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    margin: 0 0 0 12px !important;
    padding: 0 !important;
    height: 46px !important;
    list-style: none !important;
}

#np-header .np-megamenu-parent > li.npc-cart-menu-item > a.npc-cart-toggle {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 44px !important;
    height: 44px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 1px solid rgba(255, 255, 255, .15) !important;
    border-radius: 12px !important;

    background: rgba(255, 255, 255, .055) !important;
    color: #ffffff !important;

    opacity: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease !important;
}

#np-header .npc-cart-toggle svg {
    width: 21px !important;
    height: 21px !important;
    display: block !important;
    stroke: #ffffff !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

#np-header .npc-cart-toggle:hover,
#np-header .npc-cart-toggle:focus-visible {
    background: rgba(44, 184, 114, .17) !important;
    border-color: rgba(75, 211, 142, .65) !important;
    transform: translateY(-1px);
}

#np-header .npc-cart-toggle .npc-cart-count {
    position: absolute !important;

    top: -7px !important;
    right: -7px !important;

    min-width: 21px !important;
    height: 21px !important;
    padding: 0 5px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 2px solid #293034 !important;
    border-radius: 50px !important;

    background: #29a768 !important;
    color: #ffffff !important;

    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    box-shadow: 0 2px 6px rgba(0, 0, 0, .16);
}

#np-header .npc-cart-count[hidden] {
    display: none !important;
}

/* ==========================================
   2. WOOCOMMERCE NOTIFICATION SYSTEM
   ========================================== */

body .woocommerce-notices-wrapper {
    width: 100%;
    clear: both;
}

body .woocommerce-notices-wrapper:empty {
    display: none;
}

/* Shared notification structure */

body .woocommerce-error,
body .woocommerce-message,
body .woocommerce-info {
    position: relative !important;

    display: block !important;
    width: 100% !important;

    margin: 0 0 26px !important;
    padding: 20px 24px 20px 66px !important;

    border-radius: 14px !important;
    border: 1px solid transparent !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.7 !important;

    list-style: none !important;
    box-shadow: none !important;

    overflow-wrap: anywhere;
}

/* Remove conflicting WooCommerce/theme icons */

body .woocommerce-error::before,
body .woocommerce-message::before,
body .woocommerce-info::before {
    position: absolute !important;
    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    top: 18px !important;
    left: 21px !important;

    width: 27px !important;
    height: 27px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: none !important;
    border-radius: 50% !important;

    font-family: Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1 !important;

    transform: none !important;
    float: none !important;
}

/* Errors */

body .woocommerce-error {
    background: #fff5f5 !important;
    border-color: #f3d4d4 !important;
    border-left: 4px solid #d64c4c !important;
    color: #833333 !important;
}

body .woocommerce-error::before {
    content: "!" !important;
    background: #fbe0e0 !important;
    color: #bd3434 !important;
}

/* Success */

body .woocommerce-message {
    background: #effaf3 !important;
    border-color: #ccead7 !important;
    border-left: 4px solid #23945a !important;
    color: #245d3c !important;
}

body .woocommerce-message::before {
    content: "✓" !important;
    background: #d9f2e2 !important;
    color: #207e4d !important;
}

/* Information */

body .woocommerce-info {
    background: #f1f7fc !important;
    border-color: #d6e7f4 !important;
    border-left: 4px solid #4686bc !important;
    color: #315c7b !important;
}

body .woocommerce-info::before {
    content: "i" !important;
    background: #dcecf8 !important;
    color: #346e9c !important;
}

/* Error list layout */

body ul.woocommerce-error {
    list-style: none !important;
}

body ul.woocommerce-error li,
body .woocommerce-error li {
    position: relative !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 5px !important;
    color: inherit !important;
    line-height: 1.7 !important;
}

body .woocommerce-error li:last-child {
    margin-bottom: 0 !important;
}

body .woocommerce-error li::before {
    display: none !important;
    content: none !important;
}

/* Notice action buttons */

body .woocommerce-message .button,
body .woocommerce-info .button,
body .woocommerce-error .button,
body .woocommerce-notices-wrapper .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    float: right !important;

    min-height: 38px !important;
    margin: 0 0 5px 15px !important;
    padding: 8px 17px !important;

    border: 1px solid #cde4d6 !important;
    border-radius: 9px !important;

    background: #ffffff !important;
    color: #206a43 !important;

    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

body .woocommerce-notices-wrapper .button:hover {
    background: #e6f5eb !important;
}

/* Hide default list markers */

body .woocommerce-error,
body .woocommerce-message,
body .woocommerce-info {
    list-style-type: none !important;
}

/* ==========================================
   3. MOBILE
   ========================================== */

@media (max-width: 767px) {

    #np-header .npc-cart-toggle {
        min-width: 42px !important;
        min-height: 42px !important;
    }

    body .woocommerce-error,
    body .woocommerce-message,
    body .woocommerce-info {
        padding: 17px 17px 17px 56px !important;
        margin-bottom: 20px !important;
        border-radius: 11px !important;
        font-size: 13px !important;
    }

    body .woocommerce-error::before,
    body .woocommerce-message::before,
    body .woocommerce-info::before {
        left: 16px !important;
        top: 16px !important;
        width: 25px !important;
        height: 25px !important;
    }

    body .woocommerce-notices-wrapper .button,
    body .woocommerce-error .button,
    body .woocommerce-message .button,
    body .woocommerce-info .button {
        float: none !important;
        display: flex !important;
        width: fit-content !important;
        margin: 12px 0 0 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #np-header .npc-cart-toggle {
        transition: none !important;
    }
}

/* =========================================================
   NETPEAR MINI-CART REFINEMENT — 2026-11-20
   ========================================================= */

/* 1. Align basket with desktop navigation */

@media (min-width: 992px) {

    #np-header .np-megamenu-parent > li.npc-cart-menu-item {
        position: relative !important;
        top: 12px !important;
        height: 44px !important;
        margin-left: 14px !important;
    }

    #np-header .np-megamenu-parent > li.npc-cart-menu-item > a {
        line-height: 1 !important;
    }
}

/* 2. Keep the drawer above floating widgets */

body .npc-cart-backdrop {
    position: fixed !important;
    z-index: 2147483645 !important;
    background: rgba(7, 24, 17, .65) !important;
    backdrop-filter: blur(5px);
}

body .npc-cart-drawer {
    position: fixed !important;
    z-index: 2147483646 !important;

    width: min(480px, 100%) !important;
    max-width: 100vw !important;

    background: #ffffff !important;
    padding: 30px !important;

    box-shadow: -20px 0 70px rgba(0, 0, 0, .22) !important;
}

/* 3. Drawer heading */

.npc-cart-drawer .npc-drawer-head {
    padding-bottom: 22px !important;
    margin-bottom: 12px !important;
}

.npc-cart-drawer .npc-drawer-kicker {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1.3px !important;
    color: #218a57 !important;
}

.npc-cart-drawer #npc-cart-title {
    font-size: 29px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
    color: #193c2a !important;
}

/* 4. Product presentation */

.npc-cart-drawer .woocommerce-mini-cart-item {
    position: relative !important;
    padding: 22px 24px 22px 0 !important;
    min-height: 100px !important;
}

.npc-cart-drawer .woocommerce-mini-cart-item > a:not(.remove) {
    display: block !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    color: #1b3e2b !important;
}

.npc-cart-drawer .woocommerce-mini-cart-item img {
    width: 68px !important;
    height: 68px !important;
    margin: 0 15px 10px 0 !important;
    object-fit: cover !important;
    border-radius: 10px !important;
}

/* 5. Product configuration */

.npc-cart-drawer .variation {
    margin: 14px 0 !important;
    padding: 12px 14px !important;

    border-left: 3px solid #c8e8d5 !important;
    border-radius: 0 9px 9px 0 !important;

    background: #f6faf7 !important;

    font-size: 12px !important;
    line-height: 1.65 !important;
}

.npc-cart-drawer .variation dt {
    display: block !important;
    float: none !important;
    margin: 0 0 3px !important;

    font-size: 12px !important;
    font-weight: 700 !important;
    color: #274f38 !important;
}

.npc-cart-drawer .variation dd {
    display: block !important;
    float: none !important;
    margin: 0 0 10px !important;

    font-size: 12px !important;
    color: #526a59 !important;

    overflow-wrap: anywhere;
}

.npc-cart-drawer .variation dd:last-child {
    margin-bottom: 0 !important;
}

.npc-cart-drawer .variation p {
    font-size: 12px !important;
    line-height: 1.65 !important;
    color: inherit !important;
}

/* 6. Quantity and prices */

.npc-cart-drawer .quantity {
    margin-top: 12px !important;
    font-size: 13px !important;
    color: #526b59 !important;
}

.npc-cart-drawer .woocommerce-mini-cart__total {
    padding: 22px 0 !important;

    border-top: 1px solid #e5eee7 !important;

    font-size: 15px !important;
    font-weight: 650 !important;
}

.npc-cart-drawer .woocommerce-mini-cart__total .amount {
    font-size: 22px !important;
    font-weight: 750 !important;
    color: #183e29 !important;
}

/* 7. Checkout and view cart buttons */

.npc-cart-drawer .woocommerce-mini-cart__buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin: 12px 0 22px !important;
}

.npc-cart-drawer .woocommerce-mini-cart__buttons a {
    width: 100% !important;
    min-height: 52px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 14px 20px !important;

    border-radius: 11px !important;
    font-size: 14px !important;
    font-weight: 700 !important;

    transition: background .2s ease, border-color .2s ease;
}

.npc-cart-drawer .woocommerce-mini-cart__buttons a.checkout {
    order: -1 !important;
    background: #218f59 !important;
    border-color: #218f59 !important;
    color: #ffffff !important;
}

.npc-cart-drawer .woocommerce-mini-cart__buttons a.checkout:hover {
    background: #176e43 !important;
    border-color: #176e43 !important;
}

.npc-cart-drawer .woocommerce-mini-cart__buttons a:not(.checkout) {
    background: #ffffff !important;
    border: 1px solid #d6e7db !important;
    color: #20583a !important;
}

.npc-cart-drawer .woocommerce-mini-cart__buttons a:not(.checkout):hover {
    background: #f1f8f3 !important;
}

/* 8. Footer */

.npc-cart-drawer .npc-drawer-footnote {
    padding-top: 18px !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
    text-align: center !important;
}

/* 9. Mobile adjustments */

@media (max-width: 767px) {

    body .npc-cart-drawer {
        width: min(440px, 100%) !important;
        padding: 22px !important;
    }

    .npc-cart-drawer .variation {
        padding: 11px !important;
    }

    .npc-cart-drawer #npc-cart-title {
        font-size: 26px !important;
    }

    #np-header .np-megamenu-parent > li.npc-cart-menu-item {
        top: 0 !important;
    }
}


/* NPC MINI-CART REDESIGN 2026-11-20 */
/* High-priority basket overlay sits above floating chat/WhatsApp tools. */
body .npc-cart-backdrop { z-index:2147483645!important; }
body .npc-cart-drawer {
  z-index:2147483646!important; width:min(480px,100vw)!important;
  height:100dvh!important; overflow:hidden!important;
  display:flex!important; flex-direction:column!important;
  padding:0!important; background:#fff!important; color:#223e30!important;
  box-shadow:-18px 0 65px rgba(8,23,17,.25)!important;
}
.npc-cart-drawer .npc-drawer-head { flex:0 0 auto!important; margin:0!important; padding:22px 26px!important; border-bottom:1px solid #e1eae4!important; }
.npc-cart-drawer .npc-drawer-head h2 { margin:3px 0 0!important; font-size:25px!important; }
.npc-cart-drawer .npc-drawer-kicker {font-size:10px!important;letter-spacing:.1em!important;}
.npc-cart-drawer .npc-cart-close { width:42px!important; height:42px!important; font-size:29px!important; }
.npc-cart-drawer .npc-drawer-status { flex:0 0 auto!important; padding:0 26px!important; }
.npc-cart-drawer .npc-mini-cart-content { flex:1 1 auto!important; min-height:0!important; display:flex!important; flex-direction:column!important; overflow:hidden!important; }
.npc-cart-drawer .woocommerce-mini-cart { flex:1 1 auto!important; min-height:0!important; overflow-y:auto!important; overscroll-behavior:contain!important; padding:8px 26px!important; margin:0!important; }
.npc-cart-drawer .woocommerce-mini-cart-item {padding:20px 28px 20px 0!important;min-height:100px!important;border-bottom:1px solid #e6ece7!important;}
.npc-cart-drawer .woocommerce-mini-cart-item>a:not(.remove) {display:block!important; font-size:15px!important;line-height:1.5!important;font-weight:700!important;}
.npc-cart-drawer .woocommerce-mini-cart-item img {width:72px!important;height:72px!important;object-fit:cover!important;margin:0 14px 8px 0!important;border-radius:9px!important;}
.npc-cart-drawer .woocommerce-mini-cart-item .remove {top:20px!important;width:25px!important;height:25px!important;border-radius:50%!important;background:#f0f2f0!important;}
.npc-cart-drawer .variation {clear:both!important;padding:12px 14px!important;margin:14px 0 0!important;border-left:3px solid #acd8ba!important;border-radius:0 8px 8px 0!important;background:#f5faf7!important;font-size:12px!important;line-height:1.55!important;}
.npc-cart-drawer .variation dt {float:none!important;display:block!important;margin:0 0 3px!important;font-size:12px!important;font-weight:700!important;}
.npc-cart-drawer .variation dd {float:none!important;display:block!important;margin:0 0 9px!important;font-size:12px!important;overflow-wrap:anywhere!important;}
.npc-cart-drawer .variation dd:last-child {margin-bottom:0!important;}
.npc-cart-drawer .variation p {font-size:12px!important;line-height:1.55!important;}
.npc-cart-drawer .quantity {display:block!important;margin:10px 0 0!important;font-size:13px!important;}
/* WooCommerce's total and buttons remain pinned outside the scrolling items. */
.npc-cart-drawer .woocommerce-mini-cart__total {flex:0 0 auto!important;margin:0!important;padding:20px 26px 10px!important;border-top:1px solid #e1eae4!important;font-size:15px!important;}
.npc-cart-drawer .woocommerce-mini-cart__total .amount {font-size:21px!important;font-weight:750!important;}
.npc-cart-drawer .woocommerce-mini-cart__buttons {flex:0 0 auto!important;display:flex!important;flex-direction:column!important;gap:10px!important;margin:0!important;padding:12px 26px 20px!important;}
.npc-cart-drawer .woocommerce-mini-cart__buttons a {width:100%!important;min-height:50px!important;padding:13px!important;margin:0!important;border-radius:10px!important;font-size:14px!important;font-weight:700!important;}
.npc-cart-drawer .woocommerce-mini-cart__buttons a.checkout {order:-1!important;background:#218f59!important;color:#fff!important;border-color:#218f59!important;}
.npc-cart-drawer .woocommerce-mini-cart__buttons a:not(.checkout) {background:#fff!important;color:#20583a!important;border:1px solid #cfe1d5!important;}
.npc-cart-drawer .npc-drawer-footnote {flex:0 0 auto!important;margin:0!important;padding:12px 26px 18px!important;line-height:1.4!important;font-size:12px!important;}
.npc-cart-drawer .woocommerce-mini-cart__empty-message {margin:22px 26px!important;}
@media (min-width:992px) {
 #np-header .np-megamenu-parent>li.npc-cart-menu-item {top:12px!important;}
}
@media(max-width:560px){
 .npc-cart-drawer .npc-drawer-head {padding:18px!important;}
 .npc-cart-drawer .woocommerce-mini-cart {padding:6px 18px!important;}
 .npc-cart-drawer .woocommerce-mini-cart__total {padding:16px 18px 8px!important;}
 .npc-cart-drawer .woocommerce-mini-cart__buttons {padding:10px 18px 14px!important;}
 .npc-cart-drawer .npc-drawer-footnote {padding:10px 18px 15px!important;}
}
