.top-title .icon.king {
  height: 32px;
  margin-right: 8px;
  width: 32px;
}


/* 모두 체크하기 */
#checkboxAll + label:before {
  margin-right: 16px;
}

label[for="checkboxAll"] {
  align-items: center;
  color: #1c1c1c;
  display: flex;
  font-size: 16px;
  font-weight: 500;
}

label[for="checkboxAll"] > span {
  color: #1c1c1c;
  font-size: 14px;
  font-weight: 400;
}

.select-delete > button {
  font-size: 15px;
  /*font-family: 'Noto Sans KR', sans-serif;*/
  font-weight: 500;
  text-decoration: underline;
}


/* 방문체크 */
.invitation-visit-wrap {
  background-color: #fafafa;
  border-top: 1px solid #ededed;
  padding: 8px;
}

/*label[for="invitationVisit"]{*/
/*    display : flex;*/
/*    align-items: flex-start;*/
/*    justify-content: flex-start;*/
/*    gap: 16px;*/

/*}*/
label[for="invitationVisit"] {
  align-items: center;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  /* max-width: 844px; */
  border-radius: 8px;
  box-shadow: 0px 3px 9px rgba(0, 0, 0, 0.05);
  column-gap: 16px;
  display: grid;
  /*grid-template-areas:*/
  /*    "title detail"*/
  /*    "sub detail"*/
  /*    "price detail";*/
  grid-template-columns: 1fr;
  margin-bottom: 10px;
  padding: 8px 8px 8px 28px;
  position: relative;
  row-gap: 8px;
  transition: 0.2s;
  width: 100%;
}

/*label[for="invitationVisit"]:before{*/
/*    margin-right : 60px;*/
/*}*/

label[for="invitationVisit"] > div {
  align-items: center;
  /*border : 1px solid #b1b1b1;*/
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 0;
  width: 100%;
  /*grid-area: title;*/
}

label[for="invitationVisit"]:before {
  left: 10px;
  position: absolute;
  top: 8px;
}

label[for="invitationVisit"] .icon-wrap {
  margin-bottom: 16px;
}

label[for="invitationVisit"] .icon.consultation {
  height: 48px;
  width: 48px;
}

label[for="invitationVisit"] p {
  font-size: 20px;
  font-weight: 700;
}


/* 관련시술 */
.related-surgery-wrap .title-wrap {
  align-items: center;
  border-bottom: 1px solid #efefef;
  border-top: 2px solid #1c1c1c;
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
  min-height: 80px;
  padding: 0 10px;
}

.related-surgery-wrap .title {
  font-size: 20px;
  font-weight: 500;
}

.related-surgery-wrap .title-wrap button > span {
  font-size: 15px;
  font-weight: 500;
  margin-right: 20px;
  text-decoration: underline;
}

.related-surgery-wrap .title-wrap button .icon.arrow-right-black {
  height: 7.5px;
  margin-right: 20px;
  margin-top: -4px;
  width: 13px;
}

.related-surgery-list > ul::-webkit-scrollbar {
  height: 4px;
}

/* 날짜, 시간선택 */

.ask-select-date .icon.warning-red {
  height: 34px;
  margin-bottom: 23px;
  width: 34px;
}

.ask-select-date .icon + p {
  font-size: 24px;
  margin-bottom: 15px;
}

.ask-select-date .icon + p + p {
  font-size: 16px;
}


/* 고객요청사항 */
.customer-question {
  /*border-top : 2px solid #1c1c1c;*/
  padding-top: 80px;
  /*margin-bottom : 60px;*/
}

.customer-question .title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 20px;
  padding-left: 10px;
}


/* 약관동의 */
.agreement-wrap {
  padding-bottom: 60px;
  padding-top: 80px;
  position: relative;
}

.agreement-wrap .title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 20px;
  padding-left: 10px;
}

.agreement-wrap .title + div {
  border-bottom: 1px solid #efefef;
  padding: 10px;
}

.agreement-wrap label:before {
  margin-right: 16px;
}

.agreement-wrap div .checkbox + label:before {
  flex: none;
}

.submit-application-wrap .btn-submit, .partner-wrap .btn-submit {
  margin: 0;
}

.btn-submit {
  background-color: #1c1c1c;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  height: 60px;
  margin-top: 20px;
  transition: 0.3s;
  width: 100%;
}

.btn-submit:hover {
  background-color: #3c3c3c;
}

.agreement-popup {
  background-color: rgba(0, 0, 0, 0.4);
  display: block;
  height: 100vh;
  left: 0;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 99999;
}

.agreement-popup.pop-hidden {
  display: none;
}

.agreement-popup .agreement-content {
  background-color: #ffffff;
  border-radius: 12px;
  left: 50%;
  max-width: 700px;
  position: absolute;
  /*height: calc(100% - 250px);*/
  top: calc(50%);
  transform: translate(-50%, -50%);
  width: calc(100% - 20px);
}

.agreement-popup .agreement-content .title-wrap, .agreement-popup .agreement-content .content-wrap {
  padding: 20px 30px;
}

.agreement-popup .agreement-content .title-wrap {
  align-items: center;
  border-bottom: 1px solid #efefef;
  display: flex;
  height: 60px;
  justify-content: center;
  padding: 0;
  position: relative;
}

.agreement-popup .agreement-content .content-wrap {
  height: calc(100vh - 300px);
  max-height: 500px;
  overflow-y: auto;
}

.agreement-pop3.agreement-popup .agreement-content .content-wrap {
  height: calc((100vh - 300px) / 2);
  max-height: 500px;
  overflow-y: auto;
}

.agreement-pop3.agreement-popup .agreement-content .content-wrap:nth-child(2) {
  /*margin-bottom: 20px;*/
  border-bottom: 1px solid #efefef;
}

