.cookie-consent[hidden],
.cookie-consent-dialog[hidden] {
    display: none !important;
}

.cookie-consent-manage {
    padding: .35rem .75rem;
    color: #1e4356;
    background: transparent;
    border: 1px solid #1e4356;
    border-radius: .375rem;
    font-weight: 600;
    cursor: pointer;
}

.cookie-consent-manage:hover,
.cookie-consent-manage:focus-visible {
    color: #fff;
    background: #1e4356;
}

.cookie-consent {
    position: fixed;
    inset: auto 1rem 1rem;
    z-index: 1100;
    max-width: 760px;
    margin: 0 auto;
    color: #17212b;
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: .75rem;
    box-shadow: 0 .75rem 2rem rgba(23, 33, 43, .2);
}

.cookie-consent-content,
.cookie-consent-dialog-content {
    padding: 1.25rem;
}

.cookie-consent h2,
.cookie-consent-dialog h2 {
    margin: 0 0 .5rem;
    font-size: 1.15rem;
}

.cookie-consent p,
.cookie-consent-dialog p {
    margin: 0 0 1rem;
    line-height: 1.5;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .625rem;
}

.cookie-consent-button {
    flex: 1 1 11rem;
    min-height: 2.75rem;
    padding: .65rem 1rem;
    color: #fff;
    background: #1e4356;
    border: 1px solid #1e4356;
    border-radius: .375rem;
    font-weight: 600;
    cursor: pointer;
}

.cookie-consent-button:hover,
.cookie-consent-button:focus-visible {
    background: #163241;
}

.cookie-consent-button-secondary {
    color: #1e4356;
    background: #fff;
}

.cookie-consent-button-secondary:hover,
.cookie-consent-button-secondary:focus-visible {
    color: #fff;
}

.cookie-consent-dialog {
    position: fixed;
    inset: 0;
    z-index: 1110;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, .55);
}

.cookie-consent-dialog-content {
    width: min(100%, 620px);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: .75rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .3);
}

.cookie-consent-option {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .85rem 0;
    border-top: 1px solid #e5e7eb;
}

.cookie-consent-option input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: .15rem;
    accent-color: #1e4356;
}

.cookie-consent-option strong,
.cookie-consent-option span {
    display: block;
}

.cookie-consent-option span {
    margin-top: .2rem;
    color: #4b5563;
    font-size: .92rem;
}

@media (max-width: 576px) {
    .cookie-consent {
        inset: auto .5rem .5rem;
    }
}
