.popup_area img {
  width: 100%;
}

.popup_bnr {
  position: fixed;
  right: 30px;
  bottom: 100px;
  width: 350px;
  z-index: 100;
  cursor: pointer;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

/* Modal */
.popup_modal {
  width: 550px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 0 0 20px;
  border-radius: 10px;
  z-index: 1001;
}

.modal_inner {
  text-align: center;
}

.modal_title {
  background: #fbf6ec;
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 1rem;
  padding: 10px;
  border-radius: 10px 10px 0 0;
}

.modal_flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  /* margin-bottom: 15px; */
}

.modal_code {
  font-size: 2rem;
  font-weight: bold;
}

.modal_copy {
  display: block;
  background: #222;
  color: #fff;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
  height: 100%;
}

.modal_goods a {
  display: block;
}

.modal_notice {
  padding: 0px 60px 15px;
  text-align: left;
}

.modal_notice img {
  margin-bottom: 0;
}

.modal_notice .codecart {
  background: #ee761b;
  border-radius: 20px;
  font-weight: normal;
  color: #fff;
  padding: 3px 10px;
  margin: 0 5px;
}

.modal_notice p {
  margin-bottom: 10px;
}

.modal_notice p .space {
  display: inline-block;
  padding-left: 1em;
}

/* Close Button */
button.close_bnr {
  position: absolute;
  top: -30px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border: 1px solid #e9003e;
  border-radius: 100%;
  background: #fff;
  box-sizing: border-box;
  color: #e9003e;
  font-size: 24px;
}

button.close_modal {
  position: absolute;
  right: -35px;
  top: -35px;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border: 1px solid #e9003e;
  border-radius: 100%;
  background: #fff;
  box-sizing: border-box;
  color: #e9003e;
  font-size: 28px;
}

.hidden {
  display: none;
}

@media screen and (max-width:768px) {
  .popup_bnr {
    left: 15px;
    bottom: 75px;
    width: 230px;
  }

  .popup_modal {
    width: 90%;
    padding-bottom: 15px;
  }

  button.close_modal {
    right: -15px;
    top: -15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
  }

  button.close_bnr {
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    font-size: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .modal_title {
    margin-bottom: 10px;
    padding: 10px;
  }

  .modal_notice {
    padding: 0 15px 0;
    text-align: left;
    text-indent: -1em;
    padding-left: calc(1em + 15px);
  }

  .modal_notice img {
    margin: 0 auto;
    width: 75%;
    display: block;
  }

  .modal_notice p:has(small) {
    text-indent: 0;
  }

  .modal_notice p br {
    display: none;
  }

  .modal_notice p small br {
    display: block;
  }

  .modal_notice p .space {
    display: none;
  }

}