body.modu-pay-open {
  overflow: hidden;
}

.modu-pay-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  font-family: "NanumSquareNeo", "NanumSquare", sans-serif;
}

.modu-pay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.modu-pay-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  padding: 30px 86px 30px 20px;
}

.modu-pay-panel {
  position: relative;
  width: min(1060px, calc(100vw - 120px));
  max-height: calc(100vh - 60px);

  background: #fff;
  border-radius: 12px;
  padding: 34px 52px 46px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.modu-pay-close {
  position: absolute;
  top: 0;
  right: -68px;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 10px;
  background: #141415;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.modu-pay-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.modu-pay-back {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #141415;
  font-size: 42px;
  line-height: 22px;
  cursor: pointer;
}

.modu-pay-head h2 {
  margin: 0;
  color: #141415;
  font-size: 20px;
  font-family: "NanumSquareNeoHeavy", "NanumSquareNeoBold", sans-serif;
  letter-spacing: 0;
}

.modu-pay-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  gap: 52px;
}

.modu-pay-block {
  margin-bottom: 26px;
}

.modu-pay-block h3 {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  color: #141415;
  font-size: 16px;
  font-family: "NanumSquareNeoBold", sans-serif;
  letter-spacing: 0;
}

.modu-pay-product {
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  padding: 20px 18px 18px;
}

.modu-pay-product p {
  margin: 0 0 8px;
  color: #141415;
  font-size: 14px;
  font-family: "NanumSquareNeoExtraBold", "NanumSquare", sans-serif;
}

.modu-pay-product strong {
  display: block;
  margin-bottom: 10px;
  color: #141415;
  font-size: 18px;
  font-family: "NanumSquareNeoBold", "NanumSquare", sans-serif;
}

.modu-pay-product span {
  display: block;
  margin-top: 5px;
  color: #9e9e9e;
  font-size: 13px;
  line-height: 1.5;
}

.modu-pay-product dl {
  margin: 18px 0 0;
}

.modu-pay-product dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #57585a;
  font-size: 14px;
}

.modu-pay-product dt,
.modu-pay-product dd {
  margin: 0;
}

.modu-pay-methods {
  display: flex;
  gap: 12px;
}

.modu-pay-methods button,
.modu-pay-input-row button {
  height: 46px;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  background: #fff;
  color: #141415;
  font-size: 14px;
  cursor: pointer;
}

.modu-pay-methods button {
  width: 150px;
}

.modu-pay-methods button.active {
  border-color: #00a0b6;
}

.modu-pay-input-row {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 10px;
}

.modu-pay-input-row input {
  width: 100%;
  height: 46px;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  padding: 0 14px;
  color: #141415;
  font-size: 15px;
  box-sizing: border-box;
}

.modu-pay-input-row input::placeholder {
  color: #b9b9b9;
}

.modu-pay-help {
  margin: 9px 0 0;
  color: #57585a;
  font-size: 12px;
}

.modu-pay-help span {
  color: #00a0b6;
}

.modu-pay-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: #9e9e9e;
  font-size: 14px;
}

.modu-pay-price-row b {
  color: #57585a;
  font-weight: 500;
}

.modu-pay-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #d9d9d9;
  color: #141415;
  font-family: "NanumSquareNeoHeavy", "NanumSquare", sans-serif;
}

.modu-pay-total strong {
  color: #00a0b6;
  font-size: 20px;
  font-style: normal;
}

.modu-pay-total em {
  font-style: normal;
}

.modu-pay-agreements {
  margin: 14px 0 18px;
  padding-top: 10px;
  border-top: 1px solid #d9d9d9;
}

.modu-pay-agreements > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  color: #57585a;
  font-size: 13px;
}

.modu-pay-agreements button {
  border: 0;
  background: transparent;
  color: #9e9e9e;
  text-decoration: underline;
  cursor: pointer;
}

.modu-pay-agreements label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #141415;
  font-size: 14px;
  cursor: pointer;
}

.modu-pay-agreements input {
  width: 20px;
  height: 20px;
  accent-color: #00a0b6;
}

.modu-pay-submit {
  width: 100%;
  height: 64px;
  border: 0;
  border-radius: 8px;
  background: #00a0b6;
  color: #fff;
  font-size: 18px;
  font-family: "NanumSquareNeoHeavy", "NanumSquare", sans-serif;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(0, 160, 182, 0.22);
}

