/* KoreaStore gift certificates — catalog modal */
.ksgc-banner{
  margin:12px 0 14px;
  padding:14px;
  border:1px solid #e2dad3;
  border-radius:16px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  background:
    radial-gradient(circle at 88% 12%,rgba(255,255,255,.9),transparent 25%),
    linear-gradient(135deg,#f3efe9,#eef3e9 58%,#f7edf1);
  overflow:hidden;
}
.ksgc-banner__copy{
  min-width:0;
}
.ksgc-banner__copy>span{
  display:block;
  color:#857a72;
  font-size:10px;
  font-weight:800;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.ksgc-banner__copy h2{
  margin:4px 0 5px;
  font-family:Georgia,serif;
  font-size:28px;
  font-weight:400;
  letter-spacing:-.04em;
}
.ksgc-banner__copy p{
  max-width:680px;
  margin:0;
  color:#706760;
  font-size:12px;
  line-height:1.5;
}
.ksgc-banner__actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.ksgc-banner__actions button{
  min-height:44px;
  padding:0 14px;
  border:1px solid #211e1b;
  border-radius:9px;
  background:#211e1b;
  color:#fff;
  font:inherit;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}
.ksgc-banner__actions button:focus-visible,
.ksgc-dialog button:focus-visible,
.ksgc-dialog input:focus-visible,
.ksgc-dialog textarea:focus-visible{
  outline:2px solid #211e1b;
  outline-offset:2px;
}
.ksgc-banner__card{
  min-width:148px;
  min-height:86px;
  padding:12px;
  border:1px solid rgba(41,34,30,.08);
  border-radius:13px;
  display:grid;
  align-content:space-between;
  background:rgba(255,255,255,.76);
}
.ksgc-banner__card strong{
  font-family:Georgia,serif;
  font-size:18px;
  font-weight:400;
}
.ksgc-banner__card span{
  color:#857a72;
  font-size:9px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.ksgc-dialog{
  width:min(680px,calc(100% - 24px));
  max-height:min(88dvh,760px);
  padding:0;
  border:0;
  border-radius:20px;
  background:transparent;
  overflow:visible;
}
.ksgc-dialog::backdrop{
  background:rgba(27,23,20,.46);
  backdrop-filter:blur(5px);
}
.ksgc-dialog__card{
  position:relative;
  max-height:min(88dvh,760px);
  padding:22px;
  border:1px solid #dfd7d0;
  border-radius:20px;
  background:#fbfaf8;
  box-shadow:0 26px 80px rgba(35,29,24,.22);
  overflow:auto;
}
.ksgc-dialog__close{
  position:absolute;
  top:12px;
  right:12px;
  width:44px;
  height:44px;
  border:1px solid #e0d8d1;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#fff;
  color:#4f4842;
  font:inherit;
  font-size:20px;
  cursor:pointer;
}
.ksgc-dialog__eyebrow{
  display:block;
  color:#877c74;
  font-size:10px;
  font-weight:800;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.ksgc-dialog h2{
  max-width:520px;
  margin:5px 52px 6px 0;
  font-family:Georgia,serif;
  font-size:32px;
  font-weight:400;
  line-height:1;
  letter-spacing:-.045em;
}
.ksgc-dialog__intro{
  max-width:560px;
  margin:0;
  color:#746b64;
  font-size:12px;
  line-height:1.5;
}
.ksgc-form{
  display:grid;
  gap:10px;
  margin-top:16px;
}
.ksgc-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}
.ksgc-field{
  display:grid;
  gap:5px;
}
.ksgc-field.full{
  grid-column:1/-1;
}
.ksgc-field label{
  color:#5f5751;
  font-size:11px;
  font-weight:800;
}
.ksgc-field input,
.ksgc-field textarea{
  width:100%;
  border:1px solid #d9d1ca;
  border-radius:9px;
  background:#fff;
  color:#211e1b;
  font:inherit;
  font-size:13px;
}
.ksgc-field input{
  min-height:44px;
  padding:0 10px;
}
.ksgc-field textarea{
  min-height:94px;
  padding:10px;
  resize:vertical;
}
.ksgc-field small{
  color:#8a8179;
  font-size:10px;
  line-height:1.4;
}
.ksgc-payment-note{
  padding:10px;
  border:1px solid #e4ddd6;
  border-radius:10px;
  display:grid;
  grid-template-columns:28px 1fr;
  gap:8px;
  align-items:start;
  background:#f3f0ec;
}
.ksgc-payment-note>span{
  width:28px;
  height:28px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#fff;
  color:#756c65;
  font-size:11px;
  font-weight:900;
}
.ksgc-payment-note strong,
.ksgc-payment-note small{
  display:block;
}
.ksgc-payment-note strong{
  font-size:11px;
}
.ksgc-payment-note small{
  margin-top:2px;
  color:#7d746d;
  font-size:10px;
  line-height:1.4;
}
.ksgc-status{
  min-height:18px;
  color:#8b5a68;
  font-size:11px;
  line-height:1.4;
}
.ksgc-status:empty{
  display:none;
}
.ksgc-status.is-success{
  color:#4f6c54;
}
.ksgc-form__submit{
  min-height:46px;
  padding:0 14px;
  border:0;
  border-radius:9px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  background:#211e1b;
  color:#fff;
  font:inherit;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}
.ksgc-form__submit:disabled{
  opacity:.55;
  cursor:wait;
}
.ksgc-success{
  margin-top:16px;
  padding:18px;
  border:1px solid #dce6d8;
  border-radius:14px;
  background:#f1f5ef;
  text-align:center;
}
.ksgc-success[hidden]{
  display:none!important;
}
.ksgc-success strong{
  display:block;
  font-family:Georgia,serif;
  font-size:24px;
  font-weight:400;
}
.ksgc-success p{
  margin:6px auto 0;
  max-width:480px;
  color:#667062;
  font-size:11px;
  line-height:1.5;
}
.ksgc-success code{
  display:inline-block;
  margin-top:10px;
  padding:5px 8px;
  border-radius:6px;
  background:#fff;
  color:#485146;
  font-size:10px;
  font-weight:800;
}
.ksgc-success button{
  min-height:44px;
  margin-top:12px;
  padding:0 14px;
  border:1px solid #526953;
  border-radius:9px;
  background:#526953;
  color:#fff;
  font:inherit;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}

@media(max-width:760px){
  .ksgc-banner{
    grid-template-columns:1fr;
    gap:10px;
    padding:12px;
  }
  .ksgc-banner__actions{
    display:grid;
    grid-template-columns:minmax(0,1fr) 120px;
  }
  .ksgc-banner__actions button{
    width:100%;
  }
  .ksgc-banner__card{
    min-width:0;
    min-height:74px;
  }
  .ksgc-dialog{
    width:100%;
    max-height:92dvh;
    margin:auto 0 0;
    border-radius:20px 20px 0 0;
  }
  .ksgc-dialog__card{
    max-height:92dvh;
    padding:18px 12px max(16px,env(safe-area-inset-bottom));
    border-radius:20px 20px 0 0;
  }
  .ksgc-dialog h2{
    font-size:28px;
  }
  .ksgc-grid{
    grid-template-columns:1fr;
  }
  .ksgc-field.full{
    grid-column:auto;
  }
  .ksgc-field input,
  .ksgc-field textarea{
    font-size:16px;
  }
  .ksgc-form__submit{
    min-height:48px;
  }
}
@media(max-width:390px){
  .ksgc-banner{
    padding:10px;
  }
  .ksgc-banner__actions{
    grid-template-columns:1fr;
  }
}
@media(prefers-reduced-motion:reduce){
  .ksgc-dialog,
  .ksgc-dialog *{
    scroll-behavior:auto!important;
  }
}


/* Stage 29 — gift certificate balance checker and request accessibility */
.ksgc-balance{
  margin-top:18px;padding:16px 15px;background:#fff;
  border:1px solid #e2d8ce;border-radius:11px;
}
.ksgc-balance__head h3{font-size:17px;line-height:1.35;margin:0 0 5px;color:#2e2925}
.ksgc-balance__head p{
  margin:0 0 13px;color:#756c63;line-height:1.55;font-size:12px
}
.ksgc-balance__form{display:grid;gap:9px}
.ksgc-balance__form label{font-size:13px;font-weight:750;color:#51473f}
.ksgc-balance__input{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.ksgc-balance__input input{
  width:100%;min-width:0;min-height:47px;padding:10px 12px;
  border:1px solid #d5c8be;border-radius:7px;background:#fff;
  font:inherit;font-size:15px;letter-spacing:.055em
}
.ksgc-balance__input button{
  min-height:47px;padding:10px 13px;border:0;border-radius:7px;
  background:#2d2925;color:#fff;font:inherit;font-size:12px;
  font-weight:750;cursor:pointer
}
.ksgc-balance__input button:disabled{opacity:.55;cursor:wait}
.ksgc-balance__status{font-size:12px;color:#736a62;line-height:1.5}
.ksgc-balance__status:empty{display:none}
.ksgc-balance__status.is-error{color:#9c4b47}
.ksgc-balance__status.is-success{color:#4b7051}
.ksgc-balance__result{
  padding:11px 13px;background:#eff7ee;border:1px solid #d6e5d1;
  color:#436548;border-radius:8px;font-size:13px;
  font-weight:700;line-height:1.55
}
.ksgc-balance__result[hidden]{display:none!important}
.ksgc-dialog .ksgc-form input,.ksgc-dialog .ksgc-form textarea{
  font-size:15px;line-height:1.5
}
.ksgc-dialog .ksgc-field label{font-size:12px}
.ksgc-dialog .ksgc-field small,.ksgc-payment-note small{font-size:12px}
.ksgc-dialog :is(input,button,textarea):focus-visible{
  outline:3px solid #8c796c;outline-offset:2px
}
@media(max-width:560px){
  .ksgc-balance{padding:12px}
  .ksgc-balance__input{grid-template-columns:minmax(0,1fr)}
  .ksgc-balance__input input{font-size:16px;min-height:49px}
  .ksgc-balance__input button{min-height:49px;font-size:13px}
  .ksgc-dialog .ksgc-form input,.ksgc-dialog .ksgc-form textarea{font-size:16px}
  .ksgc-balance__result{font-size:13px}
}
