.consent-modal-open {
  overflow: hidden;
}

.cookie-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 220;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  background: #fff;
  color: #233142;
  box-shadow: 0 18px 52px rgba(35, 49, 66, 0.24);
  font-family: "Onest", Arial, sans-serif;
}

.cookie-consent__copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.cookie-consent__copy p {
  margin: 0;
  color: #66768a;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-consent__copy a,
.legal-consent-modal a {
  color: #365f8d;
  font-weight: 700;
}

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

.consent-btn {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 700 14px/1 "Onest", Arial, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

.consent-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.consent-btn--primary {
  background: #4a76a8;
  color: #fff;
}

.consent-btn--secondary {
  border-color: #cfd9e6;
  background: #f4f7fb;
  color: #365f8d;
}

.legal-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 230;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
  background: rgba(35, 49, 66, 0.58);
  font-family: "Onest", Arial, sans-serif;
}

.legal-consent-modal__panel {
  width: min(620px, 100%);
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  color: #233142;
  box-shadow: 0 24px 72px rgba(23, 34, 48, 0.3);
}

.legal-consent-modal__head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.legal-consent-modal__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #4a76a8;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
}

.legal-consent-modal h2 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.2;
}

.legal-consent-modal__head p {
  margin: 0;
  color: #66768a;
  line-height: 1.5;
}

.legal-consent-modal__checks {
  display: grid;
  gap: 10px;
  margin: 22px 0 14px;
}

.consent-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 14px;
  line-height: 1.45;
}

.consent-check--optional {
  background: #eef7f5;
}

.consent-check input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #4a76a8;
}

.legal-consent-modal__status {
  min-height: 22px;
  color: #b64d38;
  font-size: 14px;
}

.legal-consent-modal__submit {
  width: 100%;
  margin-top: 8px;
}

@media (max-width: 680px) {
  .cookie-consent {
    right: 10px;
    bottom: 10px;
    left: 10px;
    grid-template-columns: 1fr;
    width: auto;
    padding: 14px;
  }

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

  .consent-btn {
    width: 100%;
    white-space: normal;
  }

  .legal-consent-modal {
    place-items: start center;
    padding: 10px;
  }

  .legal-consent-modal__panel {
    padding: 18px;
  }

  .legal-consent-modal__head {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .legal-consent-modal__mark {
    width: 40px;
    height: 40px;
  }

  .legal-consent-modal h2 {
    font-size: 20px;
  }
}
