/* ========================================
   Cookie Banner Toast/Flyout Styles
   Overlay at bottom of screen until saved
   ======================================== */

/* Toast Container - Overlay at bottom */
.cookie-banner-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: #ffffff;
    border-top: 2px solid #d5d6dc;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    animation: slideUpFooter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: all;
}

.cookie-banner-footer-close-row {
    display: flex;
    flex-direction: row-reverse;
}

.cookie-banner-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 24px;
    max-width: 100%;
    font-family: 'Roboto Condensed', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Message Section */
.cookie-banner-footer-message {
    flex: 1;
    min-width: 0;
}

.cookie-banner-footer-message p {
    margin: 0;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    font-weight: 500;
}

.cookie-link {
    color: #1976d2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.cookie-link:hover {
    color: #1565c0;
    text-decoration: underline;
}

/* Controls Section */
.cookie-banner-footer-controls {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-cookie-footer {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    min-width: 100px;
}

.btn-cookie-footer {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #e0e0e0;
}

.btn-cookie-footer:hover {
    background-color: #e8e8e8;
    border-color: #d0d0d0;
    transform: translateY(-1px);
}

.btn-cookie-footer:active {
    transform: translateY(0);
}

/* Close Button */
.cookie-banner-footer-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: background-color 0.2s, color 0.2s;
    flex-shrink: 0;
    flex-direction: row-reverse;
    align-content: center;
}


.cookie-banner-footer-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.cookie-banner-footer-close:active {
    background-color: #efefef;
}

/* Animation */
@keyframes slideUpFooter {
    from {
        transform: translateY(120%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDownFooter {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(120%);
        opacity: 0;
    }
}

/* Slide out animation when dismissed */
.cookie-banner-footer.hide {
    animation: slideDownFooter 0.3s ease-in-out forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cookie-banner-footer-content {
        padding: 14px 16px;
        gap: 12px;
    }

    .cookie-banner-footer-message p {
        font-size: 13px;
    }

    .btn-cookie-footer {
        padding: 9px 16px;
        font-size: 12px;
        min-width: 90px;
    }
}

@media (max-width: 768px) {
    .cookie-banner-footer-content {
        flex-wrap: wrap;
        padding: 12px 12px;
        gap: 10px;
    }

    .cookie-banner-footer-message {
        flex: 1 1 100%;
        order: 1;
    }

    .cookie-banner-footer-message p {
        font-size: 12px;
        line-height: 1.4;
    }

    .cookie-banner-footer-controls {
        flex: 0 1 auto;
        order: 2;
        gap: 8px;
    }

    .cookie-banner-footer-close {
        flex: 0 0 auto;
        order: 3;
    }

    .btn-cookie-footer {
        padding: 8px 14px;
        font-size: 11px;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .cookie-banner-footer {
        border-top-width: 2px;
    }

    .cookie-banner-footer-content {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 10px;
        gap: 8px;
    }

    .cookie-banner-footer-message {
        order: 1;
    }

    .cookie-banner-footer-message p {
        font-size: 11px;
    }

    .cookie-banner-footer-controls {
        flex-direction: column;
        order: 2;
        gap: 6px;
        width: 100%;
    }

    .btn-cookie-footer {
        width: 100%;
        min-width: 0;
        padding: 10px 12px;
        font-size: 10px;
    }
}

/* Accessibility */
.btn-cookie-footer:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

.cookie-banner-footer-close:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

/* Ensure content doesn't get hidden behind the banner */
body.cookie-banner-visible {
    padding-bottom: var(--banner-height, 70px);
}

body.cookie-banner-visible a.back-to-top {
    bottom: calc(var(--banner-height, 70px) + 10px);
}

