/* WooCommerce Flexible Checkout Engine - Custom Notices */

.wfce-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    border-radius: 8px;
    border-left: 4px solid;
    background: #f8f9fa;
    font-size: 14px;
    line-height: 1.6;
    animation: wfce-slide-in 0.3s ease-out;
    position: relative;
}

@keyframes wfce-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wfce-notice-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.wfce-notice-content {
    flex: 1;
}

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

.wfce-notice-dismiss {
    flex-shrink: 0;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    transition: opacity 0.2s;
}

.wfce-notice-dismiss:hover {
    opacity: 1;
}

/* Notice Types */

.wfce-notice-info {
    border-left-color: #0073aa;
    background: #e5f5fa;
    color: #004567;
}

.wfce-notice-info .wfce-notice-icon {
    color: #0073aa;
}

.wfce-notice-success {
    border-left-color: #46b450;
    background: #ecf7ed;
    color: #1e4620;
}

.wfce-notice-success .wfce-notice-icon {
    color: #46b450;
}

.wfce-notice-warning {
    border-left-color: #ffb900;
    background: #fff8e5;
    color: #5f4b00;
}

.wfce-notice-warning .wfce-notice-icon {
    color: #ffb900;
}

.wfce-notice-error {
    border-left-color: #dc3232;
    background: #fef1f1;
    color: #5a1a1a;
}

.wfce-notice-error .wfce-notice-icon {
    color: #dc3232;
}

.wfce-notice-promo {
    border-left-color: #9b51e0;
    background: linear-gradient(135deg, #f5f0ff 0%, #faf5ff 100%);
    color: #4a1a6a;
    box-shadow: 0 2px 8px rgba(155, 81, 224, 0.1);
}

.wfce-notice-promo .wfce-notice-icon {
    color: #9b51e0;
}

.wfce-notice-promo .wfce-notice-content {
    font-weight: 500;
}

/* Dismiss animation */
.wfce-notice.wfce-notice-dismissed {
    animation: wfce-slide-out 0.3s ease-out forwards;
}

@keyframes wfce-slide-out {
    to {
        opacity: 0;
        transform: translateX(20px);
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .wfce-notice {
        padding: 12px 16px;
        gap: 10px;
        font-size: 13px;
    }

    .wfce-notice-icon {
        width: 18px;
        height: 18px;
    }
}

/* Strong emphasis in notices */
.wfce-notice strong {
    font-weight: 600;
}

/* Links in notices */
.wfce-notice a {
    color: inherit;
    text-decoration: underline;
    font-weight: 500;
}

.wfce-notice a:hover {
    opacity: 0.8;
}