/* Cookie notice: only necessary cookies are used, so there is nothing to choose (REQUIREMENTS.md R-501) */

/* Banner - Fixed at bottom */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-footer, #2c1b16);
    color: var(--color-4, #F4F1EC);
    z-index: 99999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

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

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Text Section */
.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 500; /* a paragraph, not a heading, so the page's heading order stays intact (R-114) */
    color: var(--color-U-1, #ff8a27);
}

.cookie-description {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
}

.cookie-privacy-link {
    color: var(--color-U-1, #ff8a27);
    text-decoration: underline;
    font-size: 0.85rem;
}

.cookie-privacy-link:hover {
    color: var(--color-3, #C8A87A);
}

/* Actions Section */
.cookie-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

/* Cookie Buttons */
.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cookie-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-family: var(--font-general, sans-serif);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--color-U-1, #ff8a27);
    color: #2c1b16; /* dark text on orange: white failed WCAG AA */
}

.cookie-btn-accept:hover {
    background: #ffa04d; /* lighter on hover: the dark text keeps its contrast (R-114) */
}

/* Footer Cookie Settings Link */
.footer-cookie-link {
    cursor: pointer;
}

.footer-cookie-link:hover {
    color: var(--color-U-1, #ff8a27);
}

/* Responsive Design */
@media (max-width: 1020px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem;
    }

    .cookie-text {
        min-width: unset;
    }

    .cookie-actions {
        align-items: stretch;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }

}

@media (max-width: 480px) {
    .cookie-banner-content {
        padding: 1rem;
    }

    .cookie-title {
        font-size: 1.1rem;
    }

    .cookie-description {
        font-size: 0.85rem;
    }
}
