/* ==========================================================================
   Banner de consentimiento de cookies - Farmacia Innovación
   Estilos para el banner inyectado por cookie-consent.js
   ========================================================================== */

.cookie-consent-banner {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 64rem;
    z-index: 9999;
    background: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #15803d;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 1.25rem 1.5rem;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    animation: cookie-slide-up 0.4s ease-out both;
}

@keyframes cookie-slide-up {
    from {
        opacity: 0;
        transform: translate(-50%, 1rem);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.cookie-consent-banner .cookie-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-consent-banner .cookie-content p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #4b5563;
}

.cookie-consent-banner .cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cookie-consent-banner .btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    padding: 0.55rem 1.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cookie-consent-banner .btn:focus-visible {
    outline: 2px solid #15803d;
    outline-offset: 2px;
}

.cookie-consent-banner .btn-accept {
    background: #16a34a;
    color: #ffffff;
}

.cookie-consent-banner .btn-accept:hover {
    background: #15803d;
    box-shadow: 0 4px 12px -2px rgba(22, 163, 74, 0.5);
}

.cookie-consent-banner .btn-reject {
    background: #ffffff;
    color: #374151;
    border-color: #d1d5db;
}

.cookie-consent-banner .btn-reject:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

/* Escritorio: texto y botones en una sola fila */
@media (min-width: 768px) {
    .cookie-consent-banner {
        bottom: 1.5rem;
    }

    .cookie-consent-banner .cookie-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
    }

    .cookie-consent-banner .cookie-buttons {
        flex-shrink: 0;
        flex-wrap: nowrap;
    }
}

/* Móvil: botones a ancho completo para pulsar mejor */
@media (max-width: 767px) {
    .cookie-consent-banner .btn {
        flex: 1 1 auto;
        text-align: center;
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }
}
