/* ============================================================
   HAZECBD MINI CART — Step 1: Header + Shipping Bar
   File: /child-theme/assets/css/mini-cart.css
   ============================================================ */

/* ----------------------------------------------------------
   1. PANEL — overall sidebar
   ---------------------------------------------------------- */
.cart-widget-side {
    width: 420px !important;
    max-width: 100vw;
    background: #ffffff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.10);
}

/* ----------------------------------------------------------
   2. HEADER — "Your Cart" + item count + close
   ---------------------------------------------------------- */
.cart-widget-side .wd-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    background: #ffffff;
}

/* Title: "Your Cart" */
.cart-widget-side .wd-heading .title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

/* Item count badge — injected via JS next step, pre-styled here */
.cart-widget-side .wd-heading .haze-item-count {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin-left: 8px;
    margin-right: auto; /* pushes close to far right */
}

/* Close button */
.cart-widget-side .close-side-widget {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cart-widget-side .close-side-widget a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cart-widget-side .close-side-widget a:hover {
    color: #1a1a1a;
}

/* Hide cross icon, force show text */


.cart-widget-side .close-side-widget .wd-action-text {
    display: none !important;
}

.cart-widget-side .wd-action-icon:before:hover {
    background: #F2F0E9;
    padding: 7px;
    border-radius: 50%;
}


/* ----------------------------------------------------------
   3. SHIPPING PROGRESS BAR — styled to match reference
   ---------------------------------------------------------- */
.cart-widget-side .wd-free-progress-bar {
    margin: 0;
    padding: 14px 24px;
    background: #0b3f8b12;
    border-bottom: 1px solid #0b3f8b12;
}

/* Message row — icon + text inline */
.cart-widget-side .wd-free-progress-bar .progress-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.cart-widget-side .wd-free-progress-bar .progress-msg p {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #0b3f8b;
    line-height: 1.4;
}

/* Delivery truck icon before the message */
.cart-widget-side .wd-free-progress-bar .progress-msg::before {
    content: '';
    background-image: url(https://looksmartapparel.com/wp-content/uploads/2026/08/Cart-Van.svg);
    width: 15px;
    height: 15px;
    background-size: 15px;
}

/* Bold the £ amount inside the message */
.cart-widget-side .wd-free-progress-bar .progress-msg .woocommerce-Price-amount {
    font-weight: 700;
    color: #2d6a4f;
}

/* Progress bar track */
/* Progress bar track — full width grey background */
.cart-widget-side .wd-free-progress-bar .progress-area {
    height: 8px !important;
    background: #c8e6d0 !important;
    border-radius: 99px !important;
    position: relative !important;
}

/* Progress bar fill — force green, kill WoodMart stripes */
.cart-widget-side .wd-free-progress-bar .progress-area .progress-bar,
.cart-widget-side .wd-free-progress-bar .progress-area div {
    height: 100% !important;
    background-color: #0b3f8b !important;
    background-image: none !important;
    background-size: unset !important;
    border-radius: 99px !important;
    transition: width 0.4s ease;
    position: relative !important;
    z-index: 1;
}
/* ----------------------------------------------------------
   4. MOVE shipping bar to sit directly after header
      (WoodMart renders it inside footer — JS will relocate it,
       but these styles ensure it looks right wherever it lands)
   ---------------------------------------------------------- */
.cart-widget-side .shopping-cart-widget-body {
    /* leave room if bar stays inside body */
}




/* ============================================================
   HAZECBD MINI CART — Step 2: Product Card
   ============================================================ */

/* ----------------------------------------------------------
   Product list — remove default ul padding/margin
   ---------------------------------------------------------- */
.cart-widget-side .woocommerce-mini-cart {
    list-style: none;
    margin: 0;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}



/* ----------------------------------------------------------
   Each cart item — bordered card
   ---------------------------------------------------------- */
.cart-widget-side .mini_cart_item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1.5px solid #e8e8e8 !important;
    border-radius: 14px;
    padding: 14px;
    position: relative;
}


.cart-widget-side .woocommerce-mini-cart .mini_cart_item:hover {
    background-color: transparent;
}


/* ----------------------------------------------------------
   Product image
   ---------------------------------------------------------- */
.cart-widget-side .mini_cart_item .cart-item-image {
    border-radius: 10px;
}

.cart-widget-side .mini_cart_item .cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ----------------------------------------------------------
   Cart info — right side text block
   ---------------------------------------------------------- */
.cart-widget-side .mini_cart_item .cart-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

/* Category label — "HAZE LEGEND · MIX & MATCH" */
.cart-widget-side .mini_cart_item .haze-product-category {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #9ca3af;
    line-height: 1;
    margin-bottom: 2px;
}

/* Product title */
.cart-widget-side .mini_cart_item .wd-entities-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-top: 18px;
}

