.cookie {
  display: none;
  position: fixed;
  z-index: 10000;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 960px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  border: 1px solid #d6d0c2;
  border-radius: 20px;
  background: #fff;
  color: #494d51;
  box-shadow: 0 12px 40px rgba(12, 17, 20, .18);
  font-family: var(--font-ui, Arial, sans-serif);
}

.cookie .cookie__text {
  flex: 1;
  min-width: 0;
  max-width: none;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.cookie .cookie__text a {
  color: #175044;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie .cookiebtnblock {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.cookie .cookie__btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  min-width: 100px;
  min-height: 44px;
  margin: 0;
  padding: 12px 20px;
  border: 1px solid #175044;
  border-radius: 999px;
  background: #175044;
  color: #fff;
  font: 700 14px/1.3 var(--font-ui, Arial, sans-serif);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.cookie .agreeBtnn:hover {
  border-color: #0f3b32;
  background: #0f3b32;
}

.cookie .declineBtnn {
  border-color: #d6d0c2;
  background: #fff;
  color: #175044;
}

.cookie .declineBtnn:hover {
  border-color: #175044;
  background: #efece3;
}

.cookie a:focus-visible,
.cookie .cookie__btn:focus-visible {
  outline: 2px solid #175044;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .cookie {
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px;
    border-radius: 16px;
  }

  .cookie .cookiebtnblock {
    flex-wrap: wrap;
  }

  .cookie .cookie__btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie .cookie__btn {
    transition: none;
  }
}
