/* ============================================================
   FroggyPixel — Cookie Banner
   Prefijo: fp-cookie-banner (evita conflictos con otros estilos)
   ============================================================ */

/* ── Banner container ── */
.fp-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    /* Animación de entrada */
    animation: fp-cookie-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    /* Sombra sutil hacia arriba */
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.04);
}

/* ── Animación de entrada ── */
@keyframes fp-cookie-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ── Animación de salida ── */
.fp-cookie-banner--hiding {
    animation: fp-cookie-slide-down 0.35s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes fp-cookie-slide-down {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* ── Ícono ── */
.fp-cookie-banner__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #EEEDFE;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Texto ── */
.fp-cookie-banner__text {
    flex: 1;
    min-width: 280px;
}

.fp-cookie-banner__title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
}

.fp-cookie-banner__description {
    margin: 2px 0 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

.fp-cookie-banner__link {
    color: #534AB7;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
}

.fp-cookie-banner__link:hover {
    color: #3C3489;
}

/* ── Botones container ── */
.fp-cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ── Botón base ── */
.fp-cookie-banner__btn {
    border-radius: 8px;
    padding: 9px 22px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
    font-family: inherit;
    outline: none;
}

.fp-cookie-banner__btn:focus-visible {
    box-shadow: 0 0 0 2px #534AB7;
}

/* ── Rechazar ── */
.fp-cookie-banner__btn--reject {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #6b7280;
}

.fp-cookie-banner__btn--reject:hover {
    background: #f5f5f5;
    border-color: rgba(0, 0, 0, 0.18);
    color: #4b5563;
}

.fp-cookie-banner__btn--reject:active {
    transform: scale(0.98);
}

/* ── Aceptar ── */
.fp-cookie-banner__btn--accept {
    background: #534AB7;
    border: 1px solid #534AB7;
    color: #ffffff;
}

.fp-cookie-banner__btn--accept:hover {
    background: #3C3489;
    border-color: #3C3489;
}

.fp-cookie-banner__btn--accept:active {
    transform: scale(0.98);
}

/* ── Responsive: móvil ── */
@media (max-width: 640px) {
    .fp-cookie-banner {
        padding: 14px 20px;
        gap: 14px;
        flex-direction: column;
        align-items: stretch;
    }

    .fp-cookie-banner__icon {
        display: none;
    }

    .fp-cookie-banner__text {
        min-width: unset;
    }

    .fp-cookie-banner__actions {
        justify-content: stretch;
    }

    .fp-cookie-banner__btn {
        flex: 1;
        text-align: center;
        padding: 11px 16px;
    }
}