﻿.cookiebanner[hidden] {
    display: none !important;
}

.cookiebanner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 9999;
    background: transparent;
}

.cookiebanner__content {
    position: relative;
    margin: 0 auto;
    max-width: none; /* allow full-bleed */
    width: 100vw; /* span the full viewport width */
    height: fit-content;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    border: 1px solid #E2E8EE;
    box-shadow: 0 -6px 20px rgba(0,0,0,.08);
    border-radius: 0; /* no rounded corners when full width */
    padding: 18px 24px;
    display: grid;
    grid-template-columns: 1fr auto;
}

/* inner wrapper to constrain content width while keeping full-bleed background */
.cookiebanner__inner {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.cookiebanner__main {
    padding-right: 12px;
}

.cookiebanner__title {
    margin: 0 0 6px 0;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    color: #007078;
}

.cookiebanner__text {
    margin: 0;
    color: #4A5563;
}

.cookiebanner__close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 0;
    background: transparent;
    padding: 6px;
    cursor: pointer;
    color: #6B7280;
}

    .cookiebanner__close:hover,
    .cookiebanner__close:focus-visible {
        color: #111827;
        outline: 2px solid #00737722;
        border-radius: 6px;
    }

.cookiebanner__btn-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 20px;
}

.btn-container {
    display: inline-flex;
    gap: 20px;
}

.btn {
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
}

    .btn:focus-visible {
        outline: 2px solid #007377;
        outline-offset: 2px;
    }

.btn--primary {
    background-color: #007377;
    color: #fff;
}

    .btn--primary:hover {
        filter: brightness(0.95);
    }

.btn--ghost {
    background: transparent;
    color: #111827;
    border-color: #D1D5DB;
}

    .btn--ghost:hover {
        background: #F3F4F6;
    }

@media (max-width: 900px) {
    .cookiebanner__content {
        padding: 14px 16px;
        box-shadow: 0 -4px 14px rgba(0,0,0,.06);
    }

    /* Stack: text first, then actions */
    .cookiebanner__inner {
        grid-template-columns: 1fr; /* <— one column */
        gap: 14px;
        padding: 0 8px;
    }

    /* Buttons section spans full width and centers under text */
    .cookiebanner__btn-container {
        justify-content: center; /* center under the copy */
        padding-left: 0;
        width: 100%;
        margin-top: 4px;
    }

    .btn-container {
        gap: 12px;
        flex-wrap: wrap; /* wrap nicely on narrow phones */
        justify-content: center;
    }

    /* Slightly smaller copy on mobile */
    .cookiebanner__title {
        font-size: 22px;
        margin-bottom: 4px;
    }

    .cookiebanner__text {
        font-size: 14px;
        line-height: 1.5;
    }

    /* Bigger tap target for the X */
    .cookiebanner__close {
        top: 6px;
        right: 6px;
        padding: 12px;
    }
}
