/* Screen reader only class for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    border: none;
    overflow: hidden;
    z-index: 99;
}

.cookie-banner .content, .cookie-banner .settings {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    background-color: white;
    bottom: 0;
    height: 380px;
    width: 100%;
}

.cookie-banner .content .logo {
    width: 200px;
}

.cookie-banner .content .message {
    width: 100%;
    max-width: 800px;
    max-height: 200px;
    overflow: auto;
}

.cookie-banner .settings .body {
    width: 100%;
    max-width: 800px;
    overflow: auto;
}

.cookie-banner .settings .back-container {
    width: 100%;
    max-width: 800px;
    height: 60px;
    display: flex;
    flex-direction: row;
    justify-content: left;
    margin: 10px 0px;
}

.cookie-banner .content .header {
    width: 100%;
    max-width: 800px;
    text-align: center;
    margin: 12px 0px;
    padding: 0px 20px;
}

.cookie-banner .divider {
    background-color: rgb(218, 220, 224);
    height: 1px;
    margin-bottom: 8px;
    width: calc(100% - 50px);
    max-width: 500px;
    margin: 0px auto;
}

.cookie-banner .buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media screen and (min-width: 799px) {

    .cookie-banner .buttons {
        flex-direction: row;
    }
}

@media screen and (max-width: 800px) {

    .cookie-banner .buttons {
        max-width: 800px;
        flex-direction: column;
    }
}

.cookie-banner button {
    cursor: pointer;
    font-size: 18px;
    line-height: 18px;
    border-radius: 5px;
    height: 50px;
    padding: 16px 18px;
    margin: 8px 12px;
    width: 300px;
    border: 1px solid #B72025;
    transition: all 0.2s ease-in-out;
}

/* Focus styles for keyboard navigation accessibility */
.cookie-banner button:focus {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

.cookie-banner button:focus:not(:focus-visible) {
    outline: none;
}

.cookie-banner button:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

.cookie-banner .back {
    font-weight: bold;
    border-color: #B72025;
    background-color: #B72025;
    color: white;
    width: 150px;
    height: 50px;
    margin: 0px;
    padding: 0px;
}

.cookie-banner .accept {
    font-weight: bold;
    border-color: #B72025;
    background-color: #B72025;
    color: white;
}

.cookie-banner .block {
    font-weight: bold;
    background-color: white;
    color: #B72025;
}

.cookie-banner .overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, .4);
}