/* Weghatic front: link box + mini cart + checkout payment box.
   Uses the theme's design tokens (weghatic-glass.css) with fallbacks. */
.wgh-linkbox { width: 100%; text-align: start; }
.wgh-add-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
@media (min-width: 768px) { .wgh-add-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wgh-add-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--wg-ink-2, #334155); }
.wgh-add-grid input { width: 100%; min-height: 46px; padding: 10px 12px; font-size: 16px; border: 1px solid rgba(15,23,42,.12); border-radius: var(--wg-r-ctrl, 14px); background: #fff; color: var(--wg-ink, #0F172A); }
.wgh-add-grid input:focus { outline: none; border-color: var(--wg-blue, #2563EB); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.wgh-add-grid input[name="price"], .wgh-add-grid input[name="qty"] { direction: ltr; text-align: right; }
.wgh-add-btn[disabled] { opacity: .7; cursor: progress; }
.wgh-note { text-align: start; }

.wgh-mini { margin-top: 18px; background: #fff; border: 1px solid var(--wg-line, rgba(15,23,42,.08)); border-radius: var(--wg-r-card, 20px); padding: 16px; box-shadow: 0 4px 16px rgba(15,23,42,.05); }
.wgh-mini-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.wgh-mini-head strong { color: var(--wg-ink, #0F172A); font-size: 17px; }
.wgh-mini-list { list-style: none; margin: 0; padding: 0; }
.wgh-mini-item { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "info info" "qty rm"; gap: 8px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--wg-line, rgba(15,23,42,.08)); transition: opacity .15s; }
@media (min-width: 640px) { .wgh-mini-item { grid-template-columns: 1fr auto auto; grid-template-areas: "info qty rm"; } }
.wgh-mini-item.is-busy { opacity: .5; pointer-events: none; }
.wgh-mini-info { grid-area: info; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wgh-mini-name { font-weight: 600; color: var(--wg-ink, #0F172A); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wgh-mini-meta { font-size: 13px; color: var(--wg-muted, #64748B); }
.wgh-qty { grid-area: qty; display: inline-flex; align-items: center; gap: 4px; background: rgba(15,23,42,.05); border-radius: 999px; padding: 3px; justify-self: start; }
.wgh-qty-btn { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; color: var(--wg-ink, #0F172A); font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 0 1px 2px rgba(15,23,42,.1); padding: 0; }
.wgh-qty-val { min-width: 24px; text-align: center; font-weight: 600; }
.wgh-remove { grid-area: rm; justify-self: end; border: 0; background: none; color: var(--wg-red, #DC2626); font-size: 14px; font-weight: 500; cursor: pointer; padding: 8px; min-height: 44px; }
.wgh-mini-totals { margin: 12px 0 14px; }
.wgh-mini-totals > div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 15px; color: var(--wg-ink-2, #334155); }
.wgh-mini-totals dd { margin: 0; }
.wgh-mini-totals .is-total { font-weight: 700; color: var(--wg-ink, #0F172A); font-size: 17px; border-top: 1px solid var(--wg-line, rgba(15,23,42,.08)); margin-top: 6px; padding-top: 10px; }
.wgh-checkout-btn { display: flex !important; align-items: center; justify-content: center; text-decoration: none; }

/* Cart badge on header / dock icons */
.wgh-badge { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--wg-green, #10B981); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.wg-cart-btn, .glass-dock .dock-item { position: relative; }

/* Checkout payment box */
.wgh-pay p { margin: 0 0 10px; }
.wgh-bank { margin: 0 0 12px; background: #fff; border: 1px dashed rgba(37,99,235,.35); border-radius: 12px; padding: 10px 14px; }
.wgh-bank > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.wgh-bank dt { color: var(--wg-muted, #64748B); }
.wgh-bank dd { margin: 0; font-weight: 700; color: var(--wg-ink, #0F172A); }
.wgh-receipt input[type="file"] { width: 100%; padding: 12px; background: #fff; border: 1px dashed rgba(15,23,42,.2); border-radius: 12px; font-size: 15px; }
.wgh-receipt-status { font-size: 13px; color: var(--wg-muted, #64748B); margin: 6px 0 0 !important; }
.wgh-receipt.is-done .wgh-receipt-status { color: var(--wg-green-ink, #047857); font-weight: 600; }
.wgh-receipt.is-err .wgh-receipt-status { color: var(--wg-red, #DC2626); }
.wgh-muted { color: var(--wg-muted, #64748B); font-size: 13px; }

/* v0.3: optional screenshot */
.wgh-shot { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--wg-ink-2, #334155); text-align: start; }
.wgh-shot-label em { font-style: normal; color: var(--wg-muted, #64748B); }
.wgh-shot input[type="file"] { width: 100%; padding: 10px; background: #fff; border: 1px dashed rgba(15,23,42,.2); border-radius: 12px; font-size: 14px; }
.wgh-shot small { color: var(--wg-muted, #64748B); }
