/* Cookie consent — баннер согласия (как на leader-import.ru) */
#cookie-consent.cookie-consent {
  position: fixed !important;
  left: 20px !important;
  right: auto !important;
  bottom: 20px !important;
  z-index: 99999 !important;
  width: 420px;
  max-width: calc(100vw - 40px);
  background: rgba(0, 0, 0, 0.88);
  color: #f2f2f2;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  padding: 14px 14px 12px;
  transition: opacity 180ms ease, transform 180ms ease;
}

#cookie-consent.cookie-consent:not(.is-visible) {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

#cookie-consent.cookie-consent.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  display: block !important;
}

.cookie-consent__row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.cookie-consent__title {
  margin: 0 0 6px 0;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cookie-consent__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(242, 242, 242, 0.92);
}

.cookie-consent__text a {
  color: #fdba74;
  text-decoration: underline;
}

.cookie-consent__text a:hover {
  text-decoration: none;
}

.cookie-consent__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.cookie-consent__actions--stack {
  flex-wrap: wrap;
}

.cookie-consent__actions a.cookie-consent__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.cookie-consent__btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  font-family: inherit;
}

.cookie-consent__btn--accept {
  background: #ea580c;
  color: #fff;
}

.cookie-consent__btn--accept:hover {
  background: #c2410c;
}

.cookie-consent__btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(242, 242, 242, 0.95) !important;
}

.cookie-consent__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.cookie-consent__close {
  border: 0;
  background: transparent;
  color: rgba(242, 242, 242, 0.75);
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
  font-size: 18px;
  flex-shrink: 0;
}

.cookie-consent__close:hover {
  color: rgba(242, 242, 242, 0.95);
}

.cookie-consent__settings {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: none;
}

.cookie-consent__settings.is-open {
  display: block;
}

.cookie-consent__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.cookie-consent__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.cookie-consent__item-text {
  min-width: 0;
}

.cookie-consent__label {
  font-weight: 700;
  font-size: 13px;
  margin: 0;
}

.cookie-consent__hint {
  margin: 2px 0 0 0;
  font-size: 12px;
  line-height: 1.3;
  color: rgba(242, 242, 242, 0.78);
}

.cookie-consent__toggle {
  flex: 0 0 auto;
  margin-top: 2px;
}

.cookie-consent__toggle input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: #ea580c;
}

.cookie-consent__note {
  margin: 8px 0 0 0;
  font-size: 12px;
  color: rgba(242, 242, 242, 0.7);
}

@media (max-width: 575.98px) {
  .cookie-consent,
  .cookie-consent#cookie-consent {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    width: auto !important;
    max-width: none !important;
  }

  .cookie-consent__row {
    gap: 10px;
  }

  .cookie-consent__actions {
    flex-wrap: wrap;
  }
}

@media (min-width: 768px) {
  #cookie-consent.cookie-consent.is-visible {
    width: min(33.33vw, 420px) !important;
    max-width: 33.33vw !important;
  }
}
