#osev-consent-panel[hidden],
#osev-consent-panel [hidden] {
    display: none !important;
}

#osev-consent-panel {
    --osev-consent-ink: #f2f5f7;
    --osev-consent-muted: #cbd4dc;
    --osev-consent-line: #56636e;
    --osev-consent-accent: #ff6500;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 10020;
    box-sizing: border-box;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 17px max(20px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    border-top: 1px solid rgb(205 222 234 / 15%);
    background: linear-gradient(180deg, #202a33, #1b242d);
    color: var(--osev-consent-ink);
    box-shadow: 0 -8px 28px rgb(9 16 22 / 12%);
    font: 400 15px/1.5 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-align: start;
}

#osev-consent-panel[data-view='notice'] #osev-consent-title {
    max-width: 1120px;
    margin-inline: auto;
}

#osev-consent-panel[data-view='notice'] {
    padding-block-start: 12px;
    padding-block-end: calc(12px + env(safe-area-inset-bottom));
    border-top-color: rgb(205 222 234 / 34%);
}

#osev-consent-panel[data-view='settings'] {
    inset-inline: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: min(100% - 24px, 540px);
    margin-inline: auto;
    border: 1px solid #3d4e5c;
    border-radius: 12px;
}

#osev-consent-panel .osev-consent-notice {
    display: grid;
    gap: 9px;
    max-width: 1120px;
    margin-inline: auto;
}

#osev-consent-panel *,
#osev-consent-panel *::before {
    box-sizing: border-box;
}

#osev-consent-panel #osev-consent-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 5px;
    color: var(--osev-consent-ink);
    font: 700 17px/1.25 Arial, Helvetica, sans-serif;
}

#osev-consent-panel #osev-consent-title::before {
    content: '';
    flex: 0 0 3px;
    align-self: stretch;
    margin-block: 2px;
    border-radius: 3px;
    background: var(--osev-consent-accent);
}

#osev-consent-panel .osev-consent-intro {
    margin: 0;
    color: var(--osev-consent-muted);
}

#osev-consent-panel .osev-consent-intro span {
    display: block;
}

#osev-consent-panel .osev-consent-intro [data-consent-copy='dismissHint'] {
    color: var(--osev-consent-ink);
    font-weight: 600;
}

#osev-consent-panel .osev-consent-details {
    margin: 0 0 10px;
    color: var(--osev-consent-muted);
}

#osev-consent-panel .osev-consent-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

#osev-consent-panel .osev-consent-actions.osev-consent-save-actions {
    grid-template-columns: minmax(0, 1fr) minmax(85px, auto);
    margin-top: 10px;
}

#osev-consent-panel .osev-consent-actions button {
    min-height: 44px;
    margin: 0;
    padding: 7px 8px;
    border: 1px solid #687986;
    border-radius: 12px;
    background: rgb(211 225 235 / 4%);
    color: var(--osev-consent-ink);
    box-shadow: none;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
    white-space: normal;
    cursor: pointer;
}

#osev-consent-panel .osev-consent-actions button:hover {
    border-color: #96a5b2;
    background: #2b3843;
}

#osev-consent-panel .osev-consent-actions :is([data-consent-action='accept'], [data-consent-action='save']) {
    border-color: #d47b59;
    background: #ba4b25;
    color: #fff;
}

#osev-consent-panel .osev-consent-actions :is([data-consent-action='accept'], [data-consent-action='save']):hover {
    border-color: #e19272;
    background: #a54120;
    color: #fff;
}

#osev-consent-panel :is(button, input, h2):focus-visible {
    outline: 2px solid #ffb07e;
    outline-offset: 2px;
}

#osev-consent-panel .osev-consent-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    padding: 7px 0;
    border-block-start: 1px solid var(--osev-consent-line);
    color: var(--osev-consent-ink);
    font: inherit;
}

#osev-consent-panel .osev-consent-option strong,
#osev-consent-panel .osev-consent-option small {
    display: block;
}

#osev-consent-panel .osev-consent-option small,
#osev-consent-panel .osev-consent-required {
    color: var(--osev-consent-muted);
    font-size: 12px;
}

#osev-consent-panel .osev-consent-required {
    text-align: end;
}

#osev-consent-panel .osev-consent-option input {
    appearance: auto;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0 2px 0 0;
    padding: 0;
    accent-color: var(--osev-consent-accent);
    cursor: pointer;
}

#osev-consent-panel .osev-consent-error {
    margin: 8px 0 0;
    color: #ffb4a5;
    font-size: 13px;
}

.osev-consent-footer {
    display: flex;
    justify-content: center;
    margin: 0;
    color: #40515e;
}

.osev-consent-footer-fallback {
    padding-inline: 12px;
}

#osevDesktopFooter .osev-consent-footer {
    color: #cfdae2;
}

.osev-consent-footer button,
#osevDesktopFooter .osev-consent-footer button {
    min-height: 44px;
    margin: 0;
    padding: 3px 1px;
    border: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
    font: 400 13px/1.3 Arial, Helvetica, sans-serif;
    letter-spacing: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-transform: none;
    cursor: pointer;
}

.osev-consent-footer button:is(:hover, :focus),
#osevDesktopFooter .osev-consent-footer button:is(:hover, :focus) {
    background: transparent;
    color: inherit;
}

.osev-consent-footer button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

@media (min-width: 760px) {
    #osev-consent-panel .osev-consent-notice {
        grid-template-columns: minmax(0, 1fr) minmax(312px, auto);
        align-items: center;
        gap: 26px;
    }

    #osev-consent-panel .osev-consent-intro span {
        display: inline;
    }
}
