#cookie-banner[hidden] {
    display: none !important;
}

#cookie-banner {
    box-sizing: border-box;
    position: fixed;
    /* top: 50%; */
    left: 50%;
    right: auto;
    bottom: -50px;
    transform: translate(-50%, -50%);

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 32px;
    row-gap: 10px;
    align-items: center;

    width: min(900px, calc(100% - 40px));
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 28px;

    background: #fff;
    color: #111;
    border: 1px solid #ddd;
    border-radius: 14px;
    box-shadow: 0 12px 48px #0003;
    z-index: 99999;
    font-family: Arial, sans-serif;
}

#cookie-banner h2 {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    color: #111;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

#cookie-banner p {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

#cookie-banner a {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#cookie-banner .cookie-actions {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

#cookie-banner .cookie-actions button {
    box-sizing: border-box;
    flex: none;
    min-width: 96px;
    min-height: 44px;
    margin: 0;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: normal;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

#cookie-banner #cookie-reject {
    background: #fff;
    color: #111;
    border-color: #999;
}

#cookie-banner #cookie-reject:hover {
    background: #f3f3f3;
    border-color: #555;
}

#cookie-banner #cookie-accept {
    background: #fff200;
    color: #111;
    border-color: #fff200;
}

#cookie-banner #cookie-accept:hover {
    background: #e6da00;
    border-color: #e6da00;
}

#cookie-banner .cookie-actions button:focus-visible {
    outline: 3px solid #111;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    #cookie-banner {
        grid-template-columns: minmax(0, 1fr);
        padding: 24px;
    }

    #cookie-banner .cookie-actions {
        grid-column: 1;
        grid-row: 3;
        margin-top: 10px;
        flex-wrap: wrap;
    }

    #cookie-banner .cookie-actions button {
        flex: 1;
        min-width: 0;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    #cookie-banner .cookie-actions button {
        transition: none;
    }
}