.modu-pay-notice {
  margin-top: 20px;
  padding: 18px 20px;
  background: #f7f7f7;
}

.modu-pay-notice h3 {
  margin-bottom: 10px;
  color: #57585a;
  font-size: 13px;
}

.modu-pay-notice ul {
  margin: 0;
  padding-left: 18px;
  color: #9e9e9e;
  font-size: 12px;
  line-height: 1.65;
}

@media (max-width: 860px) {
  .modu-pay-overlay {
    background: #fff;
  }

  .modu-pay-backdrop {
    display: none;
  }

  .modu-pay-wrap {
    display: block;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    padding: 0;
    overflow: hidden;
    background: #fff;
  }

  .modu-pay-panel {
    width: 100vw;
    height: 100vh;
    max-height: none;
    overflow-y: auto;
    border-radius: 0;
    padding: 26px 20px 42px;
    box-shadow: none;
  }

  .modu-pay-close {
    display: none;
  }

  .modu-pay-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.business-page .plan-card .plan-start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: #00a0b6;
  color: #fff;
  font-size: 15px;
  font-family: "NanumSquareNeoHeavy", "NanumSquare", sans-serif;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(0, 160, 182, 0.22);
}

.business-page .plan-card .plan-start-btn.pink {
  background: #e245d8;
  box-shadow: 0 10px 18px rgba(226, 69, 216, 0.22);
}

.modu-complete-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 36px;
  font-family: "NanumSquareNeo", "NanumSquare", sans-serif;
}

.modu-complete-modal.show {
  display: flex;
}

.modu-complete-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.modu-complete-close {
  position: absolute;
  top: 0;
  right: -68px;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 10px;
  background: #141415;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.modu-complete-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(860px, calc(100vw - 72px));
  min-height: 660px;
  background: #fff;
  border-radius: 10px;
  padding: 76px 34px 72px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.modu-complete-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: #eefbfc;
  color: #00a0b6;
  font-size: 22px;
  font-family: "NanumSquareNeoHeavy", "NanumSquare", sans-serif;
}

.modu-complete-panel h2 {
  margin: 0 0 8px;
  color: #00a0b6;
  font-size: 22px;
  font-family: "NanumSquareNeoHeavy", "NanumSquare", sans-serif;
  letter-spacing: 0;
}

.modu-complete-panel p {
  margin: 0;
  color: #57585a;
  font-size: 14px;
  line-height: 1.55;
}

.modu-complete-summary {
  width: min(400px, 100%);
  margin: 22px 0 18px;
  padding: 12px 18px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
}

.modu-complete-summary div {
  display: grid;
  grid-template-columns: 65px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  color: #57585a;
  font-size: 14px;
  text-align: left;
}

.modu-complete-summary span {
  color: #57585a;
}

.modu-complete-summary strong {
  color: #141415;
  font-family: "NanumSquareNeo", "NanumSquare", sans-serif;
  font-weight: 500;
  text-align: right;
}

.modu-complete-note {
  width: min(550px, 100%);
  margin: 0 0 28px !important;
  color: #9e9e9e !important;
  font-size: 13px !important;
}

.modu-complete-panel button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(340px, 100%);
  height: 52px;
  border: 0;
  border-radius: 7px;
  background: #00a0b6;
  color: #fff;
  font-size: 16px;
  font-family: "NanumSquareNeoHeavy", "NanumSquare", sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(0, 160, 182, 0.2);
  padding: 20px;
}

@media (max-width: 860px) {
  .modu-complete-modal {
    padding: 0;
    align-items: stretch;
  }

  .modu-complete-backdrop {
    display: none;
  }

  .modu-complete-panel {
    width: 100vw;
    min-height: 100vh;
    border-radius: 0;
    padding: 52px 20px;
    box-shadow: none;
  }

  .modu-complete-close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 30px;
  }
}

/* Payment complete modal details */
.modu-complete-panel {
  min-height: 620px;
  padding: 70px 34px 64px;
}

.modu-complete-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  font-size: 18px;
}

.modu-complete-panel .modu-complete-features {
  width: min(404px, 100%);
  margin: 20px auto 14px;
  padding: 18px 56px;
  border: 1px solid #8ed8df;
  border-radius: 7px;
  background: #f3fcfd;
  text-align: left;
  box-shadow: none;
}