.agreement-popup .agreement-content .content-wrap .content-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.agreement-popup .agreement-content .content-wrap .content-desc {
  font-weight: 300;
  margin-bottom: 16px;
  padding-left: 8px;
}

.agreement-popup .agreement-content .title-wrap .close_btn {
  cursor: pointer;
  height: 40px;
  left: 20px;
  padding: 8px;
  position: absolute;
  top: 10px;
  width: 40px;
}

.agreement-popup .agreement-content .title-wrap .close_btn img {
  height: 100%;
  width: 100%;
}

.agreement-popup .agreement-content .title-wrap .title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  padding: 0;
}

.agreement-popup .agreement-content .button-wrap {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  min-height: 60px;
  padding: 20px 30px;
}

@media screen and (max-width: 1016px) {
  label[for="invitationVisit"] p {
    font-size: 20px;
  }

  .related-surgery-wrap .title-wrap {
    background-color: #f7f7f7;
    border: 1px solid #efefef;
    border-radius: 8px;
    border-top: none;
    margin: 0 10px 40px;
    min-height: 40px;
    padding: 20px 10px;
  }

  .related-surgery-wrap .title-wrap button > span {
    margin-right: 16px;
  }

  .related-surgery-wrap {
    border-bottom: 6px solid #ededed;
    margin: 60px 0 30px;
    padding: 30px 10px;
  }

  .customer-question {
    margin: 30px 0 30px;
    padding: 30px 10px;
  }

  .agreement-wrap {
    margin: 30px 0 30px;
    padding: 30px 10px;
  }

  .wrap {
    padding-top: 60px;

    &:has(.location-wrap) {
      padding-top: 0;
    }

    &:has(.story-wrap) {
      padding-top: 0;
    }

    &:has(.doctors-wrap) {
      padding-top: 0;
    }
  }

  .top-title {
    padding: 30px 20px;
  }

  .related-surgery-wrap .title, .customer-question .title, .agreement-wrap .title {
    font-size: 16px;
    font-weight: 700;
  }
}

@media screen and (max-width: 768px) {

  .event-detail-wrap > ul > li label:before, label[for="invitationVisit"]:before {
    left: 10px;
    top: 8px;
  }

  .agreement-popup .agreement-content {
    width: calc(100% - 40px);
  }
}

@media screen and (max-width: 640px) {
  label[for="invitationVisit"] p {
    font-size: 16px;
    word-break: keep-all;
  }

  label[for="invitationVisit"] > div {
    padding: 30px 20px;
  }

  .select-time .btn-time {
    font-size: 14px;
    width: calc((100% - 40px) / 5);
  }
}

@media screen and (max-width: 460px) {
  .agreement-wrap .title + div {
    padding-bottom: 10px;
    padding-left: 0;
  }

  .event-detail-wrap > ul > li label:before, label[for="invitationVisit"]:before {
    left: 10px;
    top: 8px;
  }
}

section {
  & .wrap.reservation-complete-wrap {
    padding-top: 20px;
    @media screen and (max-width: 1016px) {
      padding-top: 0;
    }

    & .reservation-complete-box {
      border: 1px solid #e0e0e0;
      border-radius: 10px;
      display: flex;
      flex-direction: column;
      margin-bottom: 40px;
      transition: all 0.3s ease-in-out;

      & .title-wrap {
        margin-bottom: 20px;
        padding: 20px 20px 0;

        & h2 {
          font-size: 24px;
          font-weight: 700;
          margin-bottom: 4px;
          padding: 0;
          position: relative;
          width: fit-content;
          z-index: 2;

          &:after {
            background-color: #86efac;
            border-radius: 2px;
            bottom: 2px;
            content: '';
            display: block;
            height: 14px;
            left: 50%;
            opacity: 0.5;
            position: absolute;
            transform: translateX(-50%);
            width: calc(100% + 10px);
            z-index: -1;
          }
        }
      }

      & .event-detail-wrap {
        & ul {
          padding: 0 20px;

          & li {
            border-bottom: 1px solid #e0e0e0;
            padding: 20px 0;

            & label {
              display: flex;
              flex-direction: column;

              & .event-detail-title {
                font-size: 20px;
                font-weight: 600;
              }

              & .event-detail-sub {
                color: #999999;
                margin-top: 4px;
              }
            }

            &:nth-last-child(1) {
              border-bottom: none;
            }
          }
        }
      }

      & .surgery-num-wrap {
        background: #f5f5f5;
        border-radius: 0 0 10px 10px;
        color: #333333;
        font-weight: 600;
        margin-top: 20px;
        padding: 30px 20px;

        & .surgery-num {
          align-items: center;
          display: flex;
          font-size: 18px;
          justify-content: space-between;

          & .num {
            font-weight: 600;

            & span {
              font-family: "Lato", sans-serif;
              font-size: 24px;
              font-weight: 600;
            }
          }
        }

        & .total-price {
          align-items: center;
          display: flex;
          font-size: 18px;
          justify-content: space-between;
          @media screen and (max-width: 450px) {
            font-size: 16px;
          }

          & .price {
            font-weight: 600;

            & span {
              font-family: "Lato", sans-serif;
              font-size: 24px;
              font-weight: 600;
            }
          }
        }
      }
    }

    & .select-date-time-wrap {
      align-items: center;
      border: 1px solid #e0e0e0;
      border-radius: 10px;
      color: #333333;
      display: flex;
      font-size: 18px;
      font-weight: 600;
      justify-content: space-between;
      margin-bottom: 40px;
      padding: 20px;
      transition: all 0.3s ease-in-out;

      & .date-tiem {
        align-items: center;
        display: flex;
        gap: 10px;

      }
    }
  }
}
