.yg-cookie-manager {
    --yg-cookie-navy: #062760;
    --yg-cookie-blue: #1e70e0;
    --yg-cookie-ink: #071d3b;
    --yg-cookie-muted: #64748b;
    --yg-cookie-line: #dce6f2;
    font-family: inherit;
    color: var(--yg-cookie-ink);
}

.yg-cookie-banner[hidden],
.yg-cookie-modal[hidden],
.yg-cookie-overlay[hidden],
.yg-cookie-settings[hidden] {
    display: none !important;
}

.yg-cookie-banner {
    position: fixed;
    z-index: 10020;
    right: 22px;
    bottom: 22px;
    left: 22px;
    display: grid;
    grid-template-columns: 52px minmax(260px, 1fr) auto;
    align-items: center;
    gap: 18px;
    width: min(1160px, calc(100% - 44px));
    margin: 0 auto;
    padding: 18px 20px;
    overflow: hidden;
    border: 1px solid rgba(6, 39, 96, .11);
    border-radius: 20px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 22px 65px rgba(6, 39, 96, .18), 0 2px 8px rgba(6, 39, 96, .06);
    backdrop-filter: blur(18px);
    animation: ygCookieEnter .42s cubic-bezier(.22, 1, .36, 1) both;
}

.yg-cookie-banner::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--yg-cookie-blue), var(--yg-cookie-navy));
    content: "";
}

.yg-cookie-banner::after {
    position: absolute;
    z-index: -1;
    top: -68px;
    right: 30%;
    width: 190px;
    height: 190px;
    border: 34px solid rgba(30, 112, 224, .035);
    border-radius: 50%;
    content: "";
}

