/* ============================================================
   MODULE 4 — Global Payment & Checkout
   Scoped under .sh-co*. Renders into #app-view.
   ============================================================ */
.sh-co{max-width:1040px;margin:0 auto;padding:6px 0 40px}
.sh-co__top{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.sh-co__top h2{margin:0;font-size:22px;color:var(--sh-navy)}
.sh-co__back{border:0;background:transparent;color:var(--sh-navy);font-weight:700;cursor:pointer;font-size:14px}
.sh-co__grid{display:grid;grid-template-columns:1.4fr 1fr;gap:22px;align-items:start}
@media(max-width:820px){.sh-co__grid{grid-template-columns:1fr}}

.sh-co__card{background:#fff;border:1px solid var(--sh-line);border-radius:14px;padding:18px;margin-bottom:18px}
.sh-co__card h3{margin:0 0 14px;font-size:16px;color:var(--sh-navy)}

.sh-co__row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.sh-fld2{margin-bottom:12px}
.sh-fld2 label{display:block;font-size:12.5px;font-weight:700;margin-bottom:5px}
.sh-fld2 input,.sh-fld2 select{width:100%;border:1px solid var(--sh-line);border-radius:10px;padding:10px 12px;font-size:14px;font-family:inherit;outline:0}
.sh-fld2 input:focus,.sh-fld2 select:focus{border-color:var(--sh-navy);box-shadow:0 0 0 3px rgba(15,27,61,.08)}
.sh-co__err{color:var(--sh-red);font-size:12.5px;margin-top:8px;display:none}
.sh-co__err.show{display:block}

/* express pay */
.sh-co__express{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.sh-pay-btn{display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:10px;
  padding:12px;font-weight:700;font-size:14px;cursor:pointer;font-family:inherit;color:#fff}
.sh-pay-btn--apple{background:#000}
.sh-pay-btn--gpay{background:#fff;color:#3c4043;border:1px solid var(--sh-line)}
.sh-pay-btn--apple:hover{opacity:.88}.sh-pay-btn--gpay:hover{background:var(--sh-bg-soft)}
.sh-co__or{text-align:center;color:var(--sh-muted);font-size:12px;margin:6px 0 14px;position:relative}
.sh-co__or::before,.sh-co__or::after{content:"";position:absolute;top:50%;width:38%;height:1px;background:var(--sh-line)}
.sh-co__or::before{left:0}.sh-co__or::after{right:0}

/* method tabs */
.sh-co__methods{display:flex;gap:10px;margin-bottom:14px}
.sh-co__method{flex:1;border:1.5px solid var(--sh-line);border-radius:12px;padding:12px;cursor:pointer;
  display:flex;align-items:center;gap:8px;font-weight:700;font-size:14px;background:#fff}
.sh-co__method.sel{border-color:var(--sh-navy);background:rgba(15,27,61,.04)}
.sh-co__method .logo{font-weight:800}
.sh-co__pane{display:none}.sh-co__pane.sel{display:block}

.sh-card-input{position:relative}
.sh-card-input .brand{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:12px;font-weight:800;color:var(--sh-muted)}
.sh-co__secure{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--sh-muted);margin-top:10px}

.sh-paypal__box{text-align:center;padding:12px;background:var(--sh-bg-soft);border-radius:12px}
.sh-paypal__btn{background:#ffc439;color:#003087;border:0;border-radius:24px;padding:12px 22px;font-weight:800;
  font-size:16px;cursor:pointer;font-family:inherit;width:100%}
.sh-paypal__btn i{font-style:italic}
.sh-paypal__btn:hover{filter:brightness(.97)}

/* summary */
.sh-co__sum{position:sticky;top:14px}
.sh-co__items{max-height:280px;overflow-y:auto;margin-bottom:10px}
.sh-co__item{display:flex;gap:10px;padding:8px 0;border-bottom:1px solid var(--sh-line)}
.sh-co__item img{width:48px;height:48px;border-radius:8px;object-fit:cover;background:var(--sh-bg-soft)}
.sh-co__item .nm{font-size:13px;font-weight:600;line-height:1.3}
.sh-co__item .mt{font-size:11.5px;color:var(--sh-muted)}
.sh-co__item .pr{margin-left:auto;font-weight:700;font-size:13px;white-space:nowrap}
.sh-co__line{display:flex;justify-content:space-between;font-size:13.5px;margin:6px 0;color:#444}
.sh-co__line.tot{font-size:17px;font-weight:800;color:var(--sh-navy);border-top:1px solid var(--sh-line);padding-top:10px;margin-top:10px}
/* coupon + tax */
.sh-co__coupon{display:flex;gap:8px;margin:10px 0 4px}
.sh-co__coupon input{flex:1;border:1px solid var(--sh-line);border-radius:9px;padding:9px 11px;font-size:13px;font-family:inherit;outline:0}
.sh-co__coupon input:focus{border-color:var(--sh-navy)}
.sh-co__coupon button{border:0;background:var(--sh-navy);color:#fff;border-radius:9px;padding:0 14px;font-weight:700;cursor:pointer;font-family:inherit}
.sh-co__coupon-on{display:flex;align-items:center;gap:8px;font-size:12.5px;background:rgba(31,170,89,.1);border:1px solid rgba(31,170,89,.3);color:#137a3e;border-radius:9px;padding:8px 11px;margin:10px 0 4px}
.sh-co__coupon-on button{margin-left:auto;border:0;background:transparent;color:var(--sh-red);font-weight:700;cursor:pointer;font-size:12px}
.sh-co__coupon-msg{font-size:12px;color:var(--sh-muted);min-height:0}
.sh-co__coupon-msg.err{color:var(--sh-red);margin:2px 0 6px}
.sh-co__line--save{color:var(--sh-green);font-weight:600}

.sh-co__place{width:100%;margin-top:14px;font-size:15px;padding:13px}
.sh-co__place:disabled{opacity:.6;cursor:not-allowed}

/* processing + thank-you */
.sh-co__proc{display:none;text-align:center;padding:40px 20px}
.sh-co__proc.show{display:block}
.sh-spin{width:42px;height:42px;border:4px solid var(--sh-line);border-top-color:var(--sh-navy);border-radius:50%;
  margin:0 auto 14px;animation:sh-spin 0.8s linear infinite}
@keyframes sh-spin{to{transform:rotate(360deg)}}

.sh-thanks{display:none;text-align:center;max-width:560px;margin:10px auto;background:#fff;border:1px solid var(--sh-line);border-radius:18px;padding:42px 30px}
.sh-thanks.show{display:block}
.sh-thanks__check{width:84px;height:84px;border-radius:50%;background:rgba(31,170,89,.12);color:var(--sh-green);
  display:flex;align-items:center;justify-content:center;font-size:46px;margin:0 auto 18px;animation:sh-pop .4s ease}
@keyframes sh-pop{from{transform:scale(.6);opacity:0}to{transform:none;opacity:1}}
.sh-thanks h2{margin:0 0 8px;color:var(--sh-navy);font-size:24px}
.sh-thanks p{margin:0 0 6px;color:#444}
.sh-thanks .ord{display:inline-block;margin:14px 0;background:var(--sh-bg-soft);border-radius:10px;padding:10px 16px;font-weight:700;color:var(--sh-navy)}
.sh-thanks .btns{margin-top:18px;display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