.modu-complete-panel .modu-complete-features ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.modu-complete-panel .modu-complete-features li {
  position: relative;
  min-height: 17px;
  margin: 0;
  padding: 0 0 0 18px;
  color: #141415;
  font-size: 13px;
  line-height: 1.35;
  font-family: "NanumSquareNeoBold", "NanumSquare", sans-serif;
  font-weight: 800;
  word-break: keep-all;
}

.modu-complete-panel .modu-complete-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  color: #00a0b6;
  font-size: 12px;
  line-height: 1;
  font-family: "NanumSquareNeoHeavy", "NanumSquare", sans-serif;
  font-weight: 900;
}

.modu-complete-panel .modu-complete-features li span {
  display: block;
}

.modu-complete-panel .modu-complete-features small {
  display: block;
  margin-top: 1px;
  color: #9e9e9e;
  font-size: 11px;
  line-height: 1.35;
  font-family: "NanumSquareNeo", "NanumSquare", sans-serif;
  font-weight: 500;
}

.modu-complete-summary {
  margin: 0 0 16px;
}

.modu-complete-note strong {
  color: #00a0b6;
  font-family: "NanumSquareNeoBold", "NanumSquare", sans-serif;
}

@media (max-width: 860px) {
  .modu-complete-panel {
    justify-content: flex-start;
    overflow-y: auto;
    padding: 48px 20px 40px;
  }

  .modu-complete-panel .modu-complete-features {
    width: min(404px, 100%);
    padding: 16px 22px;
  }
  .modu-complete-summary div {
    font-size: 13px;
  }
}

/* Final complete modal overrides */
.modu-complete-modal .modu-complete-panel {
  width: min(860px, calc(100vw - 72px));
  min-height: 620px;
  padding: 70px 34px 64px;
  overflow: visible;
}

.modu-complete-modal .modu-complete-close {
  position: absolute;
  top: 0;
  right: -68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  min-width: 54px;
  height: 54px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #141415;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  font-family: Arial, sans-serif;
  box-shadow: none;
  cursor: pointer;
  z-index: 5;
}

.modu-complete-modal .modu-complete-features {
  width: min(404px, 100%);
  margin: 20px auto 14px;
  padding: 18px 56px;
  border: 1px solid #8ed8df;
  border-radius: 7px;
  background: #f3fcfd;
  text-align: left;
}

.modu-complete-modal .modu-complete-features ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.modu-complete-modal .modu-complete-features li {
  position: relative;
  margin: 0;
  padding: 0 0 0 18px;
  color: #141415;
  font-size: 13px;
  line-height: 1.35;
  font-family: "NanumSquareNeoBold", "NanumSquare", sans-serif;
  font-weight: 800;
  word-break: keep-all;
}

.modu-complete-modal .modu-complete-features li::before {
  content: "✓";
  position: absolute;
  top: 1px;
  left: 0;
  color: #00a0b6;
  font-size: 12px;
  line-height: 1;
  font-family: "NanumSquareNeoHeavy", "NanumSquare", sans-serif;
}

.modu-complete-modal .modu-complete-features small {
  display: block;
  margin-top: 1px;
  color: #9e9e9e;
  font-size: 11px;
  line-height: 1.35;
  font-family: "NanumSquareNeo", "NanumSquare", sans-serif;
  font-weight: 500;
}

@media (max-width: 860px) {
  .modu-complete-modal .modu-complete-panel {
    width: 100vw;
    min-height: 100vh;
    border-radius: 0;
    padding: 48px 20px 40px;
    overflow-y: auto;
  }

  .modu-complete-modal .modu-complete-close {
    top: 16px;
    right: 16px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    font-size: 30px;
  }

  .modu-complete-modal .modu-complete-features {
    width: min(404px, 100%);
    padding: 16px 22px;
  }
}

.modu-pay-agreement-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modu-pay-agreements > .modu-third-party-terms {
  display: block;
  margin-top: 10px;
  height: 150px;
  overflow-y: auto;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #57585a;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0;
}

.modu-third-party-terms[hidden] {
  display: none !important;
}

.modu-third-party-terms .infobox {
  display: block;
}

.modu-third-party-terms .infobox + .infobox {
  margin-top: 5px;
}
