/* ==========================================================================
   Merchant — account, search / 404.
   Loaded after theme.css. Uses the Merchant tokens (crimson actions,
   cool greys, 8–16px radii).
   ========================================================================== */

/* ---------- 0. Shared bits ---------- */
.wbm-muted { color: var(--wb-muted); font-weight: 500; }
.wbm-hint { display: block; margin-top: 6px; font-size: 0.8rem; color: var(--wb-muted); }
.wbm-panel { background: #fff; border: 1px solid var(--wb-line); border-radius: var(--wb-radius-lg); padding: clamp(18px, 2vw, 26px); }
.wbm-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.wbm-panel__title { margin: 0; font-size: 1.08rem; font-weight: 800; letter-spacing: -0.01em; }
.wbm-panel__link { display: inline-flex; align-items: center; gap: 4px; font-size: 0.85rem; font-weight: 700; color: var(--wb-accent); text-decoration: none; white-space: nowrap; }
.wbm-panel__link:hover { text-decoration: underline; }
.wbm-panel__link .wb-icon { width: 15px; height: 15px; }
.wbm-back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 10px; font-size: 0.85rem; font-weight: 700; color: var(--wb-muted); text-decoration: none; }
.wbm-back:hover { color: var(--wb-accent); }
.wbm-back .wb-icon { width: 16px; height: 16px; }

