/* will9.ru — cookie banner desktop 2531:7200 / mobile 2531:7203 */

.cookie-banner {
  position: fixed;
  z-index: 200;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 32px;
  width: 740px;
  max-width: calc(100% - 32px);
  height: 86px;
  margin-inline: auto;
  padding: 16px;
  border: 0;
  border-radius: 8px;
  background: var(--color-white);
  box-shadow: inset 0 0 0 1px var(--color-gray);
  box-sizing: border-box;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__text {
  flex: 1 1 auto;
  margin: 0;
  max-width: 466px;
  min-width: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.1;
  color: var(--color-black);
}

.cookie-banner__link {
  color: var(--color-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__link:hover,
.cookie-banner__link:focus-visible {
  color: var(--color-orange-hover);
}

.cookie-banner__btn {
  flex: 0 0 210px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 54px;
  padding: 0 24px;
  border: 1px dashed var(--color-orange);
  border-radius: 4px;
  background: transparent;
  color: var(--color-black);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}

.cookie-banner__btn:hover,
.cookie-banner__btn:focus-visible {
  background: var(--color-orange);
  border-style: solid;
  border-color: var(--color-orange);
  color: var(--color-white);
}

.cookie-banner__btn:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    width: 343px;
    height: auto;
    gap: 32px;
  }

  .cookie-banner__text {
    max-width: none;
  }

  .cookie-banner__btn {
    flex: 0 0 auto;
    width: 100%;
  }
}
