/* =========================================================
   메인페이지 전체 상품권 현금교환 신청폼
   기능/필드/버튼/이미지 로직은 유지하고 화면 배치만 정리
   ========================================================= */

.gm3-full-apply{background:#f7f8fa;padding:42px 0 54px}
.gm3-full-apply__title{display:none}

.gapply-v3-card{width:100%;max-width:1120px;margin:0 auto;padding:34px 38px 42px;border:0;border-radius:24px;background:#fff;box-shadow:0 14px 42px rgba(34,45,62,.08)}
.gapply-v3-card *{box-sizing:border-box}
.gapply-v3-card>h2{position:relative;min-height:64px;margin:-6px 0 8px;padding:2px 0 0 82px;border:0;text-align:left;font-size:28px;font-weight:700;line-height:1.18;letter-spacing:-.035em}
.gapply-v3-card>h2::before{position:absolute;top:50%;left:0;display:block;width:64px;height:64px;border-radius:18px;box-shadow:0 9px 24px rgba(39,50,64,.09);content:""!important;background-color:#fff!important;background-image:radial-gradient(circle at 17px 32px,#fff 0 4px,transparent 4.5px),radial-gradient(circle at 47px 32px,#fff 0 4px,transparent 4.5px),repeating-linear-gradient(to bottom,rgba(255,255,255,.95) 0 3px,transparent 3px 6px),linear-gradient(#ff5877,#ff5877)!important;background-position:center,center,center,center!important;background-size:64px 64px,64px 64px,2px 22px,34px 24px!important;background-repeat:no-repeat!important;animation:gapplyTicketFloat 2.8s ease-in-out infinite;transform-origin:center}
.gapply-v3-card>h2::after{display:block;margin-top:3px;color:#8d9299;font-size:14px;font-weight:400;line-height:1.35;letter-spacing:-.02em;content:"판매하실 상품권을 선택해주세요."}

@keyframes gapplyTicketFloat{
  0%,100%{transform:translateY(-50%) scale(1)}
  35%{transform:translateY(calc(-50% - 3px)) scale(1.04)}
  70%{transform:translateY(calc(-50% + 1px)) scale(.98)}
}

@media (prefers-reduced-motion:reduce){
  .gapply-v3-card>h2::before{animation:none;transform:translateY(-50%)}
}

.gapply-v3-row{display:grid;grid-template-columns:130px minmax(0,1fr);gap:24px;align-items:start;padding:22px 0;border-bottom:1px solid #edf0f3}
.gapply-v3-row--products{display:block;padding:20px 0 30px}
.gapply-v3-row--products .gapply-v3-label{display:none}
.gapply-v3-label{padding-top:12px;color:#272c32;font-size:14px;font-weight:700}

/* 실제 관리자에서 사용 중인 상품만 PHP가 출력. PC/모바일 모두 2열 */
.gapply-v3-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none}
.gapply-v3-products button{display:flex;position:relative;min-width:0;min-height:76px;align-items:center;justify-content:flex-start;gap:14px;padding:14px 18px;border:1px solid #edf0f3!important;border-radius:18px;background:#fff;color:#222831;text-align:left;box-shadow:0 7px 22px rgba(28,39,54,.07);font-size:14px;font-weight:600;line-height:1.4;cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.gapply-v3-products button:hover{border-color:#ffd0d9!important;box-shadow:0 9px 24px rgba(255,82,116,.10);transform:translateY(-1px)}
.gapply-v3-products button.is-active{border-color:#ff5b79!important;background:#fff;color:#ff4568;font-weight:700;box-shadow:0 8px 24px rgba(255,82,116,.10)}

.gapply-v3-product-icon{display:grid;width:42px;height:42px;flex:0 0 42px;place-items:center;overflow:hidden;border:0;border-radius:11px;background:#f7f8fa;box-shadow:none}
.gapply-v3-product-icon img{display:block;width:100%;height:100%;padding:3px;border-radius:10px;object-fit:contain}
.gapply-v3-product-icon>span{display:grid;width:100%;height:100%;place-items:center;border-radius:10px;background:#f0f2f5;color:#777;font-size:11px;font-weight:700}
.gapply-v3-product-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:2px}
.gapply-v3-product-copy strong{overflow:hidden;color:inherit;font-size:15px;font-weight:600;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.gapply-v3-product-copy small{color:#8f969e;font-size:12px;font-weight:600;line-height:1.2}
.gapply-v3-products button.is-active .gapply-v3-product-icon{border:0;background:#fff}
.gapply-v3-products button.is-active .gapply-v3-product-copy small{color:#ff6a84}

.gapply-v3-pin-area{min-width:0}
.gapply-v3-pin-grid{display:grid;grid-template-columns:repeat(3,88px) 104px minmax(170px,1fr) 52px;gap:7px}
.gapply-v3-pin-grid input,.gapply-v3-account>input,.gapply-v3-account>select,.gapply-v3-password input{width:100%;min-height:46px;padding:0 12px;border:1px solid #e1e5e9;border-radius:10px;background:#fafbfc;box-shadow:none;font-size:13px}
.gapply-v3-add{min-height:46px;border:0;border-radius:10px;background:#202328;color:#fff;font-size:22px;font-weight:800;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;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 42px 10px 13px;border:1px solid #e0e5ea;border-radius:8px;background:#f7f9fb}
.gapply-v3-added-item__text{display:flex;min-width:0;align-items:center;flex-wrap:wrap;gap:5px 14px}
.gapply-v3-added-item__text strong{color:#1f252b;font-size:12px}.gapply-v3-added-item__text span{color:#5e6873;font-size:12px}
.gapply-v3-remove{position:absolute;top:50%;right:11px;width:24px;height:24px;border:0;border-radius:50%;background:#47515c;color:#fff;transform:translateY(-50%);cursor:pointer}
.gapply-v3-summary-grid{display:grid;grid-template-columns:minmax(0,1fr) 120px minmax(0,1fr);gap:24px;align-items:center}
.gapply-v3-summary-grid input{width:100%;min-height:48px;padding:0 13px;border:1px solid #e0e4e8;border-radius:10px;background:#f7f8fa;font-size:14px}
.gapply-v3-summary-label{text-align:center;font-weight:700}
.gapply-v3-account{display:grid;grid-template-columns:170px minmax(170px,1fr) minmax(170px,1fr) minmax(250px,1.15fr);gap:8px;align-items:start}
.gapply-v3-account .gapply-v3-remember{grid-column:1/-1}
.gapply-v3-phone{display:grid;grid-template-columns:72px 10px minmax(60px,1fr) 10px minmax(60px,1fr);gap:5px;align-items:center}
.gapply-v3-phone select,.gapply-v3-phone input{width:100%;min-height:46px;padding:0 8px;border:1px solid #e1e5e9;border-radius:10px;background:#fafbfc;box-shadow:none}
.gapply-v3-phone span{color:#707984;text-align:center}
.gapply-v3-remember{display:flex;align-items:center;gap:7px;margin-top:2px;color:#737d87;font-size:12px}.gapply-v3-remember input{width:14px;height:14px}
.gapply-v3-password{display:grid;max-width:520px;grid-template-columns:1fr 1fr;gap:8px}
.gapply-v3-submit-wrap{padding-top:30px;text-align:center}
.gapply-v3-submit-wrap button{min-width:240px;min-height:56px;padding:0 28px;border:0;border-radius:16px;background:#ff5274;color:#fff;box-shadow:0 9px 20px rgba(255,82,116,.20);font-size:16px;font-weight:700;cursor:pointer}

@media(max-width:980px){
 .gapply-v3-card{padding:32px 26px 38px}
 .gapply-v3-pin-grid{grid-template-columns:repeat(4,minmax(70px,1fr))}
 #giftFaceValue{grid-column:1/4}.gapply-v3-add{grid-column:4}
 .gapply-v3-account{grid-template-columns:1fr 1fr}.gapply-v3-phone{grid-column:1/-1}
}

@media(max-width:720px){
 .gm3-full-apply{padding:24px 0 34px}
 .gapply-v3-card{padding:22px 14px 28px;border-radius:18px}
 .gapply-v3-card>h2{min-height:58px;margin:-4px 0 8px;padding:2px 0 0 70px;font-size:21px;line-height:1.2}
 .gapply-v3-card>h2::before{width:56px;height:56px;border-radius:16px;background-size:56px 56px,56px 56px,2px 19px,30px 21px!important}
 .gapply-v3-card>h2::after{margin-top:2px;font-size:12px;line-height:1.3}
 .gapply-v3-row{display:block;padding:17px 0}
 .gapply-v3-row--products{padding:18px 0 24px}
 .gapply-v3-label{margin-bottom:9px;padding-top:0;font-size:12px}
 .gapply-v3-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .gapply-v3-products button{min-height:58px;gap:8px;padding:9px 10px;border-radius:15px}
 .gapply-v3-product-icon{width:32px;height:32px;flex-basis:32px;border-radius:9px}
 .gapply-v3-product-icon img{padding:2px;border-radius:8px}
 .gapply-v3-product-copy strong{font-size:12px;white-space:nowrap}
 .gapply-v3-product-copy small{font-size:10px}
 .gapply-v3-pin-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
 .gapply-v3-pin-grid input{min-width:0;padding:0 7px;font-size:11px}
 #giftFaceValue{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:8px;background:#202328;color:#fff;font-weight:800}
 .gapply-v3-summary-grid{grid-template-columns:1fr;gap:8px}.gapply-v3-summary-label{text-align:left;font-size:12px}
 .gapply-v3-account{grid-template-columns:1fr}.gapply-v3-account .gapply-v3-remember,.gapply-v3-phone{grid-column:auto}
 .gapply-v3-phone{grid-template-columns:70px 8px 1fr 8px 1fr}
 .gapply-v3-password{max-width:none;grid-template-columns:1fr}.gapply-v3-added-item__text{display:grid;gap:2px}
 .gapply-v3-submit-wrap button{width:100%;min-width:0;min-height:50px;font-size:14px}
}

@media(max-width:380px){
 .gapply-v3-products{gap:6px}
 .gapply-v3-products button{min-height:56px;padding:8px}
 .gapply-v3-product-icon{width:29px;height:29px;flex-basis:29px}
 .gapply-v3-product-copy strong{font-size:11px}
}