/**
 * VFC Custom Notices CSS
 * This file contains all the styling for the custom notices.
 */

/* Container for all notices */
.vfc-custom-notices-container {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Base notice styling */
.vfc-notice {
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    opacity: 0;
    transform: translateX(50px);
    animation: vfcSlideIn 0.3s forwards;
}

/* Notice types with color schemes */
.vfc-notice.vfc-notice-success {
    background-color: #e7f5e9;
    border-left: 4px solid #46b450;
    color: #1e7d32;
}

.vfc-notice.vfc-notice-error {
    background-color: #fce8e8;
    border-left: 4px solid #dc3232;
    color: #a71d1d;
}

.vfc-notice.vfc-notice-warning {
    background-color: #fff8e5;
    border-left: 4px solid #ffb900;
    color: #a36700;
}

.vfc-notice.vfc-notice-info {
    background-color: #e5f5fa;
    border-left: 4px solid #00a0d2;
    color: #0073aa;
}

/* Notice icon */
.vfc-notice-icon {
    margin-right: 10px;
    font-size: 20px;
    line-height: 1;
}

/* Notice content */
.vfc-notice-content {
    flex: 1;
    line-height: 1.5;
}

.vfc-notice-content p {
    margin: 0 0 5px 0;
}

.vfc-notice-content p:last-child {
    margin-bottom: 0;
}

.vfc-notice-content a {
    color: inherit;
    text-decoration: underline;
}

/* WooCommerce View Cart button styling */
.vfc-notice-content .button.wc-forward {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 10px;
    border-radius: 3px;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid currentColor;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.vfc-notice-content .button.wc-forward:hover {
    background-color: rgba(255, 255, 255, 1);
    text-decoration: none;
}

/* Close button */
.vfc-notice-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.vfc-notice-close:hover {
    opacity: 1;
}

.vfc-notice-close:before {
    content: '×';
    font-size: 20px;
}

/* Animations */
@keyframes vfcSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes vfcSlideOut {
    to {
        opacity: 0;
        transform: translateX(50px);
    }
}

.vfc-notice.vfc-notice-removing {
    animation: vfcSlideOut 0.3s forwards;
}

/* Responsive styles */
@media screen and (max-width: 600px) {
    .vfc-custom-notices-container {
        max-width: calc(100% - 20px);
        top: 10px;
        right: 10px;
        left: 10px;
        margin: 0 auto;
    }
    
    .vfc-notice {
        padding: 12px 15px;
        margin-bottom: 8px;
        border-radius: 6px;
    }
    
    .vfc-notice-icon {
        margin-right: 8px;
        font-size: 18px;
        min-width: 18px;
    }
    
    .vfc-notice-content {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .vfc-notice-content p {
        margin: 0 0 4px 0;
    }
    
    .vfc-notice-content .button.wc-forward {
        display: block;
        margin: 8px 0 0 0;
        padding: 6px 12px;
        width: 100%;
        text-align: center;
        font-size: 14px;
    }
    
    .vfc-notice-close {
        top: 8px;
        right: 8px;
        width: 24px;
        height: 24px;
        line-height: 24px;
    }
    
    .vfc-notice-close:before {
        font-size: 24px;
    }
}

/* Hide WooCommerce notices */
.woocommerce-notices-wrapper {
    display: none !important;
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info,
.woocommerce-notice {
    display: none !important;
}

/* Ensure our notices container is above other elements */
.vfc-custom-notices-container {
    z-index: 999999;
}

/* Handle WooCommerce checkout page notices */
.woocommerce-checkout .woocommerce-NoticeGroup,
.woocommerce-checkout .woocommerce-notices-wrapper {
    display: none !important;
}

/* Handle account page notices */
.woocommerce-account .woocommerce-notices-wrapper {
    display: none !important;
}

/* Handle cart notices */
.woocommerce-cart .woocommerce-notices-wrapper {
    display: none !important;
} 