#cookies-consent-container {
    z-index: 1010;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transition: opacity 0.16s;
    opacity: 0;
    pointer-events: none;
}
#cookies-consent-container:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(41, 63, 84, 0.5);
}
#cookies-consent-container .popup {
    position: absolute;
    top: 50px;
    max-height: calc(100vh - 100px);
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0 15px #293f54;
    display: flex;
    flex-direction: column;
    width: 300px;
    left: calc(50% - 150px);
}
#cookies-consent-container .popup header {
    flex: 0 0;
}
#cookies-consent-container .popup main {
    flex: 1 1 auto;
    overflow-y: auto;
}
@media (min-width: 575px) {
    #cookies-consent-container .popup {
        width: 500px;
        left: calc(50% - 250px);
    }
}
@media (min-width: 765px) {
    #cookies-consent-container .popup {
        width: 600px;
        left: calc(50% - 300px);
    }
}
@media (min-width: 1023px) {
    #cookies-consent-container .popup {
        width: 800px;
        left: calc(50% - 400px);
    }
}
#cookies-consent-container .popup {
    transform: scale(0);
    transition: transform 0.16s;
    transition-delay: 0.16s;
}
#cookies-consent-container.visible {
    opacity: 1;
    pointer-events: auto;
}
#cookies-consent-container.visible .popup {
    transform: scale(1);
    transition-delay: 0s;
}
#cookies-consent-container main > *,
#cookies-consent-container header {
    display: block;
    padding: 2rem 1rem;
}
#cookies-consent-container main > :first-child {
    padding-top: 0;
}
#cookies-consent-container header {
    font-size: 1.3em;
}
#cookies-consent-container button {
    margin: 0.5rem 1rem;
    min-width: 250px;
    justify-content: center;
}
#cookies-consent-container #cookies-consent-detailed {
    box-sizing: border-box;
    position: absolute;
    pointer-events: none;
    transform: scaleY(0);
    transform-origin: 0 0;
}
#cookies-consent-container #cookies-consent-detailed.visible {
    position: static;
    transition-property: height, transform;
    transition-duration: 0.16s;
    transform: scaleY(1);
    pointer-events: auto;
}
#cookies-consent-container #cookies-consent-detailed .option {
    display: grid;
    grid-gap: 2rem;
    grid-template-columns: 1fr min-content;
    align-items: center;
}
#cookies-consent-container #cookies-consent-detailed .option + .option {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e3e7ee;
}
#cookies-consent-container #cookies-consent-detailed .option label {
    display: block;
}
