/**
 * Fecha Estimada de Reposición - Estilos WooCommerce
 *
 * @package AK-Murcia
 * @version 1.0.0
 */

/* ============================================================================
   CONTENEDOR PRINCIPAL
   ============================================================================ */

.ak-eta-container {
    margin: 15px 0;
    padding: 15px;
    background-color: #ffffff;
    border: none;
    border-radius: 4px;
}

/* ============================================================================
   BOTÓN DE CONSULTA
   ============================================================================ */

.ak-eta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background-color: #ff9800;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    width: 100%;
    max-width: 300px;
}

.ak-eta-button:hover {
    background-color: #f57c00;
    transform: translateY(-1px);
}

.ak-eta-button:active {
    transform: translateY(0);
}

.ak-eta-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================================
   ÁREA DE RESULTADO
   ============================================================================ */

.ak-eta-result {
    margin-top: 15px;
}

/* ============================================================================
   ESTADO: CARGANDO
   ============================================================================ */

.ak-eta-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 14px;
}

.ak-eta-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff9800;
    border-radius: 50%;
    animation: ak-eta-spin 1s linear infinite;
}

@keyframes ak-eta-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================================================
   ESTADO: ÉXITO
   ============================================================================ */

.ak-eta-success {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px;
    background-color: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: 4px;
    color: #2e7d32;
    font-size: 14px;
    line-height: 1.5;
}

.ak-eta-success .ak-eta-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.ak-eta-success .ak-eta-message {
    font-weight: 500;
}

/* ============================================================================
   ESTADO: ERROR
   ============================================================================ */

.ak-eta-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px;
    background-color: #ffebee;
    border: 1px solid #f44336;
    border-radius: 4px;
    color: #c62828;
    font-size: 14px;
    line-height: 1.5;
}

.ak-eta-error .ak-eta-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.ak-eta-error .ak-eta-message {
    font-weight: 500;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .ak-eta-container {
        padding: 12px;
    }

    .ak-eta-button {
        width: 100%;
        max-width: none;
        padding: 14px 20px;
        font-size: 15px;
    }

    .ak-eta-success,
    .ak-eta-error {
        padding: 10px 12px;
        font-size: 13px;
    }
}

