﻿/* Ссылка «Настройки cookie» в подвале nakhodka-city.ru — v1.0 */
.cc-footer-settings { display: inline-block; margin: 0 0 10px; font-family: inherit; }

/* одинаково работает для <a> и для <button> */
.cc-footer-link {
  display: inline-block;                    /* фолбэк для IE: flex ниже */
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center; -ms-flex-align: center; align-items: center;
  gap: 7px;

  box-sizing: border-box; min-height: 24px; margin: 0; padding: 3px 2px;
  background: transparent; border: 0;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;

  font: inherit; color: inherit; text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, .28);
  text-underline-offset: 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, .06);
  -webkit-transition: color .15s ease, text-decoration-color .15s ease;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.cc-footer-link:hover,
.cc-footer-link:focus { color: var(--cc-footer-accent, #1667b3); text-decoration-color: currentColor; }
.cc-footer-link:focus { outline: none; }
.cc-footer-link:focus-visible {
  outline: 2px solid var(--cc-footer-accent, #1667b3); outline-offset: 3px; border-radius: 3px;
}

/* индикатор: серый — выбор не сделан, зелёный — статистика включена,
   оранжевый — включены только необходимые */
.cc-footer-link__dot {
  -ms-flex-negative: 0; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%;
  background: #b9c6d4; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .10);
}
.cc-footer-link[data-cc-state="analytics-on"]  .cc-footer-link__dot { background: #2e9e5b; }
.cc-footer-link[data-cc-state="analytics-off"] .cc-footer-link__dot { background: #d9832a; }

/* подпись под ссылкой — заполняет JS */
.cc-footer-link__state { display: block; margin: 3px 0 0 15px; font-size: 12px; line-height: 1.45; opacity: .72; }
.cc-footer-link__text { text-decoration: inherit; }
.cc-footer-link_ghost { font-size: .94em; opacity: .85; }
.cc-footer-link_ghost:hover { opacity: 1; }

/* тёмный подвал */
.footer_dark .cc-footer-link, .cc-footer_dark .cc-footer-link { color: #fff; text-decoration-color: rgba(255,255,255,.45); }
.footer_dark .cc-footer-link:hover, .cc-footer_dark .cc-footer-link:hover { color: #ffd27a; text-decoration-color: currentColor; }
.footer_dark .cc-footer-link:focus-visible, .cc-footer_dark .cc-footer-link:focus-visible { outline-color: #ffd27a; }

@media (max-width: 560px) {
  .cc-footer-settings { display: block; }
  .cc-footer-link { min-height: 44px; padding: 10px 2px; }   /* зона нажатия */
  .cc-footer-link__state { margin-left: 0; }
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .cc-footer-link__dot { margin-right: 7px; }                 /* IE11 без gap */
}
@media (prefers-reduced-motion: reduce) { .cc-footer-link { -webkit-transition: none; transition: none; } }
@media print { .cc-footer-settings { display: none !important; } }
