/* ========== ТОЛЬКО ДЛЯ ОШИБОК ========== */

.woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-error {
    position: relative !important;
    padding: 16px 20px 16px 52px !important;
    margin: 0 0 20px 0 !important;
    border: none !important;
    border-radius: 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    list-style: none !important;
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%) !important;
    border-left: 4px solid #EF4444 !important;
    color: #991B1B !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    animation: wcnNoticeSlideIn 0.3s ease forwards !important;
}

@keyframes wcnNoticeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.woocommerce-error::before {
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 20px !important;
    font-family: 'dashicons' !important;
    content: "\f158" !important;
    color: #EF4444 !important;
    line-height: 1 !important;
}

.woocommerce-error .wcn-notice-close {
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    font-size: 20px !important;
    color: #991B1B !important;
    opacity: 0.6 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
}

.woocommerce-error .wcn-notice-close:hover {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

.woocommerce-error a {
    color: #991B1B !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

.woocommerce-error li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-error li:not(:first-child) {
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(239, 68, 68, 0.2) !important;
}

@media (max-width: 768px) {
    .woocommerce-error {
        padding: 14px 16px 14px 48px !important;
        font-size: 13px !important;
    }
    .woocommerce-error::before {
        left: 14px !important;
        font-size: 18px !important;
    }
}
/* ========== УВЕДОМЛЕНИЯ ОБ ОШИБКАХ ========== */

.woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-error {
    position: relative !important;
    padding: 16px 20px 16px 52px !important;
    margin: 0 0 20px 0 !important;
    border: none !important;
    border-radius: 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    list-style: none !important;
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%) !important;
    border-left: 4px solid #EF4444 !important;
    color: #991B1B !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
    animation: wcnErrorSlideIn 0.3s ease forwards !important;
}

@keyframes wcnErrorSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Иконка ошибки */
.woocommerce-error::before {
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 20px !important;
    font-family: 'dashicons' !important;
    content: "\f158" !important;
    color: #EF4444 !important;
    line-height: 1 !important;
}

/* Кнопка закрытия */
.woocommerce-error .wcn-notice-close {
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    font-size: 20px !important;
    color: #991B1B !important;
    opacity: 0.6 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
}

.woocommerce-error .wcn-notice-close:hover {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

@media (max-width: 768px) {
    .woocommerce-error {
        padding: 14px 16px 14px 48px !important;
        font-size: 13px !important;
    }
    .woocommerce-error::before {
        left: 14px !important;
        font-size: 18px !important;
    }
}

/* Плейсхолдер в примечании к заказу */
.woocommerce-checkout textarea#order_comments::placeholder {
    color: #9CA3AF !important;
    font-style: italic;
    opacity: 1;
}

.woocommerce-checkout textarea#order_comments::-webkit-input-placeholder {
    color: #9CA3AF !important;
    font-style: italic;
}

.woocommerce-checkout textarea#order_comments::-moz-placeholder {
    color: #9CA3AF !important;
    font-style: italic;
    opacity: 1;
}