/* =========================================================
   BIG Survey - Elementor Mini Cart Drawer & Woo Notices
   ========================================================= */

/* =======================================================
   1. WOOCOMMERCE ADD TO CART NOTIFICATION BANNER
   ======================================================= */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-message {
    background: #fff !important;
    color: #111 !important;
    border: 1px solid #e2e2e2 !important;
    border-left: 5px solid #27ae60 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
    border-radius: 8px !important;
    padding: 20px 24px !important;
    font-family: 'Gotham', 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 24px auto !important;
    max-width: 1200px !important;
    width: 95% !important;
}

.woocommerce-message::before {
    color: #27ae60 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin-right: 12px !important;
    font-size: 18px !important;
}

.woocommerce-message .button.wc-forward {
    background: #FFCC00 !important;
    color: #111 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    box-shadow: none !important;
    margin-left: 16px !important;
    font-family: 'Gotham', 'Montserrat', sans-serif !important;
    transition: background 0.2s !important;
}

.woocommerce-message .button.wc-forward:hover {
    background: #eac000 !important;
}

@media (max-width: 768px) {
    .woocommerce-message {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
        padding: 16px !important;
    }

    .woocommerce-message .button.wc-forward {
        width: 100% !important;
        margin-left: 0 !important;
        text-align: center !important;
    }
}

/* =======================================================
   2. ELEMENTOR MINI CART DRAWER
   ======================================================= */

/* FORCE ABSOLUTE MAX Z-INDEX TO PREVENT HEADER BLEED-THROUGH */
.elementor-widget-woocommerce-menu-cart,
.elementor-menu-cart__container {
    z-index: 2147483647 !important;
}

.elementor-menu-cart__overlay {
    z-index: 2147483646 !important;
}

.elementor-menu-cart__main {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 480px !important;
    max-width: 100vw !important;
    height: 100vh !important;
    font-family: 'Gotham', 'Montserrat', sans-serif !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    z-index: 2147483647 !important;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1) !important;
}

/* Header */
.bs-mc-header {
    padding: 30px 40px 20px !important;
    border-bottom: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
}

.bs-mc-header h2 {
    margin: 0 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #111 !important;
}

/* Close Button */
.elementor-menu-cart__close-button {
    position: absolute !important;
    top: 32px !important;
    right: 32px !important;
    z-index: 2147483647 !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f9f9f9 !important;
    border-radius: 50% !important;
}

.elementor-menu-cart__close-button::before,
.elementor-menu-cart__close-button::after {
    background-color: #555 !important;
    width: 2px !important;
    height: 16px !important;
}

/* Cart List & Grid Layout */
.elementor-menu-cart__products {
    padding: 0 40px !important;
    flex-grow: 1 !important;
    overflow-y: auto !important;
    max-height: none !important;
    background: #fff !important;
}

.elementor-menu-cart__product {
    display: grid !important;
    grid-template-columns: 80px 1fr !important;
    grid-auto-rows: min-content !important;
    gap: 0 24px !important;
    padding: 30px 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    align-items: start !important;
    background: #fff !important;
}

.elementor-menu-cart__product:last-child {
    border-bottom: none !important;
}

.elementor-menu-cart__product-name,
.elementor-menu-cart__product-price {
    display: contents !important;
}

/* Grid order assignments */
.elementor-menu-cart__product-image {
    grid-column: 1;
    grid-row: 1 / 10;
    width: 80px !important;
    padding: 0 !important;
}

.elementor-menu-cart__product-image a {
    display: block !important;
}

.elementor-menu-cart__product-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

