.cookie-banner {
    position: fixed;
    inset: auto 0 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px 40px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    max-height: 85vh;
    overflow-y: auto;
    background: #f6f5f0;
    color: #000;
    border-top: 2px solid #000;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
    font-family: 'Barlow', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cookie-banner[hidden],
.cookie-banner [hidden] {
    display: none;
}

.cookie-banner-copy {
    flex: 1;
    min-width: 0;
}

.cookie-banner h2 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-banner a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.cookie-banner .cookie-status {
    margin-top: 10px;
    font-weight: 500;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
}

.cookie-banner-actions button {
    flex: 1;
    min-width: 150px;
    min-height: 44px;
    padding: 12px 18px;
    border: 1px solid #000;
    border-radius: 0;
    background: #000;
    color: #fff;
    font: 500 14px 'Barlow', 'Segoe UI', sans-serif;
    letter-spacing: 0.5px;
    white-space: nowrap;
    cursor: pointer;
}

.cookie-banner-actions button:hover {
    background: #8a6710;
}

.cookie-settings,
.policy-cookie-settings {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
    text-underline-offset: 3px;
}

.policy-cookie-settings {
    text-decoration: underline;
}

.cookie-settings:hover {
    color: #fff;
}

.cookie-banner :focus-visible,
.cookie-settings:focus-visible,
.policy-cookie-settings:focus-visible {
    outline: 2px solid #b09620;
    outline-offset: 4px;
}

@media (max-width: 768px) {
    body > .bottom-bar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 15px 20px;
    }

    .bottom-bar-left {
        grid-column: 1;
        grid-row: 1;
    }

    .bottom-bar-center {
        grid-column: 1;
        grid-row: 2;
    }

    .bottom-bar-right {
        display: contents;
    }

    .bottom-bar-right > a,
    .bottom-bar-right > .cookie-settings {
        grid-column: 2;
        justify-self: end;
        text-align: right;
    }

    .bottom-bar-right > a {
        grid-row: 1;
    }

    .bottom-bar-right > .cookie-settings {
        grid-row: 2;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 20px;
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    .cookie-banner-actions {
        flex-wrap: wrap;
    }
}
