.modal {
  align-items: flex-end;
  background: rgba(0, 0, 0, .58);
}

.modal-sheet {
  width: min(100%, 880px);
  max-width: 880px;
  max-height: 92svh;
  margin: 0 auto;
  padding: 0 48px 64px;
  border-radius: 22px 22px 0 0;
  overflow: auto;
  background: #fff;
}

.modal-close {
  top: 25px;
  left: 39px;
  right: auto;
  z-index: 1;
  width: 46px;
  height: 46px;
  padding: 0;
  color: #111;
  font-size: 48px;
  font-weight: 300;
  line-height: 40px;
}

.modal-sheet h3 {
  margin: 0;
  padding: 47px 48px 39px;
  color: #111;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.reference-publish-form {
  display: grid;
  gap: 24px;
}

.publish-panel {
  padding: 20px 22px 0;
  border: 4px solid #0a0a0a;
  border-radius: 20px;
}

.publish-city {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 15px;
  border-radius: 6px;
  background: #000;
  color: #fff;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}

.publish-panel textarea {
  display: block;
  width: 100%;
  min-height: 185px;
  margin-top: 20px;
  padding: 20px 0 10px;
  border: 0;
  border-top: 1px solid #ddd;
  outline: none;
  resize: none;
  color: #111;
  font-size: 26px;
  line-height: 1.45;
}

.publish-panel textarea::placeholder {
  color: #b8b8b8;
}

.publish-image {
  position: relative;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  margin: 8px 0 20px;
  background: #f0f0f0;
  color: #c8c8c8;
  font-size: 75px;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
}

.publish-image input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.publish-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  border-top: 1px solid #ddd;
  color: #111;
  font-size: 26px;
}

.publish-row span {
  color: #b6b6b6;
}

.publish-row b {
  color: #aaa;
  font-size: 45px;
  font-weight: 300;
  vertical-align: -3px;
}

.publish-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 700;
}

.publish-price del {
  color: #999;
}

.publish-price b {
  color: #0aaf16;
  font-size: 31px;
}

.reference-publish-form .primary-btn,
.modal-sheet > .primary-btn {
  height: 96px;
  border-radius: 20px;
  padding: 0 20px;
  background: #000;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.draw-preview {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto;
}

.draw-preview img {
  display: block;
  width: 240px;
  height: 240px;
  object-fit: contain;
  border-radius: 20px;
  background: #636980;
}

.draw-preview strong {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  color: #fff;
  font-size: 29px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.draw-city-row {
  display: flex;
  align-items: center;
  min-height: 110px;
  margin-top: 48px;
  padding: 0 32px;
  border-radius: 14px;
  background: #f4f4f4;
  color: #111;
  font-size: 28px;
  cursor: pointer;
}

.draw-city-row input {
  position: absolute;
  opacity: 0;
}

.draw-toggle {
  margin-left: auto;
}

.draw-city-row:has(input:checked) .draw-toggle {
  border-color: #111;
  background: #111;
}

.draw-city-row:has(input:checked) .draw-toggle > span {
  transform: translateX(40px);
}

.modal-sheet .draw-city-row + .primary-btn {
  margin-top: 30px;
}

.qr-promo {
  display: grid;
  justify-items: center;
  gap: 24px;
  color: #111;
  font-size: 31px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.qr-promo img {
  display: block;
  width: 430px;
  height: 430px;
  object-fit: contain;
}

@media (max-width: 700px) {
  .modal-sheet {
    max-height: 94svh;
    padding: 0 24px 34px;
    border-radius: 17px 17px 0 0;
  }

  .modal-close {
    top: 17px;
    left: 23px;
    width: 34px;
    height: 34px;
    font-size: 37px;
    line-height: 30px;
  }

  .modal-sheet h3 {
    padding: 33px 38px 28px;
    font-size: 21px;
  }

  .publish-panel {
    padding: 12px 13px 0;
    border-width: 3px;
    border-radius: 15px;
  }

  .publish-city {
    min-height: 34px;
    padding: 0 9px;
    font-size: 16px;
  }

  .publish-panel textarea {
    min-height: 125px;
    margin-top: 12px;
    padding-top: 12px;
    font-size: 16px;
  }

  .publish-image {
    width: 80px;
    height: 80px;
    margin: 4px 0 12px;
    font-size: 50px;
  }

  .publish-row {
    min-height: 62px;
    font-size: 16px;
  }

  .publish-row b {
    font-size: 30px;
  }

  .publish-price {
    font-size: 18px;
  }

  .publish-price b {
    font-size: 20px;
  }

  .reference-publish-form .primary-btn,
  .modal-sheet > .primary-btn {
    height: 62px;
    border-radius: 14px;
    font-size: 19px;
  }

  .draw-preview img {
    width: 160px;
    height: 160px;
  }

  .draw-preview {
    width: 160px;
    height: 160px;
  }

  .draw-preview strong {
    font-size: 20px;
    bottom: 11px;
  }

  .draw-city-row {
    min-height: 74px;
    margin-top: 30px;
    padding: 0 16px;
    border-radius: 11px;
    font-size: 18px;
  }

  .draw-toggle {
    width: 67px;
    height: 42px;
  }

  .draw-city-row:has(input:checked) .draw-toggle > span {
    transform: translateX(25px);
  }

  .modal-sheet .draw-city-row + .primary-btn {
    margin-top: 18px;
  }

  .qr-promo {
    gap: 12px;
    font-size: 18px;
  }

  .qr-promo img {
    width: 240px;
    height: 240px;
  }
}
