.cookie-consent {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 1200;
  max-width: 760px;
  margin-inline: auto;
  color: var(--text, #171715);
}

.cookie-consent__body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid rgba(23, 23, 21, 0.18);
  border-radius: 8px;
  background: #fbfaf7;
  box-shadow: 0 22px 70px rgba(23, 23, 21, 0.22);
}

.cookie-consent__copy {
  min-width: 0;
}

.cookie-consent__title {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.35;
}

.cookie-consent__text {
  margin: 0;
  color: #69655f;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-consent__text a {
  color: #171715;
}

.cookie-consent__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cookie-consent__button {
  min-height: 42px;
  padding: 9px 17px;
  border: 1px solid #171715;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 650;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.cookie-consent__button--accept {
  color: #fff;
  background: #171715;
}

.cookie-consent__button--reject {
  color: #171715;
  background: transparent;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
  color: #fff;
  border-color: #5f4d3c;
  background: #5f4d3c;
}

.cookie-consent__button:focus-visible,
.cookie-consent__close:focus-visible,
.footer-cookie-settings:focus-visible {
  outline: 3px solid rgba(128, 107, 85, 0.45);
  outline-offset: 3px;
}

.cookie-consent__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  cursor: pointer;
  color: #69655f;
  background: transparent;
  font-size: 26px;
  line-height: 1;
}

.cookie-consent__close + .cookie-consent__copy {
  padding-right: 28px;
}

.footer-cookie-settings {
  width: fit-content;
  padding: 0;
  border: 0;
  cursor: pointer;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

@media (max-width: 680px) {
  .cookie-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .cookie-consent__body {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }

  .cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-consent__button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .cookie-consent__actions {
    grid-template-columns: 1fr;
  }
}

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