.bs-mc-title-wrap {
    grid-column: 2;
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bs-mc-price {
    grid-column: 2;
    order: 2;
    margin-top: 6px !important;
    margin-bottom: 6px !important;
}

.elementor-menu-cart__product dl.variation {
    grid-column: 2;
    order: 3;
    margin: 0 0 12px 0 !important;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.bs-mc-qty-wrap {
    grid-column: 2;
    order: 4;
    margin-bottom: 12px !important;
}

.bs-mc-remove-item {
    grid-column: 2;
    order: 5;
}

/* Typography & Visuals */
.bs-mc-vendor {
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

.bs-mc-name a {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #111 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
}

.bs-mc-name a:hover {
    color: #FFCC00 !important;
}

.bs-mc-price .amount {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #111 !important;
}

.variation dt,
.variation dd {
    font-size: 13px !important;
    color: #555 !important;
    font-weight: 400 !important;
    margin: 0 !important;
}

/* Custom Qty Box */
.bs-mc-qty-wrap {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    height: 36px;
    width: 100px;
    background: #fff;
}

.bs-mc-qty-btn {
    width: 32px !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    font-size: 16px !important;
    color: #333 !important;
    cursor: pointer !important;
    padding: 0 !important;
    outline: none !important;
}

.bs-mc-qty-btn:hover {
    background: #f0f0f0 !important;
    color: #FFCC00 !important;
}

.bs-mc-qty-input {
    width: 36px !important;
    height: 100% !important;
    text-align: center !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: 1px solid #ccc !important;
    border-right: 1px solid #ccc !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111 !important;
    -moz-appearance: textfield !important;
    background: transparent !important;
    padding: 0 !important;
}

.bs-mc-qty-input::-webkit-outer-spin-button,
.bs-mc-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bs-mc-remove-item {
    font-size: 13px !important;
    color: #888 !important;
    text-decoration: underline !important;
    transition: color 0.2s !important;
    display: inline-block !important;
}

.bs-mc-remove-item:hover {
    color: #e74c3c !important;
}

.elementor-menu-cart__product-remove {
    display: none !important;
}

/* Footer Subtotal & Buttons */
.elementor-menu-cart__subtotal {
    padding: 24px 40px 10px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px solid #e2e2e2 !important;
    background: #fff;
    flex-shrink: 0;
}

.elementor-menu-cart__subtotal strong {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #111 !important;
}

.elementor-menu-cart__subtotal .amount {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #111 !important;
}

.bs-mc-tax-note {
    padding: 0 40px 24px !important;
    margin: 0 !important;
    font-size: 12px !important;
    color: #666 !important;
    background: #fff;
    flex-shrink: 0;
}

.elementor-menu-cart__footer-buttons {
    padding: 0 40px 40px !important;
    display: flex !important;
    gap: 16px !important;
    flex-wrap: nowrap !important;
    background: #fff;
    flex-shrink: 0;
}

.elementor-button--view-cart,
.elementor-button--checkout {
    flex: 1 !important;
    min-height: 54px !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    font-family: 'Gotham', 'Montserrat', sans-serif !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-transform: none !important;
    margin: 0 !important;
    padding: 0 10px !important;
    transition: all 0.2s ease !important;
    border: 2px solid #111 !important;
    width: 100% !important;
    line-height: 1 !important;
}

.elementor-button--view-cart {
    background: #fff !important;
    color: #111 !important;
}

.elementor-button--view-cart:hover {
    background: #f9f9f9 !important;
}

.elementor-button--checkout {
    background: #111 !important;
    color: #fff !important;
}

.elementor-button--checkout:hover {
    background: #333 !important;
}

.widget_shopping_cart_content.bs-mc-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* =======================================================
   3. MOBILE RESPONSIVENESS
   ======================================================= */
@media screen and (max-width: 768px) {
    .elementor-menu-cart__main {
        width: 100vw !important;
        right: 0 !important;
        top: 0 !important;
        height: 100vh !important;
    }

    .bs-mc-header {
        padding: 24px 20px 20px !important;
    }

    .elementor-menu-cart__close-button {
        top: 22px !important;
        right: 20px !important;
    }

    .elementor-menu-cart__products {
        padding: 0 20px !important;
    }

    .elementor-menu-cart__product {
        grid-template-columns: 70px 1fr !important;
        gap: 0 16px !important;
        padding: 20px 0 !important;
    }

    .elementor-menu-cart__product-image {
        width: 70px !important;
    }

    .elementor-menu-cart__subtotal {
        padding: 20px 20px 10px !important;
    }

    .bs-mc-tax-note {
        padding: 0 20px 20px !important;
    }

    .elementor-menu-cart__footer-buttons {
        padding: 0 20px 30px !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .elementor-button--view-cart,
    .elementor-button--checkout {
        min-height: 50px !important;
        width: 100% !important;
    }
}