.u-consent-banner,
.u-consent-dialog,
.u-consent-settings,
.u-consent-media {
    box-sizing: border-box;
    font-family: inherit;
}

.u-consent-banner {
    position: fixed;
    z-index: 100000;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    gap: 1rem;
    align-items: stretch;
    flex-direction: column;
    max-width: 76rem;
    margin: 0 auto;
    padding: 1.25rem;
    color: #1c2b2b;
    background: #fff;
    border: 1px solid #c9d7d5;
    border-radius: .75rem;
    box-shadow: 0 .75rem 2.5rem rgba(0, 0, 0, .22);
}

.u-consent-banner[hidden],
.u-consent-overlay[hidden],
.u-consent-settings[hidden],
.u-consent-media[hidden] {
    display: none !important;
}

.u-consent-banner__body {
    max-width: 54rem;
}

.u-consent-banner > .u-consent__actions {
    justify-content: flex-end;
}

.u-consent-banner h2,
.u-consent-dialog h2 {
    margin: 0 0 .5rem;
    font-size: 1.35rem;
}

.u-consent-banner p,
.u-consent-dialog p,
.u-consent-media p {
    margin: 0 0 .75rem;
    line-height: 1.5;
}

.u-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.u-consent__button,
.u-consent-settings {
    appearance: none;
    padding: .7rem 1rem;
    color: #173b38;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    background: #fff;
    border: 2px solid #276a63;
    border-radius: .35rem;
}

.u-consent__button:hover,
.u-consent__button:focus-visible,
.u-consent-settings:hover,
.u-consent-settings:focus-visible {
    outline: 3px solid #f2c94c;
    outline-offset: 2px;
}

.u-consent__button--strong {
    color: #fff;
    background: #276a63;
}

.u-consent-overlay {
    position: fixed;
    z-index: 100001;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, .58);
}

.u-consent-dialog {
    position: relative;
    width: min(100%, 44rem);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    padding: 1.5rem;
    color: #1c2b2b;
    background: #fff;
    border-radius: .75rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .3);
}

.u-consent-dialog__close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.6rem;
    cursor: pointer;
    background: #fff;
    border: 1px solid #81918f;
    border-radius: 50%;
}

.u-consent-choice {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin: .75rem 0;
    padding: 1rem;
    border: 1px solid #c9d7d5;
    border-radius: .5rem;
}

.u-consent-choice span,
.u-consent-choice small {
    display: block;
}

.u-consent-choice small {
    margin-top: .25rem;
    line-height: 1.4;
}

.u-consent-choice input {
    width: 1.5rem;
    height: 1.5rem;
    flex: 0 0 auto;
}

.u-consent-choice--fixed {
    background: #eef4f3;
}

.u-consent-settings {
    position: fixed;
    z-index: 99998;
    bottom: .75rem;
    left: .75rem;
    padding: .45rem .7rem;
    font-size: .85rem;
    background: #fff;
}

.u-consent-media {
    display: grid;
    min-height: 13rem;
    place-items: center;
    padding: 1.25rem;
    text-align: center;
    background: #eef4f3;
    border: 1px solid #c9d7d5;
    border-radius: .5rem;
}

@media (max-width: 760px) {
    .u-consent-banner {
        gap: 1rem;
        max-height: calc(100vh - 2rem);
        overflow: auto;
    }

    .u-consent__actions {
        flex-direction: column;
    }

    .u-consent__button {
        width: 100%;
    }
}