.wbm-btn-sm { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 14px; border-radius: var(--wb-radius-sm); background: var(--wb-text); color: #fff; font-size: 0.82rem; font-weight: 700; text-decoration: none; white-space: nowrap; border: 1px solid var(--wb-text); transition: background 0.2s, border-color 0.2s; }
.wbm-btn-sm:hover { background: #2a2d33; }
.wbm-btn-sm--ghost { background: #fff; color: var(--wb-text); border-color: var(--wb-line-strong); }
.wbm-btn-sm--ghost:hover { background: #fff; border-color: var(--wb-text); }

/* Status pills */
.wbm-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; line-height: 1.5; white-space: nowrap; vertical-align: middle; background: var(--wb-surface); color: var(--wb-muted); }
.wbm-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.wbm-status--processing { background: #e9f0fc; color: #1f4fa8; }
.wbm-status--completed { background: #e6f4ec; color: var(--wb-success); }
.wbm-status--on-hold, .wbm-status--pending { background: #fdf2de; color: #8a5300; }
.wbm-status--cancelled, .wbm-status--failed { background: var(--wb-accent-soft); color: var(--wb-accent); }

/* Product thumbnails stack */
.wbm-thumbs { display: inline-flex; align-items: center; }
.wbm-thumbs__item { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--wb-radius-sm); background: var(--wb-surface); border: 2px solid #fff; overflow: hidden; flex: none; font-size: 0.78rem; font-weight: 800; color: var(--wb-muted); }
.wbm-thumbs__item + .wbm-thumbs__item { margin-left: -10px; }
.wbm-thumbs__item img { width: 100%; height: 100%; object-fit: contain; padding: 4px; mix-blend-mode: multiply; }

/* Hours list */
.wbm-hours { display: grid; gap: 4px; margin: 0; font-size: 0.84rem; }
.wbm-hours div { display: flex; justify-content: space-between; gap: 12px; }
.wbm-hours dt { color: var(--wb-muted); }
.wbm-hours dd { margin: 0; font-weight: 700; }

/* Help card */
.wbm-help-card { padding: clamp(18px, 2vw, 24px); border-radius: var(--wb-radius-lg); background: var(--wb-surface); border: 1px solid var(--wb-line); }
.wbm-help-card__title { margin: 0 0 4px; font-size: 1.08rem; font-weight: 800; }
.wbm-help-card__intro { margin: 0 0 14px; font-size: 0.88rem; color: var(--wb-muted); }
.wbm-help-card__list { list-style: none; display: grid; gap: 8px; margin-bottom: 16px; }
.wbm-help-card__list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--wb-radius); background: #fff; border: 1px solid var(--wb-line); text-decoration: none; transition: border-color 0.2s; min-width: 0; }
.wbm-help-card__list a:hover { border-color: var(--wb-accent); }
.wbm-help-card__list .wb-icon { width: 20px; height: 20px; color: var(--wb-accent); }
.wbm-help-card__list span { display: grid; min-width: 0; line-height: 1.3; }
.wbm-help-card__list small { font-size: 0.72rem; color: var(--wb-muted); }
.wbm-help-card__list strong { font-size: 0.86rem; font-weight: 800; overflow-wrap: break-word; }

/* ---------- 1. Account page frame ---------- */
.woocommerce-account .wb-page__head { display: none; }
.woocommerce-account .wb-page--commerce { padding-top: clamp(24px, 3vw, 40px); }
.woocommerce-account .woocommerce,
.woocommerce-account:not(.logged-in) .woocommerce { display: block; max-width: none; }

.wbm-acc-head { margin: 0 0 22px; }
.wbm-acc-head .wbm-kicker { margin-bottom: 4px; }
.wbm-acc-head__title { margin: 0; font-size: clamp(1.6rem, 1.25rem + 1.2vw, 2.25rem); letter-spacing: -0.025em; }
.wbm-acc-head__sub { margin: 6px 0 0; color: var(--wb-muted); font-size: 0.95rem; }
.wbm-acc-head__sub a { color: var(--wb-accent); font-weight: 700; }
.wbm-acc-head__sub strong { color: var(--wb-text); }
.wbm-acc-head__sub .wbm-status { margin-left: 8px; }

/* Notices inside the account */
.woocommerce-account .woocommerce-message, .woocommerce-account .woocommerce-info, .woocommerce-account .woocommerce-error { border-radius: var(--wb-radius); }

/* ---------- 2. Signed-out: sign in / register ---------- */
.wbm-auth { max-width: none; }
.wbm-auth .wbm-acc-head { margin-bottom: 26px; }
.wbm-auth__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.82fr); gap: 20px; align-items: stretch; }
.wbm-auth__card { display: flex; flex-direction: column; padding: clamp(22px, 2.4vw, 34px); border: 1px solid var(--wb-line); border-radius: var(--wb-radius-lg); background: #fff; box-shadow: var(--wb-shadow); }
.wbm-auth__title { margin: 0 0 4px; font-size: 1.35rem; letter-spacing: -0.02em; }
.wbm-auth__lead { margin: 0 0 20px; font-size: 0.9rem; color: var(--wb-muted); }
.wbm-auth form.woocommerce-form-login, .wbm-auth form.woocommerce-form-register, .wbm-auth form.lost_reset_password { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; border-radius: 0; display: flex; flex-direction: column; flex: 1; }
.wbm-auth form .form-row { margin: 0 0 16px; }
.wbm-auth form .form-row:last-of-type { margin-bottom: 0; }
.wbm-auth form.woocommerce-form-register > .form-row:last-of-type { margin-top: auto; }
.wbm-auth .woocommerce-privacy-policy-text { font-size: 0.8rem; color: var(--wb-muted); margin-bottom: 16px; }
.wbm-auth .woocommerce-privacy-policy-text p { margin: 0; }
.wbm-auth .woocommerce-privacy-policy-text a { color: var(--wb-text); }
.wbm-auth__labelrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wbm-auth__forgot { font-size: 0.8rem; font-weight: 700; color: var(--wb-accent); text-decoration: none; }
.wbm-auth__forgot:hover { text-decoration: underline; }
.wbm-auth__remember label { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 500; font-size: 0.88rem; cursor: pointer; }
.wbm-auth input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--wb-accent); }
.wbm-auth .button { width: 100%; min-height: 50px; font-size: 0.95rem; }
.wbm-auth .button.wb-btn--primary { background: var(--wb-accent); color: #fff; }
.wbm-auth .button.wb-btn--primary:hover { background: var(--wb-accent-hover); }
.wbm-auth .button.wbm-btn--outline { background: #fff; color: var(--wb-text); border: 2px solid var(--wb-text); }
.wbm-auth .button.wbm-btn--outline:hover { background: var(--wb-text); color: #fff; }
.wbm-auth .button .wb-icon { width: 17px; height: 17px; }

.wbm-auth__perks { display: flex; flex-direction: column; padding: clamp(22px, 2.4vw, 32px); border-radius: var(--wb-radius-lg); background: var(--wb-accent-grad); color: #fff; }
.wbm-auth__perks-title { color: #fff; font-size: 1.2rem; margin: 0 0 18px; letter-spacing: -0.015em; }
.wbm-auth__perks ul { list-style: none; display: grid; gap: 16px; margin-bottom: 22px; }
.wbm-auth__perks li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.87rem; line-height: 1.45; color: rgba(255, 255, 255, 0.86); }
.wbm-auth__perks li .wb-icon { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: rgba(255, 255, 255, 0.14); color: #fff; }
.wbm-auth__perks li strong { display: block; color: #fff; font-size: 0.95rem; font-weight: 800; }
.wbm-auth__guest { margin: 0 0 18px; padding: 12px 14px; border-radius: var(--wb-radius); background: rgba(0, 0, 0, 0.16); font-size: 0.84rem; color: rgba(255, 255, 255, 0.9); }
.wbm-auth__call { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.2); display: grid; gap: 2px; }
.wbm-auth__call small { font-size: 0.75rem; color: rgba(255, 255, 255, 0.75); }
.wbm-auth__call a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 1.15rem; font-weight: 800; text-decoration: none; }
.wbm-auth__call .wb-icon { width: 20px; height: 20px; }

.wbm-auth__tabs { display: none; }
.wbm-auth__guestorder { display: flex; gap: 12px; margin-top: auto; padding: 14px 16px; border-radius: var(--wb-radius); background: var(--wb-surface); font-size: 0.84rem; line-height: 1.5; }
.wbm-auth form + .wbm-auth__guestorder { margin-top: 24px; }
.wbm-auth__card > form { flex: 1 0 auto; }
.wbm-auth__guestorder .wb-icon { flex: none; width: 20px; height: 20px; color: var(--wb-accent); margin-top: 1px; }
.wbm-auth__guestorder p { margin: 0; color: var(--wb-muted); }
.wbm-auth__guestorder strong { color: var(--wb-text); }
.wbm-auth__guestorder a { color: var(--wb-accent); font-weight: 700; }

/* Single-card states (lost / reset password) */
.wbm-auth--single { max-width: 520px; margin: 8px auto 0; }
.wbm-auth--single .wbm-auth__card { text-align: left; }
.wbm-auth__badge { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 14px; background: var(--wb-accent-soft); color: var(--wb-accent); }
.wbm-auth__badge .wb-icon { width: 24px; height: 24px; }
.wbm-auth__badge--ok { background: #e6f4ec; color: var(--wb-success); }
.wbm-auth--single .wbm-auth__title { font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.8rem); }
.wbm-auth__alt { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--wb-line); }
.wbm-auth__alt a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 0.88rem; text-decoration: none; }
.wbm-auth__alt a:hover { color: var(--wb-accent); }
.wbm-auth__alt .wb-icon { width: 16px; height: 16px; }
.wbm-auth__help { margin: 18px 0 0; text-align: center; font-size: 0.86rem; color: var(--wb-muted); }
.wbm-auth__help a { color: var(--wb-text); font-weight: 700; }

/* ---------- 3. Signed-in shell ---------- */
.wbm-acc { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.wbm-acc__side { position: sticky; top: calc(var(--wbm-header-h, 140px) + 16px); display: grid; gap: 14px; }
.wbm-acc-user { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--wb-radius-lg); background: var(--wb-surface); }
.wbm-acc-user__avatar { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--wb-accent); color: #fff; font-weight: 800; font-size: 1rem; letter-spacing: 0.02em; }
.wbm-acc-user__text { display: grid; min-width: 0; line-height: 1.3; }
.wbm-acc-user__text strong { font-size: 0.95rem; font-weight: 800; }
.wbm-acc-user__text small { font-size: 0.78rem; color: var(--wb-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wbm-acc-nav ul { list-style: none; display: grid; gap: 2px; }
.wbm-acc-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--wb-radius); font-size: 0.92rem; font-weight: 600; text-decoration: none; color: var(--wb-text); transition: background 0.15s, color 0.15s; }
.wbm-acc-nav a .wb-icon { width: 20px; height: 20px; color: var(--wb-muted); }
.wbm-acc-nav a:hover { background: var(--wb-surface); }
.wbm-acc-nav .is-active a { background: var(--wb-accent-soft); color: var(--wb-accent); font-weight: 800; }
.wbm-acc-nav .is-active a .wb-icon { color: var(--wb-accent); }
.wbm-acc-nav .woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--wb-line); }
.wbm-acc-nav .woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--wb-muted); }

