.tc-banner {
    position: fixed;
    width: 100%;
    left: 0;
    bottom: 60px;
    z-index: 9999;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease, transform .5s ease, visibility .5s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.tc-banner * {
    box-sizing: border-box;
}

.tc-banner--show {
    opacity: 1;
    visibility: visible;
}

.tc-banner__container {
    display: flex;
    justify-content: flex-end;
    padding: 0 20px;
}

.tc-banner__row {
    position: relative;
    border-radius: 5px;
    background: #ffffff;
    box-shadow: 0px 6px 35px 0px rgba(29, 29, 31, .08);
    padding: 25px;
    max-width: 485px;
}

.tc-banner__title {
    color: #1d1d1f;
    font-size: 28px;
    font-weight: 600;
    line-height: 100%;
    margin-bottom: 20px;
}

.tc-banner__info {
    position: relative;
    z-index: 2;
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 500;
    line-height: 128.571%;
    margin-bottom: 20px;
}

.tc-banner__info a,
.tc-banner__info span {
    display: inline-block;
    opacity: .75;
    font-weight: 800;
    line-height: 18px;
    text-decoration-line: underline !important;
    color: #1d1d1f;
}

.tc-banner__settings-link {
    appearance: none;
    -webkit-appearance: none;
    display: inline-block;
    margin: -8px 0 18px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #483db5;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: underline;
    position: relative;
    z-index: 2;
}

.tc-banner__settings-link:hover {
    color: #7166d8;
}

.tc-banner__btn {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    border-radius: 20px;
    border: 1px solid transparent;
    padding: 10px 20px;
    min-height: 36px;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease, opacity .3s ease;
}

.tc-banner__actions {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tc-banner__row--with-image .tc-banner__actions {
    padding-right: 55px;
}

.tc-banner__btn--accept {
    color: #ffffff;
    background-color: #483db5;
}

.tc-banner__btn--accept:hover {
    background-color: #9c95ff;
}

.tc-banner__btn--reject-outline {
    color: #483db5;
    background-color: transparent;
    border-color: #483db5;
}

.tc-banner__btn--reject-outline:hover {
    background-color: #f2f0ff;
}

.tc-banner__btn--reject-fill {
    color: #483db5;
    background-color: #f2f0ff;
}

.tc-banner__btn--reject-fill:hover {
    background-color: #e4e1ff;
}

.tc-banner__btn--reject-text {
    color: #483db5;
    background-color: transparent;
    padding-left: 10px;
    padding-right: 10px;
    text-decoration: underline;
}

.tc-banner__btn--reject-text:hover {
    color: #7166d8;
}

.tc-banner__btn:focus-visible {
    outline: 3px solid rgba(72, 61, 181, .35);
    outline-offset: 2px;
}

.tc-banner__settings-link:focus-visible,
.tc-cookie-modal button:focus-visible,
.tc-cookie-modal a:focus-visible,
.tc-cookie-switch__input:focus-visible + .tc-cookie-switch__control {
    outline: 3px solid rgba(72, 61, 181, .35);
    outline-offset: 2px;
}

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

.tc-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.tc-cookie-modal * {
    box-sizing: border-box;
}

.tc-cookie-modal--open {
    opacity: 1;
    visibility: visible;
}

.tc-cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 17, 24, .58);
}

.tc-cookie-modal__panel {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 20px 70px rgba(18, 17, 24, .25);
    padding: 30px;
    color: #1d1d1f;
}

.tc-cookie-modal__close {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #58575e;
    cursor: pointer;
    font-size: 28px;
    line-height: 32px;
}

.tc-cookie-modal__close:hover {
    background: #f3f2f7;
}

.tc-cookie-modal__header {
    padding-right: 40px;
    margin-bottom: 22px;
}

.tc-cookie-modal__title {
    margin-bottom: 10px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

.tc-cookie-modal__intro {
    color: #626168;
    font-size: 14px;
    line-height: 1.5;
}

.tc-cookie-modal__categories {
    border-top: 1px solid #e9e8ee;
}

.tc-cookie-modal__category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid #e9e8ee;
}

.tc-cookie-modal__category-copy {
    min-width: 0;
}

.tc-cookie-modal__category-title {
    margin-bottom: 5px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.tc-cookie-modal__category-description {
    color: #6c6b72;
    font-size: 13px;
    line-height: 1.45;
}

.tc-cookie-modal__required {
    flex: 0 0 auto;
    color: #43825c;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.tc-cookie-switch {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    cursor: pointer;
}

.tc-cookie-switch__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.tc-cookie-switch__control {
    position: relative;
    display: block;
    width: 46px;
    height: 26px;
    border-radius: 13px;
    background: #d7d6dc;
    transition: background-color .2s ease;
}

.tc-cookie-switch__control::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
    transition: transform .2s ease;
}

