.mw-cookie-dialog {
    box-sizing: border-box;
    width: min(34rem, calc(100% - 1.5rem));
    max-height: calc(100dvh - 1.5rem);
    padding: clamp(1rem, 4.5vw, 2rem);
    border: 1px solid #a8cbdc;
    border-top: 4px solid #6dcff6;
    border-radius: 1rem;
    background: #fff;
    color: #17334a;
    box-shadow: 0 22px 75px #102e51a6;
    font: 1rem/1.5 Arial, Helvetica, sans-serif;
    overflow: auto;
}
.mw-cookie-dialog::backdrop { background: #102b4bbb; }
.mw-cookie-dialog *, .mw-cookie-dialog *::before, .mw-cookie-dialog *::after { box-sizing: border-box; }
.mw-cookie-dialog p { margin: .75rem 0 1.1rem; }
.mw-cookie-dialog :focus-visible { outline: 3px solid #225f88; outline-offset: 3px; }
.mw-cookie-header { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.mw-cookie-header h2 { margin: 0; color: #153f60; font-size: clamp(1.34rem, 4.5vw, 1.8rem); line-height: 1.15; }
.mw-cookie-dialog button { border-radius: .58rem; font: inherit; font-weight: 700; cursor: pointer; }
.mw-cookie-header button {
    flex: 0 0 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #b5d2e2;
    background: #eaf7fd;
    color: #153f60;
}
.mw-cookie-header svg { width: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mw-cookie-categories { min-width: 0; margin: 0; padding: 0; border: 0; }
.mw-cookie-categories legend { padding: 0 0 .6rem; font-weight: 700; }
.mw-cookie-categories label {
    display: grid;
    grid-template-columns: 1.25rem 1fr;
    gap: .72rem;
    padding: .72rem 0;
    border-top: 1px solid #dce7ed;
}
.mw-cookie-categories label:has(input:not(:disabled)) { cursor: pointer; }
.mw-cookie-categories input { margin: .15rem 0 0; width: 1.25rem; height: 1.25rem; accent-color: #225f88; }
.mw-cookie-categories small { display: block; margin-top: .15rem; font-size: .875rem; color: #3e5669; }
.mw-cookie-dialog a { color: #225f88; text-underline-offset: .18em; }
.mw-cookie-dialog .mw-cookie-links { font-size: .875rem; }
.mw-cookie-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.mw-cookie-actions button {
    min-height: 2.85rem;
    padding: .56rem .4rem;
    border: 1px solid #153f60;
    background: #153f60;
    color: #fff;
    line-height: 1.28;
}
.mw-cookie-actions button:hover { background: #225f88; }
.mw-cookie-actions [data-mw-cookie-action="save"] {
    grid-column: 1 / -1;
    border-color: #a8cbdc;
    background: #eaf7fd;
    color: #153f60;
}
.mw-cookie-actions [data-mw-cookie-action="save"]:hover { background: #d8eef9; }
#mw-site .mw-cookie-settings-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: .17em;
}
#mw-site .mw-video-consent {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    margin-block: .65rem;
    padding: .7rem;
    border: 1px solid #bfdce9;
    border-radius: .5rem;
    background: #eaf7fd;
    color: #153f60;
}
#mw-site .mw-video-consent p { flex: 1 0 100%; margin: 0; font-size: .92rem; }
#mw-site .mw-video-consent button {
    min-height: 2.75rem;
    padding: .4rem .65rem;
    border: 1px solid #a8cbdc;
    border-radius: .4rem;
    background: #fff;
    color: #153f60;
    font-weight: 700;
}
#mw-site .mw-video-consent button[data-mw-video-confirm] { background: #153f60; color: #fff; border-color: #153f60; }

