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

.ga-cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 99990;
    font-family: inherit;
}

.ga-cookie-banner__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.ga-cookie-banner__content {
    flex: 1 1 auto;
    min-width: 0;
}

.ga-cookie-banner__content h3,
.ga-cookie-modal__dialog h3 {
    margin: 0 0 8px;
    font-size: 21px;
    line-height: 1.25;
    color: #202020;
}

.ga-cookie-banner__content p,
.ga-cookie-modal__intro {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.65;
}

.ga-cookie-banner__content a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

.ga-cookie-banner__actions,
.ga-cookie-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ga-cookie-banner__actions {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.ga-cookie-btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 11px 16px;
    min-height: 44px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

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

.ga-cookie-btn:focus-visible,
.ga-cookie-switch input:focus-visible + .ga-cookie-switch__slider,
.ga-cookie-modal__close:focus-visible {
    outline: 3px solid rgba(0, 0, 0, .25);
    outline-offset: 2px;
}

.ga-cookie-btn--primary {
    background: #111;
    border-color: #111;
    color: #fff;
}

.ga-cookie-btn--primary:hover {
    background: #2b2b2b;
    border-color: #2b2b2b;
    color: #fff;
}

.ga-cookie-btn--secondary {
    background: #eee;
    border-color: #ddd;
    color: #222;
}

.ga-cookie-btn--secondary:hover {
    background: #e3e3e3;
    color: #111;
}

.ga-cookie-btn--outline {
    background: #fff;
    border-color: #aaa;
    color: #222;
}

.ga-cookie-btn--outline:hover {
    background: #f7f7f7;
    color: #111;
}

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

.ga-cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .48);
}

.ga-cookie-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
    padding: 28px;
}

.ga-cookie-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #555;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.ga-cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #ececec;
}

.ga-cookie-option:first-of-type {
    margin-top: 18px;
    border-top: 1px solid #ececec;
}

.ga-cookie-option__text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ga-cookie-option__text strong {
    color: #222;
    font-size: 15px;
}

.ga-cookie-option__text span {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.ga-cookie-switch {
    position: relative;
    flex: 0 0 48px;
    width: 48px;
    height: 26px;
}

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

.ga-cookie-switch__slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #b8b8b8;
    cursor: pointer;
    transition: background-color .2s ease;
}

.ga-cookie-switch__slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    transition: transform .2s ease;
}

.ga-cookie-switch input:checked + .ga-cookie-switch__slider {
    background: #111;
}

.ga-cookie-switch input:checked + .ga-cookie-switch__slider::before {
    transform: translateX(22px);
}

.ga-cookie-switch--disabled {
    opacity: .72;
}

.ga-cookie-switch--disabled .ga-cookie-switch__slider {
    cursor: default;
}

.ga-cookie-modal__actions {
    justify-content: flex-end;
    margin-top: 24px;
}

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

@media (max-width: 900px) {
    .ga-cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .ga-cookie-banner__inner {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
        padding: 18px;
    }

    .ga-cookie-banner__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ga-cookie-btn {
        width: 100%;
    }

    .ga-cookie-modal__dialog {
        padding: 24px 18px 20px;
    }

    .ga-cookie-modal__actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}
