
/* ==========================================
   COMBOS EKSEL
   CONFIRMACIÓN PROFESIONAL DEL CARRITO
========================================== */

/* CONTENEDOR DE NOTIFICACIONES */

.confirmaciones-contenedor {
    position: fixed;
    top: 105px;
    right: 22px;
    z-index: 9999;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;

    width: min(420px, calc(100% - 32px));

    pointer-events: none;
}

/* VENTANA DE CONFIRMACIÓN */

.confirmacion-carrito {
    position: relative;

    width: 100%;
    padding: 28px 24px 24px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 5px solid #073b83;
    border-radius: 16px;

    box-shadow:
        0 15px 45px rgba(15, 23, 42, 0.18),
        0 4px 12px rgba(15, 23, 42, 0.08);

    text-align: center;

    pointer-events: auto;

    animation: confirmacion-entrada 0.35s ease-out;
}

/* ANIMACIÓN DE ENTRADA */

@keyframes confirmacion-entrada {
    from {
        opacity: 0;
        transform: translateY(-18px) scale(0.96);
    }

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

/* BOTÓN PARA CERRAR */

.confirmacion-cerrar {
    position: absolute;
    top: 10px;
    right: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    background: #f1f5f9;
    border: none;
    border-radius: 50%;

    color: #64748b;
    font-size: 23px;
    line-height: 1;

    cursor: pointer;
    transition: all 0.2s ease;
}

.confirmacion-cerrar:hover {
    background: #fee2e2;
    color: #e52b39;
}

/* ICONO DE CONFIRMACIÓN */

.confirmacion-icono {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;
    margin: 0 auto 16px;

    background: #dcfce7;
    border: 3px solid #bbf7d0;
    border-radius: 50%;

    color: #15803d;
    font-size: 34px;
    font-weight: 900;
}

/* TÍTULO */

.confirmacion-carrito h3 {
    margin: 0 0 10px;

    color: #073b83;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.3;
}

/* DESCRIPCIÓN */

.confirmacion-carrito p {
    margin: 0 0 22px;

    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* BOTONES DE ACCIÓN */

.confirmacion-acciones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.confirmacion-seguir,
.confirmacion-ver-carrito {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 11px 12px;

    border-radius: 9px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;

    cursor: pointer;
    transition: all 0.2s ease;
}

/* SEGUIR COMPRANDO */

.confirmacion-seguir {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #073b83;
}

.confirmacion-seguir:hover {
    background: #eff6ff;
    border-color: #073b83;
}

/* VER CARRITO */

.confirmacion-ver-carrito {
    background: #073b83;
    border: 1px solid #073b83;
    color: #ffffff;
}

.confirmacion-ver-carrito:hover {
    background: #e52b39;
    border-color: #e52b39;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================
   MENSAJES GENERALES
========================================== */

.mensaje-general {
    position: relative;

    width: 100%;
    padding: 17px 45px 17px 18px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #15803d;
    border-radius: 11px;

    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.12);

    color: #166534;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;

    pointer-events: auto;

    animation: confirmacion-entrada 0.35s ease-out;
}

.mensaje-error {
    background: #fff7f7;
    border-left-color: #dc2626;
    color: #b91c1c;
}

.mensaje-exito {
    background: #f0fdf4;
    border-left-color: #16a34a;
    color: #166534;
}

.mensaje-general button {
    position: absolute;
    top: 9px;
    right: 11px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    background: transparent;
    border: none;

    color: inherit;
    font-size: 23px;

    cursor: pointer;
}

/* ==========================================
   ACCESIBILIDAD
========================================== */

.confirmacion-cerrar:focus-visible,
.confirmacion-seguir:focus-visible,
.confirmacion-ver-carrito:focus-visible,
.mensaje-general button:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

/* ==========================================
   DISEÑO PARA CELULARES
========================================== */

@media (max-width: 600px) {

    .confirmaciones-contenedor {
        top: 15px;
        right: 12px;
        left: 12px;

        width: auto;
        align-items: stretch;
    }

    .confirmacion-carrito {
        padding: 24px 17px 18px;
        border-radius: 13px;
    }

    .confirmacion-icono {
        width: 54px;
        height: 54px;
        margin-bottom: 12px;
        font-size: 29px;
    }

    .confirmacion-carrito h3 {
        font-size: 18px;
    }

    .confirmacion-carrito p {
        font-size: 13px;
    }

    .confirmacion-acciones {
        gap: 8px;
    }

    .confirmacion-seguir,
    .confirmacion-ver-carrito {
        font-size: 12px;
        padding: 10px 7px;
    }
}

@media (max-width: 350px) {

    .confirmacion-acciones {
        grid-template-columns: 1fr;
    }
}

/* RESPETAR PREFERENCIAS DE MOVIMIENTO */

@media (prefers-reduced-motion: reduce) {

    .confirmacion-carrito,
    .mensaje-general {
        animation: none;
    }

    .confirmacion-seguir,
    .confirmacion-ver-carrito,
    .confirmacion-cerrar {
        transition: none;
    }
}
