#oh-cookie-consent-root {
    --oh-cookie-blue: #001a72;
    --oh-cookie-blue-hover: #082c91;
    --oh-cookie-yellow: #ffd700;
    --oh-cookie-text: #17231e;
    --oh-cookie-muted: #56635d;
    --oh-cookie-border: #dce3df;
    font-family: Outfit, Inter, Arial, Helvetica, sans-serif;
}

#oh-cookie-consent-root *,
#oh-cookie-consent-root *::before,
#oh-cookie-consent-root *::after {
    box-sizing: border-box;
}

.oh-cookie-banner[hidden],
.oh-cookie-backdrop[hidden] {
    display: none !important;
}

.oh-cookie-banner {
    position: fixed;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 10000;
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 21px 22px;
    border: 1px solid rgba(0, 26, 114, 0.16);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 20px 54px rgba(0, 18, 77, 0.2);
    color: var(--oh-cookie-text);
}

.oh-cookie-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--oh-cookie-blue);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.oh-cookie-banner h2,
.oh-cookie-dialog h2,
.oh-cookie-category h3 {
    color: var(--oh-cookie-blue);
    font-family: Outfit, Inter, Arial, Helvetica, sans-serif;
}

.oh-cookie-banner h2 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -0.015em;
}

.oh-cookie-banner p {
    max-width: 700px;
    margin: 0;
    color: var(--oh-cookie-muted);
    font-size: 13px;
    line-height: 1.5;
}

.oh-cookie-banner a {
    color: var(--oh-cookie-blue);
    font-weight: 800;
    text-underline-offset: 2px;
}

.oh-cookie-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(145px, 1fr));
    gap: 9px;
}

#oh-cookie-consent-root button {
    min-height: 43px;
    padding: 0 15px;
    border: 2px solid var(--oh-cookie-blue);
    border-radius: 10px;
    background: var(--oh-cookie-blue);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
    transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

#oh-cookie-consent-root button:hover {
    background: var(--oh-cookie-blue-hover);
    box-shadow: 0 7px 16px rgba(0, 26, 114, 0.18);
    transform: translateY(-1px);
}

#oh-cookie-consent-root button:focus-visible,
#oh-cookie-consent-root input:focus-visible,
#oh-cookie-consent-root summary:focus-visible,
#oh-cookie-consent-root a:focus-visible {
    outline: 4px solid var(--oh-cookie-yellow);
    outline-offset: 3px;
}

#oh-cookie-consent-root .oh-cookie-button-outline {
    background: #fff;
    color: var(--oh-cookie-blue);
}

#oh-cookie-consent-root .oh-cookie-button-outline:hover {
    background: #f2f5ff;
}

.oh-cookie-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(4, 13, 31, 0.54);
}

.oh-cookie-dialog {
    width: min(680px, 100%);
    max-height: min(760px, calc(100dvh - 44px));
    overflow-y: auto;
    border: 1px solid rgba(0, 26, 114, 0.15);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 10, 42, 0.35);
    color: var(--oh-cookie-text);
}

.oh-cookie-dialog-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px 18px;
    border-bottom: 1px solid var(--oh-cookie-border);
    background: #fff;
}

.oh-cookie-dialog h2 {
    margin: 0;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -0.025em;
}

#oh-cookie-consent-root .oh-cookie-close {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border-color: transparent;
    background: #f2f4f3;
    color: #34413b;
    font-size: 25px;
    line-height: 1;
}

#oh-cookie-consent-root .oh-cookie-close:hover {
    background: #e7ebe9;
    box-shadow: none;
}

.oh-cookie-dialog-intro {
    margin: 0;
    padding: 20px 26px 8px;
    color: var(--oh-cookie-muted);
    font-size: 14px;
    line-height: 1.55;
}

.oh-cookie-category-list {
    display: grid;
    gap: 12px;
    padding: 14px 26px 24px;
}

.oh-cookie-category {
    padding: 18px;
    border: 1px solid var(--oh-cookie-border);
    border-radius: 14px;
    background: #fbfcfb;
}

.oh-cookie-category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.oh-cookie-category h3 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 850;
}

.oh-cookie-category p {
    margin: 0;
    color: var(--oh-cookie-muted);
    font-size: 12.5px;
    line-height: 1.52;
}

.oh-cookie-always-on {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    background: #e8f4ee;
    color: #075b3e;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}

.oh-cookie-category details {
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid var(--oh-cookie-border);
}

.oh-cookie-category summary {
    width: fit-content;
    color: var(--oh-cookie-blue);
    cursor: pointer;
    font-size: 11px;
    font-weight: 850;
}

.oh-cookie-category details p {
    margin-top: 10px;
}

.oh-cookie-category code {
    padding: 1px 4px;
    border-radius: 4px;
    background: #edf0ee;
    color: #24322b;
}

.oh-cookie-switch {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    cursor: pointer;
}

.oh-cookie-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.oh-cookie-switch input + span {
    position: relative;
    display: block;
    width: 50px;
    height: 28px;
    border: 2px solid #84908a;
    border-radius: 999px;
    background: #84908a;
    transition: background 160ms ease, border-color 160ms ease;
}

.oh-cookie-switch input + span::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    content: "";
    transition: transform 160ms ease;
}

.oh-cookie-switch input:checked + span {
    border-color: var(--oh-cookie-blue);
    background: var(--oh-cookie-blue);
}

.oh-cookie-switch input:checked + span::after {
    transform: translateX(22px);
}

.oh-cookie-switch input:focus-visible + span {
    outline: 4px solid var(--oh-cookie-yellow);
    outline-offset: 3px;
}

.oh-cookie-dialog-actions {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 17px 26px 22px;
    border-top: 1px solid var(--oh-cookie-border);
    background: #fff;
}

.oh-cookie-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.oh-cookie-modal-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .oh-cookie-banner {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .oh-cookie-actions {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .oh-cookie-banner {
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: calc(100% - 20px);
        padding: 17px;
        border-radius: 14px;
    }

    .oh-cookie-banner h2 {
        font-size: 17px;
    }

    .oh-cookie-banner p {
        font-size: 12px;
    }

    .oh-cookie-actions {
        grid-template-columns: 1fr 1fr;
    }

    .oh-cookie-actions .oh-cookie-button-outline {
        grid-column: 1 / -1;
    }

    #oh-cookie-consent-root button {
        min-height: 45px;
        padding: 0 10px;
        font-size: 11px;
    }

    .oh-cookie-backdrop {
        align-items: end;
        padding: 0;
    }

    .oh-cookie-dialog {
        width: 100%;
        max-height: 92dvh;
        border-radius: 20px 20px 0 0;
    }

    .oh-cookie-dialog-header {
        padding: 20px 18px 15px;
    }

    .oh-cookie-dialog h2 {
        font-size: 22px;
    }

    .oh-cookie-dialog-intro {
        padding: 17px 18px 7px;
        font-size: 13px;
    }

    .oh-cookie-category-list {
        padding: 12px 18px 19px;
    }

    .oh-cookie-category {
        padding: 15px;
    }

    .oh-cookie-category-heading {
        align-items: flex-start;
        gap: 14px;
    }

    .oh-cookie-always-on {
        white-space: normal;
        text-align: center;
    }

    .oh-cookie-dialog-actions {
        padding: 14px 18px 18px;
    }

}

@media (prefers-reduced-motion: reduce) {
    #oh-cookie-consent-root button,
    .oh-cookie-switch input + span,
    .oh-cookie-switch input + span::after {
        transition: none;
    }
}
