/* 상품권 현금교환 신청 - ksdl.kr 참고형 v3 */
.gapply-v2-page{
  min-height:610px;
  padding:58px 0 90px;
  background:#fff;
}

.gapply-v3-card{
  width:min(940px,100%);
  margin:0 auto;
  padding:44px 48px 50px;
  border:1px solid #e0e5e9;
  border-radius:22px;
  background:#fff;
  box-shadow:0 12px 34px rgba(31,45,60,.09);
}

.gapply-v3-card h2{
  margin:0 0 28px;
  font-size:25px;
  text-align:center;
  letter-spacing:-.04em;
}

.gapply-v3-row{
  display:grid;
  grid-template-columns:92px minmax(0,1fr);
  gap:22px;
  padding:18px 0;
  border-top:1px solid #dfe4e8;
}

.gapply-v3-label{
  display:flex;
  align-items:flex-start;
  padding-top:12px;
  color:#454d55;
  font-size:13px;
}

.gapply-v3-products{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  overflow:hidden;
  border:1px solid #dfe4e8;
  border-radius:8px;
  background:#fff;
  box-shadow:0 5px 14px rgba(31,45,60,.08);
}

.gapply-v3-products button{
  min-height:44px;
  padding:8px 10px;
  border:0;
  border-right:1px solid #e5e8eb;
  border-bottom:1px solid #e5e8eb;
  background:#fff;
  color:#3f474f;
  font-size:11px;
  line-height:1.4;
  cursor:pointer;
}

.gapply-v3-products button:nth-child(4n){
  border-right:0;
}

.gapply-v3-products button:nth-last-child(-n+4){
  border-bottom:0;
}

.gapply-v3-products button.is-active{
  background:#5bb4ec;
  color:#fff;
}

.gapply-v3-pin-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(72px,1fr)) minmax(150px,1.5fr) 42px;
  gap:7px;
}

.gapply-v3-pin-grid input,
.gapply-v3-account input,
.gapply-v3-account select,
.gapply-v3-password input,
.gapply-v3-summary-grid input{
  width:100%;
  height:42px;
  padding:0 12px;
  border:1px solid #d9dfe4;
  border-radius:7px;
  background:#fff;
  color:#30373e;
  font:inherit;
  font-size:12px;
  box-shadow:0 3px 10px rgba(31,45,60,.06);
}

.gapply-v3-pin-grid input:focus,
.gapply-v3-account input:focus,
.gapply-v3-account select:focus,
.gapply-v3-password input:focus{
  border-color:#5bb4ec;
  outline:0;
  box-shadow:0 0 0 3px rgba(91,180,236,.12);
}

.gapply-v3-add{
  border:0;
  border-radius:7px;
  background:#232323;
  color:#fff;
  font-size:20px;
  cursor:pointer;
}

.gapply-v3-add-mobile{
  display:none;
}

.gapply-v3-added-items{
  display:grid;
  gap:7px;
  margin-top:8px;
}

.gapply-v3-added-item{
  position:relative;
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:8px 42px 8px 14px;
  border:1px solid #e2e6e9;
  border-radius:4px;
  background:#f7f7f7;
}

.gapply-v3-added-item__text{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:5px 18px;
  min-width:0;
  color:#323940;
  font-size:12px;
}

.gapply-v3-added-item__text strong{
  color:#20262c;
  font-size:12px;
}

.gapply-v3-added-item__text span{
  white-space:nowrap;
}

.gapply-v3-remove{
  position:absolute;
  right:12px;
  top:50%;
  width:22px;
  height:22px;
  padding:0;
  transform:translateY(-50%);
  border:0;
  border-radius:50%;
  background:transparent;
  color:#43515c;
  font-size:18px;
  line-height:1;
  cursor:pointer;
}

.gapply-v3-summary-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 110px minmax(0,1fr);
  gap:24px;
  align-items:center;
}

.gapply-v3-summary-grid input{
  background:#fafafa;
  font-size:13px;
}

.gapply-v3-summary-label{
  color:#4e575f;
  font-size:12px;
  text-align:center;
}

.gapply-v3-account{
  display:grid;
  grid-template-columns:1.05fr 1.35fr 1.35fr 1.45fr;
  gap:8px;
}

.gapply-v3-phone{
  display:grid;
  grid-template-columns:62px 10px minmax(42px,1fr) 10px minmax(42px,1fr);
  align-items:center;
  gap:4px;
}

.gapply-v3-phone span{
  text-align:center;
}

.gapply-v3-remember{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:2px;
  color:#78818a;
  font-size:11px;
}

.gapply-v3-remember input{
  width:14px;
  height:14px;
  margin:0;
  box-shadow:none;
}

.gapply-v3-password{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:10px;
  max-width:510px;
}

.gapply-v3-submit-wrap{
  padding-top:24px;
  border-top:1px solid #dfe4e8;
  text-align:center;
}

.gapply-v3-submit-wrap button{
  min-width:220px;
  min-height:54px;
  padding:0 28px;
  border:0;
  border-radius:999px;
  background:#ff973f;
  color:#fff;
  font-size:15px;
  font-weight:900;
  box-shadow:0 9px 22px rgba(255,151,63,.26);
  cursor:pointer;
}

@media(max-width:760px){
  .gapply-v2-page{
    padding:30px 0 54px;
  }

  .gapply-v3-card{
    width:min(100% - 22px,940px);
    padding:24px 12px 28px;
    border-radius:15px;
  }

  .gapply-v3-card h2{
    margin-bottom:18px;
    font-size:18px;
  }

  .gapply-v3-row{
    display:block;
    padding:13px 0;
  }

  .gapply-v3-label{
    padding:0 0 8px;
    font-size:11px;
  }

  .gapply-v3-products{
    grid-template-columns:1fr 1fr;
  }

  .gapply-v3-products button{
    min-height:42px;
    font-size:10px;
  }

  .gapply-v3-products button:nth-child(2n){
    border-right:0;
  }

  .gapply-v3-products button:nth-last-child(-n+4){
    border-bottom:1px solid #e5e8eb;
  }

  .gapply-v3-products button:nth-last-child(-n+2){
    border-bottom:0;
  }

  .gapply-v3-pin-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:5px;
  }

  .gapply-v3-pin-grid input{
    height:39px;
    padding:0 6px;
    font-size:11px;
  }

  .gapply-v3-pin-grid input:nth-child(5){
    grid-column:1/-1;
  }

  .gapply-v3-add{
    display:none;
  }

  .gapply-v3-add-mobile{
    display:block;
    width:100%;
    min-height:40px;
    margin-top:7px;
    border:0;
    border-radius:5px;
    background:#232323;
    color:#fff;
    font-weight:800;
  }

  .gapply-v3-added-item{
    align-items:flex-start;
    min-height:0;
    padding:10px 38px 10px 10px;
  }

  .gapply-v3-added-item__text{
    display:grid;
    gap:4px;
    font-size:10px;
  }

  .gapply-v3-added-item__text strong{
    font-size:11px;
  }

  .gapply-v3-summary-grid{
    grid-template-columns:1fr;
    gap:7px;
  }

  .gapply-v3-summary-label{
    text-align:left;
  }

  .gapply-v3-account{
    grid-template-columns:1fr;
  }

  .gapply-v3-phone{
    grid-template-columns:62px 10px 1fr 10px 1fr;
  }

  .gapply-v3-password{
    grid-template-columns:1fr;
    max-width:none;
  }

  .gapply-v3-submit-wrap button{
    width:100%;
    min-width:0;
  }
}
