.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1040;
  display: block;
  max-width: 960px;
  margin: 0 auto;
}

/* При активной admin-bar компенсируем смещение viewport в WordPress. */
.admin-bar .cookie-consent {
  bottom: 48px;
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent__inner {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #2b3038;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.cookie-consent__content {
  min-width: 0;
}

.cookie-consent__title {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  margin: 0 0 6px;
}

.cookie-consent__text {
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.95;
}

.cookie-consent__text a {
  color: inherit;
  text-decoration: underline;
}

.cookie-consent__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.cookie-consent__btn {
  white-space: nowrap;
}

.cookie-consent__btn--accept.btn {
  padding-left: 14px;
  padding-right: 14px;
}

/* Кнопка «Подробнее» на тёмном фоне — светлая обводка */
.cookie-consent__btn--more.btn-outline-primary {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}

.cookie-consent__btn--more.btn-outline-primary:hover,
.cookie-consent__btn--more.btn-outline-primary:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.9);
}

.cookie-consent__btn--more.btn-outline-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.35);
}

@media (max-width: 768px) {
  .admin-bar .cookie-consent {
    bottom: 62px;
  }

  .cookie-consent__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent__actions {
    justify-content: flex-start;
  }
}

@media (min-width: 992px) {
  .cookie-consent {
    left: 24px;
    right: 24px;
  }
}
