:root {
    --wf-cookie-navy: #123765;
    --wf-cookie-navy-strong: #0b2850;
    --wf-cookie-blue: #2d73c8;
    --wf-cookie-teal: #12a8ad;
    --wf-cookie-teal-soft: #e7f8f7;
    --wf-cookie-surface: #ffffff;
    --wf-cookie-bg: #f4f8fc;
    --wf-cookie-border: #d9e5f0;
    --wf-cookie-text: #1b304b;
    --wf-cookie-muted: #6e8097;
    --wf-cookie-shadow: 0 24px 60px rgba(14, 43, 78, .18);
}

.wf-cookie-banner[hidden],
.wf-cookie-modal[hidden],
.wf-cookie-toast[hidden],
.wf-cookie-category__panel[hidden] {
    display: none !important;
}

.wf-cookie-lock,
.wf-cookie-lock body {
    overflow: hidden !important;
}

.wf-cookie-eyebrow {
    display: block;
    margin: 0 0 5px;
    color: var(--wf-cookie-teal);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .085em;
    line-height: 1.4;
    text-transform: uppercase;
}

.wf-cookie-banner {
    position: fixed;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 100050;
    margin: 0 auto;
    max-width: 1220px;
    color: var(--wf-cookie-text);
    font-family: inherit;
}

.wf-cookie-banner__inner {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) minmax(430px, auto);
    gap: 18px;
    align-items: center;
    padding: 20px;
    border: 1px solid rgba(217, 229, 240, .95);
    border-radius: 20px;
    background: rgba(255, 255, 255, .98);
    box-shadow: var(--wf-cookie-shadow);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.wf-cookie-banner__icon,
.wf-cookie-modal__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(145deg, #eaf4ff, var(--wf-cookie-teal-soft));
    color: var(--wf-cookie-blue);
    flex: 0 0 auto;
}

.wf-cookie-banner__icon svg,
.wf-cookie-modal__icon svg {
    width: 23px;
    height: 23px;
}

.wf-cookie-banner__content h2,
.wf-cookie-modal__heading h2 {
    margin: 0;
    color: var(--wf-cookie-navy-strong);
    font-family: inherit;
    font-size: 21px;
    font-weight: 550;
    letter-spacing: -.015em;
    line-height: 1.25;
}

.wf-cookie-banner__content p {
    margin: 6px 0 0;
    color: var(--wf-cookie-muted);
    font-size: 13.5px;
    font-weight: 350;
    line-height: 1.55;
}

.wf-cookie-banner a,
.wf-cookie-modal a {
    color: #1260aa;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wf-cookie-banner__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.wf-cookie-btn {
    appearance: none;
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 550;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.wf-cookie-btn:hover {
    transform: translateY(-1px);
}

.wf-cookie-btn:focus-visible,
.wf-cookie-modal__close:focus-visible,
.wf-cookie-category__toggle:focus-visible,
.wf-cookie-switch input:focus-visible + .wf-cookie-switch__track,
.wf-cookie-footer-link:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(45, 115, 200, .24);
}

.wf-cookie-btn--choice {
    border-color: var(--wf-cookie-navy);
    background: var(--wf-cookie-navy);
    color: #fff;
}

.wf-cookie-btn--choice:hover {
    border-color: var(--wf-cookie-navy-strong);
    background: var(--wf-cookie-navy-strong);
    color: #fff;
}

.wf-cookie-btn--manage {
    border-color: #bfcfe0;
    background: #fff;
    color: var(--wf-cookie-navy);
}

.wf-cookie-btn--manage:hover {
    border-color: #8eabc8;
    background: #f5f9fd;
    color: var(--wf-cookie-navy-strong);
}

.wf-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 100100;
    display: grid;
    place-items: center;
    padding: 20px;
    font-family: inherit;
}

.wf-cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 26, 52, .58);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.wf-cookie-modal__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(920px, 100%);
    max-height: min(820px, calc(100vh - 40px));
    overflow: hidden;
    border: 1px solid rgba(217, 229, 240, .95);
    border-radius: 22px;
    background: var(--wf-cookie-surface);
    box-shadow: 0 30px 90px rgba(4, 24, 51, .3);
}

.wf-cookie-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 19px 22px;
    border-bottom: 1px solid var(--wf-cookie-border);
    background: linear-gradient(100deg, #f4f9ff 0%, #edfafa 100%);
}

.wf-cookie-modal__heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
}

