.cms-content-declaration,
.cms-content-declaration * {
  box-sizing: border-box;
}

.cms-content-declaration[hidden] {
  display: none !important;
}

body.cms-content-declaration-enabled {
  padding-bottom: 76px;
}

.cms-content-declaration {
  position: fixed;
  z-index: 9000;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 2px solid #ff7a35;
  background: rgba(248, 250, 252, 0.98);
  color: #5f6875;
  box-shadow: 0 -5px 22px rgba(15, 33, 46, 0.1);
  backdrop-filter: blur(8px);
}

.cms-content-declaration__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(1480px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  padding: 11px 0;
}

.cms-content-declaration__inner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  text-align: center;
}

.cms-content-declaration__feedback {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1677ff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cms-feedback-modal[hidden] {
  display: none !important;
}

.cms-feedback-modal {
  position: fixed;
  z-index: 10020;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.cms-feedback-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(3, 18, 29, 0.68);
}

.cms-feedback-modal__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  color: #172435;
  box-shadow: 0 28px 80px rgba(3, 18, 29, 0.34);
}

.cms-feedback-modal__panel h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.cms-feedback-modal__panel > p {
  margin: 0 0 20px;
  color: #6b7280;
  line-height: 1.7;
}

.cms-feedback-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 25px;
  line-height: 32px;
  cursor: pointer;
}

.cms-feedback-form {
  display: grid;
  gap: 16px;
}

.cms-feedback-form label {
  display: grid;
  gap: 7px;
}

.cms-feedback-form label span {
  font-weight: 700;
}

.cms-feedback-form textarea,
.cms-feedback-form input {
  width: 100%;
  border: 1px solid #d7dde5;
  border-radius: 10px;
  background: #fff;
  color: #172435;
  font: inherit;
  outline: none;
}

.cms-feedback-form textarea {
  min-height: 130px;
  padding: 12px;
  resize: vertical;
}

.cms-feedback-form input {
  height: 44px;
  padding: 0 12px;
}

.cms-feedback-form textarea:focus,
.cms-feedback-form input:focus {
  border-color: #ff7a35;
  box-shadow: 0 0 0 3px rgba(255, 122, 53, 0.14);
}

.cms-feedback-form__message {
  min-height: 22px;
  margin: -4px 0 0;
  color: #d4380d;
  font-size: 13px;
}

.cms-feedback-form__message.is-success {
  color: #16803a;
}

.cms-feedback-form__submit {
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: #ff6b21;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cms-feedback-form__submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 768px) {
  body.cms-content-declaration-enabled {
    padding-bottom: 0;
  }

  .cms-content-declaration {
    position: static;
  }

  .cms-content-declaration__inner {
    align-items: flex-start;
    width: calc(100% - 24px);
  }

  .cms-content-declaration__inner p {
    text-align: left;
  }

  .cms-feedback-modal__panel {
    padding: 24px 18px 20px;
  }
}
