/* This is intentionally quite isolated to avoid conflict when used along with old CSS */
@import url("../base/root_vars.54e024662ee9.css");
@import url("../components/button.9afec1f60ae5.css");

.acc-modal-button {
    display: inline-block;
    position: fixed;
    bottom: -2rem;
    left: -0.5rem;
    margin: 0.4rem;
    z-index: 10000;
    padding: 0.5rem;
    border-top-right-radius: var(--border-radius);
    background-color: var(--color-background);
}

.acc-modal-button .acc-cookie-icon {
    display: inline-block;
    height: 50px;
    width: 50px;
    fill: var(--color-primary);
}

.acc-modal {
    font-family: var(--font-base);
    display: none;
    position: fixed;
    z-index: 10001;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    overflow-y: auto;

    animation: acc-fadein 0.2s;
}

@keyframes acc-fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.acc-modal.acc-modal--open {
    display: block;
}

.acc-modal-content {
    display: block;
    background-color: var(--color-background);
    width: 100%;
    max-width: 600px;
    padding: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;

    @media (min-width: 600px) {
        padding: 2rem 3rem 2rem 3rem;
    }
}

.acc-logo-section {
    display: none;
}

.acc-logo {
    display: inline-block;
    height: 100px;
    width: 100px;
    margin-bottom: -0.1rem;
}

.acc-title-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.acc-title {
    color: var(--color-primary);
    font-size: var(--font-size-xl);

    @media (min-width: 600px) {
        font-size: var(--font-size-lg);
    }
}

.acc-info-section > p {
    font-size: var(--font-size-xs);
}

.acc-consent-confirm-section {
    display: block;
    text-align: center;
    margin: 2rem 0 0;
}

.acc-consent-choices-section {
    display: flex;
    gap: var(--gutter);
    flex-wrap: wrap;
    margin: 2rem 0 0;
}

.acc-link__icon {
    display: none;
}

/*
* Fancy slider from https://www.w3schools.com/howto/howto_css_switch.asp
*/

/* The switch - the box around the slider */
.acc-switch {
    --size: 60px;
    position: relative;
    display: inline-block;
    height: 34px;
    line-height: 35px;
    padding-left: var(--size);
    font-size: var(--font-size-xs);
}

/* Hide default HTML checkbox */
.acc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.acc-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-secondary-xlight);
    transition: 0.4s;
    width: var(--size);
    border-radius: 34px;
}

.acc-slider:before {
    position: absolute;
    content: '';
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--color-background);
    transition: 0.4s;
    border-radius: 50%;
}

.acc-switch > input:checked + .acc-slider {
    background-color: var(--color-primary);
}

.acc-switch > input:focus + .acc-slider {
    box-shadow: 0 0 1px var(--color-primary);
}

.acc-switch > input:checked + .acc-slider:before {
    transform: translateX(26px);
}

/* Add focus outline for tab */
.acc-switch:focus {
    outline: none;
}
.acc-switch:focus-within .acc-slider {
    outline: var(--color-outline) solid var(--border-width);
}

.button.acc-button {
    box-sizing: border-box;
    margin-left: 5px;
    margin-right: 5px;
    min-width: 9.7rem;
}

a.acc-link {
    --link-color: var(--color-link);
    color: var(--link-color);
    text-decoration: underline;
    border: none;
}
a.acc-link:hover {
    --link-color: var(--color-link-hover);
}
a.acc-link:focus {
    outline: var(--color-outline) solid var(--border-width);
}

.acc-link__icon {
    display: none;
}