.wf-cookie-modal__icon {
    width: 43px;
    height: 43px;
    border: 1px solid rgba(45, 115, 200, .12);
    background: rgba(255, 255, 255, .86);
}

.wf-cookie-modal__heading h2 {
    font-size: 22px;
}

.wf-cookie-modal__close {
    appearance: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #cddbe8;
    border-radius: 11px;
    background: rgba(255, 255, 255, .9);
    color: #51667e;
    font-size: 15px;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.wf-cookie-modal__close:hover {
    background: #fff;
    color: var(--wf-cookie-navy);
    transform: translateY(-1px);
}

.wf-cookie-modal__body {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 22px 22px;
    background: #fbfdff;
    scrollbar-color: #9bb2c9 #edf3f8;
    scrollbar-width: thin;
}

.wf-cookie-modal__intro {
    margin: 0;
    color: #536a82;
    font-size: 13.5px;
    font-weight: 350;
    line-height: 1.6;
}

.wf-cookie-required-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0 16px;
    padding: 11px 13px;
    border: 1px solid #cbeae7;
    border-radius: 11px;
    background: var(--wf-cookie-teal-soft);
    color: #247175;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.5;
}

.wf-cookie-required-note i {
    margin-top: 3px;
}

.wf-cookie-categories {
    display: grid;
    gap: 10px;
}

.wf-cookie-category {
    overflow: hidden;
    border: 1px solid var(--wf-cookie-border);
    border-radius: 14px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.wf-cookie-category:has(.wf-cookie-switch input:checked) {
    border-color: #a8d7d6;
    box-shadow: 0 6px 18px rgba(18, 168, 173, .08);
}

.wf-cookie-category__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 72px;
    padding: 10px 13px;
}

.wf-cookie-category__toggle {
    appearance: none;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 4px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.wf-cookie-category__chevron {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #eef5fb;
    color: #507398;
    font-size: 10px;
    transition: transform .2s ease, background-color .2s ease;
}

.wf-cookie-category__toggle[aria-expanded="true"] .wf-cookie-category__chevron {
    transform: rotate(180deg);
    background: #e4f5f4;
    color: #17888c;
}

.wf-cookie-category__copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.wf-cookie-category__copy strong {
    color: var(--wf-cookie-text);
    font-size: 14px;
    font-weight: 550;
    line-height: 1.3;
}

.wf-cookie-category__copy small {
    overflow: hidden;
    color: var(--wf-cookie-muted);
    font-size: 11.5px;
    font-weight: 350;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wf-cookie-category__control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wf-cookie-category__control > span {
    color: #708298;
    font-size: 10.5px;
    font-weight: 500;
    white-space: nowrap;
}

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

.wf-cookie-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.wf-cookie-switch__track {
    position: relative;
    display: block;
    width: 44px;
    height: 25px;
    border: 1px solid #becddb;
    border-radius: 99px;
    background: #dce5ed;
    transition: border-color .2s ease, background-color .2s ease;
}

.wf-cookie-switch__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(28, 54, 83, .22);
    transition: transform .2s ease;
}

.wf-cookie-switch input:checked + .wf-cookie-switch__track {
    border-color: var(--wf-cookie-teal);
    background: var(--wf-cookie-teal);
}

.wf-cookie-switch input:checked + .wf-cookie-switch__track .wf-cookie-switch__thumb {
    transform: translateX(19px);
}

.wf-cookie-switch input:disabled + .wf-cookie-switch__track {
    cursor: not-allowed;
    opacity: .78;
}

.wf-cookie-category__panel {
    padding: 0 17px 16px 57px;
    border-top: 1px solid #edf2f7;
}

.wf-cookie-category__panel > p {
    margin: 14px 0 12px;
    color: #60748a;
    font-size: 12.5px;
    font-weight: 350;
    line-height: 1.55;
}

.wf-cookie-table-wrap {
    overflow-x: auto;
    border: 1px solid #e3ebf3;
    border-radius: 10px;
}

.wf-cookie-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
    color: #4b6178;
    font-size: 10.5px;
}

.wf-cookie-table th,
.wf-cookie-table td {
    padding: 8px 9px;
    border-bottom: 1px solid #e8eef4;
    text-align: left;
    vertical-align: top;
    word-break: break-word;
}

