/*
 * Глобальные элементы поверх контента: cookie-полоса, попап закрытого раздела,
 * дисклеймер. Стили не привязаны к блокам, грузятся на всех страницах.
 */

/* ── Cookie-полоса ─────────────────────────────────────────────────────── */
.mc-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: var(--wp--preset--color--heading, #4a4a4a);
  color: #fff;
  padding: 12px 0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
}

.mc-cookie__inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mc-cookie__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.mc-cookie__btn {
  flex: none;
  min-width: 96px;
}

@media (max-width: 575px) {
  .mc-cookie__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    text-align: center;
  }
}

/* ── Дисклеймер о противопоказаниях ────────────────────────────────────── */
.mc-disclaimer {
  padding: 18px 0;
  background: var(--wp--preset--color--pink-100, #fbe9ec);
  border-top: 1px solid var(--wp--preset--color--border, #e2c9d1);
}

.mc-disclaimer__text {
  margin: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--wp--preset--color--heading);
}

/* ── Попап закрытого раздела ───────────────────────────────────────────── */
html.mc-gate-open {
  overflow: hidden;
}

.mc-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(40, 20, 30, 0.7);
  overflow-y: auto;
}

.mc-gate__box {
  width: 100%;
  max-width: 560px;
  margin: auto;
  padding: 36px;
  background: #fff;
  border-radius: var(--wp--custom--radius, 8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.mc-gate__title {
  margin: 0 0 16px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mc-gate__text {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.6;
}

.mc-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.mc-gate__btn {
  flex: 1 1 200px;
}

@media (max-width: 575px) {
  .mc-gate__box {
    padding: 24px 20px;
  }
  .mc-gate__actions {
    flex-direction: column;
  }
}
