/* modal */
.modal-outer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
  overflow-y: auto;
}

.modal-wrapper {
  width: calc(100vw - 20px);
  height: calc(100vh - 20px);
  overflow-y: auto;
  margin: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-box {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 4px;
  padding: 30px 24px;
  border-top: 20px solid #ffcf00;
  border-bottom: 20px solid #ffcf00;
  box-shadow: 0 2px 8px rgba(150, 150, 150, 0.5);
  margin: auto;
}

.modal-header {
  position: relative;
  text-align: center;
  margin-bottom: 20px;
  flex: 1;
  overflow-y: auto;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: bold;
}

.modal-close-btn {
  width: 24px;
  height: 24px;
  background: url(../img/close-circle.svg) center/24px no-repeat;
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
}

.modal-content .description {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.verify-info {
  margin-bottom: 1rem;
}

.verify-info-value {
  font-weight: bold;
}

.verify-timer {
  font-size: 0.875rem;
}

.verify-timer .countdown {
  color: #d51524;
}

.resend {
  display: none;
  color: #d51524;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: underline;
}

.verify-note {
  font-size: 0.875rem;
  color: #666;
  margin-top: 1rem;
}

.modal-content {
    flex: 1;
    overflow-y: auto;
}

.modal-footer {
  text-align: center;
  margin-top: 30px;
  flex-shrink: 0;
}

.modal-submit-btn {
  width: 150px;
  height: 40px;
  border-radius: 50px;
  font-weight: bold;
  color: #fff;
  background: #d51524;
  border: none;
  outline: none;
  box-shadow: none;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-content .modal-label {
  display: inline-block;
  font-size: 1rem;
  font-weight: bold;
  margin-top: 1rem;
  margin-right: 10px;
}

.modal-content .modal-input {
  width: 100%;
  height: 42px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0 12px;
  margin-top: 6px;
  margin-bottom: 10px;
  font-size: 1rem;
}

.group {
  position: relative;
}

.group .err-msg,
.group .help-block {
  display: none;
}

.group.err .err-msg {
  display: block;
  color: #d51524;
  margin-top: -8px;
}

.group.err .help-block {
  display: inline-block;
  color: #d51524;
}

.group.err .btn-show {
  bottom: 25%;
}

.btn-show {
  color: rgba(85, 85, 85, .8);
  padding: 10px !important;
  display: inline-block;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  background: none;
  position: absolute;
  bottom: 15%;
  right: 1%;
}
.btn-show:hover {
color: #000;
}
.btn-show:active {
transform: translateY(1px) translateX(0px);
}

.btn-show + .modal-input {
  padding: 0 42px 0 12px;
}

.captcha-row {
  display: inline-block;
}

.captcha-img {
  max-width: 150px;
  object-fit: contain;
  vertical-align: text-bottom;
}

.captcha-refresh-txt {
  color: #999;
}

.captcha-refresh {
  color: #d51524;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: underline;
}

.card-number-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-number-group .modal-input {
  width: calc(25% - 12px);
}

.card-number-group span {
  display: inline-block;
  padding: 2px;
  vertical-align: middle;
}

.error-outer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1000;
  display: none;
}

.error-wrapper {
  width: calc(100vw - 20px);
  height: calc(100vh - 20px);
  overflow-y: auto;
  margin: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.error-box {
  width: 86%;
  max-width: 350px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  padding: 0;
  text-align: center;
  position: relative;
}

.error-header {
  position: relative;
  padding: 15px;
  border-bottom: 1px solid #e5e5e5;
}

.error-title {
  font-size: 1.125rem;
  font-weight: bold;
  color: #000;
}

.error-close-btn {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 24px;
  height: 24px;
  background: url('../img/close-circle.svg') no-repeat center / 24px;
  cursor: pointer;
}

.error-content {
  padding: 30px 15px;
}

.error-message {
  font-size: 1rem;
}
