/* Consent presentation is independent of the generated Tailwind stylesheet. */
#cookie-banner {
    position: fixed;
    inset: auto auto 24px 24px;
    box-sizing: border-box;
    width: 440px;
    max-width: calc(100% - 48px);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    margin: 0;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(23, 36, 58, .1);
    border-radius: 24px;
    background: #fffefa;
    color: #17243a;
    box-shadow: 0 24px 80px rgba(23, 36, 58, .2), 0 4px 16px rgba(23, 36, 58, .08);
    font-family: "DM Sans", sans-serif;
    text-align: left;
    color-scheme: light;
    z-index: 9999;
}

#cookie-banner:not([open]) { display: none; }
#cookie-banner[open] { animation: cb-enter .3s cubic-bezier(.2, .8, .2, 1) both; }
#cookie-banner::backdrop { background: rgba(23, 36, 58, .28); }
html.cookie-consent-open { overflow: hidden !important; }

#cookie-banner .cb-content { padding: 28px 28px 12px; }
#cookie-banner .cb-intro { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
#cookie-banner .cb-illustration { display: flex; flex: none; }
#cookie-banner .cb-eyebrow {
    margin: 0;
    color: #37614d;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.5;
    text-transform: uppercase;
}
#cookie-banner #cookie-title {
    margin: 0 0 12px;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.15;
    text-wrap: balance;
    outline: none;
}
#cookie-banner #cookie-description {
    margin: 0;
    color: #4c5765;
    font-size: .9375rem;
    line-height: 1.6;
}
#cookie-banner .cb-actions { display: grid; gap: 6px; margin-top: 22px; }
#cookie-banner .cb-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 14px;
    font: inherit;
    font-size: .9375rem;
    line-height: 1.4;
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color .18s ease, box-shadow .18s ease;
}
#cookie-banner #cookie-accept {
    min-height: 54px;
    background: #47d994;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(47, 191, 124, .16);
}
#cookie-banner #cookie-accept svg { flex: none; }
#cookie-banner #cookie-decline { background: transparent; color: #4c5765; font-weight: 500; }
#cookie-banner .cb-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 12px;
    padding: 8px 28px;
    border-top: 1px solid #e5ebe4;
    background: #f3f7f0;
    color: #536358;
    font-size: .6875rem;
    line-height: 1.5;
}
#cookie-banner .cb-reassurance { display: inline-flex; align-items: center; gap: 6px; padding-block: 8px; }
#cookie-banner .cb-reassurance svg { flex: none; }
#cookie-banner #cookie-privacy {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #315e46;
    text-decoration: underline;
    text-underline-offset: 3px;
}
#cookie-banner button:focus-visible,
#cookie-banner a:focus-visible { outline: 3px solid #17243a; outline-offset: 3px; }

@media (hover: hover) {
    #cookie-banner #cookie-accept:hover { background: #3bce88; box-shadow: 0 6px 16px rgba(47, 191, 124, .24); }
    #cookie-banner #cookie-decline:hover { background: #eef2eb; color: #17243a; }
    #cookie-banner #cookie-privacy:hover { color: #17243a; }
}

@media (max-width: 639px) {
    #cookie-banner {
        inset: auto 0 0;
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 12px);
        max-height: calc(100dvh - 12px);
        border-radius: 24px 24px 0 0;
        border-bottom: 0;
    }
    #cookie-banner .cb-content {
        padding: 24px max(24px, env(safe-area-inset-right)) 10px max(24px, env(safe-area-inset-left));
    }
    #cookie-banner .cb-intro { margin-bottom: 14px; }
    #cookie-banner .cb-footer {
        padding: 8px max(24px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left));
    }
}

@media (max-height: 540px) {
    #cookie-banner .cb-content { padding-top: 18px; }
    #cookie-banner .cb-intro { margin-bottom: 10px; }
    #cookie-banner .cb-illustration svg { width: 40px; height: 40px; }
    #cookie-banner .cb-actions { margin-top: 16px; }
}

@keyframes cb-enter {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    #cookie-banner[open] { animation: none; }
    #cookie-banner .cb-actions button { transition: none; }
}
@media (forced-colors: active) {
    #cookie-banner .cb-actions button { border-color: ButtonText; }
}
