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

.ets-cookie-banner {
    position: fixed;
    z-index: 99990;
    left: 0;
    right: 0;
    bottom: 0;
    border-top: 1px solid #d9e5eb;
    background: rgba(255, 255, 255, 0.985);
    box-shadow: 0 -4px 16px rgba(35, 67, 87, 0.10);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
}

.ets-cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ets-cookie-banner-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 62px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 10px 0;
}

.ets-cookie-banner p {
    margin: 0;
    color: #607887;
    font-size: 11.5px;
    line-height: 1.45;
}

.ets-cookie-banner a,
.ets-cookie-link {
    color: #456f88;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ets-cookie-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ets-cookie-btn {
    min-width: 92px;
    min-height: 33px;
    padding: 6px 13px;
    border: 1px solid #cbdbe3;
    border-radius: 7px;
    background: #f8fbfc;
    color: #35566a;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.ets-cookie-btn:hover,
.ets-cookie-btn:focus-visible {
    background: #eef4f7;
}

.ets-cookie-link {
    min-height: 33px;
    padding: 5px 4px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}

.ets-cookie-overlay {
    position: fixed;
    z-index: 99991;
    inset: 0;
    background: rgba(32, 53, 65, .24);
}

.ets-cookie-modal {
    position: fixed;
    z-index: 99992;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ets-cookie-modal-card {
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border: 1px solid #d8e4ea;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 18px 52px rgba(30, 54, 68, .22);
}

.ets-cookie-modal-head {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 19px 15px;
    border-bottom: 1px solid #e7eef2;
    background: #fbfdfe;
}

.ets-cookie-modal-head h2 {
    margin: 0;
    color: #29485b;
    font-size: 17px;
}

.ets-cookie-modal-head p {
    margin: 5px 0 0;
    color: #7d909a;
    font-size: 11px;
    line-height: 1.45;
}

.ets-cookie-modal-close {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: 1px solid #d3e0e6;
    border-radius: 7px;
    background: #fff;
    color: #627b89;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.ets-cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 19px;
    border-bottom: 1px solid #edf2f5;
}

.ets-cookie-category strong,
.ets-cookie-category span {
    display: block;
}

.ets-cookie-category strong {
    color: #35566a;
    font-size: 12px;
}

.ets-cookie-category div > span {
    margin-top: 3px;
    color: #8496a0;
    font-size: 10.5px;
    line-height: 1.4;
}

.ets-cookie-always {
    flex: 0 0 auto;
    color: #7e929e;
    font-size: 10px;
    font-weight: 700;
}

.ets-cookie-switch {
    position: relative;
    flex: 0 0 auto;
    width: 38px;
    height: 22px;
}

.ets-cookie-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ets-cookie-switch > span:not(.sr-only) {
    position: absolute;
    inset: 0;
    border: 1px solid #c8d7df;
    border-radius: 999px;
    background: #e9eff2;
    cursor: pointer;
    transition: .16s ease;
}

.ets-cookie-switch > span:not(.sr-only)::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(40, 60, 72, .20);
    transition: .16s ease;
}

.ets-cookie-switch input:checked + span {
    border-color: #8faec0;
    background: #9eb9c8;
}

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

.ets-cookie-switch input:focus-visible + span {
    outline: 2px solid #6b96b1;
    outline-offset: 2px;
}

.ets-cookie-modal-more {
    padding: 11px 19px 0;
    font-size: 10.5px;
}

.ets-cookie-modal-more a {
    color: #4d7992;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ets-cookie-modal-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 19px 18px;
}

.ets-cookie-btn-soft {
    background: #fff;
}

.ets-cookie-btn-save {
    border-color: #9db6c5;
    background: #edf4f7;
}

.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;
}

@media (max-width: 680px) {
    .ets-cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        border: 1px solid #d9e5eb;
        border-radius: 11px;
    }

    .ets-cookie-banner-inner {
        width: auto;
        min-height: 0;
        padding: 13px;
        display: block;
    }

    .ets-cookie-banner p {
        font-size: 11px;
    }

    .ets-cookie-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 7px;
        margin-top: 10px;
    }

    .ets-cookie-btn {
        width: 100%;
        min-width: 0;
    }

    .ets-cookie-link {
        grid-column: 1 / -1;
        justify-self: center;
        height: auto;
        min-height: 26px;
    }

    .ets-cookie-modal {
        align-items: flex-end;
        padding: 10px;
    }

    .ets-cookie-modal-card {
        max-height: calc(100vh - 20px);
        border-radius: 12px;
    }

    .ets-cookie-modal-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .ets-cookie-btn-save {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ets-cookie-banner,
    .ets-cookie-switch > span:not(.sr-only),
    .ets-cookie-switch > span:not(.sr-only)::after {
        transition: none;
    }
}
