/* ============================================
   BioOx Cart Modal Styles - Figma Design
   ============================================ */

/* Cart Container */
.elementor-menu-cart__container {
    background: transparent !important;
    padding: 0 !important;
}

.elementor-menu-cart__main {
    width: 440px !important;
    max-width: 440px !important;
}

/* Responsive: Tablet and below */
@media (max-width: 768px) {
    .elementor-menu-cart__main {
        width: 90vw !important;
        max-width: 440px !important;
    }
}

/* Responsive: Mobile */
@media (max-width: 480px) {
    .elementor-menu-cart__main {
        width: 95vw !important;
        max-width: 440px !important;
    }
}

.widget_shopping_cart_content {
    background: var(--e-global-color-6e277d, #f5f0e7) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    display: flex !important;
    flex-direction: column !important;
    max-height: 100vh !important;
}

/* ============================================
   Custom Header
   ============================================ */
.bioox-cart-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 6px 16px !important;
    border-bottom: none !important;
    background: #fff !important;
}

.bioox-cart-header__title {
    font-family: Inter, sans-serif !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    color: #000 !important;
    margin: 0 !important;
}

.bioox-cart-header__close {
    width: 24px !important;
    height: 24px !important;
    cursor: pointer !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: opacity 0.2s !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 9999 !important;
}

.bioox-cart-header__close:hover {
    opacity: 0.7 !important;
}

.bioox-cart-header__close svg {
    width: 24px !important;
    height: 24px !important;
    fill: #000 !important;
    pointer-events: none !important;
}

/* Hide default close button */
.elementor-menu-cart__close-button {
    display: none !important;
}

/* ============================================
   Products List
   ============================================ */
.elementor-menu-cart__products {
    background: var(--e-global-color-6e277d, #f5f0e7) !important;
    padding: 22px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    max-height: none !important;
}

.elementor-menu-cart__product {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    align-self: stretch !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    margin: 0 !important;
}

/* ============================================
   Product Image
   ============================================ */
.elementor-menu-cart__product-image {
    flex-shrink: 0 !important;
    width: 65px !important;
    height: 65px !important;
    margin: 0 !important;
    position: relative !important;
}

.elementor-menu-cart__product-image a {
    display: block !important;
    width: 65px !important;
    height: 65px !important;
    border-radius: 10px !important;
    border: 1px solid #ffffff !important;
    overflow: hidden !important;
    position: relative !important;
}

.elementor-menu-cart__product-image img {
    width: 65px !important;
    height: 65px !important;
    object-fit: cover !important;
    display: block !important;
}

/* ============================================
   Product Details (Content Block)
   ============================================ */
/* Removed old styles - now handled by bioox-product-text wrapper */

/* Variation text styling */
.bioox-product-text .elementor-menu-cart__product-name .variation,
.elementor-menu-cart__product-name .variation,
.elementor-menu-cart__product-name .woocommerce-product-attributes {
    font-family: Inter, sans-serif !important;
    font-weight: 400 !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    color: #000 !important;
    display: block !important;
    text-align: left !important;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
}

/* ============================================
   Product Content Block (wraps text + CTA)
   ============================================ */
.bioox-product-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    flex: 1 !important;
    min-width: 0 !important;
}

/* ============================================
   Product Text Block (name-wrap + price row)
   ============================================ */
.bioox-product-text {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    align-self: stretch !important;
    width: 100% !important;
    padding: 2px 0 !important;
    gap: 15px !important;
    font-size: 12px !important;
    min-width: 0 !important;
}

