/* Cookie Consent Banner — kupi-komp.ru, 152-ФЗ */
.cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #1f2937;
  color: #f3f4f6;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .25);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.cc-banner.cc-show { transform: translateY(0); }
.cc-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.cc-banner__text { flex: 1 1 460px; min-width: 0; }
.cc-banner__text p { margin: 0; }
.cc-banner__text a { color: #93c5fd; text-decoration: underline; }
.cc-banner__text a:hover { color: #bfdbfe; }
.cc-banner__actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cc-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.cc-btn--primary { background: #10b981; color: #ffffff; }
.cc-btn--primary:hover { background: #059669; }
.cc-btn--secondary { background: transparent; color: #f3f4f6; border-color: #4b5563; }
.cc-btn--secondary:hover { background: #374151; }
.cc-btn--link {
  background: transparent;
  color: #93c5fd;
  text-decoration: underline;
  padding: 10px 8px;
}
.cc-btn--link:hover { color: #bfdbfe; }

/* Settings modal */
.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .55);
  padding: 16px;
}
.cc-modal.cc-show { display: flex; }
.cc-modal__panel {
  background: #ffffff;
  color: #1f2937;
  border-radius: 8px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .35);
}
.cc-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #e5e7eb;
}
.cc-modal__title { margin: 0; font-size: 18px; font-weight: 700; }
.cc-modal__close {
  appearance: none;
  background: transparent;
  border: 0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
  padding: 4px 8px;
}
.cc-modal__close:hover { color: #1f2937; }
.cc-modal__body { padding: 18px 22px; }
.cc-group { padding: 12px 0; border-bottom: 1px solid #f3f4f6; }
.cc-group:last-child { border-bottom: 0; }
.cc-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cc-group__title { font-weight: 600; margin: 0; font-size: 15px; }
.cc-group__desc { margin: 6px 0 0; font-size: 13px; color: #4b5563; }
.cc-toggle {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 42px;
}
.cc-toggle input { opacity: 0; width: 0; height: 0; }
.cc-toggle__slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 999px;
  transition: background .2s;
  cursor: pointer;
}
.cc-toggle__slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform .2s;
}
.cc-toggle input:checked + .cc-toggle__slider { background: #10b981; }
.cc-toggle input:checked + .cc-toggle__slider::before { transform: translateX(18px); }
.cc-toggle input:disabled + .cc-toggle__slider { background: #9ca3af; cursor: not-allowed; }
.cc-modal__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 16px 22px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 0 0 8px 8px;
}
.cc-modal__foot .cc-btn--primary { background: #10b981; color: #ffffff; }
.cc-modal__foot .cc-btn--secondary { background: #ffffff; border-color: #d1d5db; color: #1f2937; }
.cc-modal__foot .cc-btn--secondary:hover { background: #f3f4f6; }

@media (max-width: 640px) {
  .cc-banner__inner { padding: 14px 16px; gap: 10px; }
  .cc-banner__text { flex: 1 1 100%; font-size: 13px; }
  .cc-banner__actions { flex: 1 1 100%; }
  .cc-btn { flex: 1 1 auto; padding: 10px 12px; font-size: 12px; }
  .cc-btn--link { flex: 1 1 100%; }
}
