.uoph-cookie-consent__banner,
.uoph-cookie-consent__banner *,
.uoph-cookie-consent__preferences,
.uoph-cookie-consent__preferences * {
    box-sizing: border-box;
}

[data-uoph-cookie-consent-banner].uoph-cookie-consent__banner {
    position: fixed;
    z-index: 100001;
    inset: 0;
    display: grid;
    place-items: center;
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    background: rgb(25 24 22 / 72%);
}

.uoph-cookie-consent__banner .uoph-cookie-consent__card,
.uoph-cookie-consent__preferences .uoph-cookie-consent__card {
    inline-size: min(44rem, 100%);
    max-block-size: calc(100dvh - 2rem);
    overflow: auto;
    border-radius: clamp(1.5rem, 3vw, 3rem);
    color: #191816;
    background: #fff;
    box-shadow: 0 1rem 3rem rgb(0 0 0 / 28%);
}

.uoph-cookie-consent__banner .uoph-cookie-consent__banner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
    font-family: "UOPH Gilroy", "UOPH Gilroy Fallback", Arial, Helvetica, sans-serif;
    font-weight: 400;
}

.uoph-cookie-consent__banner .uoph-cookie-consent__brand {
    display: block;
    inline-size: var(--uoph-brand-logo-inline-size);
    block-size: auto;
    object-fit: contain;
}

.uoph-cookie-consent__banner[hidden],
.uoph-cookie-consent__preferences[hidden] {
    display: none;
}

.uoph-cookie-consent__message {
    margin: 0;
    max-inline-size: 36rem;
    font-family: "UOPH Gilroy", "UOPH Gilroy Fallback", Arial, Helvetica, sans-serif;
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
}

.uoph-cookie-consent__banner button.uoph-cookie-consent__policy {
    all: unset;
    display: inline;
    color: #191816;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    cursor: pointer;
}

.uoph-cookie-consent__banner button.uoph-cookie-consent__policy:hover,
.uoph-cookie-consent__banner button.uoph-cookie-consent__policy:focus,
.uoph-cookie-consent__banner button.uoph-cookie-consent__policy:focus-visible,
.uoph-cookie-consent__banner button.uoph-cookie-consent__policy:active,
.uoph-cookie-consent__banner button.uoph-cookie-consent__policy:visited {
    border: 0;
    color: #191816;
    background: transparent;
}

.uoph-cookie-consent__banner button.uoph-cookie-consent__policy:focus-visible {
    outline: 2px solid #191816;
    outline-offset: 0.2em;
}

.uoph-cookie-consent__banner .uoph-cookie-consent__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    inline-size: 100%;
    gap: 0.75rem;
}

.uoph-cookie-consent__banner .uoph-cookie-consent__action {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 10rem;
    inline-size: auto;
    padding: 1rem 0.875rem;
    border: 2px solid #191816;
    border-radius: 999px;
    color: #191816;
    background: transparent;
    font: inherit;
    font-family: "UOPH Gilroy", "UOPH Gilroy Fallback", Arial, Helvetica, sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.112em;
    text-align: center;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.uoph-cookie-consent__banner .uoph-cookie-consent__action:hover {
    border-color: #191816;
    color: #191816;
    background: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .uoph-cookie-consent__banner .uoph-cookie-consent__action:hover {
        color: #fff;
        background: #191816;
    }
}

.uoph-cookie-consent__banner .uoph-cookie-consent__action:active {
    color: #fff;
    background: #191816;
}

.uoph-cookie-consent__banner .uoph-cookie-consent__action:focus {
    color: #191816;
    background: transparent;
    outline: none;
    box-shadow: none;
}

.uoph-cookie-consent__banner .uoph-cookie-consent__action:focus-visible {
    opacity: 0.82;
    transform: scale(0.99);
}

.uoph-cookie-consent__preferences .uoph-cookie-consent__save {
    min-block-size: 2.75rem;
    padding: 0.7rem 1.15rem;
    border: 1.5px solid #191816;
    border-radius: 999px;
    color: #fff;
    background: #191816;
    font: 500 0.9375rem/1 "UOPH Gilroy", "UOPH Gilroy Fallback", Arial, Helvetica, sans-serif;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.uoph-cookie-consent__preferences {
    position: fixed;
    z-index: 100002;
    inset: 0;
    display: grid;
    place-items: center;
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    overflow: auto;
    color: #191816;
    background: rgb(25 24 22 / 72%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 0s linear 220ms;
    font-family: "UOPH Gilroy", "UOPH Gilroy Fallback", Arial, Helvetica, sans-serif;
    font-weight: 400;
}

.uoph-cookie-consent__preferences.is-open {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.uoph-cookie-consent__panel {
    position: relative;
    padding: clamp(4.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
}

.uoph-cookie-consent__panel > h2 {
    margin: 0 0 clamp(2rem, 5vw, 3.5rem);
    font: 400 clamp(2rem, 5vw, 4rem)/1 "UOPH Gilroy", "UOPH Gilroy Fallback", Arial, Helvetica, sans-serif;
}

.uoph-cookie-consent__close {
    position: absolute !important;
    inset-block-start: max(1rem, env(safe-area-inset-top));
    inset-inline-end: max(1rem, env(safe-area-inset-right));
    color: #191816 !important;
}

.uoph-cookie-consent__categories {
    border-block-start: 1px solid rgb(25 24 22 / 22%);
}

.uoph-cookie-consent__category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    padding-block: 1.5rem;
    border-block-end: 1px solid rgb(25 24 22 / 22%);
}

.uoph-cookie-consent__category h3,
.uoph-cookie-consent__category p {
    margin: 0;
}

.uoph-cookie-consent__category h3 {
    font: 500 1.125rem/1.2 "UOPH Gilroy", "UOPH Gilroy Fallback", Arial, Helvetica, sans-serif;
}

.uoph-cookie-consent__category p {
    margin-block-start: 0.5rem;
    color: rgb(25 24 22 / 72%);
    line-height: 1.45;
}

.uoph-cookie-consent__always-active {
    white-space: nowrap;
    font: 500 0.75rem/1 "UOPH Gilroy", "UOPH Gilroy Fallback", Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.uoph-cookie-consent__toggle {
    position: relative;
    display: block;
    inline-size: 3.25rem;
    block-size: 1.75rem;
}

.uoph-cookie-consent__toggle input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
}

.uoph-cookie-consent__toggle > span:last-child {
    position: absolute;
    inset: 0;
    border: 1.5px solid #191816;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
}

.uoph-cookie-consent__toggle > span:last-child::after {
    content: "";
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 0.25rem;
    inline-size: 1.1rem;
    block-size: 1.1rem;
    border-radius: 50%;
    background: #191816;
    transform: translateY(-50%);
    transition: transform 180ms ease;
}

.uoph-cookie-consent__toggle input:checked + span {
    background: #191816;
}

.uoph-cookie-consent__toggle input:checked + span::after {
    background: #fff;
    transform: translate(1.45rem, -50%);
}

.uoph-cookie-consent__toggle input:focus-visible + span {
    outline: 2px solid #191816;
    outline-offset: 3px;
}

.uoph-cookie-consent__save {
    margin-block-start: 2rem;
}

@media (prefers-reduced-motion: reduce) {
    .uoph-cookie-consent__preferences,
    .uoph-cookie-consent__toggle > span:last-child::after {
        transition: none;
    }
}