.wbm-acc-side-help { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--wb-line); border-radius: var(--wb-radius-lg); font-size: 0.85rem; }
.wbm-acc-side-help p { margin: 0 0 2px; }
.wbm-acc-side-help a { display: flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.wbm-acc-side-help a:hover { color: var(--wb-accent); }
.wbm-acc-side-help .wb-icon { width: 17px; height: 17px; color: var(--wb-accent); }

.wbm-acc__main { min-width: 0; }

/* ---------- 4. Overview ---------- */
.wbm-dash { display: grid; gap: 20px; }
.wbm-latest__top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.wbm-latest__top .wbm-thumbs__item { width: 64px; height: 64px; }
.wbm-latest__num { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-size: 1.1rem; font-weight: 800; }
.wbm-latest__sub { margin: 2px 0 0; font-size: 0.85rem; color: var(--wb-muted); font-variant-numeric: tabular-nums; }
.wbm-latest__text { margin: 6px 0 0; font-size: 0.88rem; }
.wbm-latest .wbm-steps { margin-top: 22px; }

.wbm-mini-orders { list-style: none; margin-top: 18px; border-top: 1px solid var(--wb-line); }
.wbm-mini-orders a { display: grid; grid-template-columns: 90px 1fr auto 100px 18px; gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--wb-line); text-decoration: none; font-size: 0.88rem; }
.wbm-mini-orders li:last-child a { border-bottom: 0; padding-bottom: 0; }
.wbm-mini-orders a:hover .wbm-mini-orders__num { color: var(--wb-accent); }
.wbm-mini-orders__num { font-weight: 800; }
.wbm-mini-orders__date { color: var(--wb-muted); }
.wbm-mini-orders__total { text-align: right; font-weight: 800; }
.wbm-mini-orders .wb-icon { width: 16px; height: 16px; color: var(--wb-muted); }

.wbm-quick { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wbm-quick__item { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 16px; border: 1px solid var(--wb-line); border-radius: var(--wb-radius-lg); background: #fff; text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s; }
.wbm-quick__item:hover { border-color: var(--wb-accent); box-shadow: var(--wb-shadow); }
.wbm-quick__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--wb-accent-soft); color: var(--wb-accent); }
.wbm-quick__icon .wb-icon { width: 20px; height: 20px; }
.wbm-quick__text { display: grid; gap: 2px; line-height: 1.3; }
.wbm-quick__text strong { font-size: 0.93rem; font-weight: 800; }
.wbm-quick__text small { font-size: 0.78rem; color: var(--wb-muted); }

