/* ===== COOKIE CONSENT ===== */

.cc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 1080;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.cc-overlay.cc-open {
  display: flex;
}

@media (min-width: 768px) {
  .cc-overlay {
    align-items: center;
  }
}

.cc-dialog {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cc-body {
  padding: 28px 28px 20px;
  overflow-y: auto;
}

.cc-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.cc-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e7f1ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d6efd;
}

.cc-icon svg {
  width: 22px;
  height: 22px;
}

.cc-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #212529;
}

.cc-title-row + .cc-text {
  margin-top: 0;
}

/* Заголовок экрана настроек — без иконки, нужен отступ снизу */
#cc-view-settings .cc-title {
  margin-bottom: 20px;
}

/* Ссылки на юридические страницы под текстом */
.cc-links {
  margin: 14px 0 0;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.cc-links a {
  color: #0d6efd;
}

.cc-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: #495057;
  margin: 0 0 8px;
}

.cc-text a {
  color: #0d6efd;
}

/* ---- Кнопки ---- */

.cc-actions {
  padding: 16px 28px 24px;
  border-top: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 576px) {
  .cc-actions {
    flex-direction: row;
  }
}

/* Все три кнопки одного размера и веса — требование равнозначности */
.cc-btn {
  flex: 1;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease;
  white-space: nowrap;
}

.cc-btn-accept {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}

.cc-btn-accept:hover {
  background: #0b5ed7;
  border-color: #0b5ed7;
}

.cc-btn-reject {
  background: #fff;
  border-color: #495057;
  color: #212529;
}

.cc-btn-reject:hover {
  background: #f1f3f5;
}

.cc-btn-settings {
  background: #fff;
  border-color: #495057;
  color: #212529;
}

.cc-btn-settings:hover {
  background: #f1f3f5;
}

.cc-btn:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

/* ---- Экран настроек ---- */

.cc-view[hidden] {
  display: none;
}

.cc-category {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.cc-category-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cc-category-name {
  font-size: 15.5px;
  font-weight: 700;
  color: #212529;
  margin: 0;
}

.cc-category-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: #6c757d;
  margin: 8px 0 0;
}

.cc-category-services {
  font-size: 12.5px;
  color: #868e96;
  margin: 8px 0 0;
}

/* ---- Переключатель ---- */

.cc-switch {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 26px;
}

.cc-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.cc-switch input:disabled {
  cursor: not-allowed;
}

.cc-slider {
  position: absolute;
  inset: 0;
  background: #ced4da;
  border-radius: 999px;
  transition: background .2s ease;
  pointer-events: none;
}

.cc-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s ease;
}

.cc-switch input:checked + .cc-slider {
  background: #0d6efd;
}

.cc-switch input:checked + .cc-slider::before {
  transform: translateX(20px);
}

/* Обязательная категория: синий, но приглушённый —
   видно, что включено, и видно, что менять нельзя */
.cc-switch input:disabled:checked + .cc-slider {
  background: #0d6efd;
  opacity: .5;
}

.cc-switch input:disabled:not(:checked) + .cc-slider {
  background: #adb5bd;
  opacity: .65;
}

.cc-switch input:focus-visible + .cc-slider {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

/* ---- Ссылка отзыва согласия в футере ---- */

.cc-revoke-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.cc-revoke-link:hover {
  text-decoration: underline;
}

/* ---- Заглушка вместо заблокированного контента ---- */

.cc-placeholder {
  border: 1px dashed #ced4da;
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  background: #f8f9fa;
}

.cc-placeholder h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #212529;
}

.cc-placeholder p {
  font-size: 14px;
  line-height: 1.6;
  color: #6c757d;
  max-width: 420px;
  margin: 0 auto 18px;
}