/* Cookie Banner Styles */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #E8F4F8;
    border-top: 2px solid #00625e;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s ease;
}

.cookie-banner--visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.cookie-banner__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
}

.cookie-banner__content {
    display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: nowrap;
}

.cookie-banner__text {
    min-width: 300px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.cookie-banner__text p {
    margin: 0;
}

.cookie-banner__text a {
    color: #00625e;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-banner__text a:hover {
    text-decoration: none;
}

.cookie-banner__buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-banner__btn {
    padding: 12px 24px;
    border: 2px solid #00625e;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    color: #00625e;
    white-space: nowrap;
}

.cookie-banner__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 200, 0.2);
}

.cookie-banner__btn--accept {
    background: #00625e;
    color: #fff;
}

.cookie-banner__btn--accept:hover {
    filter: drop-shadow(0 10px 20px rgba(0, 79, 79, .4));
}

.cookie-banner__btn--settings:hover {
    background: #E8F4F8;
}

.cookie-banner__btn--save {
    background: #00625e;
    color: #fff;
    width: 100%;
    margin-top: 20px;
}

.cookie-banner__btn--save:hover {
    filter: drop-shadow(0 10px 20px rgba(0, 79, 79, .4));
}

/* Разворачивающиеся настройки */
.cookie-settings {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-top: 0;
}

.cookie-settings--open {
    max-height: 700px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 119, 200, 0.2);
}

.cookie-settings__inner {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-setting {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 119, 200, 0.15);
}

.cookie-setting:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cookie-setting__header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-setting__checkbox {
    position: relative;
    margin-right: 32px;
}

.cookie-setting__checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.cookie-setting__checkmark {
    position: absolute;
    top: -10px;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 2px solid #00625e;
    border-radius: 4px;
    transition: all 0.2s;
}

.cookie-setting__checkbox input[type="checkbox"]:checked ~ .cookie-setting__checkmark {
    background-color: #00625e;
}

.cookie-setting__checkbox input[type="checkbox"]:checked ~ .cookie-setting__checkmark:after {
    display: block;
}

.cookie-setting__checkbox input[type="checkbox"]:disabled ~ .cookie-setting__checkmark {
    background-color: #00625e;
    cursor: not-allowed;
    opacity: 0.7;
}

.cookie-setting__checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cookie-setting__label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    flex: 1;
}

.cookie-setting__label-text {
    flex: 1;
}

.cookie-setting__description {
    margin: 6px 0 0 32px;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.cookie-settings__buttons {
    margin-top: 25px;
}

@media (max-width: 768px) {
    .cookie-banner__container {
        padding: 20px;
    }

    .cookie-banner__content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner__text {
        min-width: auto;
    }

    .cookie-banner__buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-banner__btn {
        width: 100%;
    }

    .cookie-setting__header {
        flex-wrap: wrap;
    }

    .cookie-setting__description {
        margin-left: 32px;
        width: calc(100% - 32px);
    }
}