.itp-cookie {
    position: fixed;
    inset: auto max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) auto;
    z-index: 1050;
    box-sizing: border-box;
    width: min(32rem, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    padding: 1.2rem;
    border: 1px solid #d8e1ed;
    border-radius: 1rem;
    background: #fff;
    color: var(--itp-navy, #222f47);
    box-shadow: 0 12px 40px rgb(34 47 71 / 20%);
}

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

.itp-cookie__title {
    margin: 0 0 .45rem;
    font-size: 1.125rem;
    line-height: 1.25;
    font-weight: 700;
}

.itp-cookie__description {
    margin: 0;
    font-size: .94rem;
    line-height: 1.45;
}

.itp-cookie__policy {
    display: inline-block;
    margin-top: .45rem;
    color: #235cb5;
    font-size: .88rem;
    text-decoration: underline;
    text-underline-offset: .15rem;
}

.itp-cookie__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
    margin-top: .9rem;
}

.itp-cookie__actions button {
    min-height: 46px;
    padding: .55rem .4rem;
    border: 1px solid #7297cb;
    border-radius: .62rem;
    background: #f3f6fb;
    color: #174680;
    font: inherit;
    font-size: .88rem;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.itp-cookie__actions button:hover {
    background: #e6eefb;
}

.itp-cookie__actions button:disabled { cursor: wait; opacity: .65; }
.itp-cookie__error { grid-column: 1/-1; color: #8e2435; margin: 0; }
.itp-cookie__error[hidden] { display: none; }
.itp-cookie-settings {
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: .15em;
    cursor: pointer;
}
.itp-service .itp-cookie-settings--account { margin-block: 1rem 1.75rem; color: #235cb5; }

.itp-cookie :is(button, a):focus-visible {
    outline: 2px solid #235cb5;
    outline-offset: 2px;
}

@media (max-width: 575px) {
    .itp-cookie {
        inset-inline: max(.75rem, env(safe-area-inset-left)) max(.75rem, env(safe-area-inset-right));
        bottom: max(.75rem, env(safe-area-inset-bottom));
        width: auto;
        padding: .9rem;
    }
}
