:root {
    --techotools-cookie-consent-height: 0px;
}

.cookie-consent {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 220;
    color: #fff;
    background: #202020;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.cookie-consent.cookie-consent_is-hiding {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
}

.cookie-consent__container {
    width: 100%;
    padding-left: 0;
}

.cookie-consent__inner {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    width: 100%;
    max-width: 1218px;
    min-height: 92px;
    margin-right: auto;
    margin-left: auto;
    padding-top: 18px;
    padding-right: var(--container-padding-h);
    padding-bottom: 18px;
    padding-left: var(--container-padding-h);
}

.cookie-consent__copy {
    flex: 0 1 980px;
    min-width: 0;
}

.cookie-consent__text {
    max-width: 980px;
    font-size: 16px;
    line-height: 1.45;
}

.cookie-consent__error {
    margin-top: 7px;
    color: #ffb78e;
    font-size: 13px;
    line-height: 1.35;
}

.cookie-consent__button {
    flex: 0 0 auto;
    min-width: 146px;
    color: #fff;
    background-color: var(--theme-color-accent, #f1681a);
}

.cookie-consent__button:disabled {
    cursor: wait;
    opacity: 0.7;
}

body.techotools-cookie-consent-visible .btn-chat {
    bottom: calc(49px + var(--techotools-cookie-consent-height));
}

body.techotools-cookie-consent-visible .btn-gotop {
    bottom: calc(131px + var(--techotools-cookie-consent-height));
}

@media (max-width: 1200px) {
    .cookie-consent {
        bottom: 58px;
    }

    .cookie-consent__inner {
        padding-right: var(--container-padding-h);
        padding-left: var(--container-padding-h);
    }

    body.techotools-cookie-consent-visible .btn-chat {
        bottom: calc(69px + var(--techotools-cookie-consent-height));
    }

    body.techotools-cookie-consent-visible .btn-gotop {
        bottom: calc(131px + var(--techotools-cookie-consent-height));
    }
}

@media (max-width: 767px) {
    .cookie-consent__inner {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
        min-height: 0;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .cookie-consent__text {
        font-size: 14px;
        line-height: 1.4;
    }

    .cookie-consent__copy {
        flex-basis: auto;
    }

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

@media (prefers-reduced-motion: reduce) {
    .cookie-consent {
        transition: none;
    }
}
