#cookieConsent {
    --consent-gutter: 20px;
    position: fixed;
    inset: auto max(var(--consent-gutter), env(safe-area-inset-right)) max(var(--consent-gutter), env(safe-area-inset-bottom)) auto;
    z-index: 100;
    transform: none;
    box-sizing: border-box;
    width: min(26rem, calc(100% - 2 * var(--consent-gutter)));
    max-width: none;
    max-height: calc(100dvh - 2 * var(--consent-gutter));
    overflow: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    box-shadow: 0 8px 32px #0c172933;
}

#cookieConsent .cookie-consent-card {
    box-sizing: border-box;
    display: grid;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 1px solid #c8d2e0;
    border-radius: inherit;
    background: #fff;
    color: #0c1729;
    font-size: 0.8125rem;
    line-height: 1.45;
}

#cookieConsent .cookie-consent-title {
    font-size: 1rem;
    font-weight: 800;
}

#cookieConsent .cookie-consent-text {
    margin: 0.2rem 0 0;
    font: inherit;
    color: #45546a;
}

#cookieConsent .cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.75rem;
}

#cookieConsent .cookie-consent-options {
    display: grid;
    gap: 0.45rem;
    padding: 0.55rem 0 0;
    border-top: 1px solid #e4e9f0;
}

#cookieConsent .cookie-consent-options label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

#cookieConsent .cookie-consent-options small {
    display: block;
    color: #45546a;
}

#cookieConsent button,
.registration-cookie-settings {
    font: inherit;
    cursor: pointer;
}

#cookieConsent button {
    box-sizing: border-box;
    min-height: 40px;
    margin: 0;
    padding: 0.28rem 0.45rem;
    border: 1px solid #bcc9d9;
    border-radius: 8px;
    background: #fff;
    color: #163456;
}

#cookieConsent [data-cookie-accept],
#cookieConsent [data-cookie-reject],
#cookieConsent [data-cookie-save] {
    border-color: #9eb6df;
    background: #eef4ff;
    font-weight: 800;
}

#cookieConsent button:hover {
    background: #e1ebfe;
}

#cookieConsent :is(button, input):focus-visible {
    outline: 2px solid #235cdb;
    outline-offset: 2px;
}

.registration-cookie-settings {
    border: 0;
    padding: 0;
    background: none;
    color: inherit;
    text-decoration: underline;
}

#cookieConsent[hidden],
#cookieConsent [hidden] {
    display: none;
}

@media (max-width: 600px) {
    #cookieConsent {
        inset: auto 0 0;
        width: 100%;
        max-height: calc(100dvh - 12px);
        border-radius: 14px 14px 0 0;
    }

    #cookieConsent .cookie-consent-card {
        padding: 0.65rem max(0.8rem, env(safe-area-inset-right))
            calc(0.65rem + env(safe-area-inset-bottom))
            max(0.8rem, env(safe-area-inset-left));
    }
}
