/* EXC Prevent Mixed Shipment - Custom Warning Styles */

/* Base warning styles - completely independent of other notices */
.exc-shipping-conflict-warning {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    display: none;
    position: relative;
    overflow: hidden;
}

.exc-shipping-conflict-warning::before {
    content: "⚠️";
    font-size: 18px;
    margin-right: 10px;
}

.exc-shipping-conflict-warning.show {
    display: block;
    animation: excSlideIn 0.3s ease-out;
}

@keyframes excSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Different styles for different conflict types */
.exc-conflict-hot-tub {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.exc-conflict-cover {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.exc-conflict-other {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

/* Grid warning - shown above the entire product grid */
.exc-grid-warning {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    text-align: center;
    font-size: 16px;
    padding: 20px;
    margin: 0px auto 20px auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    font-weight: 600;
    width: var(--content-width);
    max-width: 100%;
}

.exc-grid-warning::before {
    content: '🚫';
    margin-right: 10px;
    font-size: 18px;
}

/* Single product warning */
.exc-single-product-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
}

/* Grid container styling when it has conflicts */
.exc-has-conflicts {
    position: relative;
}

/* .exc-has-conflicts::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(231, 76, 60, 0.05);
    border: 2px solid rgba(231, 76, 60, 0.2);
    border-radius: 8px;
    pointer-events: none;
    z-index: 1;
} */

/* Add to cart button blocking when there's a conflict */
.exc-cart-blocked .add_to_cart_button,
.exc-cart-blocked button[name="add-to-cart"],
.exc-cart-blocked .single_add_to_cart_button,
.exc-cart-blocked .brxe-woocommerce-cart-button button {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
    filter: grayscale(100%);
}

/* Alternative: Completely hide add to cart when blocked */
.exc-hide-add-to-cart .add_to_cart_button,
.exc-hide-add-to-cart button[name="add-to-cart"],
.exc-hide-add-to-cart .single_add_to_cart_button,
.exc-hide-add-to-cart .brxe-woocommerce-cart-button {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .exc-shipping-conflict-warning {
        padding: 12px 15px;
        font-size: 13px;
        margin: 10px 0;
    }
    
    .exc-shipping-conflict-warning::before {
        font-size: 16px;
        margin-right: 8px;
    }
    
    .exc-grid-warning {
        padding: 15px;
        font-size: 14px;
        margin: 15px 0;
    }
    
    .exc-grid-warning::before {
        font-size: 16px;
        margin-right: 8px;
    }
}

/* Integration with Bricks elements */
.brxe-product .exc-shipping-conflict-warning {
    margin-top: 0;
}

.brxe-woocommerce-products .exc-shipping-conflict-warning {
    margin-bottom: 10px;
}

/* Hover effects for better UX */
.exc-shipping-conflict-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
    transition: all 0.2s ease;
}

/* Ensure warning appears above other elements */
.exc-shipping-conflict-warning {
    z-index: 10;
    position: relative;
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .exc-shipping-conflict-warning {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
} 