.google-consent {
    --consent-bg: #fff;
    --consent-text: #202020;
    --consent-accent: #000;
    --consent-border: rgba(0, 0, 0, 0.4);
    --consent-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: var(--consent-text);
    font-family: inherit;
}

.google-consent,
.google-consent * {
    box-sizing: border-box;
}

.google-consent .cookies_modal {
    position: fixed;
    left: 2vw;
    bottom: 2vw;
    z-index: 10000;
    width: 650px;
    max-width: calc(100vw - 30px);
    padding: 25px;
    border-radius: 0;
    background: var(--consent-bg);
    box-shadow: var(--consent-shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.google-consent .cookies_modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.google-consent .cookies_close {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 3;
    display: flex;
    width: 17px;
    height: 17px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.google-consent .cookies_close img {
    display: block;
    width: 100%;
    height: 100%;
}

.google-consent .cookies_info {
    padding-right: 25px;
}

.google-consent #preference .cookies_info {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.google-consent .cookies_text-title {
    color: #000;
    font-size: 15px;
    line-height: 1.2;
}

.google-consent .cookies_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.google-consent .cookies_subtitle {
    font-size: 14px;
    line-height: 1.2;
}

.google-consent .cookies_text {
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.35;
    text-align: justify;
}

.google-consent .cookies_text a {
    display: inline;
    color: inherit;
    border-bottom: 1px solid currentColor;
    text-decoration: none;
}

.google-consent .cookies_switch {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;
}

.google-consent .cookies_switch-text {
    min-width: 22px;
    color: #000;
    font-size: 14px;
    text-transform: lowercase;
}

.google-consent .consent_switch {
    position: relative;
    display: block;
    width: 50px;
    height: 22px;
    margin: 0;
    cursor: pointer;
}

.google-consent .consent_switch::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background: #000;
}

.google-consent .consent_switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.google-consent .switch-round {
    position: absolute;
    inset: 1px;
    border-radius: 22px;
    background: #fff;
    transition: background 0.25s ease;
}

.google-consent .switch-round::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #000;
    transition: transform 0.25s ease, background 0.25s ease;
}

.google-consent input:checked + .switch-round {
    background: transparent;
}

.google-consent input:checked + .switch-round::before {
    background: #fff;
    transform: translateX(26px);
}

.google-consent input:focus-visible + .switch-round {
    outline: 2px solid #2196f3;
    outline-offset: 2px;
}

.google-consent .consent_switch:has(input:disabled) {
    cursor: not-allowed;
    opacity: 0.72;
}

.google-consent .cookies_buttons {
    display: grid;
    grid-template-columns: calc(35% - 10px) auto calc(35% - 10px);
    gap: 20px;
    margin-top: 25px;
}

.google-consent .cookies_btn {
    min-width: 0;
    padding: 13px 20px;
    border: 1px solid var(--consent-accent);
    border-radius: 0;
    background: #fff;
    color: var(--consent-text);
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
    cursor: pointer;
    appearance: none;
}

.google-consent .cookies_btn:hover,
.google-consent .cookies_btn:focus-visible {
    background: #f2f2f2;
}

.google-consent .cookies_primary {
    border-color: #000;
    background: #000;
    color: #fff;
}

.google-consent .cookies_primary:hover,
.google-consent .cookies_primary:focus-visible {
    background: #222;
}

@media (max-width: 992px) {
    .google-consent .cookies_modal {
        right: 15px;
        bottom: 15px;
        left: 15px;
        width: auto;
    }

    .google-consent .cookies_buttons {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .google-consent .cookies_btn {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .google-consent .cookies_modal {
        padding: 20px;
    }

    .google-consent #preference .cookies_info {
        max-height: 46vh;
    }
}

@media (max-width: 600px) {
    .google-consent .cookies_close {
        top: 15px;
        right: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .google-consent .cookies_modal,
    .google-consent .switch-round,
    .google-consent .switch-round::before {
        transition: none;
    }
}
