.inova-consent {
    --inova-consent-navy: #0b2d67;
    --inova-consent-blue: #0e5fb3;
    --inova-consent-cyan: #1b9bd1;
    --inova-consent-focus: #237a36;
    --inova-consent-line: #ccdce9;
    --inova-consent-muted: #4d6277;
    font-family: Inter, Arial, sans-serif;
}

.inova-consent [hidden] {
    display: none !important;
}

.inova-consent__banner {
    position: fixed;
    z-index: 999998;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem;
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(1rem, 2vw, 1.4rem);
    border: 1px solid var(--inova-consent-line);
    border-top: 4px solid var(--inova-consent-cyan);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(11, 45, 103, .2);
    color: var(--inova-consent-navy);
}

.inova-consent__copy h2,
.inova-consent__dialog h2,
.inova-consent__dialog h3 {
    margin: 0;
    color: var(--inova-consent-navy);
    font-family: Poppins, Inter, Arial, sans-serif;
    line-height: 1.2;
}

.inova-consent__copy h2 {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.inova-consent .inova-consent__dialog h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    overflow-wrap: normal;
    word-break: normal;
}

.inova-consent .inova-consent__dialog h3 {
    font-size: 1rem;
    overflow-wrap: normal;
    word-break: normal;
}

.inova-consent__copy p,
.inova-consent__dialog p,
.inova-consent__option small {
    color: var(--inova-consent-muted);
    line-height: 1.55;
}

.inova-consent__copy p {
    margin: .45rem 0 .35rem;
}

.inova-consent__copy a {
    color: var(--inova-consent-blue);
    font-weight: 700;
    text-underline-offset: 3px;
}

.inova-consent__actions,
.inova-consent__dialog-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .65rem;
}

.inova-consent__button,
.inova-consent__manage,
.inova-consent__close {
    min-height: 44px;
    border: 2px solid transparent;
    border-radius: 5px;
    font: 700 .92rem/1.2 Inter, Arial, sans-serif;
    cursor: pointer;
}

.inova-consent__button {
    padding: .7rem 1rem;
}

.inova-consent__button--primary {
    border-color: var(--inova-consent-blue);
    background: var(--inova-consent-blue);
    color: #fff;
}

.inova-consent__button--secondary {
    border-color: var(--inova-consent-blue);
    background: #fff;
    color: var(--inova-consent-navy);
}

.inova-consent__manage {
    position: fixed;
    z-index: 999997;
    left: max(.75rem, env(safe-area-inset-left));
    bottom: max(.75rem, env(safe-area-inset-bottom));
    display: grid;
    place-items: center;
    box-sizing: border-box;
    inline-size: 44px;
    min-inline-size: 44px;
    max-inline-size: 44px;
    block-size: 44px;
    padding: 0;
    border-color: var(--inova-consent-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 6px 20px rgba(11, 45, 103, .16);
    color: var(--inova-consent-blue);
}

.inova-consent__manage:hover {
    border-color: var(--inova-consent-blue);
    background: #eef6fb;
    color: var(--inova-consent-navy);
}

.inova-consent__manage:active {
    background: #e2f0f8;
}

.inova-consent__manage-icon {
    inline-size: 20px;
    block-size: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.inova-consent__backdrop {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    overflow-y: auto;
    background: rgba(4, 22, 52, .68);
}

.inova-consent__dialog {
    box-sizing: border-box;
    width: min(100%, 680px);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: clamp(1.15rem, 3vw, 2rem);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
    color: var(--inova-consent-navy);
}

.inova-consent__dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.inova-consent__eyebrow {
    margin: 0 0 .3rem !important;
    color: var(--inova-consent-blue) !important;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.inova-consent__close {
    flex: 0 0 44px;
    padding: 0;
    background: #eef5fa;
    color: var(--inova-consent-navy);
    font-size: 1.7rem;
}

.inova-consent__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .8rem;
    padding: 1rem;
    border: 1px solid var(--inova-consent-line);
    border-radius: 6px;
    background: #f8fbfd;
}

.inova-consent__dialog-header > :first-child,
.inova-consent__option > :first-child {
    min-width: 0;
}

.inova-consent__option strong,
.inova-consent__option small {
    display: block;
}

.inova-consent__option small {
    margin-top: .25rem;
}

.inova-consent__option input {
    width: 24px;
    height: 24px;
    accent-color: var(--inova-consent-blue);
}

.inova-consent__always {
    color: var(--inova-consent-focus);
    font-weight: 800;
    white-space: nowrap;
}

.inova-consent__dialog-actions {
    margin-top: 1.25rem;
}

.inova-consent button:focus-visible,
.inova-consent a:focus-visible,
.inova-consent input:focus-visible {
    outline: 3px solid var(--inova-consent-focus);
    outline-offset: 3px;
}

body.inova-consent-lock {
    overflow: hidden;
}

@media (max-width: 760px) {
    .inova-consent__banner {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }

    .inova-consent__actions,
    .inova-consent__dialog-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .inova-consent__button {
        width: 100%;
    }

    .inova-consent__always {
        text-align: right;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .inova-consent__button,
    .inova-consent__manage {
        transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
    }
}
