/* Warehouse Fulfillment Platform — customer portal */
:root {
	--wfp-navy: #0b1f44;
	--wfp-navy-2: #132c5c;
	--wfp-blue: #1f4fd1;
	--wfp-bg: #f3f5f9;
	--wfp-line: #e3e7ef;
	--wfp-text: #1d2a44;
	--wfp-muted: #6b7690;
	--wfp-ok: #0f8a5f;
	--wfp-warn: #b7791f;
	--wfp-bad: #c53030;
	--wfp-radius: 12px;
	--wfp-shadow: 0 1px 2px rgba(11, 31, 68, .06), 0 6px 18px rgba(11, 31, 68, .05);
}
* { box-sizing: border-box; }
body.wfp-app { margin: 0; background: var(--wfp-bg); color: var(--wfp-text); font: 14.5px/1.55 Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.wfp-app a { color: var(--wfp-blue); }
.wfp-app h1 { font-size: 24px; margin: 0; color: var(--wfp-navy); line-height: 1.25; }
.wfp-app h2 { font-size: 16px; margin: 0 0 10px; color: var(--wfp-navy); }
.wfp-app h3 { font-size: 14.5px; margin: 16px 0 8px; color: var(--wfp-navy); }

/* Shell */
.wfp-shell { display: flex; min-height: 100vh; }
.wfp-sidebar { width: 250px; background: var(--wfp-navy); color: #c9d4ee; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; flex: none; z-index: 50; }
.wfp-brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 16px; color: #fff !important; text-decoration: none; font-weight: 700; font-size: 16px; }
.wfp-brand-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--wfp-blue); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.wfp-logo { max-height: 34px; width: auto; }
.wfp-nav { display: flex; flex-direction: column; padding: 6px 10px; gap: 2px; overflow-y: auto; flex: 1; }
.wfp-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: #c9d4ee; text-decoration: none; font-weight: 500; }
.wfp-nav a:hover { background: var(--wfp-navy-2); color: #fff; }
.wfp-nav a.is-active { background: #fff; color: var(--wfp-navy); }
.wfp-nav .dashicons { font-size: 18px; width: 18px; height: 18px; }
.wfp-nav-count { margin-left: auto; background: var(--wfp-bad); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 11px; font-weight: 700; }
.wfp-sidebar-foot { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.08); }
.wfp-sidebar-foot a { color: #c9d4ee; text-decoration: none; display: flex; gap: 8px; align-items: center; }
.wfp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wfp-topbar { height: 64px; background: #fff; border-bottom: 1px solid var(--wfp-line); display: flex; align-items: center; padding: 0 24px; gap: 14px; position: sticky; top: 0; z-index: 40; }
.wfp-topbar-title { font-weight: 700; color: var(--wfp-navy); }
.wfp-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.wfp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--wfp-bg); border-radius: 20px; text-decoration: none; color: var(--wfp-navy) !important; font-weight: 700; }
.wfp-bell { position: relative; color: var(--wfp-navy) !important; text-decoration: none; }
.wfp-bell-dot { position: absolute; top: -6px; right: -8px; background: var(--wfp-bad); color: #fff; font-size: 10px; border-radius: 9px; padding: 0 5px; font-weight: 700; }
.wfp-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--wfp-navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.wfp-menu-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--wfp-navy); }
.wfp-content { padding: 26px; max-width: 1320px; width: 100%; }

/* Components */
.wfp-page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.wfp-page-head p { margin: 4px 0 0; }
.wfp-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.wfp-card { background: #fff; border: 1px solid var(--wfp-line); border-radius: var(--wfp-radius); box-shadow: var(--wfp-shadow); padding: 18px 20px; margin-bottom: 18px; }
.wfp-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; }
.wfp-card-head h2, .wfp-card-head h3 { margin: 0; }
.wfp-card-attention { border-left: 4px solid var(--wfp-warn); }
.wfp-sticky { position: sticky; top: 84px; }
.wfp-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.wfp-grid-wide-left { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.wfp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.wfp-stats-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.wfp-stat { background: #fff; border: 1px solid var(--wfp-line); border-radius: var(--wfp-radius); padding: 16px; box-shadow: var(--wfp-shadow); display: flex; flex-direction: column; gap: 6px; }
.wfp-stat-primary { background: linear-gradient(135deg, var(--wfp-navy), var(--wfp-navy-2)); color: #fff; border: 0; }
.wfp-stat-primary .wfp-stat-label { color: #b9c6e6; }
.wfp-stat-primary .wfp-stat-value { color: #fff; }
.wfp-stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--wfp-muted); }
.wfp-stat-value { font-size: 22px; font-weight: 750; color: var(--wfp-navy); font-variant-numeric: tabular-nums; }

.wfp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 8px; border: 1px solid transparent; font-weight: 650; font-size: 14px; cursor: pointer; text-decoration: none !important; transition: background .12s, border-color .12s; line-height: 1.3; font-family: inherit; }
.wfp-btn-primary { background: var(--wfp-navy); color: #fff !important; }
.wfp-btn-primary:hover { background: var(--wfp-blue); }
.wfp-btn-ghost { background: #fff; color: var(--wfp-navy) !important; border-color: var(--wfp-line); }
.wfp-btn-ghost:hover { border-color: var(--wfp-navy); }
.wfp-btn-danger { background: var(--wfp-bad); color: #fff !important; }
.wfp-btn-sm { padding: 6px 11px; font-size: 13px; }
.wfp-btn-block { width: 100%; margin-top: 8px; }
.wfp-btn.is-loading { opacity: .65; pointer-events: none; }
.wfp-btn.is-loading::after { content: ""; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: wfpspin .7s linear infinite; }
@keyframes wfpspin { to { transform: rotate(360deg); } }

.wfp-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 650; white-space: nowrap; vertical-align: middle; }
.wfp-badge-success { background: #e3f6ee; color: var(--wfp-ok); }
.wfp-badge-warning { background: #fdf3e1; color: var(--wfp-warn); }
.wfp-badge-danger { background: #fde8e8; color: var(--wfp-bad); }
.wfp-badge-neutral { background: #eef1f6; color: var(--wfp-muted); }
.wfp-tag { display: inline-block; font-size: 11.5px; padding: 2px 8px; border-radius: 6px; background: #eef3ff; color: var(--wfp-blue); font-weight: 600; }

.wfp-table-wrap { overflow-x: auto; }
.wfp-table { width: 100%; border-collapse: collapse; }
.wfp-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--wfp-muted); padding: 10px; border-bottom: 1px solid var(--wfp-line); font-weight: 600; white-space: nowrap; }
.wfp-table td { padding: 11px 10px; border-bottom: 1px solid var(--wfp-line); vertical-align: top; }
.wfp-table .num { text-align: right; font-variant-numeric: tabular-nums; }

.wfp-form label { display: block; font-weight: 600; font-size: 13.5px; color: var(--wfp-navy); margin-bottom: 12px; }
.wfp-form input[type=text], .wfp-form input[type=email], .wfp-form input[type=tel], .wfp-form input[type=url], .wfp-form input[type=number], .wfp-form input[type=password], .wfp-form input[type=date], .wfp-form input[type=search], .wfp-form select, .wfp-form textarea, .wfp-toolbar input, .wfp-toolbar select {
	display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid #cfd6e4; border-radius: 8px; font: inherit; font-weight: 400; background: #fff; color: var(--wfp-text);
}
.wfp-form input:focus, .wfp-form select:focus, .wfp-form textarea:focus { outline: none; border-color: var(--wfp-blue); box-shadow: 0 0 0 3px rgba(31, 79, 209, .14); }
.wfp-form input[type=file] { margin-top: 6px; font-weight: 400; }
.wfp-check { display: flex !important; align-items: flex-start; gap: 8px; font-weight: 500 !important; }
.wfp-check input { margin-top: 4px; }
.wfp-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.wfp-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.wfp-row4 { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 0 14px; }
.wfp-help { display: block; color: var(--wfp-muted); font-size: 12.5px; font-weight: 400; margin-top: 4px; }
.wfp-req { color: var(--wfp-bad); }
.wfp-hp { position: absolute !important; left: -9999px !important; }
.wfp-money { display: flex; align-items: center; border: 1px solid #cfd6e4; border-radius: 8px; overflow: hidden; margin-top: 5px; background: #fff; }
.wfp-money span { padding: 0 10px; color: var(--wfp-muted); }
.wfp-money input { border: 0 !important; margin: 0 !important; box-shadow: none !important; }
.wfp-input-group { display: flex; gap: 8px; }
.wfp-input-group input { flex: 1; }
.wfp-input-group .wfp-btn { margin-top: 5px; }
.wfp-form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.wfp-inline { display: inline-block; margin: 0; }
.wfp-toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.wfp-toolbar input, .wfp-toolbar select { width: auto; flex: 1; min-width: 160px; margin: 0; }

.wfp-alert { padding: 12px 15px; border-radius: 10px; margin-bottom: 16px; border: 1px solid; }
.wfp-alert-success { background: #e9f8f1; border-color: #bfe8d6; color: #0b6b4a; }
.wfp-alert-error { background: #fdecec; border-color: #f5c2c2; color: #9b2121; }
.wfp-alert-warning { background: #fff6e5; border-color: #f2dcb0; color: #8a5a10; }
.wfp-alert-info { background: #eef3ff; border-color: #cfdcff; color: #1d3f9e; }
.wfp-empty { text-align: center; padding: 34px 16px; color: var(--wfp-muted); }
.wfp-empty-icon { font-size: 30px; color: #b8c2d6; }
.wfp-empty h3 { color: var(--wfp-navy); margin: 6px 0; }
.wfp-note { background: #f6f8fb; border: 1px solid var(--wfp-line); border-radius: 10px; padding: 12px 14px; margin: 12px 0; }
.wfp-muted { color: var(--wfp-muted); }
.wfp-ok { color: var(--wfp-ok); }
.wfp-bad { color: var(--wfp-bad); }
.wfp-error { color: var(--wfp-bad); margin: 8px 0 0; }
.wfp-pre { white-space: pre-line; }
.wfp-mini { margin: 6px 0; padding-left: 18px; }
.wfp-tip { display: inline-flex; width: 16px; height: 16px; border-radius: 50%; background: var(--wfp-line); color: var(--wfp-navy); font-size: 11px; align-items: center; justify-content: center; cursor: help; }

.wfp-list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--wfp-line); text-decoration: none; color: inherit; }
.wfp-list-row:last-child { border-bottom: 0; }
.wfp-list-row.is-unread strong::before { content: "● "; color: var(--wfp-blue); }
.wfp-list-row p { margin: 4px 0; }

.wfp-breakdown > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--wfp-line); }
.wfp-breakdown-total { font-weight: 750; font-size: 16px; color: var(--wfp-navy); border-bottom: 2px solid var(--wfp-navy) !important; }
.wfp-breakdown .wfp-muted { font-size: 13px; }
.wfp-price-lg { font-size: 28px; font-weight: 800; color: var(--wfp-navy); margin: 8px 0 12px; }
.wfp-details { margin-top: 12px; }
.wfp-details summary { cursor: pointer; font-weight: 650; color: var(--wfp-blue); }
.wfp-details[open] summary { margin-bottom: 10px; }

/* Steps */
.wfp-steps { list-style: none; display: flex; padding: 0; margin: 0 0 22px; overflow-x: auto; counter-reset: s; }
.wfp-steps li { flex: 1; min-width: 92px; text-align: center; font-size: 12px; color: var(--wfp-muted); position: relative; padding-top: 26px; }
.wfp-steps li span { position: absolute; top: 4px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #d6dcea; z-index: 1; }
.wfp-steps li::before { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: #d6dcea; }
.wfp-steps li:first-child::before { display: none; }
.wfp-steps li.done span, .wfp-steps li.done::before { background: var(--wfp-ok); }
.wfp-steps li.current span { background: var(--wfp-blue); box-shadow: 0 0 0 4px rgba(31, 79, 209, .2); }
.wfp-steps li.current { color: var(--wfp-navy); font-weight: 700; }

.wfp-timeline { list-style: none; padding: 0; margin: 0; }
.wfp-timeline li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--wfp-line); }
.wfp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--wfp-blue); margin-top: 6px; flex: none; }
.wfp-timeline-sm li { font-size: 13px; padding: 6px 0; }

/* Products */
.wfp-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.wfp-product { background: #fff; border: 1px solid var(--wfp-line); border-radius: var(--wfp-radius); overflow: hidden; text-decoration: none; color: inherit !important; box-shadow: var(--wfp-shadow); transition: transform .12s, box-shadow .12s; display: flex; flex-direction: column; }
.wfp-product:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11, 31, 68, .1); }
.wfp-product-img { aspect-ratio: 4 / 3; background: #f0f3f8; display: flex; align-items: center; justify-content: center; font-size: 38px; }
.wfp-product-img img { width: 100%; height: 100%; object-fit: cover; }
.wfp-product-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.wfp-product-body h3 { margin: 0; font-size: 15px; }
.wfp-product-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.wfp-product-meta strong { font-size: 16px; color: var(--wfp-navy); }
.wfp-product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.wfp-gallery-main img, .wfp-gallery-main { width: 100%; border-radius: var(--wfp-radius); background: #fff; }
.wfp-noimg { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 60px; border: 1px solid var(--wfp-line); }
.wfp-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.wfp-gallery-thumbs button { border: 1px solid var(--wfp-line); background: #fff; border-radius: 8px; padding: 2px; cursor: pointer; }
.wfp-gallery-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; display: block; }
.wfp-prose { color: #3b4864; }
.wfp-pager { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.wfp-pager a { padding: 6px 12px; background: #fff; border: 1px solid var(--wfp-line); border-radius: 8px; text-decoration: none; }
.wfp-pager a.is-active { background: var(--wfp-navy); color: #fff; }

/* Files */
.wfp-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.wfp-thumb img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--wfp-line); }
.wfp-filelink { text-decoration: none; font-size: 13px; }
.wfp-image-preview img { max-width: 140px; border-radius: 8px; border: 1px solid var(--wfp-line); margin-bottom: 10px; }

/* Custom order & wallet */
.wfp-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.wfp-choice-card { display: flex !important; flex-direction: column; gap: 4px; border: 2px solid var(--wfp-line); border-radius: 10px; padding: 14px; cursor: pointer; }
.wfp-choice-card span { font-weight: 400; color: var(--wfp-muted); font-size: 13px; }
.wfp-choice-card:has(input:checked) { border-color: var(--wfp-blue); background: #f5f8ff; }
.wfp-custom-form h2 { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--wfp-line); }
.wfp-custom-form h2:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.wfp-steps-3 { max-width: 520px; }
.wfp-bank-kv { display: grid; grid-template-columns: 200px 1fr; gap: 8px 14px; background: #f6f8fb; border-radius: 10px; padding: 14px; margin: 10px 0; }
.wfp-bank-kv dt { color: var(--wfp-muted); }
.wfp-bank-kv dd { margin: 0; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wfp-bank-kv code { font-size: 15px; background: #fff; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--wfp-line); }
.wfp-copy { border: 1px solid var(--wfp-line); background: #fff; border-radius: 6px; padding: 3px 9px; cursor: pointer; font-size: 12px; color: var(--wfp-blue); }
.wfp-copy.is-copied { background: var(--wfp-ok); color: #fff; border-color: var(--wfp-ok); }
.wfp-step .wfp-btn { margin-top: 6px; }
.wfp-address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.wfp-address.is-default { border-color: var(--wfp-blue); }
.wfp-package { border-top: 1px solid var(--wfp-line); padding: 12px 0; }
.wfp-package:first-of-type { border-top: 0; }
.wfp-package-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.wfp-kv-inline small { color: var(--wfp-muted); text-transform: uppercase; font-size: 11px; }
.wfp-thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.wfp-msg { padding: 12px 14px; border-radius: 12px; background: #f6f8fb; border: 1px solid var(--wfp-line); max-width: 85%; }
.wfp-msg.is-mine { align-self: flex-end; background: #eef3ff; }
.wfp-msg-meta { font-size: 12px; color: var(--wfp-muted); margin-bottom: 4px; }

/* Auth */
.wfp-auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.wfp-auth-side { background: linear-gradient(160deg, var(--wfp-navy), #0e2a63 70%, var(--wfp-blue)); color: #dfe7fb; padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.wfp-auth-side h1 { color: #fff; font-size: 32px; margin: 28px 0 18px; max-width: 480px; }
.wfp-auth-side .wfp-brand { padding: 0; }
.wfp-auth-points { list-style: none; padding: 0; margin: 0; max-width: 460px; }
.wfp-auth-points li { padding: 8px 0 8px 26px; position: relative; }
.wfp-auth-points li::before { content: "✓"; position: absolute; left: 0; color: #8fb0ff; font-weight: 700; }
.wfp-auth-main { display: flex; align-items: center; justify-content: center; padding: 32px; }
.wfp-auth-card { background: #fff; border: 1px solid var(--wfp-line); border-radius: 16px; box-shadow: var(--wfp-shadow); padding: 32px; width: 100%; max-width: 460px; margin: 40px auto; }
.wfp-auth-card h2 { font-size: 22px; margin-bottom: 16px; }
.wfp-auth-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.wfp-auth-row .wfp-check { margin: 0; }
.wfp-auth-alt { text-align: center; margin: 16px 0 0; color: var(--wfp-muted); }

/* Responsive */
@media (max-width: 1100px) {
	.wfp-stats-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.wfp-product-detail, .wfp-grid-2, .wfp-grid-wide-left { grid-template-columns: 1fr; }
	.wfp-sticky { position: static; }
}
@media (max-width: 860px) {
	.wfp-sidebar { position: fixed; left: -260px; transition: left .2s; box-shadow: 0 0 40px rgba(0,0,0,.3); }
	.wfp-shell.is-open .wfp-sidebar { left: 0; }
	.wfp-menu-toggle { display: inline-flex; }
	.wfp-content { padding: 16px; }
	.wfp-topbar { padding: 0 14px; }
	.wfp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wfp-row2, .wfp-row3, .wfp-row4, .wfp-choice { grid-template-columns: 1fr; }
	.wfp-auth { grid-template-columns: 1fr; }
	.wfp-auth-side { display: none; }
	.wfp-bank-kv { grid-template-columns: 1fr; }
	.wfp-chip span:last-child { font-size: 13px; }
}
@media (max-width: 480px) { .wfp-stats, .wfp-stats-6 { grid-template-columns: 1fr; } }