.wbm-dash__cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.wbm-addr-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wbm-addr-mini h3 { margin: 0 0 6px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--wb-muted); }
.wbm-addr-mini address, .wbm-order__block address { font-style: normal; font-size: 0.9rem; line-height: 1.6; }

.wbm-empty-state { display: grid; justify-items: center; gap: 4px; padding-block: 40px; text-align: center; }
.wbm-empty-state__icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 8px; border-radius: 50%; background: var(--wb-accent-soft); color: var(--wb-accent); }
.wbm-empty-state h2 { margin: 0; font-size: 1.25rem; }
.wbm-empty-state p { margin: 0 0 14px; color: var(--wb-muted); max-width: 44ch; }

/* ---------- 5. Progress steps ---------- */
.wbm-steps { list-style: none; display: grid; grid-template-columns: repeat(var(--wbm-steps, 4), minmax(0, 1fr)); margin: 0; padding: 0; counter-reset: s; }
.wbm-steps__step { position: relative; display: grid; justify-items: start; align-content: start; gap: 2px; padding-right: 8px; }
.wbm-steps__step::before { content: ""; position: absolute; top: 13px; left: 28px; right: 0; height: 3px; border-radius: 3px; background: var(--wb-surface-2); }
.wbm-steps__step:last-child::before { display: none; }
.wbm-steps__step.is-done::before { background: var(--wb-success); }
.wbm-steps__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 8px; border-radius: 50%; background: #fff; border: 3px solid var(--wb-surface-2); }
.wbm-steps__dot .wb-icon { width: 15px; height: 15px; stroke-width: 3; }
.wbm-steps__step.is-done .wbm-steps__dot { background: var(--wb-success); border-color: var(--wb-success); color: #fff; }
.wbm-steps__step.is-current .wbm-steps__dot { border-color: #1f4fa8; box-shadow: 0 0 0 4px #e9f0fc; }
.wbm-steps__step.is-current .wbm-steps__dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1f4fa8; }
.wbm-steps__step.is-alert .wbm-steps__dot { border-color: #c27a00; box-shadow: 0 0 0 4px #fdf2de; }
.wbm-steps__step.is-alert .wbm-steps__dot::after { content: "!"; font-size: 0.78rem; font-weight: 800; color: #8a5300; }
.wbm-steps__label { font-size: 0.86rem; font-weight: 800; line-height: 1.3; }
.wbm-steps__step.is-todo .wbm-steps__label { color: var(--wb-muted); font-weight: 600; }
.wbm-steps__date { font-size: 0.76rem; color: var(--wb-muted); }
.wbm-steps__step.is-current .wbm-steps__date { color: #1f4fa8; font-weight: 700; }

/* ---------- 6. Orders list ---------- */
.wbm-orders { border: 1px solid var(--wb-line); border-radius: var(--wb-radius-lg); background: #fff; overflow: hidden; }
.wbm-orders__head, .wbm-orders__row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(170px, 1.3fr) 130px 110px minmax(210px, auto); gap: 16px; align-items: center; padding: 14px 20px; }
.wbm-orders__head { background: var(--wb-surface); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wb-muted); padding-block: 11px; }
.wbm-orders__row { border-top: 1px solid var(--wb-line); transition: background 0.15s; }
.wbm-orders__row:hover { background: #fcfcfd; }
.wbm-orders__order { display: grid; line-height: 1.35; }
.wbm-orders__num { font-weight: 800; font-size: 0.98rem; text-decoration: none; }
.wbm-orders__num:hover { color: var(--wb-accent); }
.wbm-orders__order time { font-size: 0.8rem; color: var(--wb-muted); }
.wbm-orders__items { display: flex; align-items: center; gap: 10px; }
.wbm-orders__items small { font-size: 0.8rem; color: var(--wb-muted); white-space: nowrap; }
.wbm-orders__total { font-weight: 800; font-variant-numeric: tabular-nums; }
.wbm-orders__actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.wbm-orders__pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.wbm-orders__pager .wb-btn .wb-icon { width: 16px; height: 16px; }
.wbm-orders__note { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; padding: 14px 16px; border-radius: var(--wb-radius); background: var(--wb-surface); font-size: 0.88rem; }
.wbm-orders__note .wb-icon { color: var(--wb-accent); }
.wbm-orders__note a { color: var(--wb-accent); font-weight: 700; }

/* ---------- 7. Single order ---------- */
.wbm-acc__main > .wbm-back + .wbm-acc-head, .wbm-acc__main > .wbm-acc-head + .wbm-back { margin-top: 0; }
.wbm-order { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.wbm-order__main, .wbm-order__side { display: grid; gap: 20px; min-width: 0; }
.wbm-order__statustext { margin: -6px 0 20px; color: var(--wb-muted); font-size: 0.9rem; }
.wbm-updates__title { margin: 24px 0 10px; padding-top: 18px; border-top: 1px solid var(--wb-line); font-size: 0.92rem; font-weight: 800; }
.wbm-updates { list-style: none; display: grid; gap: 10px; }
.wbm-updates li { padding: 12px 14px; border-radius: var(--wb-radius); background: var(--wb-surface); border-left: 3px solid var(--wb-accent); }
.wbm-updates time { font-size: 0.75rem; font-weight: 700; color: var(--wb-muted); }
.wbm-updates p { margin: 2px 0 0; font-size: 0.9rem; }

.wbm-lines { list-style: none; }
.wbm-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--wb-line); }
.wbm-line:first-child { padding-top: 0; }
.wbm-line__img { display: block; width: 72px; height: 72px; border-radius: var(--wb-radius); background: var(--wb-surface); overflow: hidden; }
.wbm-line__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; mix-blend-mode: multiply; }
.wbm-line__body { display: grid; gap: 2px; min-width: 0; }
.wbm-line__name { font-weight: 700; font-size: 0.93rem; line-height: 1.35; text-decoration: none; }
a.wbm-line__name:hover { color: var(--wb-accent); }
.wbm-line__sku, .wbm-line__qty { font-size: 0.78rem; color: var(--wb-muted); }
.wbm-line .wc-item-meta { list-style: none; font-size: 0.8rem; color: var(--wb-muted); }
.wbm-line .wc-item-meta p { display: inline; margin: 0; }
.wbm-line__total { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.wbm-totals { margin: 16px 0 0 auto; max-width: 360px; display: grid; gap: 8px; }
.wbm-totals__row { display: flex; justify-content: space-between; gap: 16px; font-size: 0.9rem; }
.wbm-totals dt { color: var(--wb-muted); }
.wbm-totals dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.wbm-totals dd small { display: block; font-weight: 500; font-size: 0.76rem; color: var(--wb-muted); }
.wbm-totals__row--order_total { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--wb-line); font-size: 1.08rem; }
.wbm-totals__row--order_total dt { color: var(--wb-text); font-weight: 800; }
.wbm-totals__row--order_total dd { font-weight: 800; }
.wbm-order__note { margin: 18px 0 0; padding: 12px 14px; border-radius: var(--wb-radius); background: var(--wb-surface); font-size: 0.88rem; }
.wbm-order__again { margin: 18px 0 0; }
.wbm-order__again .wb-icon { width: 17px; height: 17px; }

.wbm-order__details { display: grid; gap: 16px; }
.wbm-order__block { padding-top: 14px; border-top: 1px solid var(--wb-line); }
.wbm-order__details .wbm-panel__title + .wbm-order__block { border-top: 0; padding-top: 0; }
.wbm-order__block h3 { margin: 0 0 6px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--wb-muted); }
.wbm-order__block p { margin: 4px 0 0; font-size: 0.88rem; }
.wbm-order__update { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--wb-radius); background: var(--wb-accent-soft); color: var(--wb-accent); text-decoration: none; }
.wbm-order__update span { display: grid; flex: 1; line-height: 1.3; }
.wbm-order__update strong { font-weight: 800; font-size: 0.92rem; }
.wbm-order__update small { color: var(--wb-text); font-size: 0.78rem; }
.wbm-order__update:hover { background: #f7e1e5; }
.wbm-order__update .wb-icon:last-child { width: 16px; height: 16px; }

/* ---------- 8. Addresses & forms ---------- */
.wbm-addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.wbm-address { display: flex; flex-direction: column; }
.wbm-address__head { display: flex; align-items: center; gap: 12px; }
.wbm-address__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--wb-accent-soft); color: var(--wb-accent); }
.wbm-address__icon .wb-icon { width: 20px; height: 20px; }
.wbm-address__hint { margin: 10px 0 14px; font-size: 0.84rem; color: var(--wb-muted); }
.wbm-address__body { flex: 1; margin: 0 0 18px; padding: 14px 16px; border-radius: var(--wb-radius); background: var(--wb-surface); font-style: normal; font-size: 0.92rem; line-height: 1.65; }
.wbm-address__extra { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--wb-muted); font-size: 0.85rem; }
.wbm-address__extra:first-of-type { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--wb-line); }
.wbm-address__extra .wb-icon { width: 16px; height: 16px; }
.wbm-address__edit { align-self: flex-start; min-height: 42px; }
.wbm-address-info { background: var(--wb-surface); border-color: transparent; }
.wbm-address-info .wbm-panel__title { margin-bottom: 16px; }
.wbm-address-info ul { list-style: none; display: grid; gap: 16px; }
.wbm-address-info li { display: flex; gap: 14px; font-size: 0.88rem; line-height: 1.5; color: var(--wb-muted); }
.wbm-address-info li > .wb-icon { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 10px; background: #fff; color: var(--wb-accent); }
.wbm-address-info li strong { display: block; color: var(--wb-text); font-weight: 800; }
.wbm-address-info a { color: var(--wb-accent); font-weight: 700; }
.wbm-addr-mini__contact p { margin: 0; font-size: 0.9rem; line-height: 1.6; }

.wbm-form { display: grid; gap: 20px; max-width: 820px; }
form.wbm-panel.wbm-form { display: block; }
.wbm-form__section { margin: 0; min-width: 0; }
fieldset.wbm-form__section { border: 1px solid var(--wb-line); }
.wbm-form__intro { margin-bottom: 16px; }
.wbm-form__intro p { margin: 4px 0 0; font-size: 0.86rem; color: var(--wb-muted); }
.wbm-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.wbm-fields > .form-row { margin: 0 0 16px; grid-column: 1 / -1; }
.wbm-fields > .form-row-first, .wbm-fields > .form-row-last { grid-column: auto; }
.wbm-fields .woocommerce-input-wrapper { display: block; }
.wbm-fields label .optional { font-weight: 500; color: var(--wb-muted); }
.wbm-fields .select2-container { width: 100% !important; }
.wbm-fields .select2-container--default .select2-selection--single { border: 1px solid var(--wb-line); border-radius: var(--wb-input-radius); }
.wbm-fields .select2-container--default .select2-selection--single .select2-selection__rendered { padding-left: 0; line-height: 1.4; color: var(--wb-text); }
.wbm-form__actions { display: flex; align-items: center; gap: 18px; margin-top: 4px; }
.wbm-form .button.wb-btn--primary { background: var(--wb-accent); color: #fff; min-width: 200px; }
.wbm-form .button.wb-btn--primary:hover { background: var(--wb-accent-hover); }
.wbm-form__cancel { font-weight: 700; font-size: 0.9rem; color: var(--wb-muted); }

/* ---------- 9. Checkout "returning customer" login ---------- */
.woocommerce-checkout .woocommerce-form-login.wbm-checkout-login { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-bottom: 24px; padding: 22px; box-shadow: none; border-radius: var(--wb-radius-lg); background: var(--wb-surface); border: 1px solid var(--wb-line); }
.wbm-checkout-login > p:first-child, .wbm-checkout-login .wbm-checkout-login__actions, .wbm-checkout-login .lost_password { grid-column: 1 / -1; }
.wbm-checkout-login .wbm-checkout-login__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 8px; }
.wbm-checkout-login .woocommerce-form-login__rememberme { margin: 0; font-weight: 500; }
.wbm-checkout-login .lost_password { margin: 0; }
.wbm-checkout-login .button { width: auto; min-width: 160px; }
.wbm-checkout-login .lost_password a { font-size: 0.85rem; font-weight: 700; color: var(--wb-accent); }

/* ---------- 10. Search: matching categories ---------- */
.wbm-searchcats { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.wbm-searchcats__label { font-size: 0.8rem; font-weight: 800; color: var(--wb-muted); }
.wbm-searchcats ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.wbm-searchcats a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--wb-line-strong); background: #fff; font-size: 0.84rem; font-weight: 700; text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.wbm-searchcats a:hover { border-color: var(--wb-accent); color: var(--wb-accent); }
.wbm-searchcats a span { font-weight: 600; font-size: 0.74rem; color: var(--wb-muted); }

/* ---------- 11. No results & 404 ---------- */
.wbm-lost { padding-block: clamp(28px, 3.4vw, 48px) var(--wb-section); }
.wbm-lost__hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(20px, 3vw, 48px); align-items: center; padding: clamp(24px, 3.4vw, 48px); border-radius: var(--wb-radius-lg); background: var(--wb-surface); }
.wbm-lost__code { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--wb-line); font-size: 0.78rem; font-weight: 800; color: var(--wb-accent); }
.wbm-lost__code .wb-icon { width: 15px; height: 15px; }
.wbm-lost__title { margin: 0 0 10px; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); letter-spacing: -0.028em; line-height: 1.1; }
.wbm-lost__title q { color: var(--wb-accent); quotes: "“" "”"; }
.wbm-lost__lead { margin: 0 0 20px; color: var(--wb-muted); font-size: 1rem; max-width: 52ch; }
.wbm-lost__search .wb-search__input { min-height: 54px; padding-left: 18px; padding-right: 64px; border: 2px solid var(--wb-text); background: #fff; border-radius: var(--wb-radius); font-size: 0.98rem; }
.wbm-lost__search .wb-search__input:focus { border-color: var(--wb-accent); box-shadow: 0 0 0 4px rgba(163, 25, 46, 0.12); }
.wbm-lost__search .wb-search__btn { right: 6px; width: 50px; height: 42px; border-radius: 7px; background: var(--wb-accent); color: #fff; }
.wbm-lost__search .wb-search__btn:hover { background: var(--wb-accent-hover); }
.wbm-lost__try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 0.84rem; }
.wbm-lost__try span { color: var(--wb-muted); font-weight: 600; }
.wbm-lost__try a { padding: 4px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--wb-line); font-weight: 700; text-decoration: none; }
.wbm-lost__try a:hover { border-color: var(--wb-accent); color: var(--wb-accent); }
.wbm-lost__tips { padding: 20px 22px; border-radius: var(--wb-radius-lg); background: #fff; border: 1px solid var(--wb-line); }
.wbm-lost__tips h2 { margin: 0 0 10px; font-size: 1rem; }
.wbm-lost__tips ul { list-style: none; display: grid; gap: 9px; margin: 0 0 16px; }
.wbm-lost__tips li { display: flex; gap: 10px; font-size: 0.88rem; line-height: 1.45; }
.wbm-lost__tips li .wb-icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--wb-success); }
.wbm-lost__call { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--wb-line); text-decoration: none; }
.wbm-lost__call > .wb-icon { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--wb-accent-soft); color: var(--wb-accent); }
.wbm-lost__call span { display: grid; line-height: 1.25; }
.wbm-lost__call small { font-size: 0.76rem; color: var(--wb-muted); }
.wbm-lost__call strong { font-size: 1.05rem; font-weight: 800; }
.wbm-lost__call:hover strong { color: var(--wb-accent); }