/* Attribute pills row */
.cart-widget-side .mini_cart_item .haze-attr-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.cart-widget-side .mini_cart_item .haze-attr-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    color: #374151;
    background: #f3f4f6;
    border-radius: 99px;
    padding: 3px 10px 3px 6px;
    line-height: 1;
}

.cart-widget-side .mini_cart_item .haze-attr-pill .pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2d6a4f; /* default green — JS overrides per flavour */
    flex-shrink: 0;
}

/* Qty stepper + price row */
.cart-widget-side .mini_cart_item .quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
}

/* Hide default WC "1 ×" text format — JS rewrites this */
.cart-widget-side .mini_cart_item .quantity {
    font-size: 0; /* hide original content */
}

.cart-widget-side .mini_cart_item .haze-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.cart-widget-side .mini_cart_item .haze-qty-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.cart-widget-side .mini_cart_item .haze-qty-btn {
    width: 26px !important;
    min-height: 26px !important;
    padding: 5px 13px !important;
    background: #f9fafb;
    border: none;
    font-size: 16px;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
}

.cart-widget-side .mini_cart_item .haze-qty-btn:hover {
    background: #f3f4f6;
}

.cart-widget-side .mini_cart_item .haze-qty-num {
    width: 32px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    border-left: 1.5px solid #e5e7eb;
    border-right: 1.5px solid #e5e7eb;
    height: 30px;
    line-height: 30px;
}

.cart-widget-side .mini_cart_item .haze-item-price {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

/* ----------------------------------------------------------
   Remove / trash icon — top right of card
   ---------------------------------------------------------- */
.cart-widget-side .mini_cart_item .remove_from_cart_button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 0 !important; /* hide × text */
    text-decoration: none;
    transition: color 0.2s;
}

.cart-widget-side .mini_cart_item .remove_from_cart_button:hover {
    color: #ef4444;
}

/* Trash icon via SVG background */
.cart-widget-side .mini_cart_item .remove_from_cart_button::after {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v6M14 11v6'/%3E%3Cpath d='M9 6V4h6v2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.cart-widget-side .mini_cart_item .remove_from_cart_button:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v6M14 11v6'/%3E%3Cpath d='M9 6V4h6v2'/%3E%3C/svg%3E");
}

/* Hide the original cart-item-link (Show link WoodMart adds) */
.cart-widget-side .mini_cart_item .cart-item-link.wd-fill {
    display: none !important;
}


/* PHP-injected mini cart meta */
.cart-widget-side .haze-mini-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 2px;
}

.cart-widget-side .haze-mini-category {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #0b3f8b;
    line-height: 1;
    position: absolute;
    top: 15px;
}

.cart-widget-side .haze-mini-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.cart-widget-side .haze-mini-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    color: #374151;
    background: #fff;
    border-radius: 99px;
    padding: 3px 10px 3px 6px;
    line-height: 1;
    border: 1px solid #E8E6DF;
}

.cart-widget-side .haze-mini-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2d6a4f;
    flex-shrink: 0;
    display: inline-block;
}



