.modal {
  padding: 0;
  border: 2px solid #5a371e;
  border-radius: 16px;
}

.modal.md {
  width: 536px;
}

.modal .modal__header {
  position: relative;
  padding: 20px 30px;
}

.modal .modal__header::after {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: block;
  width: calc(100% - 60px);
  height: 1px;
  border-bottom: 1px dashed #ddd;
  transform: translateX(-50%);
  content: "";
}

.modal .modal__header h2 {
  text-align: center;
  color: #5a371e;
  font-size: 36px;
  line-height: 1.3;
  font-family: "littlePrince";
  font-weight: 400;
}

.modal .modal__header h2 span {
  color: #ff6371;
}

.modal .modal__header + .modal__content {
  margin-top: 20px;
}

.modal .modal__content {
  text-align: center;
}

.modal .modal__content .modal-txt {
  font-size: 18px;
  font-weight: 600;
  color: #5a371e;
  line-height: 1.5;
}

.modal .modal__content .modal-txt + .modal-txt {
  margin-top: 20px;
}

.modal .modal__btn {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.modal .modal__btn [class^="btn-"] {
  position: relative;
  width: 50%;
  padding: 10px 0;
  border: 2px solid #5a371e;
  border-radius: 56px;
  color: #fff;
  font-family: "NanumSquareRound";
  font-weight: 500;
  font-size: 20px;
  text-align: center;
}

.modal .modal__btn [class^="btn-"]:before {
  display: block;
  content: "";
  width: 13px;
  height: 13px;
  position: absolute;
  left: 6px;
  top: 6px;
  background-size: 100% auto;
  background-image: url("../_images/ico-btn-bg.svg");
  background-repeat: no-repeat;
}

.modal .modal__btn .btn-n {
  background-color: #aaa;
}

.modal .modal__btn .btn-y {
  background-color: #5a371e;
}

.modal .modal__replaynone {
  margin-top: 20px;
  padding: 15px 30px;
  background-color: #eee;
  text-align: right;
  border-radius: 0 0 16px 16px;
}

.modal .modal__replaynone input[type="checkbox"] {
  position: relative;
  appearance: none;
  box-sizing: border-box;
  background-color: #fff;
  background-clip: content-box;
  width: 32px;
  height: 32px;
  border: 2px solid #ddd;
  cursor: pointer;
  vertical-align: middle;
  border-radius: 5px;
}

.modal .modal__replaynone input[type="checkbox"]::before {
  content: "";
  position: absolute;
  box-sizing: border-box;
  width: 30%;
  height: 55%;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-70%) rotateZ(40deg);
  border-right: 1.7px solid #d9d9d9;
  border-bottom: 1.7px solid #d9d9d9;
}

.modal .modal__replaynone input[type="checkbox"]:checked {
  border-color: #ff6371;
  background-color: #ff6371;
}

.modal .modal__replaynone input[type="checkbox"]:checked::before {
  border-right: 1.7px solid #fff;
  border-bottom: 1.7px solid #fff;
}

.modal .modal__replaynone label span {
  padding-right: 8px;
  color: #5a371e;
  font-size: 18px;
  vertical-align: middle;
}

.modal a.close-modal {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34' fill='none'%3E%3Cpath d='M17 32C25.2843 32 32 25.2843 32 17C32 8.71573 25.2843 2 17 2C8.71573 2 2 8.71573 2 17C2 25.2843 8.71573 32 17 32Z' fill='white'/%3E%3Cpath d='M17 33C25.8366 33 33 25.8366 33 17C33 8.16344 25.8366 1 17 1C8.16344 1 1 8.16344 1 17C1 25.8366 8.16344 33 17 33Z' stroke='%235A371E' stroke-width='2'/%3E%3Cpath d='M17 31C24.732 31 31 24.732 31 17C31 9.26801 24.732 3 17 3C9.26801 3 3 9.26801 3 17C3 24.732 9.26801 31 17 31Z' stroke='%23EEEEEE' stroke-width='2'/%3E%3Cpath d='M22 12L12 22' stroke='%235A371E' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M12 12L22 22' stroke='%235A371E' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.modal .modal__close {
  position: absolute;
  top: -12.5px;
  right: -12.5px;
  display: block;
  width: 30px;
  height: 30px;
  text-indent: -9999px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  background-image: url(../_images/popup_close_x.png);
  overflow: hidden;
  border-radius: 50%;
}

/* s: modal-alert */
.modal-alert {
  max-width: 350px;
  width: 100%;
  padding: 32px 20px 20px;
}

.modal-alert .modal__content .modal-txt {
  font-size: 16px;
}
/* e: modal-alert */

/* s: modal-character */
.modal-character {
  max-width: 310px;
  width: 100%;
  padding: 40px 20px 20px;
  display: none;
}

.modal-character img {
  position: absolute;
  left: 50%;
  top: -66px;
  transform: translateX(-50%);
}

.modal-character .modal__content .modal-txt {
  font-size: 18px;
}
/* e: modal-character */
/*
@media screen and (max-width: 480px) {
  .modal.mo {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
  }

  .modal .modal__header h2 {
    font-size: 30px;
  }

  .modal .modal__content .modal-txt {
    font-size: 16px;
  }

  .modal .modal__replaynone label span {
    font-size: 16px;
  }

  .modal .modal__replaynone label span {
    font-size: 16px;
  }

  .modal .modal__replaynone input[type="checkbox"] {
    width: 25px;
    height: 25px;
  }
}*/
