.cookie-consent[hidden] {
  display: none !important;
}
.cookie-consent {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 20px;
}
.cookie-consent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 36, 0.56);
  backdrop-filter: blur(3px);
}
.cookie-consent__dialog {
  position: relative;
  width: min(100%, 860px);
  max-height: calc(100vh - 40px);
  margin: 0 auto;
  overflow: auto;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid #dedbe8;
  border-radius: 10px;
  background: #fff;
  color: #25233a;
  box-shadow: 0 24px 70px rgba(18, 15, 38, 0.22);
}
.cookie-consent__intro span {
  color: #4f43cf;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cookie-consent__intro h2 {
  margin: 7px 0 10px;
  color: #25233a !important;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  letter-spacing: -0.04em;
}
.cookie-consent__intro p,
.cookie-consent__legal {
  color: #646178;
  line-height: 1.65;
}
.cookie-consent__categories {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px;
  border: 1px solid #e3e1ea;
  border-radius: 7px;
  cursor: pointer;
}
.cookie-category h3 {
  margin: 0 0 4px;
  color: #25233a !important;
  font-size: 1rem;
}
.cookie-category p {
  margin: 0;
  color: #646178;
  font-size: 0.86rem;
}
.cookie-category input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  accent-color: #6558e8;
}
.cookie-category__required {
  color: #4f43cf;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.cookie-consent__legal {
  margin: 0 0 22px;
  font-size: 0.82rem;
}
.cookie-consent__legal a {
  color: #4f43cf;
  font-weight: 700;
}
.cookie-consent__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.cookie-consent__actions button {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #d6d2e1;
  border-radius: 6px;
  background: #fff;
  color: #36324d;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.cookie-consent__actions button:hover {
  border-color: #6558e8;
  color: #4f43cf;
}
.cookie-consent__actions .cookie-consent__accept {
  border-color: #6558e8;
  background: #6558e8;
  color: #fff;
}
.cookie-consent__actions .cookie-consent__accept:hover {
  background: #4f43cf;
  color: #fff;
}
body.cookie-dialog-open {
  overflow: hidden;
}
@media (max-width: 680px) {
  .cookie-consent {
    padding: 10px;
  }
  .cookie-consent__dialog {
    max-height: calc(100vh - 20px);
    padding: 23px 18px;
  }
  .cookie-consent__actions {
    grid-template-columns: 1fr;
  }
  .cookie-category {
    align-items: flex-start;
  }
  .cookie-category__required {
    white-space: normal;
  }
}

.cookie-settings-button {
  position: fixed;
  right: 20px;
  bottom: 64px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 0;
  background: #fff;
  color: #25233a;
  border-radius: 50% !important;
  font-size: 1.15rem;
  box-shadow: 0 7px 22px rgba(37, 35, 58, 0.12);
  cursor: pointer;
  transition: all 0.2s ease;
}
.cookie-settings-button:hover {
  background: #efedff;
  color: #4f43cf;
}
.cookie-settings-button:focus-visible {
  outline: 3px solid rgba(101, 88, 232, 0.25);
  outline-offset: 3px;
}
@media (max-width: 680px) {
  .cookie-settings-button {
    right: 12px;
    bottom: 62px;
    width: 46px;
    height: 46px;
  }
}
