/* Новый стиль: светлый, минималистичный, современный (как у Apple) */

.cookie-banner-center {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: calc(100% - 4rem);
  max-width: 480px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: #1e293b;
  border-radius: 1.75rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  padding: 2rem;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  opacity: 0;
}

.cookie-banner-center.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cookie-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: #0f172a;
}

.cookie-text {
  color: #475569;
  margin: 0 0 1.5rem 0;
}

.cookie-text a {
  color: #3b82f6;
  text-decoration: underline;
}

.cookie-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cookie-btn {
  padding: 1rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.cookie-btn.accept {
  background: #3b82f6;
  color: white;
}

.cookie-btn.accept:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

.cookie-btn.reject {
  background: transparent;
  color: #64748b;
  border: 1.5px solid #e2e8f0;
}

.cookie-btn.reject:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.cookie-btn.manage {
  grid-column: span 2;
  background: #f8fafc;
  color: #64748b;
  font-size: 14px;
}

.cookie-btn.manage:hover {
  background: #e2e8f0;
}

/* Иконка — минимальная, светлая */
.cookie-icon {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 56px;
  height: 56px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 9998;
  font-size: 28px;
}

.cookie-icon.show {
  opacity: 1;
  pointer-events: all;
}

.cookie-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(0,0,0,0.18);
}

/* Переключатели */
.cookie-toggle-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.toggle-title {
  font-weight: 600;
  color: #1e293b;
}

.toggle-desc {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.slider {
  background: #cbd5e1;
}

input:checked + .slider {
  background: #3b82f6;
}

/* Кнопка назад */
.cookie-back-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* Мобильная адаптация */
@media (max-width: 480px) {
  .cookie-banner-center {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    width: auto;
    max-width: none;
    transform: translateY(120%);
  }
  .cookie-banner-center.show {
    transform: translateY(0);
  }
  .cookie-buttons {
    grid-template-columns: 1fr;
  }
  .cookie-btn.manage {
    grid-column: span 1;
  }
}
/* Painting World cookie palette */
.cookie-banner-center, .cookie-settings-panel { border: 1px solid rgba(212,175,55,.35) !important; background: #FFF7ED !important; color: #14532D !important; }
.cookie-title { color: #7F1D1D !important; }
.cookie-text a { color: #7F1D1D !important; font-weight: 700; }
.cookie-btn.accept { background: #7F1D1D !important; color: #FFF7ED !important; }
.cookie-btn.reject, .cookie-btn.manage, .cookie-back-btn { border-color: #D4AF37 !important; color: #14532D !important; }
.cookie-icon { background: linear-gradient(135deg,#7F1D1D,#D4AF37,#14532D) !important; }


.cookie-banner-center[hidden] { display: none !important; }
.cookie-settings-panel[hidden], .cookie-main[hidden] { display: none !important; }
.cookie-toggle-item .toggle-switch { position: relative; display: inline-block; width: 48px; height: 26px; flex: 0 0 48px; }
.cookie-toggle-item .toggle-switch input { opacity: 0; width: 0; height: 0; }
.cookie-toggle-item .toggle-switch .slider { position: absolute; cursor: pointer; inset: 0; border-radius: 999px; transition: .25s; }
.cookie-toggle-item .toggle-switch .slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: #FFF7ED; border-radius: 50%; transition: .25s; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.cookie-toggle-item .toggle-switch input:checked + .slider:before { transform: translateX(22px); }
.cookie-icon { border: 0; color: #FFF7ED; }
.cookie-banner-center { display: block; }
.cookie-btn:focus, .cookie-icon:focus, .cookie-back-btn:focus { outline: 2px solid #D4AF37; outline-offset: 2px; }
