.ozi-cookie-consent {
    position: fixed;
    left: max(12px, env(safe-area-inset-left));
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 90;
    width: min(400px, calc(100vw - 100px));
    max-height: calc(100dvh - 130px);
    overflow: auto;
    color: #122b48;
    background: #fff;
    border: 1px solid #a8c7db;
    border-radius: 14px;
    padding: 15px;
    box-shadow: 0 10px 28px rgb(18 43 72 / 18%);
    font: 14px/1.45 system-ui, sans-serif;
    animation: ozi-cookie-appear .18s ease-out both;
}

.ozi-cookie-consent h2 {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 .4rem;
    font-size: 1.1rem;
}

.ozi-cookie-consent p { margin: .25rem 0 .65rem; }

.ozi-cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin: .55rem 0;
}

.ozi-cookie-consent button {
    min-height: 44px;
    border: 1px solid #3e6787;
    border-radius: 8px;
    padding: .35rem .65rem;
    background: #fff;
    color: #122b48;
    cursor: pointer;
    font: inherit;
    font-weight: 650;
}

.ozi-cookie-consent .ozi-cookie-consent__primary {
    background: #122b48;
    color: #fff;
}

.ozi-cookie-consent label { display: block; margin: .45rem 0; }
.ozi-cookie-consent summary { cursor: pointer; font-weight: 650; }
.ozi-cookie-consent a { color: #075984; text-decoration: underline; }
.ozi-cookie-consent :is(button, summary, a, input):focus-visible {
    outline: 2px solid #08699b;
    outline-offset: 2px;
}

.ozi-cookie-consent--settings:not(:has(details[open])) {
    width: max-content;
    max-width: calc(100vw - 100px);
    padding: .35rem .65rem;
}

.ozi-cookie-consent--settings:not(:has(details[open])) > a { display: none; }

@keyframes ozi-cookie-appear {
    from { opacity: 0; transform: translateY(4px); }
}

@media (max-width: 640px) {
    .ozi-cookie-consent { bottom: max(70px, calc(env(safe-area-inset-bottom) + 54px)); }
    .ozi-cookie-consent__actions > button { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .ozi-cookie-consent { animation: none; }
}
