.sale-banner {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.sale-banner:focus-visible {
  outline: 3px solid #2e63ff;
  outline-offset: -3px;
}

.sale-banner__image {
  display: block;
  width: 100%;
  height: auto;
}

.sale-banner__modal[hidden] {
  display: none;
}

.sale-banner__modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  font-family: "Montserrat", "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
}

.sale-banner__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 19, 31, 0.68);
  backdrop-filter: blur(4px);
}

.sale-banner__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  margin: auto;
  padding: 32px;
  border-radius: 24px;
  background: #fff;
  color: #1b1f2a;
  box-shadow: 0 28px 80px rgba(14, 19, 31, 0.3);
}

.sale-banner__close {
  position: absolute;
  top: 12px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5b6270;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.sale-banner__close:hover,
.sale-banner__close:focus-visible {
  background: #f0f3f8;
  color: #1b1f2a;
  outline: none;
}

.sale-banner__title {
  margin: 0 40px 8px 0;
  font-size: 24px;
}

.sale-banner__description {
  margin: 0 0 24px;
  color: #5b6270;
  font-size: 15px;
  line-height: 1.5;
}

.sale-banner__form {
  display: grid;
  gap: 18px;
}

.sale-banner__field {
  display: grid;
  gap: 8px;
  color: #5b6270;
  font-size: 14px;
}

.sale-banner__input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #dde3ee;
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sale-banner__input:focus {
  border-color: #2e63ff;
  box-shadow: 0 0 0 4px rgba(46, 99, 255, 0.12);
  outline: none;
}

.sale-banner__textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.45;
}

.sale-banner__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #5b6270;
  font-size: 13px;
  cursor: pointer;
}

.sale-banner__checkbox {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  cursor: pointer;
}

.sale-banner__link {
  color: #2e63ff;
}

.sale-banner__submit {
  width: 100%;
}

.sale-banner__status {
  min-height: 18px;
  margin: 0;
  color: #2e63ff;
  font-size: 13px;
}

@media (max-width: 640px) {
  .sale-banner__modal {
    align-items: start;
    padding: 16px;
  }

  .sale-banner__dialog {
    margin-top: 16px;
    padding: 28px 20px 24px;
    border-radius: 20px;
  }
}
