/* Баннер согласия на обработку cookie и аналитику (152-ФЗ).
   Стили самодостаточные: префикс .cnz- не конфликтует со стилями сайтов. */

.cnz-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  background: #ffffff;
  color: #1c1c1c;
  border-top: 1px solid #d8d8d8;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .12);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
}

.cnz-bar[hidden] {
  display: none !important;
}

.cnz-inner {
  box-sizing: border-box;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px 22px;
  flex-wrap: wrap;
}

.cnz-text {
  flex: 1 1 380px;
  min-width: 0;
  margin: 0;
}

.cnz-text a,
.cnz-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cnz-text a:hover,
.cnz-links a:hover {
  opacity: .75;
}

.cnz-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 4px 0 0;
  font-size: 13px;
}

.cnz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cnz-btn {
  font: inherit;
  cursor: pointer;
  border-radius: 4px;
  padding: 9px 18px;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: opacity .15s ease;
  white-space: nowrap;
}

.cnz-btn:hover {
  opacity: .88;
}

.cnz-btn-accept {
  background: #1c1c1c;
  color: #fff;
  border-color: #1c1c1c;
}

.cnz-btn-essential {
  background: #fff;
  color: #1c1c1c;
  border-color: #b5b5b5;
}

.cnz-btn:focus-visible {
  outline: 2px solid #2f6fd0;
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .cnz-inner {
    padding: 12px 14px;
    gap: 10px;
  }

  .cnz-text {
    flex: 1 1 100%;
    font-size: 12.5px;
    line-height: 1.3;
  }
  .cnz-links{
    flex:1 1 100%;
    flex-wrap:nowrap !important;
    gap:10px !important;
    font-size:11.5px !important;
    white-space:nowrap !important;
    overflow:hidden !important;
  }
  .cnz-actions{gap:8px !important}

  .cnz-actions {
    width: 100%;
  }

  .cnz-btn {
    flex: 1 1 auto;
    padding: 10px 12px;
    text-align: center;
  }
}

/* ---------- Низкие экраны (альбомная ориентация телефона) ----------
   2026-11-02: на высоте ~390px баннер занимал треть экрана. */
@media (orientation:landscape) and (max-height:560px){
  .cnz-inner{
    padding:7px 12px !important;
    gap:6px 14px !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
  }
  .cnz-text{
    flex:1 1 auto !important;
    min-width:0 !important;
    font-size:11.5px !important;
    line-height:1.25 !important;
    display:-webkit-box !important;
    -webkit-line-clamp:2 !important;
    -webkit-box-orient:vertical !important;
    overflow:hidden !important;
  }
  .cnz-text a{white-space:nowrap}
  .cnz-links{
    display:flex !important;
    flex:0 0 auto !important;
    flex-wrap:nowrap !important;
    gap:10px !important;
    font-size:11px !important;
    white-space:nowrap !important;
  }
  .cnz-actions{flex-wrap:nowrap !important; flex:0 0 auto !important}
  .cnz-btn{padding:6px 12px !important; font-size:12px !important}
}
