/* ========================================
   COOKIE-БАННЕР (Компактный, во всю ширину)
   ======================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  z-index: 9999;
  background: rgba(5, 60, 60, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(46, 219, 165, 0.4);
  border-radius: 0;
  padding: 10px 20px;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner-hiding {
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Контент в строку */
.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Шрифт текста 8px */
.cookie-banner-text {
  color: #ffffff;
  font-size: 8px;
  line-height: 1.4;
  margin: 0;
  flex: 1;
}

.cookie-banner-text a {
  color: #2edba5;
  text-decoration: underline;
}

.cookie-banner-text a:hover {
  opacity: 0.8;
}

/* Кнопки */
.cookie-banner-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: #2edba5;
  color: #053c3c;
}

.cookie-btn-accept:hover {
  background: #4be8b8;
}

.cookie-btn-reject {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== Панель настроек (вызывается из футера) ===== */
.cookie-settings-panel {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 380px;
  max-width: calc(100vw - 40px);
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  z-index: 10000;
  animation: cookiePanelIn 0.25s ease-out;
  border: 1px solid #e2e8f0;
}

@keyframes cookiePanelIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-settings-panel h3 {
  font-size: 18px;
  color: #053c3c;
  margin-bottom: 8px;
}

.cookie-settings-desc {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 18px;
  line-height: 1.5;
}

.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid #e2e8f0;
}

.cookie-category:hover {
  background: #f8fafc;
}

.cookie-category input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #00966a;
  cursor: pointer;
  flex-shrink: 0;
}

.cookie-category input:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-category div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cookie-category strong {
  font-size: 13px;
  color: #0f172a;
}

.cookie-category span {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}

.cookie-settings-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.cookie-settings-actions .cookie-btn {
  flex: 1;
  padding: 10px;
  font-size: 13px;
}

/* ===== Адаптив для мобильных ===== */
@media (max-width: 900px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cookie-banner-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .cookie-banner-buttons {
    flex-direction: column;
  }
  .cookie-btn {
    width: 100%;
    padding: 10px;
  }
}