/**
 * Global AJAX Error Handler Styles
 * 
 * @package Novateplica_Marketplace
 * @since 1.0.0
 */

.novateplica-ajax-error {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    animation: slideInDown 0.3s ease-out;
}

.novateplica-ajax-error .error-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.novateplica-ajax-error svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    stroke: white;
}

.novateplica-ajax-error span {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
}

.novateplica-ajax-error .error-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.novateplica-ajax-error .error-close:hover {
    opacity: 0.8;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .novateplica-ajax-error {
        left: 10px;
        right: 10px;
        max-width: none;
        top: 10px;
    }

    .novateplica-ajax-error span {
        font-size: 13px;
    }
}

/* With admin bar */
@media (max-height: 600px) {
    .novateplica-ajax-error {
        top: auto;
        bottom: 20px;
    }

    @keyframes slideInDown {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}