.haze-addon-card { margin: 14px 0; border: 1px solid #f0e2c8; border-radius: 12px; background: #fdf6e9; overflow: hidden; }
.haze-addon-label { font-size: 11px; font-weight: 700; letter-spacing: .4px; color: #b07a16; padding: 8px 12px 0; text-transform: uppercase; }
.haze-addon-body { display: flex; align-items: center; gap: 10px; padding: 8px 12px 12px; }
.haze-addon-thumb { flex: none; width: 46px; height: 46px; }
.haze-addon-thumb img { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; margin: 0; }
.haze-addon-info { flex: 1 1 auto; min-width: 0; }
.haze-addon-name { display: block; font-size: 13px; font-weight: 700; color: #1d1d1d; line-height: 1.25; text-decoration: none; }
.haze-addon-name:hover { color: #0b3f8b; }
.haze-addon-price { font-size: 12px; color: #6a6a6a; margin-top: 2px; }
.haze-addon-price .amount { font-weight: 600; color: #1d1d1d; }
.haze-addon-btn { flex: none; border: 0; background: #1d1d1d; color: #fff; font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 8px !important; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s; }
.haze-addon-btn:hover { background: #333; color: #fff; }
.haze-addon-add:disabled { opacity: .6; cursor: default; }



/* Card above subtotal — reorder within the cart footer */
.widget_shopping_cart_content,
.cart-widget-side .shopping-cart-widget-footer {
    display: flex;
    flex-direction: column;
}

a.haze-continue.haze-close-mini-cart {
    cursor: pointer;
}

.cart-widget-side .woocommerce-mini-cart { order: 1; }
.cart-widget-side .haze-addon-card { order: 2; margin: 15px; padding: 0 !important;}
.cart-widget-side .woocommerce-mini-cart__total,
.cart-widget-side .total { order: 3; }
.cart-widget-side .wd-free-progress-bar { order: 0; }
.cart-widget-side .woocommerce-mini-cart__buttons,
.cart-widget-side .buttons { order: 5; }

.cart-widget-side .shopping-cart-widget-footer .wd-free-progress-bar {display: none;}




/* Hide View Cart, restyle Checkout as primary */
.haze-cart-footer {
    order: 5;
}
.cart-widget-side .woocommerce-mini-cart__buttons .button:not(.checkout),
.cart-widget-side .buttons a.wc-forward:not(.checkout) { display: none !important; }

.cart-widget-side .woocommerce-mini-cart__buttons .checkout,
.cart-widget-side .buttons a.checkout {
    display: flex !important; align-items: center; justify-content: center; gap: 8px;
    width: 100%; background: #0773cd !important; color: #fff !important;
    font-weight: 700; font-size: 15px; padding: 15px; border-radius: 10px; text-align: center;
}
.cart-widget-side .buttons a.checkout::after { content: "→"; }
.cart-widget-side .buttons a.checkout:hover { background: #0558a7 !important; }

/* Footer block */
.haze-cart-footer { padding: 4px 2px 0; }

.haze-promo { margin: 0px 0 15px; order: 3;}
.haze-promo-toggle { background: none !important; border: 0; padding: 0!important; font-size: 12px!important; font-weight: 600; color: #0e418c!important; cursor: pointer; }
.haze-promo-field { display: none; gap: 8px; margin-top: 10px; }
.haze-promo-field.haze-promo-open { display: flex; }
.haze-promo-input { flex: 1; padding: 10px 12px !important; border: 1px solid #dcdcdc !important; border-radius: 8px!important; font-size: 13px!important; }
.haze-promo-apply { flex: none; padding: 10px 18px; background: #1d1d1d !important; color: #fff!important; border: 0; border-radius: 8px!important; font-size: 13px; font-weight: 600; cursor: pointer; text-transform: capitalize !important;}
.haze-promo-apply:hover { background: #2D5F3F;!important }
.haze-promo-msg { font-size: 12px; margin-top: 6px; }
.haze-msg-ok  { color: #0b3f8b; }
.haze-msg-err { color: #c0392b; }

.haze-applied-coupons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.haze-coupon-tag { display: inline-flex; align-items: center; gap: 6px; background: #eef6ef; border: 1px solid #cfe6d4; color: #0b3f8b; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.haze-coupon-remove { background: none; border: 0; color: #0b3f8b; font-size: 14px; line-height: 1; cursor: pointer; padding: 0; }

.haze-continue { display: block; text-align: center; font-size: 12px; color: #555; text-decoration: none; padding: 0 0 15px; font-weight: 600; }
.haze-continue:hover { color: #0b3f8b; }

.haze-trust { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 10px 0 4px; border-top: 1px solid #eee; }
.haze-trust-item { font-size: 11px; color: #777; }

@media only screen and (max-width: 767px) {

	
.widget_shopping_cart .haze-continue {
    display: none !important;
}
	
.widget_shopping_cart .haze-promo-toggle,
.widget_shopping_cart .haze-promo {
    display: none !important;
}

.widget_shopping_cart .haze-promo-field {
    display: none !important;
    margin-top: 0 !important;
}

.widget_shopping_cart .haze-promo-input {
    width: 78% !important;
    max-width: 78% !important;
}


.cart-widget-side .shopping-cart-widget-footer {
    padding-bottom: 5px !important;
}


.wd-scroll-content > .haze-addon-card {
        position: static !important;
        width: auto !important;
        inset: auto !important;
        margin: 14px 12px 18px !important;
        flex: none !important;
}

.wd-scroll-content {
        padding-bottom: 1px;
}
	

}