html.popupform-open,
html.popupform-open body {
  overflow: hidden;
}

.popupform-modal[hidden],
.popupform-policy[hidden] {
  display: none !important;
}

.popupform-modal,
.popupform-policy {
  position: fixed;
  inset: 0;
  z-index: 9999;
  color: #171819;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popupform-policy {
  z-index: 10000;
}

.popupform-dim,
.popupform-policy-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
}

.popupform-panel .popupform-form,
.popupform-policy-panel {
  position: relative;
  width: 100vw;
  max-height: calc(100vh - 40px);
  z-index: 10;
  border-radius: 1rem;
  background: #fff;
  margin: 0 auto;
  overflow: hidden;
  max-width: 26.25rem;
  min-width: 26.25rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.popupform-close {
  display: block;
  width: 2rem;
  height: 2rem;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.popupform-panel h2,
.popupform-policy-panel h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 2.25rem;
}


.popupform-files {
  display: none;
}

.popupform-files p {
  margin: 0 0 12px;
  color: #171819;
  font-size: 15px;
  font-weight: 800;
}

.popupform-files ul {
  margin: 0;
  padding-left: 18px;
}

.popupform-files li {
  margin: 6px 0;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
}

.popupform-files li span {
  color: #33b0c6;
  font-size: 13px;
  font-weight: 800;
}

.pop-content {
  overflow-y: auto;
  margin: 1rem 0 2rem;
  padding-right: 0.5rem;
}

.popupform-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

.popupform-field.full {
  grid-column: 1 / -1;
}

.popupform-field label {
  display: block;
  color: #171819;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

.popupform-field label span,
.popupform-field label strong {
  color: var(--li);
  font-size: 1.125rem;
  margin-left: 0.25rem;
}

.popupform-field input {
  border: none;
  font-weight: 400;
  line-height: calc(28.8 / 16 * 1rem);
  color: #171718;
  height: calc(64 / 16 * 1rem);
  width: 100%;
  border-bottom: 1px solid #c9ced0;
  padding-right: 0;
  position: relative;
  border-radius: 0;
  font-size: 1rem;
}

.popupform-field input:focus {
  border-color: #171718;
  box-shadow: none;
  outline: none;
}

.popupform-field input::placeholder {
  color: #858889;
}

.popupform-verify-box {
  display: flex;
  gap: 10px;
}

.popupform-verify-box input {
  flex: 1 1 auto;
}

.popupform-code-btn {
  flex: 0 0 8rem;
  height: calc(64 / 16 * 1rem);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  border: none;
  background: #f3fbfe;
}

.popupform-code-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.popupform-agree-list {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 0;
}
.popupform-agree-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: calc(8 / 16 * 1rem);
}
.popupform-agree-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: calc(8 / 16 * 1rem);
  margin: 0;
  cursor: pointer;
}

.popupform-agree-item input {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(24 / 16 * 1rem);
  height: calc(24 / 16 * 1rem);
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.popupform-agree-item > span {
  width: calc(24 / 16 * 1rem);
  height: calc(24 / 16 * 1rem);
  border: 2px solid #c9ced0;
  border-radius: 0.25rem;
  position: relative;
  min-width: 1.5rem;
  cursor: pointer;
  flex-shrink: 0;
}

.popupform-agree-item input:checked+span {
  background-color: #171818;
  border-color: #171818;
}

.popupform-agree-item input:checked+span::after {
  content: "";
  display: block;
  width: calc(20 / 16 * 1rem);
  height: calc(20 / 16 * 1rem);
  background: url(/src/img/icon_check_wh.svg) no-repeat center center / contain;
  position: absolute;
  left: calc(0 / 16 * 1rem);
  top: calc(0 / 16 * 1rem);
}

.popupform-agree-item b {
  font-size: calc(16 / 16 * 1rem);
  font-weight: 400;
  line-height: 1;
  color: #171818;
}

.popupform-text-link {
  display: inline-block;
  margin-left: 0;
  margin-top: 0;
  vertical-align: middle;
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  background: url(/src/image/icon_arrow_right_bl2.svg) no-repeat center / 100%;
  font-size: 0;
  cursor: pointer;
}

.popupform-text-link:hover {
  color: #171819;
}

.popupform-submit,
.popupform-policy-ok {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.75rem;
  max-width: 100%;
  height: 3.5rem;
  padding: 0.87rem 2.5rem;
  background: #171718;
  color: #fff;
  border-radius: 5rem;
  border: none;
  font-family: "Noto Sans SC", sans-serif;
  cursor: pointer;
}

.popupform-submit:disabled,
.popupform-submit.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.policy-content-block {
  color: #4c5357;
  font-size: 15px;
  line-height: 1.8;
}

.pop-content .desc {
  font-size: 1.125rem;
  line-height: 1.8rem;
  margin-top: 1.5rem;
  color: #545657;
}

#policyContent {
  overflow-y: auto;
}

#policyContent .pop-content {
  margin: 0;
}

.terms-wrap:before {
  content: "";
  width: 100%;
  height: 1px;
  display: block;
  background: #c9ced1;
  margin: 1.5rem 0;
}

.terms-item-list li {
  font-size: 1.125rem;
  font-weight: 500;
  color: #171819;
  line-height: 1.8rem;
  padding-left: 1.25rem;
  text-indent: -1.25rem;
  list-style: decimal;
  list-style-position: inside;
}

.terms-item-list li:not(:last-child) {
  margin-bottom: 1rem;
}

.terms-item-list strong {
  color: #171819;
  font-weight: 500;
}

.terms-item-list p {
  font-size: 1.125rem;
  line-height: 1.8rem;
  color: #555758;
  font-weight: 400;
  padding: 0;
  text-indent: 0;
}

.popupform-policy-ok {
  margin-top: 24px;
}

@media (max-width: 768px) {

  .popupform-panel,
  .popupform-policy-panel {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    margin: 12px auto;
    padding: 34px 22px;
    border-radius: 22px;
  }

  .popupform-close {
    top: 16px;
    right: 16px;
  }

  .popupform-panel h2,
  .popupform-policy-panel h3 {
    margin-right: 42px;
    font-size: 26px;
  }

  .popupform-grid {
    grid-template-columns: 1fr;
  }

  .popupform-field input,
  .popupform-code-btn {
    height: 50px;
  }

  .popupform-verify-box {
    flex-direction: column;
  }

  .popupform-code-btn {
    flex-basis: auto;
    width: 160px;
  }

  .popupform-agree-item {
    align-items: flex-start;
  }

  .popupform-text-link {
    padding-left: 6px;
  }
}