/* ============================================================
   cookie-consent.css — стили cookie-баннера и страницы управления
   ООО «Лидер СТ» | eggsleaderst.su
   ============================================================ */

/* ---------- Кнопки (база) ---------- */
.cc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 600 14px/1.2 Arial, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s ease, transform .05s ease;
}
.cc-btn:active { transform: translateY(1px); }
.cc-btn--orange { background: linear-gradient(180deg, #f6b04a, #e8940f); color: #fff; border-color: #d98a0e; }
.cc-btn--orange:hover { opacity: .9; }
.cc-btn--blue { background: linear-gradient(180deg, #5b9bd5, #3f7fbe); color: #fff; border-color: #3873ad; }
.cc-btn--blue:hover { opacity: .9; }
.cc-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.cc-btn--ghost:hover { background: rgba(255,255,255,.12); }
.cc-btn--light { background: #f5f5f5; color: #333; border-color: #ccc; }
.cc-btn--light:hover { background: #eaeaea; }

/* ---------- Баннер (внизу экрана) ---------- */
#cc-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99999999999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  background: #161616;
  color: #eaeaea;
  font: 13px/1.55 Arial, sans-serif;
  box-shadow: 0 -4px 18px rgba(0,0,0,.35);
}
.cc-banner__text a { color: #f2a33c; text-decoration: underline; }
.cc-banner__text b { color: #f2a33c; }
.cc-banner__actions { display: flex; gap: 12px; flex-shrink: 0; }
@media (max-width: 820px) {
  #cc-banner { flex-direction: column; align-items: stretch; text-align: center; padding: 16px; }
  .cc-banner__actions { justify-content: center; flex-wrap: wrap; }
}

/* ---------- Страница управления: статус выбора ---------- */
.cc-manage { margin: 32px 0; }
.cc-manage h2 { margin: 0 0 16px; font: 700 22px/1.3 Arial, sans-serif; color: #1a1a1a; }
.cc-status {
  padding: 14px 18px;
  border-radius: 6px;
  font: 14px/1.6 Arial, sans-serif;
  margin-bottom: 18px;
}
.cc-status--all { background: #e9f6e9; border: 1px solid #bfe3bf; color: #2f6b2f; }
.cc-status--necessary { background: #f4f4f4; border: 1px solid #d9d9d9; color: #555; }
.cc-status--none { background: #fff8e6; border: 1px solid #f0dca8; color: #7a6218; }
.cc-status__date { display: block; margin-top: 4px; font-size: 13px; opacity: .85; }
.cc-manage__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Подсказка о перезагрузке ---------- */
.cc-reload-hint {
  margin-top: 14px;
  font: 13px/1.5 Arial, sans-serif;
  color: #8a6d1a;
  background: #fff8e6;
  border: 1px solid #f0dca8;
  border-radius: 6px;
  padding: 10px 14px;
}
.cc-reload-hint a { color: #8a6d1a; font-weight: 700; }

/* ---------- Чекбоксы согласия в формах ---------- */
.form-consent { margin: 15px 0; font: 13px/1.5 Arial, sans-serif; color: #555; display: flex; flex-direction: column; gap: 8px; }
.form-consent label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.form-consent input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; }
.form-consent a { color: #4da6ff; }

/* ---------- Стили страниц ---------- */
table { 
 width: 100%;
 border-collapse: collapse;
 margin: 20px 0;
}
th, td {
 border: 1px solid #ddd;
 padding: 10px;
 text-align: left;
 vertical-align: top;
}
th {
 background: #f5f5f5;
}
.note { background: #fff8e6; border: 1px solid #f0dca8; border-radius: 6px; padding: 12px 16px; font-size: 14px; }

/* ============================================================
   Адаптивные таблицы: горизонтальная прокрутка на мобильных
   ============================================================ */
.table-scroll {
  width: 100%;
  overflow-x: auto;                 /* горизонтальная прокрутка */
  -webkit-overflow-scrolling: touch; /* плавный скролл на iOS */
  margin: 20px 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
}
.table-scroll:focus-visible {
  outline: 2px solid #4da6ff;       /* фокус для клавиатуры (a11y) */
  outline-offset: 2px;
}
.table-scroll table {
  width: 100%;
  min-width: 700px;                 /* таблица не сжимается — скроллится */
  border-collapse: collapse;
  margin: 0;
  border: none;
}
.table-scroll th,
.table-scroll td {
  border: none;
  border-bottom: 1px solid #e5e5e5;
  border-right: 1px solid #e5e5e5;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.5;
}
.table-scroll th:last-child,
.table-scroll td:last-child { border-right: none; }
.table-scroll tr:last-child td { border-bottom: none; }
.table-scroll th { background: #f5f5f5; font-weight: 700; }

@media (max-width: 720px) {
  .table-scroll table { min-width: 640px; }
  .table-scroll th,
  .table-scroll td { padding: 8px 10px; font-size: 13px; }
}