.tc-cookie-switch__input:checked + .tc-cookie-switch__control {
    background: #483db5;
}

.tc-cookie-switch__input:checked + .tc-cookie-switch__control::after {
    transform: translateX(20px);
}

.tc-cookie-modal__policy {
    display: inline-block;
    margin-top: 16px;
    color: #483db5;
    font-size: 13px;
    font-weight: 600;
}

.tc-cookie-modal__actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.tc-cookie-modal__button {
    appearance: none;
    -webkit-appearance: none;
    min-height: 40px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 22px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.tc-cookie-modal__button--reject {
    margin-right: auto;
    border-color: transparent;
    background: transparent;
    color: #58575e;
    text-decoration: underline;
}

.tc-cookie-modal__button--save {
    border-color: #483db5;
    background: #ffffff;
    color: #483db5;
}

.tc-cookie-modal__button--accept {
    background: #483db5;
    color: #ffffff;
}

.tc-cookie-modal__button--save:hover,
.tc-cookie-modal__button--accept:hover {
    background: #7166d8;
    color: #ffffff;
}

.tc-visually-hidden {
    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;
}

.tc-banner__img {
    position: absolute;
    right: 0;
    bottom: 0;
    line-height: 0;
}

/* --- расположение --- */

.tc-banner--bottom-right {
    left: 50%;
    transform: translateX(100px);
}
.tc-banner--bottom-right.tc-banner--show {
    transform: translateX(-50%);
}
.tc-banner--bottom-right .tc-banner__container {
    justify-content: flex-end;
}

.tc-banner--bottom-left {
    left: 50%;
    transform: translateX(-100px);
}
.tc-banner--bottom-left.tc-banner--show {
    transform: translateX(-50%);
}
.tc-banner--bottom-left .tc-banner__container {
    justify-content: flex-start;
}

.tc-banner--bottom-full {
    left: 0;
    transform: translateY(20px);
}
.tc-banner--bottom-full.tc-banner--show {
    transform: translateY(0);
}
.tc-banner--bottom-full .tc-banner__container {
    justify-content: center;
}
.tc-banner--bottom-full .tc-banner__row {
    max-width: none;
    width: 100%;
}

.tc-banner--top-full {
    left: 0;
    bottom: auto;
    top: 0;
    transform: translateY(-20px);
}
.tc-banner--top-full.tc-banner--show {
    transform: translateY(0);
}
.tc-banner--top-full .tc-banner__container {
    justify-content: center;
}
.tc-banner--top-full .tc-banner__row {
    max-width: none;
    width: 100%;
}

@media (max-width: 1024px) {
    .tc-banner {
        bottom: 115px;
    }
    .tc-banner--top-full {
        bottom: auto;
    }
}

@media (max-width: 640px) {
    .tc-banner--bottom-right,
    .tc-banner--bottom-left {
        bottom: 80px;
        left: 50%;
        transform: translate(-50%, 100px);
    }
    .tc-banner--bottom-right.tc-banner--show,
    .tc-banner--bottom-left.tc-banner--show {
        transform: translate(-50%, 0px);
    }
    .tc-banner--bottom-right .tc-banner__container,
    .tc-banner--bottom-left .tc-banner__container {
        justify-content: center;
    }
    .tc-banner__row {
        padding: 15px;
        max-width: 100%;
    }
    .tc-banner__title {
        font-size: 24px;
    }
    .tc-banner__info {
        padding-right: 30px;
    }
    .tc-banner__row--with-image .tc-banner__actions {
        padding-right: 45px;
    }
    .tc-banner__actions {
        align-items: stretch;
    }
    .tc-banner__btn {
        flex: 1 1 auto;
    }
    .tc-cookie-modal {
        align-items: flex-end;
        padding: 0;
    }
    .tc-cookie-modal__panel {
        width: 100%;
        max-height: 92vh;
        border-radius: 14px 14px 0 0;
        padding: 24px 18px 18px;
    }
    .tc-cookie-modal__title {
        font-size: 22px;
    }
    .tc-cookie-modal__category {
        align-items: flex-start;
        gap: 14px;
    }
    .tc-cookie-modal__required {
        max-width: 110px;
        white-space: normal;
        text-align: right;
    }
    .tc-cookie-modal__actions {
        flex-direction: column;
    }
    .tc-cookie-modal__button,
    .tc-cookie-modal__button--reject {
        width: 100%;
        margin-right: 0;
    }
}