.wbm-lost__section { margin-top: clamp(32px, 3.6vw, 52px); }
.wbm-lost__section .wbm-head { margin-bottom: 16px; }

.wbm-depttiles { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.wbm-depttile { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; height: 100%; padding: 10px; border: 1px solid var(--wb-line); border-radius: 12px; background: #fff; text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s; }
.wbm-depttile:hover { border-color: var(--wb-accent); box-shadow: var(--wb-shadow); }
.wbm-depttile__img { grid-row: span 2; width: 64px; height: 64px; border-radius: var(--wb-radius-sm); background: var(--wb-surface); overflow: hidden; }
.wbm-depttile__img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; mix-blend-mode: multiply; }
.wbm-depttile__name { align-self: end; font-weight: 800; font-size: 0.92rem; line-height: 1.25; }
.wbm-depttile:hover .wbm-depttile__name { color: var(--wb-accent); }
.wbm-depttile__count { align-self: start; font-size: 0.76rem; color: var(--wb-muted); }

.wbm-helplinks { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wbm-helplinks a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 16px; border-radius: 12px; background: var(--wb-surface); border: 1px solid transparent; text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.wbm-helplinks a:hover { background: #fff; border-color: var(--wb-accent); }
.wbm-helplinks a > .wb-icon:first-child { width: 40px; height: 40px; padding: 10px; border-radius: 10px; background: #fff; color: var(--wb-accent); }
.wbm-helplinks a > .wb-icon:last-child { width: 16px; height: 16px; margin-left: auto; color: var(--wb-muted); }
.wbm-helplinks span { display: grid; line-height: 1.3; min-width: 0; }
.wbm-helplinks strong { font-size: 0.93rem; font-weight: 800; }
.wbm-helplinks small { font-size: 0.78rem; color: var(--wb-muted); }


/* ---------- 12. Responsive ---------- */
@media (max-width: 1180px) {
	.wbm-auth__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.wbm-auth__perks { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; }
	.wbm-auth__perks-title { grid-column: 1 / -1; }
	.wbm-auth__perks ul { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; grid-column: 1 / -1; }
	.wbm-auth__guest { margin: 20px 0 0; align-self: center; }
	.wbm-auth__call { margin: 20px 0 0; padding: 0; border: 0; align-self: center; }
	.wbm-order { grid-template-columns: minmax(0, 1fr); }
	.wbm-order__side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
	.wbm-orders__head, .wbm-orders__row { grid-template-columns: minmax(110px, 1fr) minmax(150px, 1.2fr) 120px 100px auto; }
	.wbm-depttiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.wbm-helplinks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
	.wbm-acc { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.wbm-acc__side { position: static; display: block; margin-inline: calc(var(--wb-gutter) * -1); }
	.wbm-acc-user, .wbm-acc-side-help { display: none; }
	.wbm-acc-nav { border-bottom: 1px solid var(--wb-line); }
	.wbm-acc-nav ul { display: flex; gap: 4px; overflow-x: auto; padding: 0 var(--wb-gutter); scrollbar-width: none; scroll-snap-type: x proximity; }
	.wbm-acc-nav ul::-webkit-scrollbar { display: none; }
	.wbm-acc-nav li { flex: none; scroll-snap-align: start; }
	.wbm-acc-nav a { gap: 7px; padding: 12px 12px 13px; border-radius: 0; font-size: 0.88rem; white-space: nowrap; border-bottom: 3px solid transparent; }
	.wbm-acc-nav a .wb-icon { width: 17px; height: 17px; }
	.wbm-acc-nav a:hover { background: none; }
	.wbm-acc-nav .is-active a { background: none; border-bottom-color: var(--wb-accent); }
	.wbm-acc-nav .woocommerce-MyAccount-navigation-link--customer-logout { margin: 0; padding: 0; border: 0; }
	.wbm-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wbm-dash__cols { grid-template-columns: minmax(0, 1fr); }
	.wbm-lost__hero { grid-template-columns: minmax(0, 1fr); }
	.wbm-depttiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
	.woocommerce-account .wb-page--commerce { padding-top: 20px; }
	.wbm-acc-head { margin-bottom: 16px; }
	.wbm-acc-head__sub { font-size: 0.88rem; }

	/* Tabs replace the side-by-side cards */
	.wbm-auth__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.wbm-auth.is-tabbed .wbm-auth__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 14px; padding: 4px; border-radius: 12px; background: var(--wb-surface-2); }
	.wbm-auth__tabs button { min-height: 44px; border: 0; border-radius: 9px; background: none; font-weight: 700; font-size: 0.92rem; color: var(--wb-muted); cursor: pointer; }
	.wbm-auth__tabs button[aria-selected="true"] { background: #fff; color: var(--wb-text); box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12); }
	.wbm-auth.is-tabbed[data-wbm-auth="login"] #wbm-register,
	.wbm-auth.is-tabbed[data-wbm-auth="register"] #wbm-login { display: none; }
	.wbm-auth__card { padding: 22px 18px; box-shadow: none; }
	.wbm-auth .wbm-auth__card .wbm-auth__title { font-size: 1.2rem; }
	.wbm-auth__perks { display: flex; padding: 22px 18px; }
	.wbm-auth__perks ul { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.wbm-auth__perks-title { font-size: 1.05rem; margin-bottom: 14px; }
	.wbm-auth__perks li .wb-icon { width: 36px; height: 36px; padding: 8px; }
	.wbm-auth__guest { margin: 16px 0 0; }
	.wbm-auth__call { align-self: stretch; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
	.wbm-auth__guest { align-self: stretch; }

	.wbm-latest__top { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.wbm-latest__btn { width: 100%; }
	.wbm-mini-orders a { grid-template-columns: auto 1fr auto 16px; gap: 8px 10px; }
	.wbm-mini-orders__date { display: none; }
	.wbm-mini-orders .wbm-status { justify-self: start; }

	/* Steps go vertical */
	.wbm-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.wbm-steps__step { grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; justify-items: stretch; align-items: center; padding: 0 0 16px; }
	.wbm-steps__step:last-child { padding-bottom: 0; }
	.wbm-steps__step::before { top: 28px; bottom: 0; left: 12.5px; right: auto; width: 3px; height: auto; }
	.wbm-steps__dot { grid-row: span 2; margin: 0; align-self: start; }
	.wbm-steps__label { align-self: end; }
	.wbm-steps__date { grid-column: 2; }
	.wbm-steps--compact .wbm-steps__step { padding-bottom: 12px; }

	/* Orders as cards */
	.wbm-orders { border: 0; background: none; border-radius: 0; display: grid; gap: 12px; }
	.wbm-orders__head { display: none; }
	.wbm-orders__row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 16px; border: 1px solid var(--wb-line); border-radius: var(--wb-radius-lg); background: #fff; }
	.wbm-orders__order { grid-column: 1; grid-row: 1; }
	.wbm-orders__status { grid-column: 2; grid-row: 1; justify-self: end; }
	.wbm-orders__items { grid-column: 1; grid-row: 2; }
	.wbm-orders__total { grid-column: 2; grid-row: 2; justify-self: end; font-size: 1.05rem; }
	.wbm-orders__actions { grid-column: 1 / -1; justify-content: stretch; }
	.wbm-orders__actions a { flex: 1; }
	.wbm-orders__note { align-items: flex-start; }

	.wbm-order__side { grid-template-columns: minmax(0, 1fr); }
	.wbm-line { grid-template-columns: 60px minmax(0, 1fr); gap: 4px 12px; }
	.wbm-line__img { width: 60px; height: 60px; grid-row: span 2; }
	.wbm-line__total { grid-column: 2; text-align: left; font-size: 0.92rem; }
	.wbm-totals { max-width: none; }

	.wbm-addresses { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.wbm-fields { grid-template-columns: minmax(0, 1fr); }
	.wbm-fields > .form-row-first, .wbm-fields > .form-row-last { grid-column: 1 / -1; }
	.wbm-form__actions { flex-direction: column; align-items: stretch; text-align: center; }
	.wbm-form .button.wb-btn--primary { width: 100%; }

	.woocommerce-checkout .woocommerce-form-login.wbm-checkout-login { grid-template-columns: minmax(0, 1fr); }

	.wbm-lost__hero { padding: 22px 18px; }
	.wbm-depttiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.wbm-depttile { grid-template-columns: 48px minmax(0, 1fr); column-gap: 10px; padding: 8px; }
	.wbm-depttile__img { width: 48px; height: 48px; }
	.wbm-depttile__name { font-size: 0.84rem; }
	.wbm-helplinks { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.wbm-helplinks a { padding: 12px 14px; }
}

/* ---------- 13. Did you mean / empty loop ---------- */
.wbm-lost__didyoumean { font-size: 1.05rem; color: var(--wb-text); }
.wbm-lost__didyoumean a { color: var(--wb-accent); font-weight: 800; }
.wbm-lost .wb-breadcrumbs ol { padding-block: 0 14px; font-size: 0.8rem; }
.wbm-noproducts { display: grid; justify-items: center; gap: 4px; max-width: 560px; margin: 24px auto; padding: 32px 24px; text-align: center; border: 1px dashed var(--wb-line-strong); border-radius: var(--wb-radius-lg); }
.wbm-noproducts__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 50%; background: var(--wb-accent-soft); color: var(--wb-accent); }
.wbm-noproducts h2 { margin: 0; font-size: 1.2rem; }
.wbm-noproducts p { margin: 0; color: var(--wb-muted); }
.wbm-noproducts__search { width: 100%; margin: 14px 0 8px; }
.wbm-noproducts__help a { color: var(--wb-accent); font-weight: 700; }
@media (max-width: 760px) {
	.wbm-searchcats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--wb-gutter) * -1); padding-inline: var(--wb-gutter); }
	.wbm-searchcats ul { flex-wrap: nowrap; }
	.wbm-searchcats li { flex: none; }
	.wbm-searchcats__label { display: none; }
}
a[href^="tel:"] { white-space: nowrap; }
