.cookie-bar,
.cookie-reopen {
    box-sizing: border-box;
    font-family: "OpenSans-Regular", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #000;
}

.cookie-bar {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 100000;
    max-width: 720px;
    max-height: calc(100vh - 32px);
    margin: 0 auto;
    padding: 20px 22px;
    overflow: auto;
    background: #fff;
    border: 2px solid #000;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.cookie-bar[hidden],
.cookie-panel[hidden],
.cookie-reopen[hidden] {
    display: none !important;
}

.cookie-bar-title {
    margin: 0 0 8px;
    font-family: "OpenSans-Bold", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.3;
}

.cookie-bar p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-bar a {
    color: #000;
    text-decoration: underline;
}

.cookie-bar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.cookie-bar-actions button,
.cookie-panel button,
.cookie-reopen {
    min-height: 44px;
    padding: 10px 16px;
    border: 2px solid #000;
    background: #fff;
    color: #000;
    font-family: "OpenSans-Bold", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
}

.cookie-bar-actions button {
    flex: 1 1 160px;
}

.cookie-bar button:hover,
.cookie-reopen:hover,
.cookie-bar button:focus,
.cookie-reopen:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

#cookie-accept {
    background: #000;
    color: #fff;
}

.cookie-panel {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #ddd;
}

.cookie-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.45;
}

.cookie-option input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    flex: 0 0 auto;
}

.cookie-option strong {
    font-family: "OpenSans-Bold", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#cookie-save {
    margin-top: 4px;
}

.cookie-reopen {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 100000;
}

@media only screen and (max-width: 600px) {
    .cookie-bar {
        right: 0;
        bottom: 0;
        left: 0;
        max-width: none;
        max-height: 100vh;
        border-width: 2px 0 0;
    }

    .cookie-bar-actions button {
        flex-basis: 100%;
    }
}
