:root {
  --bg: #ffffff;
  --text: #333333;
  --btn: red;
  --btn-text: #ffffff;
  --radius: 6px;
  --pad: 1rem;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------  уведомление без затемнения  --------- */
.cookie-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 0 1rem 1rem 0; /* отступ только справа-снизу */
  pointer-events: none; /* клики проходят сквозь блок */
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cookie-bar.show {
  opacity: 1;
  pointer-events: auto; /* включаем обратно, когда показываем */
}

.cookie-bar .inner {
  background: var(--bg);
  color: var(--text);
  padding: calc(var(--pad) * 1.5) !important;
  border-radius: var(--radius);
  width: 320px;
  max-width: 90vw;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  font:
    14px/1.4286 "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;
  pointer-events: auto; /* внутри окна клики работают */
}
.cookie-bar p {
  margin-bottom: 0.8rem;
}
.cookie-bar a {
  color: var(--btn);
  text-decoration: underline;
}

.cookie-bar button {
  cursor: pointer;
  border: 0;
  background: var(--btn);
  color: var(--btn-text);
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius);
  font-weight: 600;
  width: 100%;
}

/* ---------  мобильные правки  --------- */
@media (max-width: 600px) {
  .cookie-bar {
    left: 0;
    right: 0;
    padding: 0 5vw calc(1rem + env(safe-area-inset-bottom, 1rem)) 5vw;
    display: flex;
    justify-content: center;
  }
  .cookie-bar .inner {
    width: 90vw;
    margin: 0;
  }
}
