/* Cookie consent */
.cookie-consent [hidden] {
  display: none !important;
}
.cookie-consent a {
  color: #0027FF;
}
.cookie-consent :focus-visible {
  outline: 2px solid #173DFF;
  outline-offset: 2px;
}
.cookie-consent__banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1050;
  box-sizing: border-box;
  width: 400px;
  max-width: calc(100vw - 48px);
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.18);
  color: #1F1F1F;
}
.cookie-consent[data-chat-side="left"] .cookie-consent__banner {
  left: auto;
  right: 24px;
}
.cookie-consent__text {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
}
.cookie-consent__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.cookie-consent .buttons.cookie-consent__button {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  height: auto;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  font-size: 14px;
  line-height: 20px;
}
.cookie-consent .buttons.cookie-consent__button:before {
  inset: 1px;
  width: auto;
  height: auto;
}
.cookie-consent .buttons.cookie-consent__button .buttons-value {
  height: auto;
}
.cookie-consent__customize {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px auto 0;
  padding: 8px 16px;
  border: 0;
  border-radius: 40px;
  background: none;
  color: #1F1F1F;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.cookie-consent__customize:hover {
  background-color: #F1F3FE;
}
.cookie-consent__customize:active {
  background-color: #DCE1FC;
}
.cookie-consent__customize-icon {
  flex: 0 0 16px;
}
.cookie-consent__overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 24px;
  background: rgba(17, 24, 39, 0.5);
}
.cookie-consent__dialog {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 640px;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(17, 24, 39, 0.25);
  color: #1F1F1F;
}
.cookie-consent .cookie-consent__dialog:focus {
  outline: none;
}
.cookie-consent__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid #E3E6F3;
}
.cookie-consent__title {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
}
.cookie-consent__close {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #F1F3FE;
  cursor: pointer;
}
.cookie-consent__close:before, .cookie-consent__close:after {
  content: '';
  position: absolute;
  top: 19px;
  left: 12px;
  width: 16px;
  height: 2px;
  background: #1F1F1F;
  transform: rotate(45deg);
}
.cookie-consent__close:after {
  transform: rotate(-45deg);
}
.cookie-consent__body {
  overflow-y: auto;
  padding: 16px 24px;
  font-size: 14px;
  line-height: 20px;
}
.cookie-consent__body p {
  margin: 0 0 12px;
}
.cookie-consent__category {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: #F1F3FE;
}
.cookie-consent__category p:last-child {
  margin-bottom: 0;
}
.cookie-consent__category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.cookie-consent__category-title {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
}
.cookie-consent__state {
  color: #5B6280;
  font-size: 13px;
  white-space: nowrap;
}
.cookie-consent__switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  cursor: pointer;
}
.cookie-consent__switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.cookie-consent__switch-track {
  position: relative;
  display: block;
  width: 48px;
  height: 28px;
  border-radius: 14px;
  background: #C3C8DB;
  transition: background 0.2s;
}
.cookie-consent__switch-track:before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.25);
  transition: transform 0.2s;
}
.cookie-consent__switch input:checked + .cookie-consent__switch-track {
  background: linear-gradient(90deg, #ED1A5E 0%, #0027FF 100%);
}
.cookie-consent__switch input:checked + .cookie-consent__switch-track:before {
  transform: translateX(20px);
}
.cookie-consent__switch input:focus-visible + .cookie-consent__switch-track {
  outline: 2px solid #173DFF;
  outline-offset: 2px;
}
.cookie-consent__details {
  margin-top: 12px;
}
.cookie-consent__details summary {
  color: #0027FF;
  cursor: pointer;
}
.cookie-consent__details p {
  margin: 12px 0 0;
}
.cookie-consent__list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.cookie-consent__list li {
  padding: 10px 0;
  border-top: 1px solid #DDE1F0;
  overflow-wrap: anywhere;
}
.cookie-consent__list span {
  display: block;
  margin-top: 4px;
  color: #5B6280;
}
.cookie-consent__list code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}
.cookie-consent__actions--dialog {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 0;
  padding: 16px 24px 24px;
  border-top: 1px solid #E3E6F3;
}
.cookie-consent__actions--dialog .buttons.cookie-consent__button {
  flex: 1 1 0;
}
.cookie-consent__actions--dialog .buttons.active.cookie-consent__button {
  flex-basis: 100%;
}

.cookie-consent-open,
.cookie-consent-open body {
  overflow: hidden;
}

.cookie-settings-link {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.wrap-footer__bottom-item .cookie-settings-link {
  color: inherit;
  text-decoration: underline;
}
.wrap-footer__bottom-item .cookie-settings-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
/* END Cookie consent */

/* Mobile Cookie consent */
@media only screen and (max-width: 544px) {
  .cookie-consent__banner {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    padding: 16px;
    border-radius: 20px;
  }
  .cookie-consent[data-chat-side="right"] .cookie-consent__banner {
    right: 84px;
  }
  .cookie-consent[data-chat-side="left"] .cookie-consent__banner {
    left: 84px;
    right: 12px;
  }
  .cookie-consent__text {
    font-size: 13px;
    line-height: 19px;
  }
  .cookie-consent__actions {
    margin-top: 12px;
  }
  .cookie-consent .buttons.cookie-consent__button {
    min-height: 44px;
    padding: 10px 16px;
  }
  .cookie-consent__overlay {
    align-items: flex-end;
    padding: 12px;
  }
  .cookie-consent__dialog {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 20px;
  }
  .cookie-consent__head {
    padding: 16px 16px 12px;
  }
  .cookie-consent__title {
    font-size: 20px;
    line-height: 28px;
  }
  .cookie-consent__body {
    padding: 12px 16px;
  }
  .cookie-consent__category {
    padding: 12px;
  }
  .cookie-consent__actions--dialog {
    flex-direction: column;
    padding: 12px 16px 16px;
  }
  .cookie-consent__actions--dialog .buttons.cookie-consent__button {
    flex: 0 0 auto;
  }
}
/* END Mobile Cookie consent */
