/*
 * Cookie notice - a bar at the bottom of the window.
 *
 * It informs and offers a refusal, which is what Swiss practice asks for; it
 * does not block the page. The footer link brings it back so a choice can be
 * changed later.
 */

.cookie-notice {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    background: #fff;
    border-top: 1px solid var(--light-grey-color, #eaeaea);
    box-shadow: 0 -2px 4px 0 rgba(0, 0, 0, .07);
    padding: 1.1rem 0;
}

.cookie-notice[hidden] {
    display: none;
}

.cookie-notice-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-notice-text {
    margin: 0;
    font-size: .85rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--black, #000);
}

.cookie-notice-link {
    color: var(--main-color, #e73531);
    text-decoration: underline;
    white-space: nowrap;
}

.cookie-notice-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex: 0 0 auto;
}

.cookie-notice-button {
    border-radius: var(--button-radius, 20px);
    padding: .35rem 1.3rem;
    font-size: var(--button-font-size, .9rem);
    font-weight: var(--button-font-weight, 500);
    line-height: 1.6;
    white-space: nowrap;
    cursor: pointer;
    transition: color .15s ease-in-out, background-color .15s ease-in-out;
}

.cookie-notice-accept {
    color: #fff;
    background-color: var(--main-color, #e73531);
    border: 1px solid var(--main-color, #e73531);
}

.cookie-notice-accept:hover {
    color: var(--main-color, #e73531);
    background-color: #fff;
}

/* Refusing is the quieter of the two, but never hidden: it is the point of
   the notice. */
.cookie-notice-decline {
    color: var(--black, #000);
    background-color: transparent;
    border: 1px solid var(--light-grey-color, #eaeaea);
}

.cookie-notice-decline:hover {
    border-color: var(--black, #000);
}

/* The footer link is a button, so it can reopen the notice. A button inherits
   neither colour nor font size from .impressum a, and form controls do not
   inherit text-transform at all, so each is restated to match the links it
   stands next to. */
.cookie-notice-reopen {
    border: 0;
    padding: 0;
    background: none;
    font-family: inherit;
    font-weight: inherit;
    font-size: 12px;
    line-height: inherit;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
}

.cookie-notice-reopen:hover {
    text-decoration: underline;
}

/* The same gap the first of those links keeps on its right. */
.footer-cookie-link {
    padding-left: 40px;
}

@media screen and (max-width: 575.9px) {
    /* The same side margin the text elements take, so the notice lines up with
       the rest of the page instead of sitting closer to the edge. */
    .cookie-notice > .container {
        padding-left: 5vw;
        padding-right: 5vw;
    }
}

@media screen and (max-width: 767.9px) {
    .cookie-notice-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .cookie-notice-actions {
        justify-content: flex-end;
    }
}
