.cookie-card {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2e8f0;
    padding: 1.8rem 2rem;
    transition: all 0.2s;

    max-width: 700px;
    position: fixed;
    bottom: 100px;
    right: 50%;
    width: calc(100% - 30px);
    z-index: 99999;
    margin-right: calc(-1 * (1310px / 2));
}
@media (max-width: 1360px) {
    .cookie-card {
        margin-right: 0;
        right: 15px;
    }
}

.banner-text {
    color: #1e2a3e;
    margin-bottom: 1.2rem;
    line-height: 1.5;
    font-size: 0.98rem;
}

.banner-text strong {
    color: #0f3b2c;
    font-weight: 600;
}

/* ссылки на политики */
.policy-links {
    margin: 1rem 0 1.4rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    font-size: 0.85rem;
    border-bottom: 1px solid #eef2f6;
    padding-bottom: 1rem;
}

.policy-links a {
    color: #00a3e0;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed #cbd5e0;
}

.policy-links a:hover {
    color: #003087;
    border-bottom-style: solid;
}

/* блок кнопок (три кнопки) */
.banner-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 0.25rem;
}

.btn {
    padding: 0.65rem 1.6rem;
    border-radius: 48px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid #cbd5e1;
    color: #2d3e50;
}

.btn-outline:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.btn-secondary {
    background: #eef2f8;
    color: #1e2f3e;
    border: 1px solid #dce3ec;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-primary {
    background: #00a3e0;
    color: white;
}

.btn-primary:hover {
    background: #003087;
}

/* кнопка сброса (внизу, без смайликов) */
.reset-section {
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.reset-btn {
    background: #e2e8f0;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    color: #1e2f3e;
    font-family: inherit;
}

.reset-btn:hover {
    background: #cbd5e1;
}

/* модальное окно (расширенные настройки) */
.modal-cookie {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

.modal-cookie-content {
    background: white;
    max-width: 550px;
    width: 90%;
    border-radius: 1.5rem;
    box-shadow: 0 20px 35px rgba(0,0,0,0.2);
    animation: fadeIn 0.2s ease;
}

.modal-cookie-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-cookie-header button {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #7f8c8d;
    line-height: 1;
}

.modal-cookie-body {
    padding: 1.2rem 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.category-option {
    margin-bottom: 1.4rem;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 1rem;
}

.category-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.3rem;
}

.category-name {
    font-weight: 700;
    color: #0f2b3d;
    font-size: 14px;
}

.category-desc {
    font-size: 0.8rem;
    color: #5b6e8c;
    margin-top: 0.3rem;
}

/* toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.2s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #00a3e0;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

input:disabled + .slider {
    background-color: #94a3b8;
    opacity: 0.7;
    cursor: not-allowed;
}

.modal-cookie-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.97);}
    to { opacity: 1; transform: scale(1);}
}

@media (max-width: 640px) {
    .cookie-card { padding: 1.2rem 1.25rem; }
    .banner-actions { justify-content: stretch; }
    .btn { flex: 1; text-align: center; }
    .policy-links { flex-direction: column; gap: 0.6rem; }
}

.cookies-cancel {
    padding-top: 10px;
}
.cookies-cancel a {
    font-size: 16px;
    color: #003087;
    font-weight: bold;
    border-bottom: 1px dashed;
}
.cookies-cancel-description {
    font-size: 12px;
    padding: 5px 0 20px;
}
@media (max-width: 1270px) {
    .cookies-cancel a {
        font-size: 12px;
    }
}