#cobo-consent-frame {
    position: fixed;
    inset: auto auto 0 0;
    z-index: 1100;
    width: 100px;
    height: 100px;
    border: 0;
    color-scheme: light;
}

#cobo-consent-frame[hidden] {
    display: none;
}

#cobo-consent-frame[data-mode="panel"] {
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Base styles for the standalone consent document. */
.cobo-consent-document {
    margin: 0;
    font: 15px/1.5 system-ui, sans-serif;
    color: #222;
}

.cobo-consent-document *,
.cobo-consent-document *::before,
.cobo-consent-document *::after {
    box-sizing: border-box;
}

.cobo-consent-document button,
.cobo-consent-document input {
    font-family: inherit;
}

.cobo-consent-document h2,
.cobo-consent-document h3 {
    line-height: 1.2;
}

#cookie-banner,
#cookie-modal {
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
}

#cookie-modal .cookie-buttons button,
#cookie-modal .iframe-header button {
    align-items: center;
}

#cookie-modal .form-switch input {
    margin: 0;
    flex-shrink: 0;
}

#cookie-modal .cookie-preferences-link {
    text-decoration: underline;
}

#cookie-modal #iframe-section {
    padding-right: 1rem;
}

#cookie-modal iframe {
    display: block;
    width: 100%;
    height: min(550px, 70dvh);
    padding: 0;
    border: 0;
}