/* Product Name Wrap (contains name + variation) */
.bioox-product-text .product-name-wrap {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0 !important;
    min-width: 84px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Product Name (inside name-wrap) */
.bioox-product-text .elementor-menu-cart__product-name {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bioox-product-text .elementor-menu-cart__product-name a {
    font-family: Inter, sans-serif !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    line-height: normal !important;
    color: var(--sections-title-color, #000) !important;
    text-decoration: none !important;
    text-align: left !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Product Variation (inside name-wrap) */
.bioox-product-text .product-variation {
    font-family: Inter, sans-serif !important;
    font-weight: 400 !important;
    font-size: 10px !important;
    line-height: normal !important;
    color: var(--sections-title-color, #000) !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Price (sibling to name-wrap, not nested) */
.bioox-product-text .product-price {
    font-family: Inter, sans-serif !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    line-height: normal !important;
    color: var(--sections-title-color, #000) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: block !important;
    text-align: right !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   Product CTA Block (quantity + remove)
   ============================================ */
.bioox-product-cta {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    align-self: stretch !important;
    width: 100% !important;
}

/* ============================================
   Quantity Pill Controls
   ============================================ */
.bioox-cart-qty-pill {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #000 !important;
    border-radius: 100px !important;
    overflow: hidden !important;
    background: #fff !important;
}

.bioox-cart-qty-pill__btn {
    width: 25px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    transition: background 0.2s !important;
}

.bioox-cart-qty-pill__btn:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

.bioox-cart-qty-pill__btn svg {
    width: 14px !important;
    height: 14px !important;
    stroke: #000 !important;
    stroke-width: 2 !important;
}

.bioox-cart-qty-pill__value {
    width: 27px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: Inter, sans-serif !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    color: #000 !important;
    user-select: none !important;
}

/* ============================================
   Remove Button
   ============================================ */
.elementor-menu-cart__product-remove {
    position: relative !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
}

.elementor-menu-cart__product-remove a {
    position: relative !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: background 0.2s !important;
    opacity: 1 !important;
}

.elementor-menu-cart__product-remove a:hover {
    background: #e5e5e5 !important;
}

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

.elementor-menu-cart__product-remove svg {
    width: 24px !important;
    height: 24px !important;
}

/* Fallback styling for native remove link */
.elementor-menu-cart__product .remove_from_cart_button {
    position: relative !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    padding: 0 !important;
    background: transparent !important;
}

.elementor-menu-cart__product .remove_from_cart_button:hover {
    background: #e5e5e5 !important;
}

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

.elementor-menu-cart__product .remove_from_cart_button svg {
    width: 24px !important;
    height: 24px !important;
}

/* ============================================
   Callout Image
   ============================================ */
.bioox-cart-callout {
    display: block !important;
    width: 100% !important;
    padding: 0 1rem 1rem !important;
    box-sizing: border-box !important;
}

.bioox-cart-callout img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    display: block !important;
}

/* ============================================
   Placeholder Graphic (Legacy)
   ============================================ */
.bioox-cart-graphic {
    background: #e4d8c3 !important;
    height: 103px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: Inter, sans-serif !important;
    font-size: 12px !important;
    color: #000 !important;
    margin: 0 16px 20px !important;
}

/* ============================================
   Subtotal Section
   ============================================ */
.elementor-menu-cart__subtotal {
    padding: 0 16px 20px !important;
    background: var(--e-global-color-6e277d, #f5f0e7) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-family: Inter, sans-serif !important;
    font-size: 18px !important;
    color: #000 !important;
    margin: 0 !important;
    border: none !important;
    flex-shrink: 0 !important;
}

.elementor-menu-cart__subtotal strong {
    font-weight: 700 !important;
}

/* ============================================
   Divider (Legacy)
   ============================================ */
.bioox-cart-divider {
    height: 1px !important;
    background: #e4d8c3 !important;
    margin: 0 16px 20px !important;
}

/* ============================================
   Footer Buttons
   ============================================ */
.elementor-menu-cart__footer-buttons {
    padding: 0 16px 16px !important;
    background: var(--e-global-color-6e277d, #f5f0e7) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin: 0 !important;
    border: none !important;
    flex-shrink: 0 !important;
}

.elementor-menu-cart__footer-buttons .elementor-button {
    width: 100% !important;
    padding: 20px 10px !important;
    background: transparent !important;
    border: 1px solid #000 !important;
    border-radius: 10px !important;
    font-family: Inter, sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #000 !important;
    transition: background 0.2s, color 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
}

.elementor-menu-cart__footer-buttons .elementor-button:hover {
    background: #000 !important;
    color: #fff !important;
}

.elementor-menu-cart__footer-buttons .elementor-button--view-cart {
    display: none !important;
}

.elementor-menu-cart__footer-buttons .elementor-button svg {
    width: 18px !important;
    height: 18px !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
}

/* ============================================
   Empty Cart Message
   ============================================ */
.widget_shopping_cart_content .woocommerce-mini-cart__empty-message,
.widget_shopping_cart_content p.woocommerce-mini-cart__empty-message {
    text-align: center !important;
    padding: 40px 16px !important;
    margin: 0 !important;
    font-family: Inter, sans-serif !important;
    font-size: 14px !important;
    color: #666 !important;
}
