.cookie-consent {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 2000;
    max-width: 34rem;
    margin-left: auto;
    padding: 1.25rem 1.5rem;
    background-color: #fff;
    border-radius: 0.25rem;
    box-shadow: 0 0.25rem 1.5rem rgba(0, 0, 0, 0.25);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: black;
}

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

.cookie-consent__title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.cookie-consent__text {
    margin: 0 0 1rem;
}

.cookie-consent__text a {
    color: var(--main-blue-color);
}

.cookie-consent__options {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.cookie-consent__option {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

/* global.css removes the native look of every input */
.cookie-consent__option input {
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
    flex: none;
    width: 1rem;
    height: 1rem;
    margin-top: 0.2rem;
    accent-color: var(--main-blue-color);
}

.cookie-consent__option-description {
    display: block;
    font-size: 0.8rem;
    color: #555;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* Accept and reject look the same on purpose: neither choice may be steered */
.cookie-consent__button {
    flex: 1 1 auto;
    padding: 0.5rem 1rem;
    border: 1px solid var(--main-blue-color);
    border-radius: 0.25rem;
    background-color: var(--main-blue-color);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
}

.cookie-consent__button--plain {
    flex: none;
    border-color: transparent;
    background-color: transparent;
    color: var(--main-blue-color);
    text-decoration: underline;
}

/* On a phone the preferences link gets its own row, so both choices keep the same width */
@media (max-width: 480px) {
    .cookie-consent__button--plain {
        flex: 0 0 100%;
        padding-left: 0;
        text-align: left;
    }
}