.wf-cookie-table th {
    background: #f3f7fb;
    color: #516a84;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.wf-cookie-table th:nth-child(1) { width: 20%; }
.wf-cookie-table th:nth-child(2) { width: 18%; }
.wf-cookie-table th:nth-child(3) { width: 44%; }
.wf-cookie-table th:nth-child(4) { width: 18%; }

.wf-cookie-table tr:last-child td {
    border-bottom: 0;
}

.wf-cookie-table code {
    padding: 2px 5px;
    border-radius: 5px;
    background: #edf5fc;
    color: #275d91;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 9.5px;
    white-space: normal;
}

.wf-cookie-policy-link {
    margin: 15px 2px 0;
    color: #687c92;
    font-size: 11.5px;
    font-weight: 350;
    line-height: 1.5;
}

.wf-cookie-policy-link i {
    margin-right: 5px;
    color: var(--wf-cookie-blue);
}

.wf-cookie-modal__footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 15px 22px;
    border-top: 1px solid var(--wf-cookie-border);
    background: #fff;
}

.wf-cookie-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 100150;
    display: flex;
    align-items: center;
    gap: 9px;
    max-width: min(360px, calc(100vw - 36px));
    padding: 12px 15px;
    border: 1px solid #bce3d4;
    border-radius: 12px;
    background: #f1fbf7;
    box-shadow: 0 15px 38px rgba(23, 90, 67, .18);
    color: #217154;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
}

.wf-cookie-footer-link {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.footer-dark .wf-cookie-footer-link {
    color: inherit;
}

.footer-dark .wf-cookie-footer-link:hover {
    color: #fff;
}

@media (max-width: 1040px) {
    .wf-cookie-banner__inner {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .wf-cookie-banner__actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .wf-cookie-banner {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    .wf-cookie-banner__inner {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 11px;
        padding: 15px;
        border-radius: 16px;
    }

    .wf-cookie-banner__icon {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .wf-cookie-banner__icon svg {
        width: 20px;
        height: 20px;
    }

    .wf-cookie-banner__content h2 {
        font-size: 17px;
    }

    .wf-cookie-banner__content p {
        font-size: 12px;
    }

    .wf-cookie-eyebrow {
        font-size: 9.5px;
    }

    .wf-cookie-banner__actions {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .wf-cookie-btn {
        width: 100%;
        min-height: 40px;
        font-size: 12px;
    }

    .wf-cookie-modal {
        align-items: end;
        padding: 0;
    }

    .wf-cookie-modal__dialog {
        width: 100%;
        max-height: min(92vh, 860px);
        border-radius: 20px 20px 0 0;
    }

    .wf-cookie-modal__header,
    .wf-cookie-modal__body,
    .wf-cookie-modal__footer {
        padding-right: 15px;
        padding-left: 15px;
    }

    .wf-cookie-modal__heading h2 {
        font-size: 18px;
    }

    .wf-cookie-modal__icon {
        width: 38px;
        height: 38px;
    }

    .wf-cookie-category__header {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
    }

    .wf-cookie-category__control {
        justify-content: space-between;
        padding: 0 5px 4px 44px;
    }

    .wf-cookie-category__panel {
        padding: 0 12px 13px;
    }

    .wf-cookie-table-wrap {
        overflow: visible;
        border: 0;
    }

    .wf-cookie-table,
    .wf-cookie-table tbody,
    .wf-cookie-table tr,
    .wf-cookie-table td {
        display: block;
        width: 100%;
    }

    .wf-cookie-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .wf-cookie-table tr {
        margin-bottom: 8px;
        padding: 7px 9px;
        border: 1px solid #e3ebf3;
        border-radius: 9px;
        background: #fbfdff;
    }

    .wf-cookie-table tr:last-child {
        margin-bottom: 0;
    }

    .wf-cookie-table td {
        display: grid;
        grid-template-columns: minmax(86px, 34%) minmax(0, 1fr);
        gap: 7px;
        padding: 4px 0;
        border: 0;
    }

    .wf-cookie-table td::before {
        content: attr(data-label);
        color: #6c8198;
        font-size: 8.5px;
        font-weight: 600;
        letter-spacing: .03em;
        text-transform: uppercase;
    }

    .wf-cookie-modal__footer {
        grid-template-columns: 1fr;
        gap: 7px;
        padding-top: 11px;
        padding-bottom: max(11px, env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    .wf-cookie-btn,
    .wf-cookie-modal__close,
    .wf-cookie-category,
    .wf-cookie-category__chevron,
    .wf-cookie-switch__track,
    .wf-cookie-switch__thumb {
        transition: none !important;
    }
}
