body.cookie-modal-open {
  overflow: hidden;
  touch-action: none;
}

@keyframes bmn-cookie-modal-in {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes bmn-cookie-view-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .cookie-modal:not([hidden]) .cookie-modal__panel {
    animation: bmn-cookie-modal-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .cookie-modal__view:not([hidden]) {
    animation: bmn-cookie-view-in 0.32s ease-out both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-modal:not([hidden]) .cookie-modal__panel,
  .cookie-modal__view:not([hidden]) {
    animation: none !important;
  }
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  grid-template: 1fr / 1fr;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px))
    max(16px, env(safe-area-inset-right, 0px))
    max(16px, env(safe-area-inset-bottom, 0px))
    max(16px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}

.cookie-modal[hidden] {
  display: none !important;
}

.cookie-modal__backdrop {
  grid-area: 1 / 1;
  place-self: stretch;
  background: rgba(24, 28, 50, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.cookie-modal__panel {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  justify-self: center;
  align-self: end;
  width: min(480px, 100%);
  max-width: 100%;
  box-sizing: border-box;
  max-height: min(calc(100vh - 32px), 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 24px 24px;
  border-radius: 12px;
  border: 1px solid rgba(24, 28, 50, 0.08);
  background: #ffffff;
  color: #181c32;
  box-shadow: 0 24px 80px rgba(24, 28, 50, 0.18);
}

.cookie-modal__panel--popup {
  width: min(560px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
}

@media (min-width: 768px) {
  .cookie-modal__panel {
    align-self: center;
  }
}

.cookie-modal__view[hidden] {
  display: none !important;
}

.cookie-modal__view:not([hidden]) {
  display: block;
}

.cookie-modal__actions--intro {
  margin-top: 4px;
}

.cookie-modal__btn-wide {
  flex: 1 1 auto;
  min-width: 0;
}

.cookie-modal__title {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #181c32;
}

.cookie-modal__text {
  margin: 0 0 12px;
  font-size: 14px;
  color: #7e8299;
  line-height: 1.55;
}

.cookie-modal__text a {
  color: #009ef7;
  text-decoration: underline;
}

.cookie-modal__note {
  margin: 0 0 18px;
  font-size: 13px;
  color: #009ef7;
}

.cookie-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 480px) {
  .cookie-modal__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.cookie-modal__actions .btn {
  white-space: normal;
  line-height: 1.35;
}

.cookie-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f5f8fa;
  color: #181c32;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border: none;
}

.cookie-modal__close:hover {
  background: #eef3f7;
}

.bmn-cookie-prefs-link {
  cursor: pointer;
}

.bmn-legal-page {
  font-size: 15px;
  line-height: 1.65;
  color: #3f4254;
}

.bmn-legal-page h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: #181c32;
}

.bmn-legal-page h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  color: #181c32;
}

.bmn-legal-page p,
.bmn-legal-page ul {
  margin-bottom: 0.75rem;
}

.bmn-legal-page ul {
  padding-left: 1.25rem;
}

.bmn-legal-page .table {
  font-size: 14px;
}

.bmn-legal-meta {
  color: #7e8299;
  font-size: 14px;
  margin-bottom: 1.5rem;
}
