/* Softhands trade (B2B) — forms, quick order, business account */
.sh-b2b {
	--sh-ink: var(--wp--preset--color--main, #1E1E26);
	--sh-muted: var(--wp--preset--color--secondary, #545473);
	--sh-line: var(--wp--preset--color--border-light, #E3E3F0);
	--sh-soft: var(--wp--preset--color--tertiary, #f8f7fc);
	--sh-accent: var(--wp--preset--color--primary, #5344F4);
	--sh-accent-soft: var(--wp--preset--color--primary-accent, #e9e7ff);
	color: var(--sh-ink);
}
.sh-b2b * { box-sizing: border-box; }
.sh-b2b h2 { margin: 0 0 8px; font-size: var(--wp--preset--font-size--x-large, 2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.sh-b2b h3 { margin: 0 0 12px; font-size: var(--wp--preset--font-size--medium, 1.2rem); font-weight: 700; }
.sh-b2b__eyebrow { margin: 0 0 6px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sh-accent); }
.sh-b2b__notice { margin: 0 0 20px; padding: 14px 18px; border-radius: 12px; background: var(--sh-soft); border: 1px solid var(--sh-line); }
.sh-b2b__notice--ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.sh-b2b__notice--err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.sh-b2b__notice a { color: inherit; font-weight: 700; }

.sh-btn-primary, .sh-b2b .sh-btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border: 0; border-radius: 10px; background: var(--sh-accent); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.sh-btn-primary:hover { background: #3f30e0; color: #fff; }
.sh-btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.sh-btn-ghost { display: inline-flex; align-items: center; padding: 10px 16px; border: 1px solid var(--sh-line); border-radius: 10px; background: #fff; color: var(--sh-ink); font: inherit; font-weight: 600; font-size: .9375rem; text-decoration: none; cursor: pointer; transition: border-color .15s, background .15s; }
.sh-btn-ghost:hover { border-color: var(--sh-accent); background: var(--sh-accent-soft); }
.sh-b2b :focus-visible { outline: 3px solid #a99fff; outline-offset: 2px; }

/* fields */
.sh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.sh-f { display: flex; flex-direction: column; gap: 6px; font-size: .875rem; font-weight: 600; }
.sh-f--wide { grid-column: 1 / -1; }
.sh-f input, .sh-f select, .sh-f textarea, .sh-qo__paste textarea { width: 100%; padding: 11px 13px; border: 1px solid #cfcfe0; border-radius: 10px; background: #fff; font: inherit; font-weight: 400; font-size: 1rem; color: var(--sh-ink); }
.sh-f input:focus, .sh-f select:focus, .sh-f textarea:focus, .sh-qo__paste textarea:focus { outline: none; border-color: var(--sh-accent); box-shadow: 0 0 0 3px var(--sh-accent-soft); }
.sh-f input[readonly] { background: var(--sh-soft); color: var(--sh-muted); }
.sh-check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 18px; font-size: .9375rem; }
.sh-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--sh-accent); }
.sh-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* application */
.sh-apply { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.sh-apply > .sh-b2b__notice { grid-column: 2; }
.sh-apply__intro { position: sticky; top: 24px; padding: 28px; border-radius: 20px; background: #0B0B12; color: #fff; background-image: radial-gradient(80% 60% at 100% 0%, rgba(83,68,244,.5), transparent 70%); }
.sh-apply__intro h2 { color: #fff; font-size: var(--wp--preset--font-size--large, 1.6rem); }
.sh-apply__intro .sh-b2b__eyebrow { color: #b4abff; }
.sh-apply__perks { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.sh-apply__perks li { position: relative; padding-left: 28px; color: #c9c9de; font-size: .9375rem; max-width: none; }
.sh-apply__perks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #34d399 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0B12' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 10px no-repeat; }
.sh-apply__perks strong { color: #fff; }
.sh-apply__form fieldset { margin: 0 0 22px; padding: 0; border: 0; }
.sh-apply__form legend { margin-bottom: 12px; padding: 0; font-weight: 800; font-size: 1rem; }
.sh-apply__small { margin: 12px 0 0; font-size: .8125rem; color: var(--sh-muted); }

/* quantity breaks on product page */
.sh-qb { margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--sh-line); border-radius: 12px; background: var(--sh-soft); }
.sh-qb__title { margin: 0 0 8px; font-weight: 800; font-size: .9375rem; }
.sh-qb__table { width: 100%; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
.sh-qb__table th { text-align: left; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sh-muted); padding: 4px 0; }
.sh-qb__table td { padding: 6px 0; border-top: 1px solid var(--sh-line); }
.sh-qb-teaser { margin: 0 0 14px; font-size: .875rem; color: var(--wp--preset--color--secondary, #545473); }

/* quick order */
.sh-qo__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sh-qo__head p { margin: 0; color: var(--sh-muted); max-width: 60ch; }
.sh-qo__tools { display: flex; gap: 10px; flex-wrap: wrap; }
.sh-qo__file { cursor: pointer; }
.sh-qo__paste { margin-bottom: 18px; padding: 16px; border: 1px dashed #bdb7ff; border-radius: 14px; background: var(--sh-accent-soft); }
.sh-qo__paste label { display: block; margin-bottom: 8px; font-weight: 600; font-size: .875rem; }
.sh-qo__paste textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9375rem; }
.sh-qo__paste-actions { display: flex; gap: 10px; margin-top: 10px; }
.sh-qo__table { border: 1px solid var(--sh-line); border-radius: 16px; overflow: hidden; background: #fff; }
.sh-qo__row { display: grid; grid-template-columns: minmax(140px, 1.1fr) minmax(0, 2.4fr) 88px 120px 110px 44px; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--sh-line); }
.sh-qo__row--head { border-top: 0; background: var(--sh-soft); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sh-muted); }
.sh-qo__row input { width: 100%; padding: 9px 11px; border: 1px solid #cfcfe0; border-radius: 8px; font: inherit; font-size: .9375rem; background: #fff; }
.sh-qo__cell--code input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.sh-qo__row input:focus { outline: none; border-color: var(--sh-accent); box-shadow: 0 0 0 3px var(--sh-accent-soft); }
.sh-qo__row.is-ok .sh-qo__cell--code input { border-color: #34d399; }
.sh-qo__row.is-err .sh-qo__cell--code input { border-color: #f87171; }
.sh-qo__row.is-loading .sh-qo__cell--product { color: var(--sh-muted); }
.sh-qo__cell--product { min-width: 0; font-size: .9375rem; line-height: 1.35; }
.sh-qo__row.is-err .sh-qo__cell--product { color: #b91c1c; }
.sh-qo__name { display: block; color: var(--sh-ink); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-qo__name:hover { color: var(--sh-accent); }
.sh-qo__meta, .sh-qo__err, .sh-qo__break { display: block; font-size: .75rem; }
.sh-qo__meta { color: var(--sh-muted); }
.sh-qo__err { color: #b91c1c; }
.sh-qo__break { color: #047857; font-weight: 600; }
.sh-qo__cell--price, .sh-qo__cell--total { font-variant-numeric: tabular-nums; text-align: right; font-size: .9375rem; }
.sh-qo__cell--total { font-weight: 700; }
.sh-qo__rm { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--sh-muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.sh-qo__rm:hover { background: #fef2f2; color: #b91c1c; }
.sh-qo__add { margin-top: 10px; padding: 8px 0; border: 0; background: none; color: var(--sh-accent); font: inherit; font-weight: 700; cursor: pointer; }
.sh-qo__foot { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; padding: 14px 18px; border-radius: 14px; background: #0B0B12; color: #fff; box-shadow: 0 -10px 30px -20px rgba(0,0,0,.5); }
.sh-qo__summary { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.sh-qo__foot-actions { display: flex; gap: 10px; }
.sh-qo__foot .sh-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.sh-qo__foot .sh-btn-ghost:hover { background: rgba(255,255,255,.08); }
.sh-qo__note { margin: 10px 0 0; font-size: .8125rem; color: var(--sh-muted); }

/* business account */
.sh-ba { display: grid; gap: 20px; }
.sh-ba__card { padding: 24px; border: 1px solid var(--sh-line); border-radius: 16px; background: #fff; }
.sh-ba__status { background: var(--sh-soft); }
.sh-ba__badge { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--sh-line); font-size: .8125rem; font-weight: 700; }
.sh-ba__badge--ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.sh-ba__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 18px; }
.sh-ba__stats div { padding: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--sh-line); }
.sh-ba__stats div.is-warn { border-color: #fecaca; background: #fef2f2; }
.sh-ba__stats dt { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sh-muted); }
.sh-ba__stats dd { margin: 4px 0 0; font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sh-ba__stats dd small { display: block; font-size: .75rem; font-weight: 500; color: var(--sh-muted); }
.sh-ba__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sh-ba__hint { margin: -6px 0 16px; font-size: .875rem; color: var(--sh-muted); }
.sh-ba__table-wrap { overflow-x: auto; }
.sh-ba__table { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.sh-ba__table th { text-align: left; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--sh-muted); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--sh-line); }
.sh-ba__table td { padding: 10px 10px 10px 0; border-bottom: 1px solid #f0f0f6; }
.sh-ba__row-actions a { margin-right: 12px; font-weight: 600; color: var(--sh-accent); }

@media (max-width: 900px) {
	.sh-apply { grid-template-columns: 1fr; }
	.sh-apply > .sh-b2b__notice { grid-column: auto; }
	.sh-apply__intro { position: static; }
}
@media (max-width: 760px) {
	.sh-grid { grid-template-columns: 1fr; }
	.sh-qo__row--head { display: none; }
	.sh-qo__row { grid-template-columns: 1fr 80px 40px; grid-template-areas: "code qty rm" "product product product" "price total total"; row-gap: 6px; }
	.sh-qo__cell--code { grid-area: code; } .sh-qo__cell--qty { grid-area: qty; } .sh-qo__cell--rm { grid-area: rm; }
	.sh-qo__cell--product { grid-area: product; } .sh-qo__cell--price { grid-area: price; text-align: left; } .sh-qo__cell--total { grid-area: total; }
	.sh-qo__cell--product:empty, .sh-qo__cell--price:empty, .sh-qo__cell--total:empty { display: none; }
	.sh-qo__foot { flex-direction: column; align-items: stretch; }
	.sh-qo__foot-actions { justify-content: stretch; } .sh-qo__foot-actions > * { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .sh-btn-primary, .sh-btn-ghost { transition: none; } }
