/* ============================================
   WOOCOMMERCE MESSAGES STYLING
   ============================================ */

/* Success Message - Modern Black/White */
.woocommerce-message {
    background: #fff !important;
    color: #000 !important;
    border: none !important;
    border-left: 4px solid #22c55e !important;
    padding: 16px 20px 16px 50px !important;
    margin-bottom: 24px !important;
    list-style: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    position: relative !important;
    overflow: visible !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    border-radius: 4px !important;
    display: block !important;
    animation: slideInDown 0.3s ease-out !important;
    line-height: 1.6 !important;
}

.woocommerce-message::before {
    content: '✓' !important;
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    background: #22c55e !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

.woocommerce-message a {
    color: #22c55e !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
    border-bottom: 2px solid #22c55e !important;
}

.woocommerce-message a:hover {
    color: #16a34a !important;
}

.woocommerce-message a.button {
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    border-bottom: none !important;
    padding: 8px 16px !important;
    border-radius: 3px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    transition: all 0.2s ease !important;
    margin-left: 12px !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

.woocommerce-message a.button:hover {
    background: #222 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Error Message - Red Accent */
.woocommerce-error,
.woocommerce-error li {
    background: #fff !important;
    color: #000 !important;
    border: none !important;
    border-left: 4px solid #ef4444 !important;
    padding: 16px 20px !important;
    margin-bottom: 24px !important;
    list-style: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    position: relative !important;
    overflow: visible !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1) !important;
    border-radius: 4px !important;
    display: block !important;
    animation: slideInDown 0.3s ease-out !important;
    line-height: 1.6 !important;
}

.woocommerce-error::before {
    content: '!' !important;
    position: absolute !important;
    left: 12px !important;
    top: 16px !important;
    width: 24px !important;
    height: 24px !important;
    background: #ef4444 !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

.woocommerce-error {
    padding-left: 50px !important;
}

.woocommerce-error li {
    margin: 8px 0 0 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-left: none !important;
    animation: none !important;
    padding-left: 0 !important;
}

.woocommerce-error li::before {
    content: '\2022 ' !important;
    color: #ef4444 !important;
    font-weight: 700 !important;
    margin-right: 4px !important;
}

.woocommerce-error a {
    color: #ef4444 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
    border-bottom: 2px solid #ef4444 !important;
}

.woocommerce-error a:hover {
    color: #dc2626 !important;
    border-bottom-color: #dc2626 !important;
}

.woocommerce-error a.button {
    background: #ef4444 !important;
    color: #fff !important;
    border: none !important;
    border-bottom: none !important;
    padding: 8px 16px !important;
    border-radius: 3px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
    margin: 12px 0 0 0 !important;
}

.woocommerce-error a.button:hover {
    background: #dc2626 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

/* Info Message - Blue Accent */
.woocommerce-info {
    background: #fff !important;
    color: #000 !important;
    border: none !important;
    border-left: 4px solid #3b82f6 !important;
    padding: 20px 24px !important;
    margin-bottom: 24px !important;
    list-style: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12) !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    animation: slideInDown 0.3s ease-out !important;
}

.woocommerce-info::before {
    content: 'ℹ' !important;
    position: relative !important;
    width: 24px !important;
    height: 24px !important;
    background: #3b82f6 !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
    margin-left: 0 !important;
    line-height: 1 !important;
}

.woocommerce-info a {
    color: #3b82f6 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
    border-bottom: 2px solid #3b82f6 !important;
}

.woocommerce-info a:hover {
    color: #1d4ed8 !important;
    border-bottom-color: #1d4ed8 !important;
}

.woocommerce-info a.button {
    background: #3b82f6 !important;
    color: #fff !important;
    border: none !important;
    border-bottom: none !important;
    padding: 8px 16px !important;
    border-radius: 3px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    transition: all 0.2s ease !important;
    margin-left: 12px !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

.woocommerce-info a.button:hover {
    background: #1d4ed8 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

/* Close/Dismiss Button */
.woocommerce-message .close,
.woocommerce-error .close,
.woocommerce-info .close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 24px !important;
    height: 24px !important;
    background: transparent !important;
    border: none !important;
    color: #999 !important;
    cursor: pointer !important;
    font-size: 20px !important;
    line-height: 1 !important;
    padding: 0 !important;
    transition: color 0.2s ease !important;
}

.woocommerce-message .close:hover,
.woocommerce-error .close:hover,
.woocommerce-info .close:hover {
    color: #000 !important;
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RTL Support */
[dir="rtl"] .woocommerce-message,
[dir="rtl"] .woocommerce-error,
[dir="rtl"] .woocommerce-info {
    border-left: none !important;
    border-right: 4px solid !important;
    padding-left: 20px !important;
    padding-right: 50px !important;
    text-align: right !important;
}

[dir="rtl"] .woocommerce-message::before,
[dir="rtl"] .woocommerce-info::before {
    right: 12px !important;
    left: auto !important;
}

[dir="rtl"] .woocommerce-error {
    padding-right: 50px !important;
    padding-left: 20px !important;
}

[dir="rtl"] .woocommerce-error::before {
    right: 12px !important;
    left: auto !important;
}

[dir="rtl"] .woocommerce-message a.button,
[dir="rtl"] .woocommerce-error a.button,
[dir="rtl"] .woocommerce-info a.button {
    margin-left: 0 !important;
    margin-right: 12px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .woocommerce-message,
    .woocommerce-error,
    .woocommerce-info {
        padding: 12px 16px 12px 44px !important;
        font-size: 13px !important;
    }

    .woocommerce-message::before,
    .woocommerce-info::before,
    .woocommerce-error::before {
        width: 20px !important;
        height: 20px !important;
        font-size: 12px !important;
        left: 10px !important;
    }

    .woocommerce-error {
        padding-left: 44px !important;
    }

    .woocommerce-message a.button,
    .woocommerce-error a.button,
    .woocommerce-info a.button {
        padding: 6px 12px !important;
        font-size: 10px !important;
        margin-left: 8px !important;
        margin-top: 0 !important;
    }
}

@media (max-width: 480px) {
    .woocommerce-message,
    .woocommerce-error,
    .woocommerce-info {
        padding: 12px 16px 12px 42px !important;
        font-size: 12px !important;
    }

    .woocommerce-message::before,
    .woocommerce-info::before,
    .woocommerce-error::before {
        width: 18px !important;
        height: 18px !important;
        font-size: 10px !important;
        left: 10px !important;
    }

    .woocommerce-error {
        padding-left: 42px !important;
    }

    .woocommerce-message a.button,
    .woocommerce-error a.button,
    .woocommerce-info a.button {
        padding: 6px 12px !important;
        font-size: 10px !important;
        margin-left: 0 !important;
        display: block !important;
        margin-top: 8px !important;
    }
}
