/* ===== СТИЛИ ДЛЯ COOKIE POP-UP ПЕРВОГО ВИЗИТА ===== */

/* Основной контейнер попапа */
.myata-first-visit-popup {
  max-width: 500px;
  margin: 0 auto;
  padding: 30px 20px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Шапка */
.cookie-popup-header {
  margin-bottom: 25px;
}

.cookie-icon {
  margin-bottom: 15px;
}

.cookie-popup-title {
  color: #2E7D32;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.cookie-popup-subtitle {
  color: #666;
  font-size: 18px;
  margin: 0;
}

/* Описание */
.cookie-popup-description {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  text-align: left;
}

.cookie-popup-description p {
  color: #444;
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 15px;
}

.cookie-highlight {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
}

.cookie-highlight span {
  color: #2E7D32;
  font-weight: 500;
  line-height: 1.5;
}

/* Кнопки */
.cookie-popup-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 16px 32px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 160px;
}

.cookie-btn-configure {
  background: white;
  color: #333;
  border: 2px solid #e0e0e0;
}

.cookie-btn-configure:hover {
  background: #f5f5f5;
  border-color: #4CAF50;
  color: #2E7D32;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  color: white;
}

.cookie-btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

/* Футер с ссылками */
.cookie-popup-footer {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.cookie-link {
  color: #4CAF50;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.cookie-link:hover {
  text-decoration: underline;
  color: #388E3C;
}

/* ===== СТИЛИ ДЛЯ POP-UP НАСТРОЕК ===== */

.cookie-settings-popup {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
}

.cookie-settings-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.cookie-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #4CAF50;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.cookie-back-btn:hover {
  background: #f5f5f5;
}

.cookie-settings-title {
  flex: 1;
  text-align: center;
  color: #2E7D32;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.cookie-settings-description {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
}

.cookie-settings-description p {
  color: #444;
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 14px;
}

.cookie-warning {
  background: #fff8e1;
  border: 1px solid #ffecb3;
  border-radius: 6px;
  padding: 15px;
  margin-top: 15px;
  color: #5d4037;
  font-size: 13px;
}

/* Категории cookie */
.cookie-categories {
  margin-bottom: 30px;
}

.cookie-category {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  transition: border-color 0.3s ease;
}

.cookie-category.required {
  border-color: #c8e6c9;
  background: #f1f8e9;
}

.cookie-category:hover {
  border-color: #4CAF50;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.category-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.category-icon {
  font-size: 24px;
}

.category-info h4 {
  margin: 0 0 4px 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.category-info p {
  margin: 0;
  color: #666;
  font-size: 13px;
}

.category-control {
  margin-left: 15px;
}

.cookie-status {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.cookie-status.active {
  background: #e8f5e9;
  color: #2E7D32;
}

.category-desc {
  color: #666;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  padding-left: 39px;
}

/* Переключатели */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #4CAF50;
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

/* Кнопки в настройках */
.cookie-settings-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.cookie-btn-reject {
  background: #ffebee;
  color: #d32f2f;
  border: 2px solid #ffcdd2;
}

.cookie-btn-reject:hover {
  background: #ffcdd2;
  transform: translateY(-2px);
}

.cookie-btn-save {
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  color: white;
}

.cookie-btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

/* Уведомления */
.cookie-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #4CAF50;
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  z-index: 999999;
  font-weight: 500;
  animation: cookieSlideIn 0.3s ease;
}

@keyframes cookieSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Адаптивность */
@media (max-width: 768px) {
  .myata-first-visit-popup {
    padding: 20px 15px;
  }
  
  .cookie-popup-title {
    font-size: 24px;
  }
  
  .cookie-popup-subtitle {
    font-size: 16px;
  }
  
  .cookie-popup-description {
    padding: 20px;
  }
  
  .cookie-popup-actions {
    flex-direction: column;
  }
  
  .cookie-btn {
    min-width: 100%;
  }
  
  .cookie-popup-footer {
    flex-direction: column;
    gap: 15px;
  }
  
  .cookie-settings-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .cookie-back-btn {
    align-self: flex-start;
  }
  
  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .category-control {
    margin-left: 0;
    align-self: flex-end;
  }
  
  .cookie-settings-actions {
    flex-direction: column;
  }
}