.cookies-consent {
    position: fixed;
    width: 100%;
    left: 0;
    bottom: 10px;
    z-index: 500;
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform: translateY(150%);
    opacity: 0;
}

.cookies-consent.active {
    transform: translateY(0);
    opacity: 1;
}

.cookies-consent__block {
    width: 100%;
    display: flex;
    flex-flow: row;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 25px;
    background-color: #f6f6f6;
    gap: 20px;
    overflow: hidden;
}

/* Текстовая часть */
.cookies-consent__left {
    display: flex;
    flex-flow: column;
    align-items: flex-start;
    text-align: left;
    gap: 6px;
    flex: 1;
}

.cookies-consent__text {
    color: #333;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.cookies-consent__link {
    position: relative;
    color: #333;
    text-decoration: underline;
    white-space: nowrap;
    transition: .3s ease;
}

.cookies-consent__link:hover {
    color: #FFD12A;
}

.cookies-consent__buttons {
    display: flex;
    flex-flow: column;
    gap: 8px;
    flex-shrink: 0;
    min-width: 220px;
}

.cookies-consent-btn {
    width: calc(0.02063 * 100vw + 273.4px);
    height: calc(0.0125 * 100vw + 36px);
    background-color: #FFD12A;
    border-radius: 60px;
    color: #333333;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    cursor: pointer;
    color: #333333;
    font-size: calc(0.00125 * 100vw + 13.6px);
    line-height: calc(0.00063 * 100vw + 19.8px);
    font-weight: 600;
    border: 0;
}

.cookies-consent-btn--accept {
    background-color: #FFD12A;
    color: #333333;
}

.cookies-consent-btn--accept:hover {
    background-color: #0C5CAB;
    color: white;
}

.cookies-consent-btn--decline {
    background-color: transparent;
    color: #0C5CAB;
    border: 2px solid #0C5CAB;
}

.cookies-consent-btn--decline:hover {
    background: #0C5CAB;
    color: #FFFFFF;
}

.cookies-consent-btn--customize {
    background-image: none;
    background-color: transparent;
    border: 2px solid #aaa;
    color: #555;
    font-size: 14px;
    font-weight: 400;
}

.cookies-consent-btn--customize:hover {
    border-color: #FFD12A;
    color: #FFD12A;
}

.cookies-consent__settings {
    display: none;
    padding: 16px 25px;
    background-color: #ebebeb;
    border-top: 1px solid #ddd;
}

.cookies-consent__settings.active {
    display: block;
}

.cookies-consent__settings-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px;
}

.cookies-consent__categories {
    display: flex;
    flex-flow: column;
    gap: 10px;
    margin-bottom: 14px;
    user-select: none;
}

.cookies-consent__category {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.cookies-consent__category input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.cookies-consent__category input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookies-consent__category-label {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

.cookies-consent__category-label strong {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}

.cookies-consent__category-label span {
    color: #666;
}

.cookies-consent-btn--confirm {
    background-color: #FFD12A;
    color: #333333;
}

.cookies-consent-btn--confirm:hover {
    background-color: #0C5CAB;
    color: white;
}

.consent-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.consent-checkbox {
    margin-top: 3px;
    flex-shrink: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.consent-checkbox-label {
    font-size: 13px;
    color: #444;
    line-height: 1.5;
}

.consent-checkbox-label a {
    color: #333;
    text-decoration: underline;
}

.consent-checkbox-label a:hover {
    opacity: 0.75;
}

.consent-error {
    display: none;
    font-size: 12px;
    color: #c0392b;
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .cookies-consent__block {
        flex-flow: column;
        align-items: stretch;
    }

    .cookies-consent__buttons {
        min-width: 0;
        flex-flow: row;
        flex-wrap: wrap;
    }

    .cookies-consent-btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 480px) {
    .cookies-consent__buttons {
        flex-flow: column;
    }

    .cookies-consent__link {
        white-space: normal;
    }

    .cookies-consent__block {
        padding: 16px;
    }

    .cookies-consent__settings {
        padding: 14px 16px;
    }
}