/* ---------- Контейнер-позиционер ---------- */
.cookie-modal {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  width: calc(100% - 48px);
  max-width: 960px;
  pointer-events: none; /* чтобы не перекрывать клики по сайту вне плашки */
  animation: cookieSlideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Контентный блок ---------- */
.cookie-modal-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  pointer-events: auto; /* сама плашка кликабельна */
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
}

/* ---------- Текст ---------- */
.cookie-modal-content p {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #2b2b2b;
}

.cookie-modal-content p a {
  color: #0d6efd;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.cookie-modal-content p a:hover {
  color: #0a58ca;
}

/* ---------- Кнопка «Я согласен» ---------- */
.cookie-modal-content .btn-one {
  flex-shrink: 0;
  padding: 12px 28px;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: #ffffff;
  white-space: nowrap;
  cursor: pointer;
  background: linear-gradient(135deg, #ff6b35 0%, #f7481f 100%);
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(247, 72, 31, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cookie-modal-content .btn-one:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 18px rgba(247, 72, 31, 0.45);
  transform: translateY(-1px);
}

.cookie-modal-content .btn-one:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(247, 72, 31, 0.3);
}

.cookie-modal-content .btn-one:focus-visible {
  outline: 3px solid rgba(247, 72, 31, 0.4);
  outline-offset: 2px;
}

.cookie-modal-content .btn-one span {
  display: inline-block;
  pointer-events: none;
}

/* ---------- Анимация появления ---------- */
@keyframes cookieSlideUp {
  from { opacity: 0; transform: translate(-50%, 24px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Адаптивность ---------- */
@media (max-width: 768px) {
  .cookie-modal {
    bottom: 12px;
    width: calc(100% - 24px);
  }

  .cookie-modal-content {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
  }

  .cookie-modal-content p {
    font-size: 14px;
    line-height: 1.5;
  }

  .cookie-modal-content .btn-one {
    width: 100%;
    padding: 14px 20px;
  }
}

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .cookie-modal {
    animation: none;
  }
  .cookie-modal-content .btn-one {
    transition: none;
  }
}


/* ---------- Чекбокс согласия ---------- */
.review-form-modal__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.review-form-modal__checkbox .checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.review-form-modal__checkbox .checkbox__mark {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  background: #fff;
  border: 2px solid #c9ccd1;
  border-radius: 6px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.review-form-modal__checkbox .checkbox__mark::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s ease;
}

.review-form-modal__checkbox .checkbox:checked + .checkbox__mark {
  background: #f7481f;
  border-color: #f7481f;
}

.review-form-modal__checkbox .checkbox:checked + .checkbox__mark::after {
  transform: rotate(45deg) scale(1);
}

.review-form-modal__checkbox .checkbox:focus-visible + .checkbox__mark {
  outline: 3px solid rgba(247, 72, 31, 0.4);
  outline-offset: 2px;
}

.review-form-modal__checkbox .checkbox__text {
  font-size: 14px;
  line-height: 1.45;
  color: #4a4a4a;
}

.review-form-modal__checkbox .checkbox__text a {
  color: #0d6efd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.review-form-modal__checkbox .checkbox__text a:hover {
  color: #0a58ca;
}