@keyframes ygCookieEnter {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.yg-cookie-mark {
    display: inline-flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #fff;
    background: var(--yg-cookie-navy);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
    font-size: 23px;
}

.yg-cookie-copy {
    min-width: 0;
}

.yg-cookie-copy > span,
.yg-cookie-modal header span {
    display: block;
    margin-bottom: 3px;
    color: var(--yg-cookie-blue);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .045em;
    text-transform: none;
}

.yg-cookie-copy h2 {
    margin: 0 0 4px;
    color: var(--yg-cookie-ink);
    font-size: 18px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -.015em;
}

.yg-cookie-copy p {
    max-width: 680px;
    margin: 0;
    color: var(--yg-cookie-muted);
    font-size: 12.5px;
    line-height: 1.55;
}

.yg-cookie-copy a,
.yg-cookie-modal a {
    color: var(--yg-cookie-navy);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(6, 39, 96, .3);
}

.yg-cookie-copy a:hover,
.yg-cookie-modal a:hover {
    color: var(--yg-cookie-blue);
    border-color: currentColor;
}

.yg-cookie-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.yg-cookie-button,
.yg-cookie-link {
    min-height: 42px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.yg-cookie-button {
    padding: 9px 15px;
    border: 1px solid var(--yg-cookie-line);
    color: var(--yg-cookie-navy);
    background: #f6f9fd;
}

.yg-cookie-button.is-primary {
    padding-inline: 19px;
    border-color: var(--yg-cookie-navy);
    color: #fff;
    background: var(--yg-cookie-navy);
    box-shadow: 0 8px 20px rgba(6, 39, 96, .16);
}

.yg-cookie-link {
    padding: 8px 10px;
    border: 0;
    color: var(--yg-cookie-navy);
    background: transparent;
}

.yg-cookie-button:hover,
.yg-cookie-link:hover {
    transform: translateY(-1px);
}

.yg-cookie-button:not(.is-primary):hover,
.yg-cookie-link:hover {
    color: var(--yg-cookie-blue);
    background: #edf5ff;
}

.yg-cookie-button.is-primary:hover {
    border-color: #0a397b;
    background: #0a397b;
}

.yg-cookie-button:focus-visible,
.yg-cookie-link:focus-visible,
.yg-cookie-modal button:focus-visible,
.yg-cookie-switch input:focus-visible + span {
    outline: 3px solid rgba(30, 112, 224, .25);
    outline-offset: 2px;
}

.yg-cookie-overlay {
    position: fixed;
    z-index: 10030;
    inset: 0;
    background: rgba(3, 19, 45, .66);
    backdrop-filter: blur(6px);
    animation: ygCookieFade .2s ease both;
}

@keyframes ygCookieFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.yg-cookie-modal {
    position: fixed;
    z-index: 10040;
    top: 50%;
    left: 50%;
    width: min(650px, calc(100% - 30px));
    max-height: calc(100vh - 36px);
    padding: 26px;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 32px 100px rgba(2, 17, 43, .4);
    transform: translate(-50%, -50%);
    animation: ygCookieModalEnter .3s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes ygCookieModalEnter {
    from { opacity: 0; transform: translate(-50%, calc(-50% + 16px)) scale(.98); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.yg-cookie-modal header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e8eef6;
}

.yg-cookie-modal header h2 {
    margin: 2px 0 0;
    color: var(--yg-cookie-ink);
    font-size: 25px;
    font-weight: 780;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.yg-cookie-modal header button {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: var(--yg-cookie-navy);
    background: #f1f5fa;
    font-size: 21px;
    cursor: pointer;
}

.yg-cookie-intro {
    margin: 17px 0;
    color: var(--yg-cookie-muted);
    font-size: 13px;
    line-height: 1.65;
}

.yg-cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.yg-cookie-categories article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px;
    border: 1px solid #e1e9f3;
    border-radius: 16px;
    background: #f8fafd;
    transition: border-color .2s ease, background-color .2s ease;
}

.yg-cookie-categories article:hover {
    border-color: #cbdbee;
    background: #fbfdff;
}

.yg-cookie-categories article > div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.yg-cookie-categories article > div > i {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--yg-cookie-blue);
    background: #eaf3ff;
    font-size: 17px;
}

.yg-cookie-categories h3 {
    margin: 0 0 3px;
    color: var(--yg-cookie-ink);
    font-size: 14px;
    font-weight: 750;
}

.yg-cookie-categories p {
    max-width: 410px;
    margin: 0;
    color: #718096;
    font-size: 11.5px;
    line-height: 1.5;
}

.yg-cookie-required {
    flex: none;
    padding: 6px 10px;
    border-radius: 999px;
    color: #087748;
    background: #dcf7e9;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

.yg-cookie-switch {
    display: flex;
    flex: none;
    align-items: center;
    cursor: pointer;
}

.yg-cookie-switch input {
    position: absolute;
    opacity: 0;
}

.yg-cookie-switch > span {
    position: relative;
    width: 44px;
    height: 25px;
    border-radius: 999px;
    background: #cbd6e3;
    transition: background-color .2s ease;
}

.yg-cookie-switch > span::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(6, 39, 96, .2);
    content: "";
    transition: transform .2s ease;
}

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

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

.yg-cookie-switch b {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.yg-cookie-modal footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e8eef6;
}

.yg-cookie-settings {
    display: none !important;
}

.yg-cookie-modal-open {
    overflow: hidden;
}

.yg-cookie-policy {
    padding: 150px 0 90px;
    background: #f6f8fa;
}

.yg-cookie-policy-card {
    max-width: 980px;
    margin: auto;
    padding: 45px;
    border: 1px solid #e1e8ee;
    border-radius: 24px;
    background: #fff;
}

.yg-cookie-policy-card h1 {
    margin-bottom: 25px;
    font-size: 42px;
    font-weight: 800;
}

.yg-cookie-policy-content {
    color: #405e73;
    font-size: 16px;
    line-height: 1.85;
}

.yg-cookie-policy-content h2,
.yg-cookie-policy-content h3 {
    margin: 30px 0 12px;
    color: #0b2841;
}

.yg-cookie-policy-actions {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #e4eaef;
}

.yg-cookie-policy-actions button {
    border: 0;
    color: #fff;
    background: var(--yg-cookie-navy);
}

@media (max-width: 980px) {
    .yg-cookie-banner {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 14px;
        width: min(720px, calc(100% - 32px));
        padding: 18px;
    }

    .yg-cookie-mark {
        width: 46px;
        height: 46px;
    }

    .yg-cookie-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
        padding-top: 3px;
    }
}

@media (max-width: 600px) {
    .yg-cookie-banner {
        right: 10px;
        bottom: 10px;
        left: 10px;
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 11px;
        width: auto;
        padding: 15px;
        border-radius: 18px;
    }

    .yg-cookie-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 19px;
    }

    .yg-cookie-copy > span {
        font-size: 9px;
    }

    .yg-cookie-copy h2 {
        font-size: 16px;
    }

    .yg-cookie-copy p {
        font-size: 11.5px;
    }

    .yg-cookie-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 7px;
        width: 100%;
    }

    .yg-cookie-actions .yg-cookie-button {
        width: 100%;
        min-height: 44px;
        padding-inline: 10px;
    }

    .yg-cookie-actions .yg-cookie-link {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 34px;
    }

    .yg-cookie-modal {
        top: auto;
        bottom: 8px;
        width: calc(100% - 16px);
        max-height: calc(100dvh - 16px);
        padding: 19px;
        border-radius: 22px;
        transform: translateX(-50%);
        animation-name: ygCookieModalEnterMobile;
    }

    @keyframes ygCookieModalEnterMobile {
        from { opacity: 0; transform: translate(-50%, 18px); }
        to { opacity: 1; transform: translate(-50%, 0); }
    }

    .yg-cookie-modal header h2 {
        font-size: 22px;
    }

    .yg-cookie-categories article {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .yg-cookie-required,
    .yg-cookie-switch {
        align-self: flex-end;
    }

    .yg-cookie-modal footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .yg-cookie-modal footer .yg-cookie-button {
        width: 100%;
    }

    .yg-cookie-modal footer a {
        align-self: center;
    }

    .yg-cookie-policy {
        padding: 110px 12px 60px;
    }

    .yg-cookie-policy-card {
        padding: 25px;
    }

    .yg-cookie-policy-card h1 {
        font-size: 31px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yg-cookie-banner,
    .yg-cookie-overlay,
    .yg-cookie-modal {
        animation: none;
    }
}
