/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 10000;
    font-family: "Roboto", sans-serif;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text h3 {
    margin: 0 0 10px 0;
    color: #ecf0f1;
    font-size: 18px;
}

.cookie-consent-text p {
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
}

.cookie-consent-text a {
    color: #3498db;
    text-decoration: underline;
	font-size: .95rem;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-consent-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
	font-family: "Roboto", sans-serif;
}

.btn-accept-all {
    background: #8BC34A;
    color: white;
}

.btn-accept-necessary {
    background: #e74c3c;
    color: white;
}

.btn-customize {
    background: #3498db;
    color: white;
}

.btn-save-preferences {
    background: #8BC34A;
    color: white;
}

.cookie-consent-btn:hover {
    opacity: 0.9;
	border: none !important;
}

/* Modal for customization */
.cookie-consent-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    font-family: "Roboto", sans-serif;
}

.cookie-consent-modal-content {
    background: white;
    color: #2c3e50;
    padding: 30px;
    border-radius: 10px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-category {
    margin: 15px 0;
    padding: 15px;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
}

.cookie-consent-modal-content h3 {
	font-family: "Roboto", sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    margin: 0;
}

.cookie-category h4 {
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    line-height: 1;
    font-family: "Roboto", sans-serif;
}

.cookie-category-necessary {
    background: #f8f9fa;
}

.cookie-category-necessary h4 {
    color: #e74c3c;
}

.cookie-category-analytical h4 {
    color: #3498db;
}

.cookie-category-marketing h4 {
    color: #9b59b6;
}

.cookie-category-functional h4 {
    color: #f39c12;
}

.category-toggle {
    margin-left: auto;
}

.category-required {
    color: #e74c3c;
    font-size: 12px;
    margin-left: 10px;
}

.category-description {
    font-size: 14px;
    line-height: 1.4;
    margin: 10px 0;
}

/* Toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #8BC34A;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

input:disabled + .slider {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* Responsive */
@media (min-width: 768px) {
    .cookie-consent-content {
        flex-direction: row;
        align-items: center;
    }

    .cookie-consent-buttons {
        flex-wrap: nowrap;
    }
}

/* Advanced Toast - Top Position */
.cookie-consent-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px) scale(0.9);
    background: white;
    color: #2c3e50;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 10002;
    max-width: 350px;
    width: 90%;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    border-left: 4px solid #8BC34A;
    overflow: hidden;
    font-family: "Roboto", sans-serif;
}

.cookie-consent-toast.show {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
}

.cookie-consent-toast.success {
    border-left-color: #8BC34A;
}

.cookie-consent-toast.error {
    border-left-color: #e74c3c;
}

.cookie-consent-toast.info {
    border-left-color: #3498db;
}

.toast-header {
    display: flex;
    align-items: center;
    padding: 15px 20px 3px;
    gap: 12px;
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: #8BC34A;
    color: white;
}

.toast-error .toast-icon {
    background: #e74c3c;
    color: white;
}

.toast-info .toast-icon {
    background: #3498db;
    color: white;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin: 0;
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: #7f8c8d;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.toast-body {
    padding: 0 20px 15px 56px; /* 20px + 36px для иконки */
    font-size: 14px;
    line-height: 1.4;
    color: #5a6c7d;
}

/* Раскоментировать для работы прогресс-бара */
.toast-progress {
    /*position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #8BC34A, #2ecc71);
    width: 100%;
    transform-origin: left;
    animation: toastProgress 3s linear;*/
}

.toast-error .toast-progress {
    background: linear-gradient(90deg, #e74c3c, #e67e22);
}

.toast-info .toast-progress {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

@keyframes toastProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-consent-toast {
        top: 10px;
        max-width: 95%;
        width: 95%;
    }

    .toast-header {
        padding: 12px 15px 8px;
    }

    .toast-body {
        padding: 0 15px 12px 51px; /* Уменьшаем отступы для мобильных */
    }
}

/* Анимация для нескольких тостов */
.cookie-consent-toast:not(:first-child) {
    margin-top: 10px;
}