/* Cookie-баннер — Два ювелира */
.tj-cookie-banner,
.tj-cookie-banner * {
    box-sizing: border-box;
}

.tj-cookie-banner {
    position: fixed;
    z-index: 999999;
    left: 24px;
    bottom: 24px;

    width: calc(100% - 48px);
    max-width: 650px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(18px);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

.tj-cookie-banner.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.tj-cookie-banner__inner {
    display: flex;
    align-items: center;
    gap: 24px;

    padding: 22px 24px;

    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;

    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

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

.tj-cookie-banner__title {
    margin: 0 0 7px;

    color: #202020;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.tj-cookie-banner__text {
    margin: 0;

    color: #555555;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
}

.tj-cookie-banner__text a {
    color: #a90803;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.tj-cookie-banner__text a:hover {
    color: #7e0602;
}

.tj-cookie-banner__actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 9px;

    min-width: 152px;
}

.tj-cookie-banner__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 10px 15px;

    border-radius: 4px;

    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.tj-cookie-banner__button--primary {
    color: #ffffff;
    background: #a90803;
    border: 1px solid #a90803;
}

.tj-cookie-banner__button--primary:hover {
    background: #870602;
    border-color: #870602;
    transform: translateY(-1px);
}

.tj-cookie-banner__button--secondary {
    color: #333333;
    background: #ffffff;
    border: 1px solid #d6d6d6;
}

.tj-cookie-banner__button--secondary:hover {
    color: #a90803;
    border-color: #a90803;
}

.tj-cookie-banner__button:focus-visible {
    outline: 3px solid rgba(169, 8, 3, 0.24);
    outline-offset: 3px;
}

@media (max-width: 700px) {
    .tj-cookie-banner {
        right: 12px;
        bottom: 12px;
        left: 12px;

        width: auto;
        max-width: none;
    }

    .tj-cookie-banner__inner {
        display: block;
        padding: 18px;
    }

    .tj-cookie-banner__title {
        font-size: 16px;
    }

    .tj-cookie-banner__text {
        font-size: 13px;
    }

    .tj-cookie-banner__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;

        width: 100%;
        margin-top: 16px;
    }
}

@media (max-width: 420px) {
    .tj-cookie-banner__actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {

    .tj-cookie-banner,
    .tj-cookie-banner__button {
        transition: none;
    }
}
