/* ==========================================================================
   Site Full – Cookie Consent Banner
   ========================================================================== */

/* Keyframes */
@keyframes sf-cookie-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* Banner container */
.sf-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.25);
    /* Estado inicial: fora da tela, animado via JS */
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease;
    will-change: transform, opacity;
}

.sf-cookie-banner.sf-cookie-banner--visible {
    transform: translateY(0);
    opacity: 1;
}

.sf-cookie-banner.sf-cookie-banner--hiding {
    animation: sf-cookie-slide-down 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Inner layout */
.sf-cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* Content area */
.sf-cookie-banner__content {
    flex: 1;
    min-width: 280px;
}

.sf-cookie-banner__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.sf-cookie-banner__text {
    font-size: 13px;
    margin: 0 0 10px 0;
    line-height: 1.6;
    opacity: 0.88;
}

/* Policy links */
.sf-cookie-banner__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
}

.sf-cookie-banner__link {
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.sf-cookie-banner__link:hover {
    opacity: 0.75;
    text-decoration: none;
}

.sf-cookie-banner__link-sep {
    font-size: 12px;
    opacity: 0.5;
}

/* Actions */
.sf-cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Base button */
.sf-cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid transparent;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease,
                box-shadow 0.15s ease,
                opacity 0.15s ease,
                background 0.15s ease;
    letter-spacing: 0.01em;
    font-family: inherit;
    background: transparent;
}

.sf-cookie-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sf-cookie-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Reject button */
.sf-cookie-btn--reject {
    opacity: 0.75;
}

.sf-cookie-btn--reject:hover {
    opacity: 1;
}

/* Learn More button: cores aplicadas via style inline no PHP */

/* Accept button */
.sf-cookie-btn--accept {
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sf-cookie-btn--accept:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.sf-cookie-btn--accept svg {
    flex-shrink: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .sf-cookie-banner__inner {
        padding: 16px 16px 20px;
        gap: 16px;
        flex-direction: column;
        align-items: stretch;
    }

    .sf-cookie-banner__content {
        min-width: 0;
    }

    .sf-cookie-banner__title {
        font-size: 15px;
    }

    .sf-cookie-banner__text {
        font-size: 13px;
    }

    .sf-cookie-banner__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    /* Aceitar ocupa linha inteira no mobile */
    .sf-cookie-btn--accept {
        grid-column: 1 / -1;
        padding: 12px 20px;
        font-size: 14px;
    }

    .sf-cookie-btn--reject,
    .sf-cookie-btn--learn {
        padding: 10px 12px;
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .sf-cookie-banner__actions {
        grid-template-columns: 1fr;
    }

    .sf-cookie-btn--accept {
        grid-column: auto;
    }
}
