/*
 * Forces Marketplace ? Seller Portal Stylesheet
 * Scope: all .forces-marketplace-seller-area sections and shared components.
 * No CSS framework. No build step required.
 */

/* =========================================================================
   Base / reset (scoped to plugin output)
   ========================================================================= */

.forces-marketplace-seller-area *,
.forces-marketplace-seller-nav *,
.forces-marketplace-notice * {
	box-sizing: border-box;
}

.forces-marketplace-seller-area,
.forces-marketplace-seller-nav {
	font-family: var(--fb-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
	font-size: 15px;
	line-height: 1.6;
	color: var(--fb-ink, #e9eef7);
}

/* =========================================================================
   Seller area wrapper
   ========================================================================= */

.forces-marketplace-seller-area {
	max-width: var(--fb-container, 1180px);
	margin: 0 auto 48px;
	padding: 0 24px;
}

/* =========================================================================
   Seller navigation
   ========================================================================= */

.forces-marketplace-seller-nav {
	margin: 0 0 28px;
}

.forces-marketplace-seller-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
	border-bottom: 2px solid var(--fb-border);
}

.forces-marketplace-seller-nav__item {
	margin: 0;
}

.forces-marketplace-seller-nav__link {
	display: block;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 500;
	color: var(--fb-ink-soft);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: color 0.15s, border-color 0.15s;
	min-height: var(--fb-tap-min, 44px);
}

.forces-marketplace-seller-nav__link:hover {
	color: var(--fb-green);
	text-decoration: none;
}

.forces-marketplace-seller-nav__link--active {
	color: var(--fb-green);
	border-bottom-color: var(--fb-brass);
	font-weight: 600;
}

/* =========================================================================
   Page headers (shared across all seller pages)
   ========================================================================= */

.forces-marketplace-seller-dashboard__header,
.forces-marketplace-vendor-orders__header,
.forces-marketplace-seller-products__header,
.forces-marketplace-seller-product-detail__header,
.forces-marketplace-seller-product-create__header,
.forces-marketplace-seller-account__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
}

.forces-marketplace-seller-dashboard__title,
.forces-marketplace-vendor-orders__title,
.forces-marketplace-seller-products__title,
.forces-marketplace-seller-product-detail__title,
.forces-marketplace-seller-product-create__title,
.forces-marketplace-seller-account__title {
	font-size: 22px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0;
}

/* =========================================================================
   Notices
   ========================================================================= */

.forces-marketplace-notice {
	border-radius: 6px;
	padding: 14px 18px;
	margin-bottom: 20px;
	font-size: 14px;
	font-weight: 500;
	border: 1px solid transparent;
}

.forces-marketplace-notice p {
	margin: 0;
}

.forces-marketplace-notice--success {
	background: rgba(74,222,128,0.14);
	border-color: rgba(74,222,128,0.35);
	color: var(--fb-success);
}

.forces-marketplace-notice--error {
	background: rgba(248,113,113,0.14);
	border-color: rgba(248,113,113,0.35);
	color: var(--fb-danger);
}

/* Vendor orders inline notice variant */
.forces-marketplace-vendor-orders__notice {
	border-radius: 6px;
	padding: 14px 18px;
	margin-bottom: 20px;
	font-size: 14px;
	border: 1px solid transparent;
}

.forces-marketplace-vendor-orders__notice--success {
	background: rgba(74,222,128,0.14);
	border-color: rgba(74,222,128,0.35);
	color: var(--fb-success);
}

.forces-marketplace-vendor-orders__notice--error {
	background: rgba(248,113,113,0.14);
	border-color: rgba(248,113,113,0.35);
	color: var(--fb-danger);
}

.forces-marketplace-vendor-orders__notice-message {
	margin: 0;
}

/* =========================================================================
   Badges ? status and approval
   ========================================================================= */

.forces-marketplace-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: capitalize;
	line-height: 1.5;
}

/* Product status badges */
.forces-marketplace-badge--status-draft     { background: var(--fb-sand); color: var(--fb-ink-soft); }
.forces-marketplace-badge--status-active    { background: rgba(74,222,128,0.14); color: var(--fb-success); }
.forces-marketplace-badge--status-inactive  { background: rgba(248,113,113,0.14); color: var(--fb-danger); }
.forces-marketplace-badge--status-unknown   { background: var(--fb-sand); color: var(--fb-green-soft); }

/* Approval badges */
.forces-marketplace-badge--approval-pending  { background: rgba(245,158,11,0.16); color: #fbbf24; }
.forces-marketplace-badge--approval-approved { background: rgba(74,222,128,0.14); color: var(--fb-success); }
.forces-marketplace-badge--approval-rejected { background: rgba(248,113,113,0.14); color: var(--fb-danger); }
.forces-marketplace-badge--approval-unknown  { background: var(--fb-sand); color: var(--fb-green-soft); }

/* Order group status badges (reuses --status- prefix) */
.forces-marketplace-badge--status-pending        { background: var(--fb-sand); color: var(--fb-ink-soft); }
.forces-marketplace-badge--status-processing     { background: var(--fb-sand); color: var(--fb-green); }
.forces-marketplace-badge--status-ready_to_ship  { background: rgba(245,158,11,0.16); color: #fbbf24; }
.forces-marketplace-badge--status-shipped        { background: var(--fb-accent-bg); color: var(--fb-azure); }
.forces-marketplace-badge--status-completed      { background: rgba(74,222,128,0.14); color: var(--fb-success); }
.forces-marketplace-badge--status-cancelled      { background: rgba(248,113,113,0.14); color: var(--fb-danger); }

/* =========================================================================
   Buttons and action links
   ========================================================================= */

.forces-marketplace-seller-products__add-link,
.forces-marketplace-seller-product-create__submit,
.forces-marketplace-seller-product-detail__submit,
.forces-marketplace-vendor-orders__status-submit,
.forces-marketplace-seller-dashboard__card-link {
	display: inline-block;
	padding: 9px 20px;
	background: var(--fb-green);
	color: var(--fb-white);
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.4;
	transition: background 0.15s;
}

.forces-marketplace-seller-products__add-link:hover,
.forces-marketplace-seller-product-create__submit:hover,
.forces-marketplace-seller-product-detail__submit:hover,
.forces-marketplace-vendor-orders__status-submit:hover,
.forces-marketplace-seller-dashboard__card-link:hover {
	background: var(--fb-green-dark);
	color: var(--fb-white);
	text-decoration: none;
}

/* Secondary / outline links */
.forces-marketplace-seller-product-detail__back-link,
.forces-marketplace-seller-product-create__cancel,
.forces-marketplace-seller-products__detail-link,
.forces-marketplace-seller-account__quick-link {
	display: inline-block;
	padding: 8px 18px;
	background: transparent;
	color: var(--fb-green);
	font-size: 14px;
	font-weight: 500;
	border: 1px solid var(--fb-green);
	border-radius: 6px;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.forces-marketplace-seller-product-detail__back-link:hover,
.forces-marketplace-seller-product-create__cancel:hover,
.forces-marketplace-seller-products__detail-link:hover,
.forces-marketplace-seller-account__quick-link:hover {
	background: var(--fb-khaki);
	text-decoration: none;
}

/* =========================================================================
   Dashboard
   ========================================================================= */

.forces-marketplace-seller-dashboard {
	background: var(--fb-surface);
	padding: 16px 0 0;
}

/* Compact portal header ? brand name + section subtitle + status badge */
.forces-marketplace-seller-dashboard__header-brand {
	flex: 1;
}

.forces-marketplace-seller-dashboard__vendor-name {
	font-size: 16px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	margin: 0 0 2px;
}

.forces-marketplace-seller-dashboard__vendor-section {
	font-size: 12px;
	color: var(--fb-green-soft);
	font-weight: 400;
	margin: 0;
}

.forces-marketplace-seller-dashboard__coming-soon {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 24px 0 0;
	font-style: italic;
}

/* ---- Metric summary row ---- */

.fm-dash-metrics {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--fb-border);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 24px;
}

.fm-dash-metric {
	background: var(--fb-surface);
	padding: 18px 16px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.fm-dash-metric__num {
	font-size: 34px;
	font-weight: 700;
	color: var(--fb-ink);
	line-height: 1;
}

.fm-dash-metric__label {
	font-size: 12px;
	font-weight: 500;
	color: var(--fb-green-soft);
	line-height: 1.3;
}

.fm-dash-metric--alert .fm-dash-metric__num { color: var(--fb-danger); }
.fm-dash-metric--pending .fm-dash-metric__num { color: #fbbf24; }

/* ---- Dashboard section headings ---- */

.fm-dash-section-heading {
	font-size: 15px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 12px;
	letter-spacing: -0.01em;
}

/* ---- Dashboard action cards (2�2) ---- */

.fm-dash-action-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin-bottom: 28px;
}

.fm-dash-action-card {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fm-dash-action-card--alert {
	border-color: rgba(248,113,113,0.35);
	background: rgba(248,113,113,0.14);
}

.fm-dash-action-card__title {
	font-size: 15px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	margin: 0;
}

.fm-dash-action-card__desc {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 0;
	flex: 1;
}

.fm-dash-action-card__link {
	display: inline-block;
	margin-top: 10px;
	padding: 8px 16px;
	background: var(--fb-green);
	color: var(--fb-white);
	font-size: 13px;
	font-weight: 600;
	border-radius: 6px;
	text-decoration: none;
	align-self: flex-start;
	border: 1px solid transparent;
	transition: background 0.15s;
}

.fm-dash-action-card__link:hover {
	background: var(--fb-green-dark);
	color: var(--fb-white);
	text-decoration: none;
}

.fm-dash-action-card__link--secondary {
	background: var(--fb-surface);
	color: var(--fb-green);
	border-color: var(--fb-green);
}

.fm-dash-action-card__link--secondary:hover {
	background: var(--fb-khaki);
	color: var(--fb-green);
}

.fm-dash-action-card__notice {
	font-size: 12px;
	color: var(--fb-green-soft);
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 5px;
	padding: 8px 10px;
	margin: 4px 0 0;
}

.fm-dash-action-card__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

/* ---- Quick links row ---- */

.fm-dash-quick-links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 0 0 24px;
	padding: 10px 16px;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	font-size: 13px;
}

.fm-dash-quick-links__label {
	color: var(--fb-green-soft);
	font-weight: 500;
	white-space: nowrap;
}

.fm-dash-quick-links__link {
	color: var(--fb-azure);
	text-decoration: none;
	font-weight: 500;
}

.fm-dash-quick-links__link:hover {
	text-decoration: underline;
}

.fm-dash-action-card__links .fm-dash-action-card__link {
	margin-top: 0;
}

/* ---- Recent orders preview ---- */

.fm-dash-recent {
	margin-bottom: 28px;
}

.fm-dash-recent__heading {
	font-size: 16px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 12px;
}

.fm-dash-recent-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 10px;
}

.fm-dash-recent-table th {
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fb-green-soft);
	padding: 10px 14px;
	border-bottom: 1px solid var(--fb-border);
	background: var(--fb-cream);
}

.fm-dash-recent-table td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--fb-sand);
	color: var(--fb-ink-soft);
}

.fm-dash-recent-table tbody tr:last-child td {
	border-bottom: none;
}

.fm-dash-recent-table tbody tr:hover td {
	background: var(--fb-cream);
}

.fm-dash-recent-table a {
	color: var(--fb-green);
	text-decoration: none;
}

.fm-dash-recent-table a:hover {
	text-decoration: underline;
}

.fm-dash-recent__footer {
	font-size: 13px;
	margin: 0;
}

.fm-dash-recent__footer a {
	color: var(--fb-green);
	text-decoration: none;
	font-weight: 500;
}

.fm-dash-recent__footer a:hover {
	text-decoration: underline;
}

/* =========================================================================
   Seller products list
   ========================================================================= */

.forces-marketplace-seller-products__header {
	flex-wrap: wrap;
}

.forces-marketplace-seller-products__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.forces-marketplace-seller-products__message {
	background: var(--fb-cream);
	border: 1px dashed var(--fb-border-strong);
	border-radius: 8px;
	padding: 32px 24px;
	text-align: center;
	color: var(--fb-green-soft);
	font-size: 14px;
}

.fm-seller-pager {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 16px;
	flex-wrap: wrap;
}

.fm-seller-pager__btn {
	display: inline-block;
	padding: 8px 16px;
	background: var(--fb-cream);
	border: 1px solid var(--fb-border-strong);
	border-radius: 8px;
	color: inherit;
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
}

a.fm-seller-pager__btn:hover {
	border-color: var(--fb-green-soft);
}

.fm-seller-pager__btn--disabled {
	opacity: 0.35;
	pointer-events: none;
}

.fm-seller-pager__status {
	font-size: 13px;
	color: var(--fb-green-soft);
	text-align: center;
}

.forces-marketplace-seller-products__card {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: row;
	align-items: stretch;
}

.forces-marketplace-seller-products__card-image-link {
	display: block;
	flex-shrink: 0;
	width: 100px;
	background: var(--fb-cream);
	border-right: 1px solid var(--fb-border);
	text-decoration: none;
}

.forces-marketplace-seller-products__card-thumb {
	width: 100px;
	height: 100%;
	min-height: 100px;
	object-fit: cover;
	display: block;
}

.forces-marketplace-seller-products__card-thumb-placeholder {
	width: 100px;
	height: 100%;
	min-height: 100px;
	background: var(--fb-border);
	display: block;
}

.forces-marketplace-seller-products__card-body {
	flex: 1 1 0;
	padding: 16px 20px;
	min-width: 0;
}

.forces-marketplace-seller-products__card-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--fb-ink);
	margin: 0 0 8px;
}

.forces-marketplace-seller-products__card-title a {
	color: inherit;
	text-decoration: none;
}

.forces-marketplace-seller-products__card-title a:hover {
	text-decoration: underline;
}

.forces-marketplace-seller-products__card-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.forces-marketplace-seller-products__value--price {
	font-weight: 700;
	color: var(--fb-ink);
}

.forces-marketplace-seller-products__meta {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 8px 16px;
	margin: 0 0 16px;
}

.forces-marketplace-seller-products__meta-row {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.forces-marketplace-seller-products__label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fb-green-soft);
}

.forces-marketplace-seller-products__value {
	font-size: 14px;
	color: var(--fb-ink-soft);
	font-weight: 500;
}

.forces-marketplace-seller-products__card-links {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	padding-top: 8px;
	border-top: 1px solid var(--fb-sand);
	margin-top: 8px;
}

/* =========================================================================
   Product detail / edit form
   ========================================================================= */

.forces-marketplace-seller-product-detail__meta {
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 16px 20px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 12px 20px;
	margin-bottom: 28px;
}

.forces-marketplace-seller-product-detail__meta-row {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.forces-marketplace-seller-product-detail__label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fb-green-soft);
}

.forces-marketplace-seller-product-detail__value {
	font-size: 14px;
	color: var(--fb-ink-soft);
	font-weight: 500;
}

.forces-marketplace-seller-product-detail__edit-heading {
	font-size: 17px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	margin: 0 0 16px;
}

.forces-marketplace-seller-product-detail__form {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.forces-marketplace-seller-product-detail__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.forces-marketplace-seller-product-detail__form .forces-marketplace-seller-product-detail__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	text-transform: none;
	letter-spacing: 0;
}

.forces-marketplace-seller-product-detail__input,
.forces-marketplace-seller-product-detail__textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--fb-border-strong);
	border-radius: 6px;
	font-size: 14px;
	color: var(--fb-ink);
	background: var(--fb-surface);
	transition: border-color 0.15s;
	font-family: inherit;
}

.forces-marketplace-seller-product-detail__input:focus,
.forces-marketplace-seller-product-detail__textarea:focus {
	outline: none;
	border-color: var(--fb-green);
	box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.forces-marketplace-seller-product-detail__textarea {
	resize: vertical;
	min-height: 100px;
}

.forces-marketplace-seller-product-detail__approval-note {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 0;
	padding: 10px 14px;
	background: rgba(245,158,11,0.16);
	border-radius: 6px;
	border: 1px solid rgba(245,158,11,0.35);
}

.forces-marketplace-seller-product-detail__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding-top: 4px;
}

/* =========================================================================
   Product create form
   ========================================================================= */

.forces-marketplace-seller-product-create__message {
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 24px;
	color: var(--fb-ink-soft);
}

.forces-marketplace-seller-product-create__form {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.forces-marketplace-seller-product-create__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.forces-marketplace-seller-product-create__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
}

.forces-marketplace-seller-product-create__input,
.forces-marketplace-seller-product-create__textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--fb-border-strong);
	border-radius: 6px;
	font-size: 14px;
	color: var(--fb-ink);
	background: var(--fb-surface);
	transition: border-color 0.15s;
	font-family: inherit;
}

.forces-marketplace-seller-product-create__input:focus,
.forces-marketplace-seller-product-create__textarea:focus {
	outline: none;
	border-color: var(--fb-green);
	box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.forces-marketplace-seller-product-create__textarea {
	resize: vertical;
	min-height: 100px;
}

.forces-marketplace-seller-product-create__hint {
	font-size: 12px;
	color: var(--fb-green-soft);
	margin: 0;
}

.forces-marketplace-seller-product-create__approval-note {
	font-size: 13px;
	color: var(--fb-green-soft);
	padding: 10px 14px;
	background: rgba(245,158,11,0.16);
	border-radius: 6px;
	border: 1px solid rgba(245,158,11,0.35);
	margin: 0;
}

.forces-marketplace-seller-product-create__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding-top: 4px;
}

/* =========================================================================
   Vendor orders
   ========================================================================= */

.forces-marketplace-vendor-orders__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.forces-marketplace-vendor-orders__message {
	background: var(--fb-cream);
	border: 1px dashed var(--fb-border-strong);
	border-radius: 8px;
	padding: 32px 24px;
	text-align: center;
	color: var(--fb-green-soft);
	font-size: 14px;
}

.forces-marketplace-vendor-orders__card {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	overflow: hidden;
}

/* Collapsible order rows (table-style). Shared grid for header + each row. */
.forces-marketplace-vendor-orders__thead,
.forces-marketplace-vendor-orders__row {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 1fr) 28px;
	align-items: center;
	gap: 16px;
}

.forces-marketplace-vendor-orders__thead {
	padding: 6px 22px 2px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fb-green-soft);
}

.forces-marketplace-vendor-orders__row {
	list-style: none;
	cursor: pointer;
	padding: 16px 22px;
	background: var(--fb-cream);
	user-select: none;
	transition: background 0.12s ease;
}

.forces-marketplace-vendor-orders__row::-webkit-details-marker,
.forces-marketplace-vendor-orders__row::marker {
	display: none;
	content: '';
}

.forces-marketplace-vendor-orders__row:hover {
	background: var(--fb-sand);
}

.forces-marketplace-vendor-orders__card[open] > .forces-marketplace-vendor-orders__row {
	border-bottom: 1px solid var(--fb-sand);
}

.forces-marketplace-vendor-orders__row-cell {
	font-size: 14px;
	color: var(--fb-ink);
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.forces-marketplace-vendor-orders__row-cell--num,
.forces-marketplace-vendor-orders__row-cell--total {
	font-weight: 600;
}

.forces-marketplace-vendor-orders__row-cell--status {
	white-space: normal;
}

.forces-marketplace-vendor-orders__row-chevron {
	justify-self: end;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--fb-green-soft);
	border-bottom: 2px solid var(--fb-green-soft);
	transform: rotate(45deg);
	transition: transform 0.15s ease;
}

.forces-marketplace-vendor-orders__card[open] .forces-marketplace-vendor-orders__row-chevron {
	transform: rotate(-135deg);
}

@media (max-width: 640px) {
	.forces-marketplace-vendor-orders__thead {
		display: none;
	}

	.forces-marketplace-vendor-orders__row {
		grid-template-columns: 1fr auto 24px;
		grid-template-areas:
			"num status chevron"
			"date total chevron";
		row-gap: 4px;
		column-gap: 12px;
	}

	.forces-marketplace-vendor-orders__row-cell--num {
		grid-area: num;
	}

	.forces-marketplace-vendor-orders__row-cell--status {
		grid-area: status;
		justify-self: end;
	}

	.forces-marketplace-vendor-orders__row-cell--date {
		grid-area: date;
		font-size: 12px;
		color: var(--fb-green-soft);
	}

	.forces-marketplace-vendor-orders__row-cell--total {
		grid-area: total;
		justify-self: end;
	}

	.forces-marketplace-vendor-orders__row-cell--items {
		display: none;
	}

	.forces-marketplace-vendor-orders__row-chevron {
		grid-area: chevron;
		align-self: center;
	}
}

.forces-marketplace-vendor-orders__card-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--fb-ink);
	margin: 0;
	padding: 18px 22px;
	border-bottom: 1px solid var(--fb-sand);
	background: var(--fb-cream);
}

.forces-marketplace-vendor-orders__meta {
	margin: 0;
	padding: 16px 22px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
	border-bottom: 1px solid var(--fb-sand);
}

.forces-marketplace-vendor-orders__meta-row {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.forces-marketplace-vendor-orders__label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fb-green-soft);
}

.forces-marketplace-vendor-orders__value {
	font-size: 14px;
	color: var(--fb-ink-soft);
	font-weight: 500;
}

/* Order items */
.forces-marketplace-vendor-orders__items {
	padding: 16px 22px;
	border-bottom: 1px solid var(--fb-sand);
}

.forces-marketplace-vendor-orders__items-title {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fb-green-soft);
	margin: 0 0 10px;
}

.forces-marketplace-vendor-orders__items-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.forces-marketplace-vendor-orders__item {
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
	border-radius: 6px;
	padding: 12px 16px;
}

.forces-marketplace-vendor-orders__item-meta {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 8px 16px;
	margin: 0;
}

.forces-marketplace-vendor-orders__item-row {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.forces-marketplace-vendor-orders__items-subtotal {
	margin: 14px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-ink-soft);
}

.forces-marketplace-vendor-orders__items-subtotal-label {
	color: var(--fb-green-soft);
	font-weight: 500;
	margin-right: 6px;
}

/* Status update form */
.forces-marketplace-vendor-orders__status-form-wrap {
	padding: 18px 22px;
}

.forces-marketplace-vendor-orders__form-current-status {
	font-size: 13px;
	color: var(--fb-ink-soft);
	margin: 0 0 12px;
}

.forces-marketplace-vendor-orders__form-current-status-label {
	color: var(--fb-green-soft);
}

.forces-marketplace-vendor-orders__form-current-status-value {
	font-weight: 600;
	color: var(--fb-ink-soft);
}

.forces-marketplace-vendor-orders__status-form {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.forces-marketplace-vendor-orders__status-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	white-space: nowrap;
}

.forces-marketplace-vendor-orders__status-select {
	padding: 8px 12px;
	border: 1px solid var(--fb-border-strong);
	border-radius: 6px;
	font-size: 14px;
	color: var(--fb-ink);
	background: var(--fb-surface);
	cursor: pointer;
	font-family: inherit;
}

.forces-marketplace-vendor-orders__status-select:focus {
	outline: none;
	border-color: var(--fb-green);
	box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

/* =========================================================================
   Seller account
   ========================================================================= */

.forces-marketplace-seller-account__meta {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 20px;
}

.forces-marketplace-seller-account__meta-row {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--fb-sand);
}

.forces-marketplace-seller-account__meta-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.forces-marketplace-seller-account__label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fb-green-soft);
	min-width: 120px;
	flex-shrink: 0;
}

.forces-marketplace-seller-account__value {
	font-size: 14px;
	color: var(--fb-ink-soft);
	font-weight: 500;
}

/* Quick links */
.forces-marketplace-seller-account__quick-links {
	margin-bottom: 20px;
}

.forces-marketplace-seller-account__quick-links-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.forces-marketplace-seller-account__note {
	font-size: 13px;
	color: var(--fb-green-soft);
	font-style: italic;
	margin: 0;
}

/* =========================================================================
   State / empty pages (login required, access denied, no vendor, etc.)
   ========================================================================= */

.forces-marketplace-seller-dashboard,
.forces-marketplace-vendor-orders,
.forces-marketplace-seller-products,
.forces-marketplace-seller-product-detail,
.forces-marketplace-seller-product-create,
.forces-marketplace-seller-account {
	background: var(--fb-surface);
}

.forces-marketplace-seller-dashboard__message,
.forces-marketplace-vendor-orders__message,
.forces-marketplace-seller-products__message,
.forces-marketplace-seller-account__message {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 32px 28px;
	color: var(--fb-ink-soft);
	font-size: 15px;
	line-height: 1.6;
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 768px) {
	.fm-dash-metrics {
		grid-template-columns: repeat(2, 1fr);
	}

	.fm-dash-action-cards {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.forces-marketplace-seller-area,
	.fm-seller-inventory {
		padding: 0 16px;
	}

	.forces-marketplace-seller-nav__list {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.forces-marketplace-seller-nav__list::-webkit-scrollbar {
		display: none;
	}

	.fm-dash-metrics {
		grid-template-columns: repeat(2, 1fr);
	}

	.fm-dash-recent-table {
		font-size: 13px;
	}

	.forces-marketplace-seller-products__meta {
		grid-template-columns: 1fr 1fr;
	}

	.forces-marketplace-seller-product-detail__meta {
		grid-template-columns: 1fr 1fr;
	}

	.forces-marketplace-vendor-orders__meta {
		flex-direction: column;
		gap: 10px;
	}

	.forces-marketplace-vendor-orders__item-meta {
		grid-template-columns: 1fr 1fr;
	}

	.forces-marketplace-vendor-orders__status-form {
		flex-direction: column;
		align-items: flex-start;
	}

	.forces-marketplace-vendor-orders__status-select {
		width: 100%;
	}

	.forces-marketplace-seller-product-detail__actions,
	.forces-marketplace-seller-product-create__actions,
	.forces-marketplace-seller-account__quick-links-list {
		flex-direction: column;
		align-items: flex-start;
	}

	.forces-marketplace-seller-products__add-link,
	.forces-marketplace-seller-product-create__submit,
	.forces-marketplace-seller-product-detail__submit,
	.forces-marketplace-seller-product-detail__back-link,
	.forces-marketplace-seller-product-create__cancel,
	.forces-marketplace-seller-account__quick-link {
		width: 100%;
		text-align: center;
	}

	.forces-marketplace-seller-product-detail__summary-layout {
		flex-direction: column;
	}

	.forces-marketplace-seller-product-detail__media {
		width: 100%;
	}

	.forces-marketplace-product-detail__layout {
		flex-direction: column;
	}

	.forces-marketplace-product-detail__media {
		width: 100%;
	}
}

@media (max-width: 420px) {
	.forces-marketplace-vendor-orders__item-meta {
		grid-template-columns: 1fr;
	}
}

/* =========================================================================
   Public product detail ecommerce page
   ========================================================================= */

.forces-marketplace-product-detail {
	max-width: 1000px;
	margin: 0 auto 48px;
	padding: 0 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.forces-marketplace-product-detail * {
	box-sizing: border-box;
}

.forces-marketplace-product-detail__layout {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

/* Media column */
.forces-marketplace-product-detail__media {
	flex: 0 0 380px;
	max-width: 380px;
}

.forces-marketplace-product-detail__image {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 10px;
	border: 1px solid var(--fb-border);
}

.forces-marketplace-product-detail__image-placeholder {
	width: 100%;
	aspect-ratio: 1 / 1;
	background: linear-gradient(135deg, var(--fb-sand) 0%, var(--fb-border) 100%);
	border-radius: 10px;
	border: 1px solid var(--fb-border);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Info column */
.forces-marketplace-product-detail__info {
	flex: 1;
	min-width: 0;
}

.forces-marketplace-product-detail__header {
	margin-bottom: 16px;
}

.forces-marketplace-product-detail__title {
	font-size: 26px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0;
	line-height: 1.3;
}

.forces-marketplace-product-detail__price {
	font-size: 28px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 16px;
}

.forces-marketplace-product-detail__price-value {
	color: var(--fb-ink);
}

.forces-marketplace-product-detail__description {
	font-size: 15px;
	color: var(--fb-ink-soft);
	line-height: 1.7;
	margin-bottom: 20px;
}

.forces-marketplace-product-detail__description p {
	margin: 0 0 12px;
}

.forces-marketplace-product-detail__description p:last-child {
	margin-bottom: 0;
}

/* Stock / availability */
.forces-marketplace-product-detail__availability {
	margin-bottom: 20px;
}

.forces-marketplace-product-detail__stock-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
}

.forces-marketplace-product-detail__stock-badge--in-stock {
	background: rgba(74,222,128,0.14);
	color: var(--fb-success);
}

.forces-marketplace-product-detail__stock-badge--out-of-stock {
	background: rgba(248,113,113,0.14);
	color: var(--fb-danger);
}

.forces-marketplace-product-detail__stock-badge--low-stock {
	background: rgba(245,158,11,0.16);
	color: #fbbf24;
}

/* Add to cart form / buy box */
.forces-marketplace-product-detail__add-to-cart {
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 24px;
}

.forces-marketplace-product-detail__quantity-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.forces-marketplace-product-detail__quantity-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	white-space: nowrap;
}

.forces-marketplace-product-detail__quantity-input {
	width: 70px;
	padding: 8px 10px;
	font-size: 15px;
	border: 1px solid var(--fb-border-strong);
	border-radius: 6px;
	text-align: center;
	color: var(--fb-ink-soft);
	background: var(--fb-surface);
}

.forces-marketplace-product-detail__add-to-cart-actions {
	margin: 0;
}

.forces-marketplace-product-detail__add-to-cart-button {
	display: inline-block;
	width: 100%;
	padding: 14px 24px;
	background: var(--fb-green);
	color: var(--fb-white);
	font-size: 16px;
	font-weight: 700;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	text-align: center;
	transition: background 0.15s;
	font-family: inherit;
}

.forces-marketplace-product-detail__add-to-cart-button:hover {
	background: var(--fb-green-dark);
}

/* Product thumbnail gallery strip */
.forces-marketplace-product-detail__thumbnails {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.forces-marketplace-product-detail__thumbnail {
	border: 2px solid var(--fb-border);
	border-radius: 6px;
	overflow: hidden;
	width: 68px;
	height: 68px;
	flex-shrink: 0;
	transition: border-color 0.15s;
}

.forces-marketplace-product-detail__thumbnail:hover {
	border-color: var(--fb-border);
}

.forces-marketplace-product-detail__thumbnail--active {
	border-color: var(--fb-green);
}

.forces-marketplace-product-detail__thumbnail-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Meta (SKU etc) */
.forces-marketplace-product-detail__meta {
	margin: 0;
}

.forces-marketplace-product-detail__meta-row {
	display: flex;
	gap: 8px;
	padding: 6px 0;
	border-top: 1px solid var(--fb-sand);
}

.forces-marketplace-product-detail__meta-label {
	font-size: 13px;
	color: var(--fb-green-soft);
	font-weight: 600;
	min-width: 60px;
}

.forces-marketplace-product-detail__meta-value {
	font-size: 13px;
	color: var(--fb-ink-soft);
}

/* Cart status notice on product page */
.forces-marketplace-product-detail .forces-marketplace-notice,
.forces-marketplace-product-detail .forces-marketplace-cart-status-notice {
	margin-bottom: 20px;
}

/* =========================================================================
   Seller product detail ? image-ready layout additions
   ========================================================================= */

.forces-marketplace-seller-product-detail__summary-layout {
	display: flex;
	gap: 28px;
	align-items: flex-start;
	margin-bottom: 28px;
}

.forces-marketplace-seller-product-detail__media {
	flex: 0 0 200px;
	max-width: 200px;
}

.forces-marketplace-seller-product-detail__image {
	width: 100%;
	height: auto;
	border-radius: 8px;
	border: 1px solid var(--fb-border);
	display: block;
}

.forces-marketplace-seller-product-detail__image-placeholder {
	width: 100%;
	aspect-ratio: 1 / 1;
	background: linear-gradient(135deg, var(--fb-sand) 0%, var(--fb-border) 100%);
	border-radius: 8px;
	border: 1px solid var(--fb-border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	color: var(--fb-green-soft);
}

.forces-marketplace-seller-product-detail__image-note {
	font-size: 11px;
	color: var(--fb-green-soft);
	text-align: center;
	margin: 8px 0 0;
	font-style: italic;
}

.forces-marketplace-seller-product-detail__summary {
	flex: 1;
	min-width: 0;
}

.forces-marketplace-seller-product-detail__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
}

/* =========================================================================
   Seller products ? create form intro text
   ========================================================================= */

.forces-marketplace-seller-product-create__intro {
	font-size: 14px;
	color: var(--fb-ink-soft);
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 14px 18px;
	margin-bottom: 20px;
}

/* =========================================================================
   Seller products ? empty state
   ========================================================================= */

.forces-marketplace-seller-products__empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	background: var(--fb-surface);
	border: 1px dashed var(--fb-border-strong);
	border-radius: 10px;
	padding: 40px 28px;
	text-align: center;
}

.forces-marketplace-seller-products__message--empty {
	background: transparent;
	border: none;
	padding: 0;
	margin: 0;
}

/* =========================================================================
   Seller product image manager
   ========================================================================= */

.forces-marketplace-seller-product-media {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 28px 24px;
	margin-top: 32px;
}

.forces-marketplace-seller-product-media__heading {
	font-size: 18px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 8px;
}

.forces-marketplace-seller-product-media__tip {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 0 0 24px;
}

.forces-marketplace-seller-product-media__empty {
	background: var(--fb-cream);
	border: 1px dashed var(--fb-border-strong);
	border-radius: 8px;
	padding: 28px 20px;
	text-align: center;
	color: var(--fb-ink-soft);
	font-size: 14px;
	margin-bottom: 24px;
}

.forces-marketplace-seller-product-media__gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 16px;
	margin-bottom: 28px;
}

.forces-marketplace-seller-product-media__item {
	background: var(--fb-cream);
	border: 2px solid var(--fb-border);
	border-radius: 8px;
	overflow: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.forces-marketplace-seller-product-media__item--featured {
	border-color: var(--fb-green);
	box-shadow: 0 0 0 2px rgba(124,192,255,0.30);
}

.forces-marketplace-seller-product-media__thumb {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
}

.forces-marketplace-seller-product-media__thumb-placeholder {
	width: 100%;
	aspect-ratio: 1 / 1;
	background: var(--fb-border);
	display: flex;
	align-items: center;
	justify-content: center;
}

.forces-marketplace-seller-product-media__thumb-video {
	width: 100%;
	aspect-ratio: 16 / 9;
	display: block;
	background: var(--fb-cream);
	object-fit: contain;
}

.forces-marketplace-seller-product-media__item--video {
	background: var(--fb-cream);
}

.forces-marketplace-seller-product-media__badge--video {
	background: var(--fb-blue);
}

.forces-marketplace-seller-product-media__badge {
	display: block;
	background: var(--fb-green);
	color: var(--fb-white);
	font-size: 11px;
	font-weight: 700;
	text-align: center;
	padding: 3px 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.forces-marketplace-seller-product-media__item-actions {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 8px;
}

.forces-marketplace-seller-product-media__action-form {
	margin: 0;
}

.forces-marketplace-seller-product-media__btn {
	display: block;
	width: 100%;
	padding: 5px 8px;
	font-size: 12px;
	font-weight: 600;
	border: 1px solid var(--fb-border-strong);
	border-radius: 5px;
	cursor: pointer;
	background: var(--fb-surface);
	color: var(--fb-ink-soft);
	text-align: center;
	line-height: 1.4;
	transition: background 0.15s, border-color 0.15s;
}

.forces-marketplace-seller-product-media__btn:hover {
	background: var(--fb-sand);
	border-color: var(--fb-border);
}

.forces-marketplace-seller-product-media__btn--set-main {
	border-color: var(--fb-green);
	color: var(--fb-green);
}

.forces-marketplace-seller-product-media__btn--set-main:hover {
	background: var(--fb-sand);
	border-color: var(--fb-green);
}

.forces-marketplace-seller-product-media__btn--remove {
	border-color: rgba(248,113,113,0.35);
	color: var(--fb-danger);
}

.forces-marketplace-seller-product-media__btn--remove:hover {
	background: rgba(248,113,113,0.14);
	border-color: var(--fb-danger);
}

.forces-marketplace-seller-product-media__btn--upload {
	padding: 10px 20px;
	font-size: 14px;
	background: var(--fb-green);
	color: var(--fb-white);
	border-color: var(--fb-green);
	border-radius: 6px;
	width: auto;
}

.forces-marketplace-seller-product-media__btn--upload:hover {
	background: var(--fb-blue);
	border-color: var(--fb-blue);
}

.forces-marketplace-seller-product-media__upload {
	border-top: 1px solid var(--fb-border);
	padding-top: 24px;
	margin-top: 24px;
}

.forces-marketplace-seller-product-media__upload-heading {
	font-size: 15px;
	font-weight: 700;
	color: var(--fb-ink-soft);
	margin: 0 0 16px;
}

.forces-marketplace-seller-product-media__upload-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.forces-marketplace-seller-product-media__upload-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.forces-marketplace-seller-product-media__upload-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
}

.forces-marketplace-seller-product-media__upload-input,
.forces-marketplace-seller-product-media__upload-input-text {
	font-size: 14px;
	padding: 8px 10px;
	border: 1px solid var(--fb-border-strong);
	border-radius: 6px;
	background: var(--fb-cream);
	color: var(--fb-ink-soft);
	max-width: 400px;
}

.forces-marketplace-seller-product-media__upload-input {
	padding: 6px;
	background: var(--fb-surface);
}

.forces-marketplace-seller-product-media__upload-actions {
	margin-top: 4px;
}

/* =========================================================================
   Seller product create ? step indicators + fieldsets
   ========================================================================= */

.forces-marketplace-seller-product-create__steps {
	display: flex;
	gap: 12px;
	list-style: none;
	padding: 0;
	margin: 0 0 28px;
	counter-reset: none;
	flex-wrap: wrap;
}

.forces-marketplace-seller-product-create__step {
	font-size: 13px;
	color: var(--fb-green-soft);
	padding: 6px 14px;
	border: 1px solid var(--fb-border);
	border-radius: 20px;
	background: var(--fb-cream);
}

.forces-marketplace-seller-product-create__step--active {
	color: var(--fb-green);
	border-color: rgba(124,192,255,0.30);
	background: var(--fb-sand);
	font-weight: 700;
}

.forces-marketplace-seller-product-create__fieldset {
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 20px 20px 12px;
	margin-bottom: 20px;
}

.forces-marketplace-seller-product-create__legend {
	font-size: 14px;
	font-weight: 700;
	color: var(--fb-ink-soft);
	padding: 0 8px;
}

.forces-marketplace-seller-product-create__approval-panel {
	background: rgba(245,158,11,0.16);
	border: 1px solid rgba(245,158,11,0.35);
	border-radius: 8px;
	padding: 14px 18px;
	margin-bottom: 20px;
}

.forces-marketplace-seller-product-create__approval-panel .forces-marketplace-seller-product-create__approval-note {
	margin: 0;
	font-size: 13px;
	color: #fbbf24;
}

.forces-marketplace-seller-product-create__next-step-hint {
	background: rgba(74,222,128,0.14);
	border: 1px solid rgba(74,222,128,0.35);
	border-radius: 8px;
	padding: 14px 18px;
	margin-bottom: 24px;
	font-size: 13px;
	color: var(--fb-success);
}

.forces-marketplace-seller-product-create__next-step-hint p {
	margin: 0;
}

.forces-marketplace-seller-product-create__input--price {
	max-width: 180px;
}

.forces-marketplace-seller-product-create__input--stock {
	max-width: 140px;
}

/* =========================================================================
   Drop zone ? seamless media upload (Slice C)
   ========================================================================= */

.fm-drop-zone {
	border: 2px dashed var(--fb-border-strong);
	border-radius: 10px;
	padding: 32px 20px;
	text-align: center;
	cursor: pointer;
	background: var(--fb-cream);
	margin-bottom: 16px;
	transition: border-color 0.18s, background 0.18s;
}

.fm-drop-zone:hover,
.fm-drop-zone--dragover {
	border-color: var(--fb-green);
	background: var(--fb-sand);
}

.fm-drop-zone--uploading {
	border-color: rgba(124,192,255,0.30);
	background: var(--fb-sand);
	cursor: wait;
}

.fm-drop-zone__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.fm-drop-zone__icon {
	font-size: 36px;
	line-height: 1;
	color: var(--fb-green);
	margin-bottom: 4px;
}

.fm-drop-zone__title {
	font-size: 16px;
	font-weight: 700;
	color: var(--fb-ink-soft);
	margin: 0;
}

.fm-drop-zone__hint {
	font-size: 14px;
	color: var(--fb-green-soft);
	margin: 0;
}

.fm-drop-zone__types {
	font-size: 12px;
	color: var(--fb-green-soft);
	margin: 0;
}

.fm-drop-zone__btn {
	margin-top: 10px;
	padding: 9px 22px;
	background: var(--fb-green);
	color: var(--fb-white);
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
}

.fm-drop-zone__btn:hover {
	background: var(--fb-green-dark);
}

/* Upload status message */
.fm-upload-status {
	font-size: 14px;
	font-weight: 500;
	padding: 10px 14px;
	border-radius: 6px;
	margin: 4px 0 12px;
	border: 1px solid transparent;
}

.fm-upload-status--uploading {
	background: var(--fb-sand);
	border-color: rgba(124,192,255,0.30);
	color: var(--fb-green);
}

.fm-upload-status--success {
	background: rgba(74,222,128,0.14);
	border-color: rgba(74,222,128,0.35);
	color: var(--fb-success);
}

.fm-upload-status--error {
	background: rgba(248,113,113,0.14);
	border-color: rgba(248,113,113,0.35);
	color: var(--fb-danger);
}

/* JS-active: hide fallback file field + submit; keep alt-text field visible */
.fm-js-active .fm-fallback-file-field {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	clip: rect(0, 0, 0, 0);
}

.fm-js-active .fm-fallback-submit {
	display: none;
}

/* =========================================================================
   Media card drag-and-drop (Slice E)
   ========================================================================= */

.forces-marketplace-seller-product-media__item[draggable="true"] {
	cursor: grab;
}

.forces-marketplace-seller-product-media__item.fm-card--dragging {
	opacity: 0.4;
	cursor: grabbing;
}

.forces-marketplace-seller-product-media__item.fm-card--drop-target {
	outline: 2px solid var(--fb-green);
	outline-offset: 3px;
}

.fm-drag-handle {
	text-align: center;
	font-size: 20px;
	color: var(--fb-border-strong);
	padding: 4px 0 2px;
	cursor: grab;
	user-select: none;
	line-height: 1;
	letter-spacing: 0.05em;
}

.fm-drag-handle:hover {
	color: var(--fb-green-soft);
}

/* =========================================================================
   Live product preview panel (Slice G)
   ========================================================================= */

.fm-product-preview {
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 20px 24px;
	margin-bottom: 28px;
}

.fm-product-preview__heading {
	font-size: 16px;
	font-weight: 700;
	color: var(--fb-ink-soft);
	margin: 0 0 4px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.fm-product-preview__heading::after {
	content: 'LIVE PREVIEW';
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	background: var(--fb-green);
	color: #fff;
	padding: 2px 8px;
	border-radius: 20px;
}

.fm-product-preview__note {
	font-size: 12px;
	color: var(--fb-green-soft);
	margin: 0 0 16px;
	font-style: italic;
}

.fm-product-preview__card {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 14px 16px;
}

.fm-product-preview__image {
	width: 80px;
	height: 80px;
	flex-shrink: 0;
	background: var(--fb-sand);
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fm-product-preview__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fm-product-preview__image-placeholder {
	font-size: 11px;
	color: var(--fb-green-soft);
	text-align: center;
	padding: 4px;
}

.fm-product-preview__details {
	flex: 1;
	min-width: 0;
}

.fm-product-preview__name {
	font-size: 15px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fm-product-preview__price {
	font-size: 17px;
	font-weight: 700;
	color: var(--fb-success);
	margin: 0 0 4px;
}

.fm-product-preview__sku,
.fm-product-preview__stock {
	font-size: 12px;
	color: var(--fb-green-soft);
	margin: 0 0 2px;
}

/* =========================================================================
   Dual live preview layout (Slices F?I)
   ========================================================================= */

.fm-dual-preview {
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 20px 24px;
	margin-bottom: 28px;
}

.fm-dual-preview__note {
	font-size: 12px;
	color: var(--fb-green-soft);
	font-style: italic;
	margin: 0 0 16px;
}

.fm-dual-preview__grid {
	display: grid;
	grid-template-columns: minmax(200px, 0.8fr) minmax(340px, 1.8fr);
	gap: 20px;
	align-items: start;
}

/* Preview panel shared heading */
.fm-preview-panel__heading {
	font-size: 13px;
	font-weight: 700;
	color: var(--fb-ink-soft);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 2px;
}

.fm-preview-panel__sub {
	font-size: 11px;
	color: var(--fb-green-soft);
	margin: 0 0 12px;
}

/* ---- Left: compact product card preview ---- */

.fm-preview-card {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 14px 14px 16px;
}

.fm-preview-card__inner {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fm-preview-card__image {
	width: 100%;
	aspect-ratio: 4 / 3;
	background: var(--fb-sand);
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fm-preview-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fm-preview-card__placeholder {
	font-size: 11px;
	color: var(--fb-green-soft);
	text-align: center;
}

.fm-preview-card__name {
	font-size: 14px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fm-preview-card__price {
	font-size: 15px;
	font-weight: 700;
	color: var(--fb-success);
	margin: 0 0 4px;
}

.fm-preview-card__stock {
	font-size: 11px;
	color: var(--fb-green-soft);
	margin: 0;
}

/* ---- Right: customer-facing product detail page preview ---- */

.fm-preview-page {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 14px 18px 18px;
}

.fm-preview-page__notice {
	font-size: 11px;
	font-weight: 600;
	color: #fbbf24;
	background: rgba(245,158,11,0.16);
	border: 1px solid rgba(245,158,11,0.35);
	border-radius: 4px;
	padding: 5px 10px;
	margin: 0 0 14px;
}

.fm-preview-page__detail-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	align-items: start;
}

.fm-preview-page__detail-main-image {
	width: 100%;
	aspect-ratio: 1;
	background: var(--fb-sand);
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fm-preview-page__detail-main-image img,
.fm-preview-page__detail-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fm-preview-page__detail-placeholder {
	font-size: 11px;
	color: var(--fb-green-soft);
	text-align: center;
	padding: 8px;
}

.fm-preview-page__detail-info {
	min-width: 0;
}

.fm-preview-page__detail-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 6px;
	word-break: break-word;
	line-height: 1.3;
}

.fm-preview-page__detail-price {
	font-size: 20px;
	font-weight: 700;
	color: var(--fb-success);
	margin: 0 0 8px;
}

.fm-preview-page__detail-desc {
	font-size: 12px;
	color: var(--fb-ink-soft);
	margin: 0 0 10px;
	white-space: pre-line;
	line-height: 1.5;
}

.fm-preview-page__detail-availability {
	margin: 0 0 10px;
}

.fm-preview-page__stock-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 20px;
	background: var(--fb-accent-bg);
	color: var(--fb-azure);
}

.fm-preview-page__stock-badge--in-stock {
	background: rgba(74,222,128,0.14);
	color: var(--fb-success);
}

.fm-preview-page__stock-badge--out-of-stock {
	background: rgba(248,113,113,0.14);
	color: var(--fb-danger);
}

.fm-preview-page__detail-qty-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
}

.fm-preview-page__detail-qty-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--fb-ink-soft);
}

.fm-preview-page__detail-qty-input {
	width: 56px;
	padding: 4px 6px;
	font-size: 13px;
	border: 1px solid var(--fb-border);
	border-radius: 4px;
	color: var(--fb-green-soft);
	background: var(--fb-cream);
	text-align: center;
}

.fm-preview-page__detail-actions {
	margin: 0 0 10px;
}

.fm-preview-page__detail-add-to-cart {
	display: block;
	width: 100%;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 700;
	background: var(--fb-green);
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: not-allowed;
	opacity: 0.65;
	text-align: center;
}

.fm-preview-page__detail-meta {
	margin: 8px 0 0;
	padding: 8px 0 0;
	border-top: 1px solid var(--fb-border);
}

.fm-preview-page__detail-meta-row {
	display: flex;
	gap: 6px;
	font-size: 11px;
	margin: 0;
}

.fm-preview-page__detail-meta-row dt {
	font-weight: 600;
	color: var(--fb-green-soft);
}

.fm-preview-page__detail-meta-row dd {
	color: var(--fb-ink-soft);
	margin: 0;
}

/* Mobile: stack previews vertically */
@media ( max-width: 680px ) {
	.fm-dual-preview__grid {
		grid-template-columns: 1fr;
	}

	.fm-preview-page__detail-layout {
		grid-template-columns: 1fr;
	}
}

/* =========================================================================
   Public product detail ? main media + video thumbnails (Slice H)
   ========================================================================= */

.forces-marketplace-product-detail__main-media {
	position: relative;
	width: 100%;
	line-height: 0;
}

.forces-marketplace-product-detail__main-media img,
.forces-marketplace-product-detail__main-media video {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
}

/* Video element that replaces main image on thumbnail click */
.forces-marketplace-product-detail__video {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
	background: var(--fb-cream);
}

/* Thumbnail strip ? video placeholder tile */
.forces-marketplace-product-detail__thumbnail--video {
	background: var(--fb-cream);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	cursor: pointer;
}

.forces-marketplace-product-detail__thumbnail-video-badge {
	color: var(--fb-white);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	pointer-events: none;
}

/* =========================================================================
   One-page product builder ? create page sections (Slices B / H)
   ========================================================================= */

/* Builder intro paragraph */
.fm-builder-intro {
	font-size: 15px;
	color: var(--fb-ink-soft);
	margin: 0 0 28px;
	padding: 14px 18px;
	background: var(--fb-sand);
	border-left: 4px solid var(--fb-green);
	border-radius: 4px;
}

/* Each step section (Step 1, 2, 3) */
.forces-marketplace-seller-product-create__builder-section {
	margin-bottom: 40px;
	padding: 28px 32px;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 12px;
}

/* Step heading with numbered badge */
.forces-marketplace-seller-product-create__builder-heading {
	font-size: 18px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.forces-marketplace-seller-product-create__step-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: var(--fb-green);
	color: var(--fb-white);
	border-radius: 50%;
	font-size: 13px;
	font-weight: 700;
	flex-shrink: 0;
}

/* Builder note inside Step 2 */
.fm-builder-note {
	font-size: 14px;
	color: var(--fb-green-soft);
	margin: 0 0 18px;
	font-style: italic;
}

/* No-JS fallback note in Step 2 ? hidden once fm-js-active applied */
.fm-create-media-noscript {
	font-size: 14px;
	color: var(--fb-green-soft);
	padding: 14px 16px;
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
	border-radius: 6px;
	margin: 0;
}

.fm-js-active .fm-create-media-noscript {
	display: none;
}

/* =========================================================================
   Product type selector ? product create page (dynamic single vs variable)
   ========================================================================= */

.fm-pc-type-selector {
	margin: 20px 0;
}

.fm-pc-type-selector__heading {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	margin: 0 0 10px;
}

.fm-pc-required {
	color: var(--fb-danger);
}

.fm-product-type-radios {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fm-product-type-radio {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border: 2px solid var(--fb-border);
	border-radius: 10px;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
	background: var(--fb-surface);
}

.fm-product-type-radio:has(input:checked) {
	border-color: var(--fb-green);
	background: var(--fb-khaki);
}

.fm-product-type-radio input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

/* Visual radio indicator circle */
.fm-product-type-radio__indicator {
	display: inline-block;
	width: 18px;
	height: 18px;
	min-width: 18px;
	border-radius: 50%;
	border: 2px solid var(--fb-border-strong);
	margin-top: 1px;
	transition: border-color 0.15s, background 0.15s;
	background: var(--fb-surface);
}

.fm-product-type-radio:has(input:checked) .fm-product-type-radio__indicator {
	border-color: var(--fb-green);
	background: radial-gradient(circle, var(--fb-green) 4px, var(--fb-khaki) 4px);
}

.fm-product-type-radio__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.fm-product-type-radio__label {
	font-weight: 600;
	font-size: 14px;
	color: var(--fb-ink-soft);
}

.fm-product-type-radio:has(input:checked) .fm-product-type-radio__label {
	color: var(--fb-azure);
}

.fm-product-type-radio__hint {
	font-size: 13px;
	color: var(--fb-green-soft);
	line-height: 1.4;
}

/* =========================================================================
   Single / variable product panels ? product create page
   ========================================================================= */

.fm-pc-panel {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 20px 20px 16px;
	margin: 0 0 20px;
}

.fm-pc-panel__intro {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 0 0 16px;
}

/* Variable product panel */
.fm-pc-variable-panel {
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* =========================================================================
   Variation cards ? product create page variation builder
   ========================================================================= */

.fm-pc-var-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 14px;
}

.fm-pc-var-card {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	overflow: hidden;
}

.fm-pc-var-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--fb-sand);
	padding: 8px 14px;
	border-bottom: 1px solid var(--fb-border);
}

.fm-pc-var-card__num {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
}

.fm-pc-var-card__remove {
	background: none;
	border: none;
	color: var(--fb-danger);
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	padding: 2px 6px;
	border-radius: 4px;
	transition: background 0.12s;
}

.fm-pc-var-card__remove:hover {
	background: rgba(248,113,113,0.14);
}

.fm-pc-var-card__fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
}

.fm-pc-var-card__row {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 14px;
	border-right: 1px solid var(--fb-border);
	border-bottom: 1px solid var(--fb-border);
}

.fm-pc-var-card__row:nth-child(2n) {
	border-right: none;
}

.fm-pc-var-card__row:nth-last-child(-n+2) {
	border-bottom: none;
}

.fm-pc-var-card__label {
	font-size: 11px;
	font-weight: 600;
	color: var(--fb-green-soft);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.fm-pc-var-card__input {
	width: 100%;
	padding: 7px 10px;
	border: 1px solid var(--fb-border);
	border-radius: 6px;
	font-size: 13px;
	color: var(--fb-ink-soft);
	background: var(--fb-surface);
	box-sizing: border-box;
}

.fm-pc-var-card__input:focus {
	outline: none;
	border-color: var(--fb-green);
	box-shadow: 0 0 0 2px rgba(43, 108, 176, 0.12);
}

.fm-pc-var-card__input--num {
	-moz-appearance: textfield;
}

.fm-pc-var-card__input--num::-webkit-inner-spin-button,
.fm-pc-var-card__input--num::-webkit-outer-spin-button {
	opacity: 0.5;
}

/* "Add another variation" button */
.fm-pc-add-variation-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	background: none;
	border: 2px dashed var(--fb-border);
	border-radius: 8px;
	color: var(--fb-ink-soft);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	justify-content: center;
	transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.fm-pc-add-variation-btn:hover {
	border-color: var(--fb-green);
	color: var(--fb-green);
	background: var(--fb-khaki);
}

/* Responsive: stack variation card fields on narrow screens */
@media (max-width: 600px) {
	.fm-pc-var-card__fields {
		grid-template-columns: 1fr;
	}
	.fm-pc-var-card__row {
		border-right: none;
	}
	.fm-pc-var-card__row:nth-last-child(-n+2) {
		border-bottom: 1px solid var(--fb-border);
	}
	.fm-pc-var-card__row:last-child {
		border-bottom: none;
	}
}

/* =========================================================================
   Variant builder ? option builder + variant manager (Slices 8+9)
   ========================================================================= */

.fm-variant-builder {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 28px 28px 24px;
	margin-top: 28px;
}

.fm-variant-builder__heading {
	font-size: 18px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 6px;
}

.fm-variant-builder__subheading {
	font-size: 15px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	margin: 20px 0 8px;
}

.fm-variant-builder__intro,
.fm-variant-builder__hint {
	font-size: 14px;
	color: var(--fb-green-soft);
	margin: 0 0 14px;
}

.fm-variant-builder__save-btn {
	display: inline-block;
	padding: 9px 18px;
	background: var(--fb-blue);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	margin-top: 10px;
}

.fm-variant-builder__save-btn:hover {
	background: var(--fb-blue-hover);
}

.fm-variant-builder__generate-btn {
	background: var(--fb-green);
	margin-bottom: 14px;
}

.fm-variant-builder__generate-btn:hover {
	background: var(--fb-green);
}

.fm-variant-builder__msg {
	font-size: 13px;
	margin-top: 8px;
	min-height: 20px;
}

.fm-variant-builder__msg--success { color: var(--fb-success); }
.fm-variant-builder__msg--error   { color: var(--fb-danger); }

/* Option rows */
.fm-option-builder__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 12px;
}

.fm-option-row {
	display: grid;
	grid-template-columns: 1fr 2fr auto;
	gap: 8px;
	align-items: center;
	padding: 10px;
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
	border-radius: 6px;
}

.fm-option-builder__add-btn {
	background: none;
	border: 1px dashed var(--fb-border);
	color: var(--fb-ink-soft);
	padding: 8px 14px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
}

.fm-option-builder__add-btn:hover {
	border-color: var(--fb-ink-soft);
	color: var(--fb-ink-soft);
}

.fm-option-row__remove {
	background: none;
	border: none;
	color: var(--fb-danger);
	cursor: pointer;
	font-size: 12px;
	padding: 4px 8px;
}

/* Variant rows */
.fm-variant-manager__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 12px;
}

.fm-variant-row {
	display: flex;
	flex-direction: column;
	padding: 10px;
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
	border-radius: 6px;
}

.fm-variant-row__header {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 8px;
	align-items: center;
}

.fm-variant-row__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	grid-column: 1 / -1;
}

.fm-variant-row__input--sm {
	font-size: 13px;
}

/* Collapsible variant description — hidden by default, revealed via the toggle */
.fm-variant-desc-toggle {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 10px;
	padding: 4px 0;
	background: none;
	border: 0;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-azure);
}

.fm-variant-desc-toggle:hover {
	text-decoration: underline;
}

.fm-variant-desc-toggle__caret {
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid currentColor;
	transition: transform 0.15s ease;
}

.fm-variant-desc-toggle[aria-expanded="true"] .fm-variant-desc-toggle__caret {
	transform: rotate( 180deg );
}

.fm-variant-content-panel {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--fb-border);
}

.fm-variant-content-panel.is-collapsed {
	display: none;
}

.fm-variant-content-panel__label {
	font-size: 12px;
	font-weight: 600;
	color: var(--fb-ink-soft);
}

.fm-variant-content-panel__textarea {
	width: 100%;
	box-sizing: border-box;
	font-size: 13px;
	padding: 8px;
	border: 1px solid var(--fb-border-strong);
	border-radius: 4px;
	resize: vertical;
	font-family: inherit;
	color: var(--fb-ink-soft);
	background: var(--fb-surface);
}

.fm-variant-content-panel__textarea:focus {
	outline: none;
	border-color: var(--fb-blue);
	box-shadow: 0 0 0 2px rgba(79,70,229,0.15);
}

.fm-variant-content-panel__save-btn {
	align-self: flex-start;
	font-size: 13px;
	padding: 6px 14px;
	background: var(--fb-blue);
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

.fm-variant-content-panel__save-btn:hover {
	background: var(--fb-blue);
}

.fm-variant-content-panel__save-btn:disabled {
	background: var(--fb-surface);
	cursor: not-allowed;
}

.fm-variant-content-panel__msg {
	font-size: 12px;
	color: var(--fb-success);
	min-height: 16px;
}

/* ---- Variant media manager ---- */

.fm-variant-media {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--fb-border);
}

.fm-variant-media__label {
	font-size: 12px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	margin: 0 0 6px;
}

/* Variant photo picker — tap product photos to assign them to a variant */
.fm-vpick {
	margin: 0 0 12px;
}

.fm-vpick__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fm-vpick__item {
	position: relative;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 2px solid var(--fb-border);
	border-radius: 10px;
	overflow: hidden;
	background: var(--fb-sand);
	cursor: pointer;
	transition: border-color 0.12s ease, transform 0.08s ease, box-shadow 0.12s ease;
}

.fm-vpick__item:hover {
	border-color: var(--fb-border-strong);
	transform: translateY( -1px );
}

.fm-vpick__item:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba( 59, 130, 246, 0.35 );
}

.fm-vpick__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fm-vpick__img--ph {
	background: linear-gradient( 135deg, var(--fb-surface), var(--fb-sand) );
}

/* Dim unassigned tiles slightly so assigned ones stand out */
.fm-vpick__item .fm-vpick__img {
	opacity: 0.72;
	transition: opacity 0.12s ease;
}
.fm-vpick__item:hover .fm-vpick__img { opacity: 0.9; }

.fm-vpick__item.is-assigned {
	border-color: var(--fb-blue);
	box-shadow: 0 0 0 1px var(--fb-blue) inset;
}
.fm-vpick__item.is-assigned .fm-vpick__img { opacity: 1; }

.fm-vpick__check {
	position: absolute;
	top: 3px;
	right: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--fb-blue);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 20px;
	text-align: center;
	transform: scale( 0 );
	transition: transform 0.14s cubic-bezier( 0.34, 1.56, 0.64, 1 );
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.35 );
}

.fm-vpick__item.is-assigned .fm-vpick__check {
	transform: scale( 1 );
}

.fm-vpick__item.is-loading {
	opacity: 0.55;
	pointer-events: none;
}

.fm-vpick__msg {
	display: inline-block;
	margin-top: 6px;
	font-size: 12px;
	min-height: 1em;
}
.fm-vpick__msg--ok  { color: var(--fb-success, #22c55e); }
.fm-vpick__msg--err { color: var(--fb-danger, #f87171); }

.fm-vpick__empty {
	font-size: 12px;
	color: var(--fb-green-soft);
	margin: 0 0 10px;
}

/* Flash highlight when arriving via the "Assign photos" deep-link */
#fm-variant-photos {
	scroll-margin-top: 90px;
}

.fm-vpick--flash {
	animation: fm-vpick-flash 2.4s ease;
	border-radius: 12px;
}

@keyframes fm-vpick-flash {
	0%, 20%   { box-shadow: 0 0 0 3px rgba( 59, 130, 246, 0.55 ); background: rgba( 59, 130, 246, 0.10 ); }
	100%      { box-shadow: 0 0 0 0 rgba( 59, 130, 246, 0 );     background: transparent; }
}

/* Products page — "needs variant photos" panel (seamless entry to the picker) */
.fm-vphoto-panel {
	margin: 0 0 16px;
	padding: 16px 18px;
	background: var(--fb-accent-bg);
	border: 1px solid rgba( 124, 192, 255, 0.30 );
	border-radius: 14px;
}

.fm-vphoto-panel__head {
	margin-bottom: 12px;
}

.fm-vphoto-panel__title {
	margin: 0 0 3px;
	font-size: 15px;
	font-weight: 700;
	color: var(--fb-ink);
}

.fm-vphoto-panel__desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--fb-ink-soft);
}

.fm-vphoto-panel__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fm-vphoto-panel__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
}

.fm-vphoto-panel__thumb {
	flex: 0 0 auto;
}

.fm-vphoto-panel__thumb-img {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	object-fit: cover;
	display: block;
	border: 1px solid var(--fb-border);
	background: var(--fb-sand);
}

.fm-vphoto-panel__thumb-img--ph {
	background: linear-gradient( 135deg, var(--fb-surface), var(--fb-sand) );
}

.fm-vphoto-panel__name {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-ink);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fm-vphoto-panel__btn {
	flex: 0 0 auto;
	padding: 8px 14px;
	background: var(--fb-blue);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 8px;
	transition: opacity 0.15s ease;
}

.fm-vphoto-panel__btn:hover {
	opacity: 0.88;
}

/* Grouped "photos by colour/style" picker (assign per option value, applies to all sizes) */
.fm-vgroup {
	margin: 0 0 18px;
	padding: 16px 18px;
	background: var(--fb-accent-bg);
	border: 1px solid rgba( 124, 192, 255, 0.30 );
	border-radius: 14px;
}

.fm-vgroup__title {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
	color: var(--fb-ink);
}

.fm-vgroup__intro {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--fb-ink-soft);
}

.fm-vgroup__opt-row {
	margin: 0 0 14px;
	font-size: 13px;
}

.fm-vgroup__opt-label {
	font-weight: 600;
	color: var(--fb-ink-soft);
	margin-right: 6px;
}

.fm-vgroup__opt-select {
	padding: 7px 10px;
	border-radius: 8px;
	border: 1px solid var(--fb-border-strong);
	background: var(--fb-surface);
	color: var(--fb-ink);
	font-size: 13px;
	font-weight: 600;
}

.fm-vgroup__optgroup.is-hidden {
	display: none;
}

/* Multiple option groups shown at once — each gets a heading + separator. */
.fm-vgroup__optgroup + .fm-vgroup__optgroup,
.fm-vgroup__size {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 2px solid var(--fb-border);
}
.fm-vgroup__optname {
	margin: 0 0 2px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--fb-ink-soft);
}
.fm-vgroup__optname + .fm-vgroup__value {
	border-top: 0;
	padding-top: 4px;
}
.fm-vgroup__size-summary {
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-blue);
	list-style: none;
}
.fm-vgroup__size-summary::-webkit-details-marker {
	display: none;
}
.fm-vgroup__size[open] .fm-vgroup__size-summary {
	margin-bottom: 6px;
}

.fm-vgroup__value {
	padding: 12px 0;
	border-top: 1px solid var(--fb-border);
}

.fm-vgroup__value:first-child {
	border-top: 0;
}

.fm-vgroup__value-head {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 8px;
}

.fm-vgroup__value-name {
	font-size: 14px;
	font-weight: 700;
	color: var(--fb-ink);
}

.fm-vgroup__value-count {
	font-size: 12px;
	color: var(--fb-green-soft);
}

/* Assign-photos walkthrough: the "Select all photos & next" button sits on the right of
   the picker heading row (per-value "Select all" was removed in favour of one product tap). */
.fm-vgroup__title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.fm-vgroup__title-row .fm-vgroup__title {
	margin: 0;
}

/* The button hugs the right; on narrow screens it drops below the heading full-width. */
.fm-assign-photos__selectall {
	margin-left: auto;
	white-space: nowrap;
}

@media ( max-width: 560px ) {
	.fm-assign-photos__selectall {
		margin-left: 0;
		width: 100%;
		text-align: center;
	}
}

/* Loading + error states for the assign-all button (works wherever it is placed). */
[data-fm-assign-all].is-loading {
	opacity: 0.7;
	pointer-events: none;
}

.fm-assign-photos__err {
	flex-basis: 100%;
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--fb-danger);
}

.fm-vgroup__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fm-vgroup__item {
	position: relative;
	width: 60px;
	height: 60px;
	padding: 0;
	border: 2px solid var(--fb-border);
	border-radius: 10px;
	overflow: hidden;
	background: var(--fb-sand);
	cursor: pointer;
	transition: border-color 0.12s ease, transform 0.08s ease, box-shadow 0.12s ease;
}

.fm-vgroup__item:hover {
	border-color: var(--fb-border-strong);
	transform: translateY( -1px );
}

.fm-vgroup__item:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba( 59, 130, 246, 0.35 );
}

.fm-vgroup__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0.72;
	transition: opacity 0.12s ease;
}

.fm-vgroup__img--ph {
	background: linear-gradient( 135deg, var(--fb-surface), var(--fb-sand) );
}

.fm-vgroup__item:hover .fm-vgroup__img { opacity: 0.9; }

.fm-vgroup__item.is-assigned {
	border-color: var(--fb-blue);
	box-shadow: 0 0 0 1px var(--fb-blue) inset;
}

.fm-vgroup__item.is-assigned .fm-vgroup__img { opacity: 1; }

.fm-vgroup__item.is-loading { opacity: 0.55; pointer-events: none; }

.fm-vgroup__check {
	position: absolute;
	top: 3px;
	right: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--fb-blue);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 20px;
	text-align: center;
	transform: scale( 0 );
	transition: transform 0.14s cubic-bezier( 0.34, 1.56, 0.64, 1 );
	box-shadow: 0 1px 4px rgba( 0, 0, 0, 0.35 );
}

.fm-vgroup__item.is-assigned .fm-vgroup__check { transform: scale( 1 ); }

.fm-vgroup__msg {
	display: inline-block;
	margin-top: 8px;
	font-size: 12px;
	min-height: 1em;
}
.fm-vgroup__msg--ok  { color: var(--fb-success, #22c55e); }
.fm-vgroup__msg--err { color: var(--fb-danger, #f87171); }

.fm-variant-media__empty {
	font-size: 12px;
	color: var(--fb-green-soft);
	margin: 0 0 8px;
}

.fm-variant-media__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
}

.fm-variant-media__item {
	position: relative;
	width: 80px;
	border: 2px solid var(--fb-border);
	border-radius: 4px;
	overflow: hidden;
	background: var(--fb-cream);
}

.fm-variant-media__item--featured {
	border-color: var(--fb-blue);
}

.fm-variant-media__thumb {
	width: 100%;
	height: 80px;
	object-fit: cover;
	display: block;
}

.fm-variant-media__thumb-placeholder {
	width: 80px;
	height: 80px;
	background: var(--fb-border);
}

.fm-variant-media__badge {
	display: block;
	font-size: 10px;
	font-weight: 700;
	text-align: center;
	padding: 2px 4px;
	background: var(--fb-blue);
	color: #fff;
}

.fm-variant-media__badge--inherited {
	background: var(--fb-green-soft);
}

.fm-variant-media__item-actions {
	display: flex;
	gap: 2px;
	padding: 2px;
	justify-content: center;
}

.fm-variant-media__btn {
	font-size: 10px;
	padding: 2px 5px;
	border: 1px solid var(--fb-border-strong);
	border-radius: 3px;
	background: var(--fb-surface);
	cursor: pointer;
	color: var(--fb-ink-soft);
	white-space: nowrap;
}

.fm-variant-media__btn:hover {
	background: var(--fb-sand);
}

.fm-variant-media__btn--remove {
	border-color: rgba(248,113,113,0.35);
	color: var(--fb-danger);
}

.fm-variant-media__btn--remove:hover {
	background: rgba(248,113,113,0.14);
}

.fm-variant-media__upload {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.fm-variant-media__upload-label {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 10px;
	background: var(--fb-khaki);
	color: var(--fb-green);
	border: 1px solid rgba(124,192,255,0.30);
	border-radius: 4px;
	cursor: pointer;
}

.fm-variant-media__upload-label:hover {
	background: var(--fb-accent-bg);
}

.fm-variant-media__file-input {
	position: absolute;
	width: 0;
	height: 0;
	opacity: 0;
}

.fm-variant-media__upload-msg {
	font-size: 12px;
	color: var(--fb-green-soft);
}

/* ---- Variant bulk helpers ---- */

.fm-variant-bulk {
	margin-top: 16px;
	padding: 12px 14px;
	background: var(--fb-sand);
	border: 1px solid rgba(124,192,255,0.30);
	border-radius: 6px;
}

.fm-variant-bulk__heading {
	font-size: 13px;
	font-weight: 700;
	color: var(--fb-green);
	margin: 0 0 6px;
}

.fm-variant-bulk__note {
	font-size: 12px;
	color: var(--fb-ink-soft);
	margin: 0 0 10px;
}

.fm-variant-bulk__actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.fm-variant-bulk__btn {
	font-size: 12px;
	padding: 6px 12px;
	border: 1px solid var(--fb-blue);
	border-radius: 4px;
	background: var(--fb-surface);
	color: var(--fb-azure);
	cursor: pointer;
}

.fm-variant-bulk__btn:hover {
	background: var(--fb-khaki);
}

.fm-variant-bulk__btn--danger {
	border-color: var(--fb-danger);
	color: var(--fb-danger);
}

.fm-variant-bulk__btn--danger:hover {
	background: rgba(248,113,113,0.14);
}

.fm-variant-bulk__msg {
	font-size: 12px;
	color: var(--fb-green);
	margin-top: 8px;
	min-height: 16px;
}

/* --------------------------------------------------------------------------
   Variant preview banner + per-row Preview button
---------------------------------------------------------------------------- */

.fm-variant-preview-banner {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--fb-sand);
	border: 1px solid rgba(124,192,255,0.30);
	border-radius: 6px;
	padding: 8px 14px;
	margin-bottom: 12px;
	font-size: 13px;
}

.fm-variant-preview-banner__label {
	flex: 1;
	font-weight: 600;
	color: var(--fb-azure);
}

.fm-variant-preview-banner__reset {
	background: none;
	border: 1px solid rgba(124,192,255,0.30);
	border-radius: 4px;
	color: var(--fb-green);
	font-size: 12px;
	padding: 3px 10px;
	cursor: pointer;
}

.fm-variant-preview-banner__reset:hover {
	background: var(--fb-accent-bg);
}

.fm-variant-row__preview-btn {
	background: none;
	border: 1px solid var(--fb-border);
	border-radius: 4px;
	color: var(--fb-ink-soft);
	font-size: 11px;
	padding: 3px 8px;
	cursor: pointer;
	white-space: nowrap;
}

.fm-variant-row__preview-btn:hover {
	background: var(--fb-sand);
	border-color: var(--fb-green-soft);
}

.fm-variant-row__preview-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

@media (max-width: 700px) {
	.fm-option-row {
		grid-template-columns: 1fr auto;
	}
	.fm-option-row .fm-option-row__values {
		grid-column: 1 / -1;
	}
	.fm-variant-row__header {
		grid-template-columns: 1fr 1fr;
	}
	.fm-variant-row__label {
		grid-column: 1 / -1;
	}
}

/* =========================================================================
   Stock Sync ? Seller product sync info panel
   ========================================================================= */

.fm-seller-sync-info {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--fb-border);
}

.fm-seller-sync-info__title {
	font-size: 15px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	margin: 0 0 12px;
}

.fm-seller-sync-info__guidance {
	font-size: 13px;
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 10px;
}

.fm-seller-sync-info__guidance--manual {
	background: var(--fb-surface);
	color: var(--fb-ink-soft);
	border-left: 3px solid var(--fb-border);
}

.fm-seller-sync-info__entry {
	margin-bottom: 14px;
}

.fm-seller-sync-info__banner {
	font-size: 13px;
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 10px;
}

.fm-seller-sync-info__banner--synced {
	background: rgba(74,222,128,0.14);
	border-left: 3px solid var(--fb-success);
	color: var(--fb-success);
}

.fm-seller-sync-info__banner--override {
	background: rgba(245,158,11,0.16);
	border-left: 3px solid rgba(245,158,11,0.35);
	color: #fbbf24;
}

.fm-seller-sync-info__banner--error {
	background: rgba(248,113,113,0.14);
	border-left: 3px solid var(--fb-danger);
	color: var(--fb-danger);
}

.fm-seller-sync-info__details {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 4px 14px;
	font-size: 12px;
	margin: 0 0 8px;
}

.fm-seller-sync-info__details dt {
	color: var(--fb-ink-soft);
	font-weight: 500;
}

.fm-seller-sync-info__details dd {
	margin: 0;
	color: var(--fb-ink-soft);
}

.fm-seller-sync-info__admin-note {
	font-size: 11px;
	color: var(--fb-ink-soft);
	margin: 8px 0 0;
	font-style: italic;
}

/* =========================================================================
   Seller Inventory ? FM_Seller_Inventory shortcode
   ========================================================================= */

.fm-seller-inventory * {
	box-sizing: border-box;
}

.fm-seller-inventory {
	max-width: 1200px;
	margin: 0 auto 48px;
	padding: 0 24px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: var(--fb-ink);
}

/* ---- Within the inventory shell: tighten gap between main nav and sub-nav ---- */

.fm-seller-inventory .forces-marketplace-seller-nav {
	margin-bottom: 6px;
}

/* ---- Sub-nav (inventory-specific, sits under main seller nav) ---- */

.fm-seller-inventory-nav {
	margin: 0 0 28px;
	border-top: 1px solid var(--fb-sand);
	padding-top: 4px;
}

.fm-seller-inventory-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
	border-bottom: 2px solid var(--fb-border);
}

.fm-seller-inventory-nav__item {
	margin: 0;
}

.fm-seller-inventory-nav__link {
	display: flex;
	align-items: center;
	padding: 12px 14px;
	min-height: 44px;
	box-sizing: border-box;
	font-size: 13px;
	font-weight: 500;
	color: var(--fb-green-soft);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: color 0.15s, border-color 0.15s;
}

.fm-seller-inventory-nav__link:hover {
	color: var(--fb-green);
	text-decoration: none;
}

.fm-seller-inventory-nav__link--active {
	color: var(--fb-green);
	border-bottom-color: var(--fb-green);
	font-weight: 600;
}

/* ---- Inventory portal header ? mirrors dashboard header: vendor name + section label + status badge ---- */

.fm-inv-portal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin-bottom: 16px;
}

.fm-inv-portal-header__brand {
	flex: 1;
}

.fm-inv-portal-header__vendor {
	font-size: 16px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	margin: 0 0 2px;
}

.fm-inv-portal-header__section {
	font-size: 12px;
	color: var(--fb-green-soft);
	font-weight: 400;
	margin: 0;
}

/* ---- Page title / intro ---- */

.fm-inv-page-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 6px;
}

.fm-inv-page-intro {
	font-size: 14px;
	color: var(--fb-green-soft);
	margin: 0 0 24px;
}

/* ---- Page header (title + action button) ---- */

.fm-inv-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
}

/* ---- Status banner ---- */

.fm-inv-status-banner {
	border-radius: 6px;
	padding: 12px 16px;
	margin-bottom: 20px;
	font-size: 14px;
	font-weight: 500;
	border: 1px solid transparent;
}

.fm-inv-status-banner p {
	margin: 0;
}

.fm-inv-status-banner--success {
	background: rgba(74,222,128,0.14);
	border-color: rgba(74,222,128,0.35);
	color: var(--fb-success);
}

.fm-inv-status-banner--error {
	background: rgba(248,113,113,0.14);
	border-color: rgba(248,113,113,0.35);
	color: var(--fb-danger);
}

.fm-inv-status-banner--info {
	background: var(--fb-sand);
	border-color: rgba(124,192,255,0.30);
	color: var(--fb-green);
}

/* ---- Setup guide ---- */

.fm-inv-setup-guide {
	background: rgba(245,158,11,0.16);
	border: 1px solid rgba(245,158,11,0.35);
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 24px;
}

.fm-inv-setup-guide__title {
	font-size: 14px;
	font-weight: 700;
	color: #fbbf24;
	margin: 0 0 10px;
}

.fm-inv-setup-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fm-inv-setup-steps__item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #fbbf24;
}

.fm-inv-setup-steps__item--done {
	color: var(--fb-success);
	text-decoration: line-through;
	opacity: 0.7;
}

.fm-inv-setup-steps__check {
	font-size: 14px;
	flex-shrink: 0;
}

/* ---- Status cards / summary ---- */

.fm-inv-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
	margin-bottom: 28px;
}

.fm-inv-card {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 18px 20px;
}

.fm-inv-card__label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fb-green-soft);
	margin: 0 0 6px;
}

.fm-inv-card__value {
	font-size: 28px;
	font-weight: 700;
	color: var(--fb-ink);
	line-height: 1;
	margin: 0 0 4px;
}

.fm-inv-card__sub {
	font-size: 12px;
	color: var(--fb-green-soft);
	margin: 0;
}

/* ---- Quick action grid ---- */

.fm-inv-quick-actions {
	margin-bottom: 28px;
}

.fm-inv-quick-actions__title {
	font-size: 14px;
	font-weight: 700;
	color: var(--fb-ink-soft);
	margin: 0 0 12px;
}

.fm-inv-action-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
}

.fm-inv-action-card {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 16px;
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: 4px;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.fm-inv-action-card:hover {
	border-color: var(--fb-green);
	box-shadow: 0 2px 8px rgba(26, 86, 219, 0.1);
	text-decoration: none;
	color: inherit;
}

.fm-inv-action-card__title {
	font-size: 14px;
	font-weight: 700;
	color: var(--fb-ink);
}

.fm-inv-action-card__desc {
	font-size: 12px;
	color: var(--fb-green-soft);
}

/* ---- Buttons ---- */

.fm-inv-btn {
	display: inline-block;
	padding: 9px 20px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.4;
	transition: background 0.15s;
	font-family: inherit;
}

.fm-inv-btn--primary {
	background: var(--fb-green);
	color: var(--fb-white);
}

.fm-inv-btn--primary:hover {
	background: var(--fb-green-dark);
	color: var(--fb-white);
	text-decoration: none;
}

.fm-inv-btn--secondary {
	background: var(--fb-surface);
	color: var(--fb-green);
	border: 1px solid var(--fb-green);
}

.fm-inv-btn--secondary:hover {
	background: var(--fb-khaki);
	text-decoration: none;
}

.fm-inv-btn--danger {
	background: var(--fb-danger);
	color: var(--fb-white);
}

.fm-inv-btn--danger:hover {
	background: var(--fb-danger);
	color: var(--fb-white);
}

.fm-inv-btn--sm {
	padding: 5px 12px;
	font-size: 12px;
}

/* ---- Inline notice ---- */

.fm-inv-notice {
	border-radius: 6px;
	padding: 12px 16px;
	margin-bottom: 16px;
	font-size: 13px;
	border: 1px solid transparent;
}

.fm-inv-notice p {
	margin: 0;
}

.fm-inv-notice--success {
	background: rgba(74,222,128,0.14);
	border-color: rgba(74,222,128,0.35);
	color: var(--fb-success);
}

.fm-inv-notice--error {
	background: rgba(248,113,113,0.14);
	border-color: rgba(248,113,113,0.35);
	color: var(--fb-danger);
}

.fm-inv-notice--info {
	background: var(--fb-sand);
	border-color: rgba(124,192,255,0.30);
	color: var(--fb-green);
}

/* ---- Safe callout (upload guidance) ---- */

.fm-inv-safe-callout {
	background: rgba(74,222,128,0.14);
	border: 1px solid rgba(74,222,128,0.35);
	border-radius: 8px;
	padding: 14px 18px;
}

.fm-inv-safe-callout__title {
	font-size: 13px;
	font-weight: 700;
	color: var(--fb-success);
	margin: 0 0 8px;
}

.fm-inv-safe-callout__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.fm-inv-safe-callout__item {
	font-size: 13px;
	color: var(--fb-success);
	display: flex;
	align-items: flex-start;
	gap: 6px;
}

/* ---- Upload layout (two-column) ---- */

.fm-inv-upload-layout {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 24px;
	align-items: start;
}

.fm-inv-upload-main {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.fm-inv-csv-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	margin: 0 0 6px;
	display: block;
}

.fm-inv-csv-hint {
	font-size: 12px;
	color: var(--fb-green-soft);
	margin: 0 0 8px;
}

.fm-inv-csv-textarea {
	width: 100%;
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	font-size: 13px;
	padding: 10px 12px;
	border: 1px solid var(--fb-border-strong);
	border-radius: 6px;
	min-height: 200px;
	resize: vertical;
	color: var(--fb-ink);
	background: var(--fb-cream);
	line-height: 1.5;
}

.fm-inv-csv-textarea:focus {
	outline: none;
	border-color: var(--fb-green);
	box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

/* ---- Preview / summary cards ---- */

.fm-inv-preview-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
	margin-bottom: 24px;
}

.fm-inv-preview-card {
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 14px 16px;
	text-align: center;
}

.fm-inv-preview-card__value {
	font-size: 26px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 2px;
}

.fm-inv-preview-card__label {
	font-size: 12px;
	color: var(--fb-green-soft);
	margin: 0;
}

.fm-inv-preview-card--warn .fm-inv-preview-card__value {
	color: #fbbf24;
}

.fm-inv-preview-card--ok .fm-inv-preview-card__value {
	color: var(--fb-success);
}

/* ---- Reservation warning ---- */

.fm-inv-reservation-warning {
	background: rgba(245,158,11,0.16);
	border: 1px solid rgba(245,158,11,0.35);
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 13px;
	color: #fbbf24;
	margin-bottom: 16px;
}

/* ---- Section headings ---- */

.fm-inv-section-heading {
	font-size: 15px;
	font-weight: 700;
	color: var(--fb-ink-soft);
	margin: 24px 0 10px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--fb-border);
}

/* ---- Apply section ---- */

.fm-inv-apply-section {
	margin-top: 24px;
	padding: 18px 20px;
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
}

.fm-inv-apply-section__note {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 0 0 12px;
}

/* ---- Item table (preview / run detail) ---- */

.fm-inv-item-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	margin-bottom: 16px;
}

.fm-inv-item-table th {
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fb-green-soft);
	padding: 8px 10px;
	border-bottom: 2px solid var(--fb-border);
}

.fm-inv-item-table td {
	padding: 9px 10px;
	border-bottom: 1px solid var(--fb-sand);
	color: var(--fb-ink-soft);
	vertical-align: middle;
}

.fm-inv-item-table tr:last-child td {
	border-bottom: none;
}

.fm-inv-item-table tr:hover td {
	background: var(--fb-cream);
}

/* ---- Manual stock table ---- */

.fm-inv-stock-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	margin-bottom: 20px;
}

.fm-inv-stock-table th {
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fb-green-soft);
	padding: 8px 10px;
	border-bottom: 2px solid var(--fb-border);
	background: var(--fb-cream);
}

.fm-inv-stock-table td {
	padding: 8px 10px;
	border-bottom: 1px solid var(--fb-sand);
	vertical-align: middle;
}

.fm-inv-stock-table tr:hover td {
	background: var(--fb-surface);
}

.fm-inv-stock-table__variant-row td {
	padding-left: 24px;
	font-size: 13px;
	color: var(--fb-ink-soft);
}

.fm-inv-stock-input {
	width: 80px;
	padding: 5px 8px;
	border: 1px solid var(--fb-border-strong);
	border-radius: 4px;
	font-size: 14px;
	text-align: center;
	color: var(--fb-ink);
	background: var(--fb-surface);
}

.fm-inv-stock-input:focus {
	outline: none;
	border-color: var(--fb-green);
	box-shadow: 0 0 0 2px rgba(26, 86, 219, 0.1);
}

/* ---- SKU match UI ---- */

.fm-inv-match-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
}

.fm-inv-match-item {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 14px 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.fm-inv-match-item__sku {
	font-family: "SFMono-Regular", Consolas, monospace;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	background: var(--fb-sand);
	padding: 3px 8px;
	border-radius: 4px;
	flex-shrink: 0;
}

.fm-inv-match-item__qty {
	font-size: 13px;
	color: var(--fb-green-soft);
	flex-shrink: 0;
}

.fm-inv-match-item__selects {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	flex: 1;
	min-width: 0;
}

.fm-inv-match-select {
	padding: 6px 10px;
	border: 1px solid var(--fb-border-strong);
	border-radius: 5px;
	font-size: 13px;
	color: var(--fb-ink-soft);
	background: var(--fb-surface);
	cursor: pointer;
	flex: 1;
	min-width: 120px;
}

.fm-inv-match-select:focus {
	outline: none;
	border-color: var(--fb-green);
}

/* ---- History table ---- */

.fm-inv-history-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.fm-inv-history-table th {
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fb-green-soft);
	padding: 8px 12px;
	border-bottom: 2px solid var(--fb-border);
	background: var(--fb-cream);
}

.fm-inv-history-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--fb-sand);
	color: var(--fb-ink-soft);
}

.fm-inv-history-table tr:hover td {
	background: var(--fb-cream);
}

.fm-inv-history-table td a {
	display: inline-block;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 500;
	color: var(--fb-green);
	border: 1px solid rgba(124,192,255,0.30);
	border-radius: 4px;
	text-decoration: none;
	transition: background 0.12s, border-color 0.12s;
	white-space: nowrap;
}

.fm-inv-history-table td a:hover {
	background: var(--fb-khaki);
	border-color: var(--fb-green);
	text-decoration: none;
}

/* ---- Run detail meta ---- */

.fm-inv-run-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 28px;
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 14px 18px;
	margin-bottom: 20px;
}

.fm-inv-run-meta__item {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.fm-inv-run-meta__label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fb-green-soft);
}

.fm-inv-run-meta__value {
	font-size: 14px;
	font-weight: 500;
	color: var(--fb-ink-soft);
}

/* ---- Auto sync placeholder ---- */

.fm-inv-auto-options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin-top: 20px;
}

.fm-inv-auto-option {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fm-inv-auto-option--coming-soon {
	opacity: 0.6;
}

.fm-inv-auto-option__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--fb-ink);
}

.fm-inv-auto-option__desc {
	font-size: 13px;
	color: var(--fb-green-soft);
}

.fm-inv-auto-option__badge {
	display: inline-block;
	padding: 2px 10px;
	font-size: 11px;
	font-weight: 700;
	border-radius: 20px;
	background: var(--fb-sand);
	color: var(--fb-ink-soft);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* ---- Setup flow options ---- */

.fm-inv-setup-options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
	margin-top: 20px;
}

.fm-inv-setup-option {
	background: var(--fb-surface);
	border: 2px solid var(--fb-border);
	border-radius: 10px;
	padding: 20px;
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: 6px;
	transition: border-color 0.15s;
	cursor: pointer;
}

.fm-inv-setup-option:hover {
	border-color: var(--fb-green);
	text-decoration: none;
	color: inherit;
}

.fm-inv-setup-option__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--fb-ink);
}

.fm-inv-setup-option__desc {
	font-size: 13px;
	color: var(--fb-green-soft);
}

/* ---- Empty state ---- */

.fm-inv-empty {
	background: var(--fb-cream);
	border: 1px dashed var(--fb-border-strong);
	border-radius: 10px;
	padding: 36px 24px;
	text-align: center;
	color: var(--fb-green-soft);
	font-size: 14px;
}

.fm-inv-empty p {
	margin: 0;
}

/* ---- Details / summary toggle ---- */

.fm-inv-details {
	margin-bottom: 16px;
}

.fm-inv-details summary {
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-green);
	padding: 6px 0;
	user-select: none;
}

.fm-inv-details summary:hover {
	color: var(--fb-azure);
}

.fm-inv-details__body {
	padding: 12px 0 4px;
}

/* ---- Stock method badge (on product list) ---- */

.fm-inv-method-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.fm-inv-method-badge--manual {
	background: var(--fb-sand);
	color: var(--fb-ink-soft);
}

.fm-inv-method-badge--csv {
	background: var(--fb-sand);
	color: var(--fb-green);
}

.fm-inv-method-badge--attention {
	background: rgba(248,113,113,0.14);
	color: var(--fb-danger);
}

.fm-inv-method-badge--override {
	background: rgba(245,158,11,0.16);
	color: #fbbf24;
}

/* ---- Status badges for runs / items ---- */

.fm-inv-run-badge,
.fm-inv-item-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.fm-inv-run-badge--pending    { background: var(--fb-sand); color: var(--fb-ink-soft); }
.fm-inv-run-badge--dry_run    { background: var(--fb-sand); color: var(--fb-green); }
.fm-inv-run-badge--applied    { background: rgba(74,222,128,0.14); color: var(--fb-success); }
.fm-inv-run-badge--failed     { background: rgba(248,113,113,0.14); color: var(--fb-danger); }
.fm-inv-run-badge--cancelled  { background: var(--fb-sand); color: var(--fb-green-soft); }

.fm-inv-item-badge--matched   { background: rgba(74,222,128,0.14); color: var(--fb-success); }
.fm-inv-item-badge--unmatched { background: rgba(248,113,113,0.14); color: var(--fb-danger); }
.fm-inv-item-badge--skipped   { background: var(--fb-sand); color: var(--fb-green-soft); }
.fm-inv-item-badge--applied   { background: var(--fb-sand); color: var(--fb-green); }
.fm-inv-item-badge--error     { background: rgba(248,113,113,0.14); color: var(--fb-danger); }

/* ---- Responsive ---- */

@media (max-width: 760px) {
	.fm-seller-inventory .forces-marketplace-seller-nav__list,
	.fm-seller-inventory-nav__list {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		border-bottom: 2px solid var(--fb-border);
		gap: 0;
	}

	.fm-seller-inventory .forces-marketplace-seller-nav__list::-webkit-scrollbar,
	.fm-seller-inventory-nav__list::-webkit-scrollbar {
		display: none;
	}
}

@media (max-width: 640px) {
	.fm-seller-inventory-nav__link--active {
		border-bottom-color: var(--fb-green);
		background: var(--fb-khaki);
		color: var(--fb-green);
	}

	.fm-inv-cards,
	.fm-inv-action-grid,
	.fm-inv-preview-cards,
	.fm-inv-auto-options,
	.fm-inv-setup-options {
		grid-template-columns: 1fr;
	}

	.fm-inv-upload-layout {
		grid-template-columns: 1fr;
	}

	.fm-inv-item-table,
	.fm-inv-stock-table,
	.fm-inv-history-table {
		font-size: 13px;
	}

	.fm-inv-match-item {
		flex-direction: column;
		align-items: flex-start;
	}

	.fm-inv-run-meta {
		flex-direction: column;
		gap: 10px;
	}
}

/* ==========================================================================
   Grouped Inventory ? product groups, variant rows, page header
   ========================================================================== */

/* Page header with title + action buttons */
.fm-inv-page-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
}

.fm-inv-page-header h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: var(--fb-ink);
}

.fm-inv-page-header-actions,
.fm-inv-page-header__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.fm-inv-page-header__titles {
	flex: 1;
}

/* Product group card */
.fm-inv-product-group {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	margin-bottom: 16px;
	overflow: hidden;
}

.fm-inv-product-group--variable {
	border-left: 3px solid var(--fb-blue);
}

.fm-inv-product-group--simple {
	border-left: 3px solid var(--fb-success);
}

/* Group header (always visible) */
.fm-inv-group-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	background: var(--fb-cream);
	border-bottom: 1px solid var(--fb-border);
	flex-wrap: wrap;
}

.fm-inv-product-group--simple .fm-inv-group-header {
	border-bottom: none;
}

.fm-inv-group-header-meta {
	flex: 1;
	min-width: 0;
}

.fm-inv-group-product-name {
	font-size: 15px;
	font-weight: 600;
	color: var(--fb-ink);
	margin: 0 0 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fm-inv-group-meta-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

/* Type badge */
.fm-inv-type-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 9999px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.fm-inv-type-badge--variable {
	background: var(--fb-accent-bg);
	color: var(--fb-azure);
}

.fm-inv-type-badge--simple {
	background: rgba(74,222,128,0.14);
	color: var(--fb-success);
}

.fm-inv-group-sku {
	font-size: 12px;
	color: var(--fb-green-soft);
	font-family: monospace;
}

.fm-inv-group-variant-count {
	font-size: 12px;
	color: var(--fb-green-soft);
}

/* Attention badge on group header */
.fm-inv-group-attention {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	background: rgba(245,158,11,0.16);
	color: #fbbf24;
	border-radius: 9999px;
	font-size: 12px;
	font-weight: 500;
}

/* Expand/collapse toggle */
.fm-inv-group-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: transparent;
	border: 1px solid var(--fb-border);
	border-radius: 6px;
	font-size: 13px;
	color: var(--fb-ink-soft);
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s, border-color 0.15s;
}

.fm-inv-group-toggle:hover {
	background: var(--fb-sand);
	border-color: var(--fb-green-soft);
}

.fm-inv-group-toggle-icon {
	display: inline-block;
	transition: transform 0.2s;
}

.fm-inv-group-toggle[aria-expanded="true"] .fm-inv-group-toggle-icon {
	transform: rotate(180deg);
}

/* Variant rows panel */
.fm-inv-variant-rows {
	padding: 0;
}

.fm-inv-variant-rows[hidden] {
	display: none;
}

.fm-inv-variant-note {
	padding: 10px 18px;
	font-size: 12px;
	color: var(--fb-green-soft);
	background: var(--fb-cream);
	border-bottom: 1px solid var(--fb-sand);
}

/* Simple product single row */
.fm-inv-simple-row {
	padding: 14px 18px;
}

/* Stock field grid inside simple row */
.fm-inv-simple-row .fm-inv-stock-fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 12px;
	margin-top: 10px;
}

.fm-inv-stock-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.fm-inv-stock-field label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--fb-green-soft);
}

.fm-inv-stock-field .fm-inv-stock-value {
	font-size: 18px;
	font-weight: 700;
	color: var(--fb-ink);
}

.fm-inv-stock-field .fm-inv-stock-value--low {
	color: var(--fb-danger);
}

.fm-inv-stock-field input[type="number"] {
	padding: 7px 10px;
	border: 1px solid var(--fb-border);
	border-radius: 6px;
	font-size: 14px;
	width: 100%;
	box-sizing: border-box;
}

.fm-inv-stock-field input[type="number"]:focus {
	outline: none;
	border-color: var(--fb-blue);
	box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

/* Variant table inside variant panel */
.fm-inv-variant-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.fm-inv-variant-table th {
	padding: 10px 18px;
	text-align: left;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--fb-green-soft);
	background: var(--fb-cream);
	border-bottom: 1px solid var(--fb-border);
}

.fm-inv-variant-table td {
	padding: 10px 18px;
	border-bottom: 1px solid var(--fb-sand);
	vertical-align: middle;
}

.fm-inv-variant-table tr:last-child td {
	border-bottom: none;
}

.fm-inv-variant-table tr:hover td {
	background: var(--fb-cream);
}

.fm-inv-variant-label {
	font-weight: 500;
	color: var(--fb-ink-soft);
}

.fm-inv-variant-sku {
	font-size: 12px;
	color: var(--fb-green-soft);
	font-family: monospace;
}

.fm-inv-stock-num {
	font-weight: 600;
	color: var(--fb-ink);
}

.fm-inv-stock-num--low {
	color: var(--fb-danger);
}

.fm-inv-new-stock-input {
	padding: 6px 10px;
	border: 1px solid var(--fb-border);
	border-radius: 6px;
	font-size: 14px;
	width: 90px;
	box-sizing: border-box;
}

.fm-inv-new-stock-input:focus {
	outline: none;
	border-color: var(--fb-blue);
	box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

/* ==========================================================================
   Upload page ? steps guide and form layout
   ========================================================================== */

.fm-inv-upload-steps {
	counter-reset: upload-step;
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.fm-inv-upload-step {
	counter-increment: upload-step;
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.fm-inv-upload-step::before {
	content: counter(upload-step);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--fb-blue);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}

.fm-inv-upload-step-content {
	flex: 1;
	min-width: 0;
}

.fm-inv-upload-step-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-ink);
	margin: 0 0 4px;
}

.fm-inv-upload-step-desc {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 0;
}

.fm-inv-form-section-heading {
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	margin: 0 0 8px;
}

.fm-inv-form-hint {
	font-size: 12px;
	color: var(--fb-green-soft);
	margin: 6px 0 0;
}

.fm-inv-guide-intro {
	font-size: 13px;
	color: var(--fb-ink-soft);
	margin: 0 0 10px;
}

.fm-inv-guide-note {
	margin-top: 12px;
	padding: 10px 14px;
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
	border-radius: 6px;
	font-size: 12px;
	color: var(--fb-green-soft);
}

/* ==========================================================================
   Item table ? grouped dry-run preview (Slice 9)
   ========================================================================== */

.fm-inv-item-group {
	margin-bottom: 20px;
}

.fm-inv-item-group-name {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-ink);
	background: var(--fb-sand);
	border: 1px solid var(--fb-border);
	border-bottom: none;
	border-radius: 6px 6px 0 0;
}

.fm-inv-item-group .fm-inv-item-table {
	border-radius: 0 0 6px 6px;
	overflow: hidden;
}

.fm-inv-variation-sub {
	font-size: 12px;
	color: var(--fb-green-soft);
	display: block;
	margin-top: 2px;
}

.fm-inv-row--warn td {
	background: rgba(245,158,11,0.16);
}

/* ==========================================================================
   Grouped inventory ? responsive breakpoints
   ========================================================================== */

@media (max-width: 640px) {
	.fm-inv-page-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.fm-inv-page-header-actions {
		width: 100%;
	}

	.fm-inv-group-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.fm-inv-group-toggle {
		width: 100%;
		justify-content: center;
	}

	.fm-inv-variant-table th,
	.fm-inv-variant-table td {
		padding: 8px 12px;
	}

	.fm-inv-new-stock-input {
		width: 70px;
	}

	.fm-inv-metrics {
		flex-direction: column;
		gap: 8px;
	}

	.fm-inv-metric {
		flex-direction: row;
		justify-content: space-between;
	}

	.fm-inv-product-card__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.fm-inv-action-cards__grid {
		grid-template-columns: 1fr;
	}

	.fm-inv-stat-cards {
		grid-template-columns: repeat(2, 1fr);
	}

	.fm-inv-variant-table {
		font-size: 12px;
	}

	.fm-inv-variant-table th,
	.fm-inv-variant-table td {
		padding: 6px 8px;
	}

	.fm-inv-save-bar {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.fm-inv-expand-btn {
		width: 100%;
		justify-content: center;
	}
}

/* ==========================================================================
   Phase 10 ? Seller Inventory Dashboard Redesign
   ========================================================================== */

/* ---- Dashboard page header ---- */

.fm-inv-header__text {
	flex: 1;
}

.fm-inv-header__title {
	font-size: 22px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 2px;
	line-height: 1.2;
}

.fm-inv-header__vendor {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 0;
}

/* ---- Status banner extended modifiers ---- */

.fm-inv-status-banner {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.fm-inv-status-banner__label {
	font-weight: 700;
	white-space: nowrap;
}

.fm-inv-status-banner__desc {
	font-weight: 400;
}

.fm-inv-status--ok {
	background: rgba(74,222,128,0.14);
	border: 1px solid rgba(74,222,128,0.35);
	color: var(--fb-success);
	border-radius: 6px;
	padding: 10px 16px;
	margin-bottom: 20px;
}

.fm-inv-status--attention {
	background: rgba(248,113,113,0.14);
	border: 1px solid rgba(248,113,113,0.35);
	color: var(--fb-danger);
	border-radius: 6px;
	padding: 10px 16px;
	margin-bottom: 20px;
}

.fm-inv-status--manual {
	background: var(--fb-sand);
	border: 1px solid rgba(124,192,255,0.30);
	color: var(--fb-green);
	border-radius: 6px;
	padding: 10px 16px;
	margin-bottom: 20px;
}

.fm-inv-status--not-setup {
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
	color: var(--fb-ink-soft);
	border-radius: 6px;
	padding: 10px 16px;
	margin-bottom: 20px;
}

/* ---- Stat cards ---- */

.fm-inv-stat-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 14px;
	margin-bottom: 28px;
}

.fm-inv-stat-card {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.fm-inv-stat-card--warn {
	border-color: rgba(245,158,11,0.35);
	background: rgba(245,158,11,0.16);
}

.fm-inv-stat-card__num {
	font-size: 30px;
	font-weight: 700;
	color: var(--fb-ink);
	line-height: 1;
}

.fm-inv-stat-card__num--sm {
	font-size: 17px;
	font-weight: 700;
	color: var(--fb-ink);
}

.fm-inv-stat-card__label {
	font-size: 12px;
	font-weight: 600;
	color: var(--fb-green-soft);
}

/* ---- Action cards grid ---- */

.fm-inv-action-cards {
	margin-bottom: 32px;
}

.fm-inv-action-cards__heading {
	font-size: 16px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 14px;
}

.fm-inv-action-cards__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
}

.fm-inv-action-card--primary {
	border-color: var(--fb-green);
	background: var(--fb-accent-bg);
}

.fm-inv-action-card--primary .fm-inv-action-card__title {
	color: var(--fb-green);
}

.fm-inv-action-card {
	gap: 8px;
}

.fm-inv-action-card .fm-inv-btn {
	margin-top: 8px;
	align-self: flex-start;
}

/* ---- Dashboard inventory section ---- */

.fm-inv-dashboard-list {
	margin-top: 32px;
	border-top: 1px solid var(--fb-border);
	padding-top: 24px;
}

.fm-inv-dashboard-list__heading {
	font-size: 18px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 6px;
}

.fm-inv-dashboard-list__intro {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 0 0 20px;
}

/* ---- Inventory overview (simplified ? no fluff cards, just heading + list) ---- */

.fm-inv-overview__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
}

.fm-inv-overview__title {
	font-size: 20px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0;
}

.fm-inv-overview__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

/* ---- Inventory form + list wrapper ---- */

.fm-inv-inventory-form {
	width: 100%;
}

.fm-inv-inventory {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 20px;
}

/* ---- Product cards ---- */

.fm-inv-product-card {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	transition: border-color 0.15s;
}

.fm-inv-product-card:hover {
	border-color: var(--fb-border);
}

.fm-inv-product-card--oos {
	border-left: 3px solid rgba(248,113,113,0.35);
}

.fm-inv-product-card--variable {
	border-left: 3px solid var(--fb-blue);
}

.fm-inv-product-card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.fm-inv-product-card__titles {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.fm-inv-product-card__name {
	font-size: 16px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0;
}

.fm-inv-product-card__sku {
	font-size: 12px;
	color: var(--fb-green-soft);
	font-family: monospace;
	white-space: nowrap;
}

/* ---- Stock metric pills ---- */

.fm-inv-metrics {
	display: flex;
	align-items: stretch;
	gap: 12px;
	flex-wrap: wrap;
}

.fm-inv-metric {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 10px 14px;
	min-width: 90px;
}

.fm-inv-metric__label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fb-green-soft);
}

.fm-inv-metric__value {
	font-size: 22px;
	font-weight: 700;
	color: var(--fb-ink);
	line-height: 1;
}

.fm-inv-metric--oos .fm-inv-metric__value {
	color: var(--fb-danger);
}

.fm-inv-metric--oos {
	border-color: rgba(248,113,113,0.35);
	background: rgba(248,113,113,0.14);
}

.fm-inv-metric--input {
	background: var(--fb-surface);
	border-color: var(--fb-border-strong);
	flex: 1;
	min-width: 120px;
}

/* ---- Status badge ---- */

.fm-inv-status-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 9999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.fm-inv-status-badge--oos {
	background: rgba(248,113,113,0.14);
	color: var(--fb-danger);
	border: 1px solid rgba(248,113,113,0.35);
}

/* ---- Sync status badge (Phase 31J) ---- */

.fm-inv-sync-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-left: 6px;
}

.fm-inv-sync-badge--synced {
	background: rgba(74,222,128,0.14);
	color: var(--fb-success);
}

.fm-inv-sync-badge--manual {
	background: var(--fb-sand);
	color: var(--fb-green-soft);
}

/* ---- Variable product variant summary ---- */

.fm-inv-variant-summary {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.fm-inv-count-pill {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 9999px;
	font-size: 12px;
	font-weight: 600;
	background: var(--fb-sand);
	color: var(--fb-ink-soft);
}

.fm-inv-count-pill--ok {
	background: rgba(74,222,128,0.14);
	color: var(--fb-success);
}

.fm-inv-count-pill--oos {
	background: rgba(248,113,113,0.14);
	color: var(--fb-danger);
}

/* ---- Expand/collapse button ---- */

.fm-inv-expand-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: var(--fb-cream);
	border: 1px solid var(--fb-border-strong);
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--fb-ink-soft);
	cursor: pointer;
	margin-left: auto;
	transition: background 0.15s, border-color 0.15s;
}

.fm-inv-expand-btn:hover {
	background: var(--fb-sand);
	border-color: var(--fb-border);
}

/* ---- Variant panel ---- */

.fm-inv-variant-panel {
	border-top: 1px solid var(--fb-border);
	padding-top: 16px;
	overflow-x: auto;
}

.fm-inv-variant-panel__empty {
	font-size: 13px;
	color: var(--fb-green-soft);
	font-style: italic;
	margin: 0;
	padding: 8px 0;
}

/* ---- Variant table ---- */

.fm-inv-variant-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	color: var(--fb-ink-soft);
}

.fm-inv-variant-table thead {
	background: var(--fb-cream);
}

.fm-inv-variant-table th {
	padding: 8px 14px;
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fb-green-soft);
	border-bottom: 1px solid var(--fb-border);
}

.fm-inv-variant-table td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--fb-border);
	vertical-align: middle;
}

.fm-inv-variant-table tbody tr:last-child td {
	border-bottom: none;
}

.fm-inv-variant-row--oos td {
	background: rgba(248,113,113,0.14);
}

.fm-inv-variant-row--oos .fm-inv-variant-table__label {
	color: var(--fb-danger);
}

.fm-inv-variant-table__label {
	font-weight: 600;
}

.fm-inv-variant-table__sku {
	font-family: monospace;
	color: var(--fb-green-soft);
	font-size: 12px;
}

/* ---- Save bar ---- */

.fm-inv-save-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	margin-top: 4px;
}

.fm-inv-save-bar__hint {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 0;
}

.fm-inv-save-bar {
	flex-wrap: wrap;
}

.fm-inv-save-bar__reason {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 220px;
}

.fm-inv-save-bar__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

.fm-inv-reason-select {
	padding: 8px 10px;
	border: 1px solid var(--fb-border-strong);
	border-radius: 6px;
	font-size: 14px;
	background: var(--fb-surface);
	color: var(--fb-ink-soft);
}

/* ---- Delta adjustment inputs ---- */

.fm-inv-delta-input {
	width: 90px;
	padding: 6px 8px;
	border: 1px solid var(--fb-border-strong);
	border-radius: 6px;
	font-size: 14px;
	text-align: center;
}

.fm-inv-delta-input:focus {
	outline: none;
	border-color: rgba(124,192,255,0.30);
	box-shadow: 0 0 0 2px rgba(66,153,225,0.2);
}

.fm-inv-delta-preview {
	display: block;
	font-size: 12px;
	margin-top: 4px;
	color: var(--fb-green-soft);
}

.fm-inv-delta-preview--pos {
	color: var(--fb-success);
}

.fm-inv-delta-preview--neg {
	color: #fbbf24;
}

.fm-inv-delta-preview--error {
	color: var(--fb-danger);
	font-weight: 600;
}

/* =========================================================================
   Compact stock table (dark) — replaces the oversized product cards
   ========================================================================= */

.fm-inv-stock-tablewrap {
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	overflow: hidden;
	background: var(--fb-surface);
	margin-bottom: 16px;
}

.fm-inv-stock-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.fm-inv-stock-table thead th {
	position: sticky;
	top: 0;
	z-index: 2;
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--fb-green-soft);
	background: var(--fb-cream);
	padding: 9px 14px;
	border-bottom: 1px solid var(--fb-border);
}

.fm-inv-stock-table td {
	padding: 8px 14px;
	border-bottom: 1px solid var(--fb-border);
	color: var(--fb-ink);
	vertical-align: middle;
}

.fm-inv-stock-table tbody.fm-ist-group:hover td,
.fm-inv-stock-table tbody.fm-ist-variants tr:hover td {
	background: var(--fb-cream);
}

/* Numeric columns hug their content and align right */
.fm-inv-stock-table .fm-ist-num {
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	width: 88px;
}

.fm-ist-num--oos {
	color: var(--fb-danger);
	font-weight: 700;
}

.fm-inv-stock-table .fm-ist-col-sku {
	width: 160px;
	white-space: nowrap;
	font-family: monospace;
	font-size: 12px;
	color: var(--fb-green-soft);
	overflow: hidden;
	text-overflow: ellipsis;
}

.fm-inv-stock-table .fm-ist-col-adjust {
	width: 130px;
	text-align: right;
}

.fm-ist-muted {
	color: var(--fb-green-soft);
}

.fm-ist-product {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.fm-ist-name {
	font-weight: 600;
	color: var(--fb-ink);
}

.fm-ist-vcount {
	font-size: 12px;
	color: var(--fb-green-soft);
}

/* Out-of-stock accent on the first cell */
.fm-ist-row--oos > td:first-child {
	box-shadow: inset 3px 0 0 rgba(248,113,113,0.55);
}

/* Variant sub-rows sit inset and slightly darker */
.fm-ist-variants > tr > td {
	background: rgba(0,0,0,0.18);
}

.fm-ist-vlabel {
	position: relative;
	display: inline-block;
	padding-left: 28px;
	color: var(--fb-ink-soft);
}

.fm-ist-vlabel::before {
	content: "\21B3";
	position: absolute;
	left: 8px;
	color: var(--fb-green-soft);
}

.fm-ist-vempty {
	color: var(--fb-green-soft);
	font-style: italic;
}

.fm-ist-expand {
	padding: 3px 9px !important;
	font-size: 12px !important;
}

.fm-inv-stock-table .fm-inv-delta-input {
	width: 74px;
	padding: 5px 6px;
	font-size: 13px;
}

.fm-inv-stock-table .fm-inv-delta-preview {
	font-size: 11px;
	margin-top: 3px;
	text-align: right;
}

/* Responsive: drop SKU + Reserved, keep Product / In stock / Available / Adjust */
@media (max-width: 782px) {
	.fm-inv-stock-tablewrap {
		overflow-x: auto;
	}

	.fm-inv-stock-table {
		table-layout: fixed;
		width: 100%;
	}

	.fm-inv-stock-table thead th {
		position: static;
	}

	.fm-inv-stock-table .fm-ist-col-sku,
	.fm-inv-stock-table .fm-ist-col-reserved {
		display: none;
	}

	.fm-inv-stock-table th,
	.fm-inv-stock-table td {
		padding: 8px;
	}

	.fm-inv-stock-table .fm-ist-num {
		width: 56px;
	}

	.fm-inv-stock-table .fm-ist-col-adjust {
		width: 92px;
	}

	.fm-inv-stock-table .fm-inv-delta-input {
		width: 64px;
	}
}

/* ---- Overview stat cards variants ---- */

.fm-inv-card--alert {
	border-color: rgba(248,113,113,0.35);
	background: rgba(248,113,113,0.14);
}

.fm-inv-card--alert .fm-inv-card__value {
	color: var(--fb-danger);
}

.fm-inv-card--warn {
	border-color: rgba(245,158,11,0.35);
	background: rgba(245,158,11,0.16);
}

.fm-inv-card--warn .fm-inv-card__value {
	color: #fbbf24;
}

/* ---- Movements table ---- */

.fm-inv-movements-table-wrap {
	overflow-x: auto;
	margin-top: 16px;
}

.fm-inv-movements-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.fm-inv-movements-table th,
.fm-inv-movements-table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid var(--fb-border);
}

.fm-inv-movements-table th {
	font-weight: 600;
	color: var(--fb-ink-soft);
	background: var(--fb-cream);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.fm-inv-movements-table__date {
	white-space: nowrap;
	color: var(--fb-green-soft);
	font-size: 13px;
}

.fm-inv-movements-table__variant {
	color: var(--fb-green-soft);
	font-size: 12px;
}

.fm-inv-movements-table__change {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.fm-inv-movements-table__change--pos {
	color: var(--fb-success);
}

.fm-inv-movements-table__change--neg {
	color: #fbbf24;
}

.fm-inv-movements-table__reason {
	color: var(--fb-ink-soft);
}

/* ---- Empty state ---- */

.fm-inv-empty-state {
	padding: 48px 24px;
	text-align: center;
	background: var(--fb-cream);
	border: 2px dashed var(--fb-border);
	border-radius: 10px;
}

.fm-inv-empty-state__msg {
	font-size: 16px;
	color: var(--fb-ink-soft);
	margin: 0 0 16px;
}

/* ---- Upload page header (title + download button) ---- */

.fm-inv-upload__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 10px;
}

.fm-inv-upload__header .fm-inv-page-title {
	margin: 0;
}

/* =========================================================================
   Bulk stock update panel (embedded on overview ? 50/50 paste + upload)
   ========================================================================= */

.fm-inv-bulk-panel {
	margin-top: 40px;
	border-top: 1px solid var(--fb-border);
	padding-top: 28px;
}

.fm-inv-bulk-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 6px;
}

.fm-inv-bulk-panel__title {
	font-size: 17px;
	font-weight: 600;
	color: var(--fb-ink);
	margin: 0;
}

.fm-inv-bulk-panel__intro {
	font-size: 14px;
	color: var(--fb-green-soft);
	margin: 0 0 20px;
}

/* 50/50 desktop grid */
.fm-inventory-upload-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 20px;
	margin-bottom: 20px;
}

.fm-inventory-upload-pane {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Textarea inside bulk panel ? fill available height */
.fm-inv-csv-textarea--bulk {
	flex: 1;
	min-height: 180px;
	resize: vertical;
}

/* Drop zone */
.fm-inventory-upload-dropzone {
	flex: 1;
	min-height: 180px;
	border: 2px dashed var(--fb-border-strong);
	border-radius: 10px;
	background: var(--fb-surface);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
	position: relative;
	text-align: center;
}

.fm-inventory-upload-dropzone:hover,
.fm-inventory-upload-dropzone:focus {
	border-color: var(--fb-blue);
	background: var(--fb-khaki);
	outline: none;
}

.fm-inventory-upload-dropzone--over {
	border-color: rgba(124,192,255,0.30);
	background: var(--fb-khaki);
}

.fm-inventory-upload-dropzone__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
	top: 0;
	left: 0;
}

.fm-inventory-upload-dropzone__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 24px 20px;
	pointer-events: none;
}

.fm-inventory-upload-dropzone__icon {
	font-size: 36px;
	line-height: 1;
	color: var(--fb-green-soft);
}

.fm-inventory-upload-dropzone__label {
	font-size: 14px;
	color: var(--fb-green-soft);
	max-width: 200px;
}

.fm-inventory-upload-dropzone__status {
	font-size: 13px;
	color: var(--fb-success);
	font-weight: 500;
	min-height: 1.2em;
}

/* Actions row: checkbox + submit */
.fm-inventory-upload-actions {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.fm-inventory-upload-actions .fm-inv-form-field--inline {
	margin: 0;
}

/* Mobile: stack the two panes */
@media (max-width: 700px) {
	.fm-inventory-upload-grid {
		grid-template-columns: 1fr;
	}
}

/* =========================================================================
   Seller portal shell ? body class scoped rules
   ========================================================================= */

/* Tighten the seller area top margin so portal starts close to the site header */
body.fm-seller-portal-page .forces-marketplace-seller-area,
body.fm-seller-portal-page .fm-seller-inventory.fm-seller-area {
	margin-top: 0;
	padding-top: 20px;
}

/* =========================================================================
   Shared seller portal header (.fm-seller-portal-header)
   Used on orders, products, and account pages for consistency with
   dashboard (.forces-marketplace-seller-dashboard__header) and
   inventory (.fm-inv-portal-header).
   ========================================================================= */

.fm-seller-portal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin-bottom: 16px;
}

.fm-seller-portal-header__brand {
	flex: 1;
}

.fm-seller-portal-header__name {
	font-size: 16px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	margin: 0 0 2px;
}

.fm-seller-portal-header__section {
	font-size: 12px;
	color: var(--fb-green-soft);
	font-weight: 400;
	margin: 0;
}

@media ( max-width: 600px ) {
	.fm-seller-portal-header {
		gap: 6px 14px;
		margin-bottom: 12px;
	}

	.fm-seller-portal-header__name {
		font-size: 15px;
	}
}

/* Products "Add product" action bar ? compact, below nav */
.fm-seller-products-topbar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

/* ==========================================================================
   Phase 47G ? Product live sync indicator badges
   ========================================================================== */

.fm-sync-badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 500;
	padding: 2px 0;
	white-space: nowrap;
}

.fm-sync-badge--live {
	color: var(--fb-success);
}

.fm-sync-badge--issue,
.fm-sync-badge--partial {
	color: #fbbf24;
}

.fm-sync-badge--not-matched {
	color: var(--fb-danger);
}

.fm-sync-badge--paused,
.fm-sync-badge--manual {
	color: var(--fb-green-soft);
}

/* Delivery info indicator on product cards */
.fm-product-delivery-indicator {
	font-size: 12px;
	color: var(--fb-ink-soft);
}

@media (max-width: 600px) {
	.forces-marketplace-seller-products__card {
		flex-direction: column;
	}

	.forces-marketplace-seller-products__card-image-link {
		width: 100%;
		height: 120px;
		border-right: none;
		border-bottom: 1px solid var(--fb-border);
	}

	.forces-marketplace-seller-products__card-thumb,
	.forces-marketplace-seller-products__card-thumb-placeholder {
		width: 100%;
		height: 120px;
	}

	.forces-marketplace-seller-products__meta {
		grid-template-columns: 1fr 1fr;
	}
}

/* Responsive: seller portal shell on narrow screens */
@media (max-width: 640px) {
	body.fm-seller-portal-page .forces-marketplace-seller-area,
	body.fm-seller-portal-page .fm-seller-inventory.fm-seller-area {
		padding-top: 12px;
	}
}

/* =========================================================================
   Product Details tabbed section ? create page (fm-pd-* namespace)
   ========================================================================= */

.fm-pd-section {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	overflow: hidden;
	margin: 0 0 20px;
}

.fm-pd-section__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 20px 0;
	border-bottom: 1px solid var(--fb-border);
	flex-wrap: wrap;
}

.fm-pd-section__title {
	font-size: 14px;
	font-weight: 700;
	color: var(--fb-ink-soft);
	margin: 0 0 12px;
	white-space: nowrap;
}

/* Tab strip */
.fm-pd-tabs {
	display: flex;
	gap: 0;
	margin-bottom: -1px;
}

.fm-pd-tab {
	padding: 9px 18px;
	background: none;
	border: 1px solid transparent;
	border-bottom: none;
	border-radius: 7px 7px 0 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--fb-green-soft);
	cursor: pointer;
	transition: color 0.12s, background 0.12s, border-color 0.12s;
	white-space: nowrap;
}

/* Hide the real radio input visually ? label acts as the clickable tab */
.fm-pd-tab__radio {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

/* Active state driven by :has(:checked) ? works without JS */
.fm-pd-tab:has(.fm-pd-tab__radio:checked) {
	color: var(--fb-green);
	font-weight: 600;
	background: var(--fb-surface);
	border-color: var(--fb-border);
	border-bottom-color: #fff;
}

/* Hover on non-active tab */
.fm-pd-tab:not(:has(.fm-pd-tab__radio:checked)):hover {
	color: var(--fb-ink-soft);
	background: var(--fb-cream);
}

/* Legacy class ? kept for safety */
.fm-pd-tab--active {
	color: var(--fb-green);
	font-weight: 600;
	background: var(--fb-surface);
	border-color: var(--fb-border);
	border-bottom-color: #fff;
}

/* Ensure [hidden] panels are always hidden regardless of theme CSS */
.fm-pd-panel[hidden] {
	display: none !important;
}

/* Class-based panel switching ? more robust than [hidden] alone when theme CSS interferes */
.fm-pd-section.is-variable #fm-pd-panel-variable {
	display: block !important;
}
.fm-pd-section.is-variable #fm-pd-panel-simple {
	display: none !important;
}
.fm-pd-section.is-single #fm-pd-panel-simple {
	display: block !important;
}
.fm-pd-section.is-single #fm-pd-panel-variable {
	display: none !important;
}

/* Empty-state messages inside the variable builder */
.fm-ob-groups-empty,
.fm-ob-variants-empty {
	margin: 0;
	padding: 12px 0;
	color: var(--fb-green-soft);
	font-size: 13px;
	font-style: italic;
}

.fm-ob-groups-empty[hidden],
.fm-ob-variants-empty[hidden] {
	display: none !important;
}

/* Table wrap ? hidden until variants are generated */
.fm-ob-variants-table-wrap[hidden] {
	display: none !important;
}

/* Tab panels */
.fm-pd-panel {
	padding: 20px 20px 16px;
}

.fm-pd-panel__hint {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 0 0 16px;
}

/* Responsive: stack header on narrow screens */
@media (max-width: 540px) {
	.fm-pd-section__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
	}

	.fm-pd-section__title {
		margin-bottom: 8px;
	}

	.fm-pd-tab {
		padding: 8px 14px;
		font-size: 12px;
	}
}

/* =========================================================================
   Direct variant flow ? create page (fm-pd-simple / fm-pd-variable / fm-vt / fm-variant-block)
   ========================================================================= */

/* Simple state ? default product details */
.fm-pd-simple {
	padding: 20px 20px 16px;
}

.fm-pd-simple__hint {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 0 0 16px;
}

/* + Add variant button */
.fm-add-variant-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 16px;
	padding: 9px 18px;
	background: var(--fb-surface);
	border: 2px dashed var(--fb-border);
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.fm-add-variant-btn:hover {
	border-color: var(--fb-green);
	color: var(--fb-green);
	background: var(--fb-khaki);
}

.fm-add-variant-btn:disabled {
	opacity: 0.45;
	cursor: default;
}

/* Variable state wrapper */
.fm-pd-variable {
	padding: 20px 20px 16px;
}

/* Variation type selector */
.fm-vt-section {
	margin: 0 0 20px;
}

.fm-vt-section__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	margin: 0 0 8px;
}

.fm-vt-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fm-vt-btn {
	padding: 7px 14px;
	background: var(--fb-surface);
	border: 2px solid var(--fb-border);
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
	color: var(--fb-ink-soft);
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s, background 0.15s;
	white-space: nowrap;
}

.fm-vt-btn:hover {
	border-color: var(--fb-green);
	color: var(--fb-green);
	background: var(--fb-khaki);
}

.fm-vt-btn--active {
	border-color: var(--fb-green);
	color: var(--fb-green);
	background: var(--fb-khaki);
	font-weight: 700;
}

.fm-vt-btn--custom {
	border-style: dashed;
}

.fm-vt-custom-wrap {
	margin-top: 10px;
}

.fm-vt-custom-input {
	width: 100%;
	max-width: 280px;
	padding: 8px 12px;
	border: 1px solid var(--fb-border-strong);
	border-radius: 7px;
	font-size: 13px;
	color: var(--fb-ink-soft);
}

.fm-vt-custom-input:focus {
	outline: none;
	border-color: var(--fb-green);
	box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

/* Variant block cards */
.fm-variant-blocks {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0 0 16px;
}

.fm-variant-block {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	overflow: hidden;
}

.fm-variant-block__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	background: var(--fb-sand);
	border-bottom: 1px solid var(--fb-border);
}

.fm-variant-block__number {
	font-size: 13px;
	font-weight: 700;
	color: var(--fb-ink-soft);
}

.fm-variant-block__remove-btn {
	background: none;
	border: none;
	font-size: 12px;
	color: var(--fb-danger);
	cursor: pointer;
	padding: 3px 8px;
	border-radius: 5px;
	transition: background 0.12s;
}

.fm-variant-block__remove-btn:hover {
	background: rgba(248,113,113,0.14);
}

.fm-variant-block__fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 16px;
	padding: 14px 16px;
}

.fm-variant-block__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.fm-variant-block__field:first-child {
	grid-column: 1 / -1;
}

.fm-variant-block__label {
	font-size: 12px;
	font-weight: 600;
	color: var(--fb-ink-soft);
}

.fm-variant-block__input {
	padding: 8px 10px;
	border: 1px solid var(--fb-border-strong);
	border-radius: 7px;
	font-size: 13px;
	color: var(--fb-ink-soft);
	background: var(--fb-surface);
	width: 100%;
	box-sizing: border-box;
}

.fm-variant-block__input:focus {
	outline: none;
	border-color: var(--fb-green);
	box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.fm-variant-block__input--num {
	max-width: 140px;
}

/* + Add another variant */
.fm-add-another-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 18px;
	background: var(--fb-surface);
	border: 2px dashed var(--fb-border);
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.fm-add-another-btn:hover {
	border-color: var(--fb-green);
	color: var(--fb-green);
	background: var(--fb-khaki);
}

@media (max-width: 540px) {
	.fm-variant-block__fields {
		grid-template-columns: 1fr;
	}

	.fm-variant-block__input--num {
		max-width: 100%;
	}
}

/* =========================================================================
   Multi-option variant builder ? create page (option groups + combination cards)
   ========================================================================= */

/* Option groups container */
.fm-option-groups {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 4px;
}

/* Individual option group panel */
.fm-option-group-panel {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 16px;
}

.fm-option-group-panel__type-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	margin: 0 0 10px;
}

/* Values section */
.fm-option-group-panel__values-section {
	margin-top: 14px;
}

.fm-option-group-panel__values-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	margin: 0 0 6px;
}

.fm-option-group-panel__values-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 8px;
}

/* Individual value row */
.fm-option-value-row {
	display: flex;
	align-items: center;
	gap: 6px;
}

.fm-option-value-row__input {
	flex: 1;
	padding: 7px 10px;
	border: 1px solid var(--fb-border-strong);
	border-radius: 6px;
	font-size: 13px;
	color: var(--fb-ink-soft);
	background: var(--fb-surface);
	max-width: 280px;
}

.fm-option-value-row__input:focus {
	outline: none;
	border-color: var(--fb-green);
	box-shadow: 0 0 0 2px rgba(43,108,176,0.15);
}

.fm-option-value-row__remove {
	background: none;
	border: 1px solid var(--fb-border);
	border-radius: 4px;
	font-size: 15px;
	line-height: 1;
	color: var(--fb-green-soft);
	padding: 4px 7px;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}

.fm-option-value-row__remove:hover {
	background: rgba(248,113,113,0.14);
	border-color: rgba(248,113,113,0.35);
	color: var(--fb-danger);
}

/* + Add value button */
.fm-add-value-btn {
	background: none;
	border: 1px dashed var(--fb-border-strong);
	border-radius: 6px;
	font-size: 12px;
	color: var(--fb-green-soft);
	padding: 5px 10px;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
	margin-top: 4px;
	display: inline-flex;
	align-items: center;
}

.fm-add-value-btn:hover {
	border-color: var(--fb-green);
	color: var(--fb-green);
}

/* Panel controls row (Add another option type) */
.fm-option-group-panel__controls {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--fb-border);
}

.fm-add-option-group-btn {
	background: none;
	border: 1px solid var(--fb-border-strong);
	border-radius: 6px;
	font-size: 12px;
	color: var(--fb-ink-soft);
	padding: 6px 12px;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
}

.fm-add-option-group-btn:hover {
	border-color: var(--fb-green);
	color: var(--fb-green);
}

/* Create combinations button */
.fm-generate-wrap {
	margin: 12px 0 16px;
}

.fm-generate-combinations-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 18px;
	background: var(--fb-green);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
}

.fm-generate-combinations-btn:hover {
	background: var(--fb-blue);
}

/* Variant combination cards */
.fm-variant-cards {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 4px;
}

.fm-variant-card {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 14px 16px;
}

.fm-variant-card__header {
	margin-bottom: 12px;
}

.fm-variant-card__label {
	font-size: 14px;
	font-weight: 700;
	color: var(--fb-ink-soft);
}

.fm-variant-card__fields {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 10px;
	margin-bottom: 12px;
}

.fm-variant-card__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.fm-variant-card__field-label {
	font-size: 11px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.fm-variant-card__input {
	padding: 7px 10px;
	border: 1px solid var(--fb-border-strong);
	border-radius: 6px;
	font-size: 13px;
	color: var(--fb-ink-soft);
	background: var(--fb-surface);
}

.fm-variant-card__input:focus {
	outline: none;
	border-color: var(--fb-green);
	box-shadow: 0 0 0 2px rgba(43,108,176,0.15);
}

.fm-variant-card__input--num {
	max-width: 110px;
}

/* Variant image zone */
.fm-variant-card__image-zone {
	border-top: 1px solid var(--fb-sand);
	padding-top: 10px;
}

.fm-variant-card__image-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
	gap: 8px;
	margin-bottom: 8px;
}

.fm-variant-card__image-trigger {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 12px;
	background: var(--fb-sand);
	border: 1px dashed var(--fb-border);
	border-radius: 6px;
	font-size: 12px;
	color: var(--fb-ink-soft);
	cursor: pointer;
	user-select: none;
	transition: background 0.15s, border-color 0.15s;
}

.fm-variant-card__image-trigger:hover {
	background: var(--fb-border);
	border-color: var(--fb-green);
	color: var(--fb-green);
}

.fm-variant-card__image-trigger-icon {
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
}

.fm-variant-card__file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
}

.fm-variant-card__image-preview {
	margin-top: 8px;
}

.fm-variant-card__image-thumb-wrap {
	position: relative;
	display: inline-block;
}

.fm-variant-card__image-thumb {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid var(--fb-border);
	display: block;
}

.fm-variant-card__image-remove {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 20px;
	height: 20px;
	background: var(--fb-danger);
	color: #fff;
	border: none;
	border-radius: 50%;
	font-size: 12px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: background 0.15s;
}

.fm-variant-card__image-remove:hover {
	background: var(--fb-danger);
}

@media (max-width: 600px) {
	.fm-variant-card__fields {
		grid-template-columns: 1fr 1fr;
	}

	.fm-variant-card__input--num {
		max-width: 100%;
	}
}

/* =========================================================================
   Proper variable product option builder ? create page (fm-ob-* namespace)
   ========================================================================= */

.fm-ob-section {
	margin: 0 0 20px;
}

.fm-ob-section__heading {
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	margin: 0 0 6px;
}

.fm-ob-section__hint {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 6px 0 0;
	min-height: 18px;
}

/* Preset option buttons */
.fm-ob-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.fm-ob-preset-btn {
	padding: 7px 14px;
	border: 2px solid var(--fb-border);
	border-radius: 20px;
	background: var(--fb-surface);
	color: var(--fb-ink-soft);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 0.12s, background 0.12s, color 0.12s;
	white-space: nowrap;
}

.fm-ob-preset-btn:hover {
	border-color: var(--fb-green);
	background: var(--fb-khaki);
	color: var(--fb-green);
}

.fm-ob-preset-btn--custom {
	border-style: dashed;
	color: var(--fb-ink-soft);
}

.fm-ob-preset-btn--custom:hover {
	border-color: var(--fb-green);
	border-style: dashed;
	background: var(--fb-khaki);
	color: var(--fb-green);
}

/* Option group cards */
.fm-ob-groups-section {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.fm-ob-groups-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fm-ob-group {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	overflow: hidden;
}

.fm-ob-group__header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background: var(--fb-sand);
	border-bottom: 1px solid var(--fb-border);
}

.fm-ob-group__name-input {
	flex: 1;
	padding: 7px 10px;
	border: 1px solid var(--fb-border);
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	background: var(--fb-surface);
	box-sizing: border-box;
}

.fm-ob-group__name-input:focus {
	outline: none;
	border-color: var(--fb-green);
	box-shadow: 0 0 0 2px rgba(43, 108, 176, 0.12);
}

.fm-ob-group__remove-btn {
	background: none;
	border: none;
	color: var(--fb-danger);
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
	white-space: nowrap;
	transition: background 0.12s;
	flex-shrink: 0;
}

.fm-ob-group__remove-btn:hover {
	background: rgba(248,113,113,0.14);
}

.fm-ob-group__values {
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Added value chips */
.fm-ob-group__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	min-height: 10px;
}

.fm-ob-value-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 8px 4px 10px;
	background: var(--fb-green);
	color: #fff;
	border-radius: 14px;
	font-size: 13px;
	font-weight: 500;
}

.fm-ob-value-chip__label {
	line-height: 1;
}

.fm-ob-value-chip__remove {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.8);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	padding: 0 2px;
	border-radius: 50%;
	transition: color 0.1s;
}

.fm-ob-value-chip__remove:hover {
	color: #fff;
}

/* Suggestion chips */
.fm-ob-group__suggestions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.fm-ob-group__suggest-label {
	font-size: 12px;
	color: var(--fb-green-soft);
	white-space: nowrap;
}

.fm-ob-suggest-chip {
	padding: 4px 10px;
	border: 1px dashed var(--fb-border);
	border-radius: 12px;
	background: var(--fb-surface);
	color: var(--fb-ink-soft);
	font-size: 12px;
	cursor: pointer;
	transition: border-color 0.1s, color 0.1s, background 0.1s;
}

.fm-ob-suggest-chip:hover:not(:disabled) {
	border-color: var(--fb-green);
	color: var(--fb-green);
	background: var(--fb-khaki);
}

.fm-ob-suggest-chip--added,
.fm-ob-suggest-chip:disabled {
	opacity: 0.35;
	cursor: default;
}

/* Add value input row */
.fm-ob-group__add-row {
	display: flex;
	gap: 8px;
	align-items: center;
}

.fm-ob-group__add-input {
	flex: 1;
	padding: 7px 10px;
	border: 1px solid var(--fb-border);
	border-radius: 6px;
	font-size: 13px;
	color: var(--fb-ink-soft);
	background: var(--fb-surface);
	box-sizing: border-box;
}

.fm-ob-group__add-input:focus {
	outline: none;
	border-color: var(--fb-green);
	box-shadow: 0 0 0 2px rgba(43, 108, 176, 0.12);
}

.fm-ob-group__add-value-btn {
	padding: 7px 14px;
	background: var(--fb-blue);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.12s;
	flex-shrink: 0;
}

.fm-ob-group__add-value-btn:hover {
	background: var(--fb-blue-hover);
}

/* Generate variants button */
.fm-ob-section--generate {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding-top: 4px;
}

.fm-ob-generate-btn {
	padding: 10px 22px;
	background: var(--fb-green);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.12s;
}

.fm-ob-generate-btn:hover {
	background: var(--fb-blue);
}

/* Variant table */
.fm-ob-section--variants {
	padding-top: 4px;
}

.fm-ob-variants-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	margin-top: 10px;
}

.fm-ob-variants-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.fm-ob-variants-table__th {
	padding: 9px 12px;
	background: var(--fb-sand);
	text-align: left;
	font-size: 11px;
	font-weight: 600;
	color: var(--fb-green-soft);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-bottom: 1px solid var(--fb-border);
	white-space: nowrap;
}

.fm-ob-variants-table__tr:nth-child(even) {
	background: var(--fb-surface);
}

.fm-ob-variants-table__td {
	padding: 8px 10px;
	border-bottom: 1px solid var(--fb-border);
	vertical-align: middle;
}

.fm-ob-variants-table__tr:last-child .fm-ob-variants-table__td {
	border-bottom: none;
}

.fm-ob-variants-table__td--label {
	font-weight: 600;
	color: var(--fb-ink-soft);
	white-space: nowrap;
	padding-left: 12px;
}

.fm-ob-variants-table__input {
	width: 100%;
	min-width: 90px;
	padding: 6px 8px;
	border: 1px solid var(--fb-border);
	border-radius: 5px;
	font-size: 13px;
	color: var(--fb-ink-soft);
	background: var(--fb-surface);
	box-sizing: border-box;
}

.fm-ob-variants-table__input:focus {
	outline: none;
	border-color: var(--fb-green);
	box-shadow: 0 0 0 2px rgba(43, 108, 176, 0.12);
}

.fm-ob-variants-table__input--num {
	min-width: 75px;
	-moz-appearance: textfield;
}

.fm-ob-variants-table__input--num::-webkit-inner-spin-button,
.fm-ob-variants-table__input--num::-webkit-outer-spin-button {
	opacity: 0.5;
}

/* Responsive: option builder on narrow screens */
@media (max-width: 600px) {
	.fm-ob-presets {
		gap: 6px;
	}

	.fm-ob-preset-btn {
		padding: 6px 11px;
		font-size: 12px;
	}

	.fm-ob-group__add-row {
		flex-wrap: wrap;
	}

	.fm-ob-group__add-value-btn {
		width: 100%;
		text-align: center;
	}

	.fm-ob-variants-table__th,
	.fm-ob-variants-table__td {
		padding: 7px 8px;
	}

	.fm-ob-variants-table__td--label {
		padding-left: 8px;
	}
}

/* ==========================================================================
   Add product ? image picker (Step 1 media upload)
   ========================================================================== */

.fm-image-picker {
	margin: 0 0 24px;
}

.fm-image-picker__header {
	margin-bottom: 10px;
}

.fm-image-picker__title {
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-ink);
	margin: 0 0 4px;
}

.fm-image-picker__hint {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 0;
}

.fm-image-picker__drop-zone {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
	border: 2px dashed var(--fb-border);
	border-radius: 10px;
	background: var(--fb-surface);
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
	outline: none;
}

.fm-image-picker__drop-zone:hover,
.fm-image-picker__drop-zone:focus {
	border-color: var(--fb-green-soft);
	background: var(--fb-accent-bg);
}

.fm-image-picker__drop-zone--over {
	border-color: var(--fb-green-soft) !important;
	background: var(--fb-sand) !important;
}

.fm-image-picker__drop-inner {
	text-align: center;
	padding: 20px;
}

.fm-image-picker__icon {
	font-size: 28px;
	color: var(--fb-green-soft);
	line-height: 1;
	margin-bottom: 6px;
}

.fm-image-picker__drop-text {
	font-size: 14px;
	font-weight: 500;
	color: var(--fb-ink-soft);
	margin: 0 0 4px;
}

.fm-image-picker__drop-types {
	font-size: 12px;
	color: var(--fb-green-soft);
	margin: 0;
}

.fm-image-picker__file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	clip: rect(0, 0, 0, 0);
	pointer-events: none;
}

.fm-image-picker__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 10px;
	margin-top: 12px;
}

.fm-image-picker__preview-item {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--fb-border);
	background: var(--fb-accent-bg);
}

.fm-image-picker__preview-img {
	display: block;
	width: 100%;
	height: 90px;
	object-fit: cover;
}

.fm-image-picker__preview-thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 6px;
}

.fm-image-picker__remove-btn {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: none;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.1s;
}

.fm-image-picker__remove-btn:hover {
	background: rgba(0, 0, 0, 0.8);
}

.fm-image-picker__preview-name {
	font-size: 10px;
	color: var(--fb-green-soft);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 4px 6px;
	margin: 0;
}

/* Main image badge ? shown on first thumbnail */
.fm-image-picker__main-badge {
	position: absolute;
	bottom: 26px;
	left: 5px;
	background: var(--fb-green);
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 2px 6px;
	border-radius: 4px;
	pointer-events: none;
}

/* Move left/right buttons row */
.fm-image-picker__move-row {
	display: flex;
	justify-content: center;
	gap: 4px;
	padding: 2px 4px 4px;
}

.fm-image-picker__move-btn {
	flex: 1;
	padding: 2px 6px;
	border: 1px solid var(--fb-border);
	border-radius: 4px;
	background: var(--fb-surface);
	color: var(--fb-ink-soft);
	font-size: 12px;
	cursor: pointer;
	transition: background 0.12s, border-color 0.12s;
}

.fm-image-picker__move-btn:hover {
	background: var(--fb-khaki);
	border-color: rgba(124,192,255,0.30);
	color: var(--fb-green);
}

/* ==========================================================================
   Add product ? custom variant type label
   ========================================================================== */

.fm-vt-custom-wrap__label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	margin-bottom: 6px;
}

/* ==========================================================================
   Add product ? variant preview block in Step 2
   ========================================================================== */

.fm-preview-variants {
	margin: 12px 0;
	padding: 10px 12px;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
}

.fm-preview-variants__label {
	font-size: 12px;
	font-weight: 600;
	color: var(--fb-green-soft);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 6px;
}

.fm-preview-variants__list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.fm-preview-variants__row {
	font-size: 13px;
	color: var(--fb-ink-soft);
	padding: 4px 0;
	border-bottom: 1px solid var(--fb-border);
}

.fm-preview-variants__row:last-child {
	border-bottom: none;
}

/* ==========================================================================
   Add product ? action-first variant builder (Phase 10 UX rework)
   ========================================================================== */

/* Type chooser ? shown after + Add variant, hidden once type chosen */
.fm-type-chooser {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 18px 18px 16px;
	margin-bottom: 14px;
}

.fm-sub-type-chooser {
	background: var(--fb-accent-bg);
	border: 1px solid rgba(124,192,255,0.30);
	border-radius: 8px;
	padding: 14px 14px 12px;
	margin: 12px 0;
}

.fm-type-chooser__question {
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	margin: 0 0 12px;
}

/* Variant builder ? revealed once type is chosen */
.fm-variant-builder {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.fm-variant-type-display {
	font-size: 13px;
	font-weight: 700;
	color: var(--fb-green);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 12px;
}

/* Top-level + Add another button */
.fm-add-another-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	padding: 8px 16px;
	background: var(--fb-surface);
	border: 2px dashed var(--fb-border);
	border-radius: 8px;
	color: var(--fb-ink-soft);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.fm-add-another-btn:hover {
	border-color: var(--fb-green);
	color: var(--fb-green);
	background: var(--fb-khaki);
}

/* Child-level + Add another button (inside grouping card) */
.fm-add-another-btn--child {
	margin: 10px 0 4px;
	font-size: 12px;
	padding: 6px 12px;
}

/* Final sellable variant card */
.fm-variant-card--final {
	border-left: 3px solid rgba(124,192,255,0.30);
}

/* Grouping card (parent with sub-variants) */
.fm-variant-card--group {
	border-left: 3px solid var(--fb-border);
	background: var(--fb-surface);
}

.fm-variant-card__header--group {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 0;
}

.fm-variant-card__group-info {
	font-size: 11px;
	font-weight: 600;
	color: var(--fb-green-soft);
	background: var(--fb-sand);
	border-radius: 12px;
	padding: 2px 9px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Children container ? visually indented */
.fm-variant-card__children {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 14px 0 4px 16px;
	padding-left: 12px;
	border-left: 2px solid var(--fb-border);
}

/* Remove button (� top-right of header) */
.fm-variant-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.fm-variant-card__remove-btn {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 1px solid var(--fb-border);
	background: var(--fb-surface);
	color: var(--fb-green-soft);
	font-size: 14px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: background 0.1s, color 0.1s, border-color 0.1s;
}

.fm-variant-card__remove-btn:hover {
	background: rgba(248,113,113,0.14);
	color: var(--fb-danger);
	border-color: rgba(248,113,113,0.35);
}

/* Value field row */
.fm-variant-card__field--value {
	margin-bottom: 10px;
}

.fm-variant-card__value-input {
	width: 100%;
	max-width: 260px;
}

/* Sub-variant button */
.fm-variant-card__sub-variant-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 12px;
	padding: 6px 12px;
	background: transparent;
	border: 1px dashed var(--fb-border);
	border-radius: 6px;
	color: var(--fb-ink-soft);
	font-size: 12px;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
}

.fm-variant-card__sub-variant-btn:hover {
	border-color: rgba(124,192,255,0.30);
	color: var(--fb-green);
}

/* "Use this" confirm button for custom type */
.fm-vt-btn--confirm {
	margin-left: 8px;
	background: var(--fb-khaki);
	border-color: rgba(124,192,255,0.30);
	color: var(--fb-green);
}

.fm-vt-btn--confirm:hover {
	background: var(--fb-accent-bg);
	border-color: var(--fb-green);
}

@media (max-width: 600px) {
	.fm-variant-card__children {
		margin-left: 8px;
		padding-left: 8px;
	}

	.fm-variant-card__value-input {
		max-width: 100%;
	}

	.fm-type-chooser,
	.fm-sub-type-chooser {
		padding: 12px;
	}
}


/* =========================================================================
   Variant-managed product summary (shown instead of SKU/price/stock on edit)
   ========================================================================= */
.fm-variant-managed-summary {
	background: var(--fb-sand);
	border: 1px solid rgba(124,192,255,0.30);
	border-radius: 6px;
	padding: 12px 16px;
	margin: 0 0 16px;
}

.fm-variant-managed-summary__label {
	font-weight: 700;
	color: var(--fb-green);
	margin: 0 0 4px;
	font-size: 14px;
}

.fm-variant-managed-summary__line {
	color: var(--fb-ink-soft);
	margin: 0 0 4px;
	font-size: 13px;
}

.fm-variant-managed-summary__stock {
	color: var(--fb-ink-soft);
	margin: 8px 0 0;
	font-size: 13px;
}

/* Read-only per-variant breakdown shown inside the Pricing & stock card. */
.fm-variant-summary-table {
	width: 100%;
	border-collapse: collapse;
	margin: 10px 0 4px;
	font-size: 13px;
}

.fm-variant-summary-table th,
.fm-variant-summary-table td {
	text-align: left;
	padding: 6px 10px;
	border-bottom: 1px solid var(--fb-border);
}

.fm-variant-summary-table thead th {
	color: var(--fb-ink-soft);
	font-weight: 600;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.fm-variant-summary-table__name {
	color: var(--fb-ink);
}

.fm-variant-summary-table__col-price,
.fm-variant-summary-table__price,
.fm-variant-summary-table__col-stock,
.fm-variant-summary-table__stock {
	text-align: right;
	white-space: nowrap;
}

.fm-variant-summary-table__price,
.fm-variant-summary-table__stock {
	color: var(--fb-ink);
	font-variant-numeric: tabular-nums;
}

.fm-variant-summary-table__stock {
	font-weight: 600;
}

.fm-variant-summary-table tbody tr:last-child th,
.fm-variant-summary-table tbody tr:last-child td {
	border-bottom: none;
}

.fm-variant-summary-table__stock--out {
	color: var(--fb-danger);
}

.fm-variant-summary-table__stock--low {
	color: var(--fb-azure);
}

.fm-variant-managed-summary__edit-link {
	display: inline-block;
	margin-top: 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-azure);
	text-decoration: none;
}

.fm-variant-managed-summary__edit-link:hover {
	text-decoration: underline;
}


/* =========================================================================
   "Select options to check availability" pending state for variable products
   ========================================================================= */
.forces-marketplace-product-detail__stock-badge--pending {
	background: var(--fb-sand);
	color: var(--fb-green);
}

.fm-preview-page__stock-badge--pending {
	background: var(--fb-accent-bg);
	color: var(--fb-azure);
}


/* =========================================================================
   Phase 21 ? Shared Variant Group Media Sets
   ========================================================================= */

/* Group media block on grouping cards */
.fm-group-media {
	margin: 10px 0 12px;
	padding: 12px 14px;
	background: var(--fb-accent-bg);
	border: 1px solid rgba(124,192,255,0.30);
	border-radius: 6px;
}

.fm-group-media__title {
	margin: 0 0 2px;
	font-weight: 600;
	font-size: 13px;
	color: var(--fb-green);
}

.fm-group-media__hint {
	margin: 0 0 8px;
	font-size: 12px;
	color: var(--fb-ink-soft);
}

.fm-group-media__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.fm-group-media__add-btn,
.fm-group-media__apply-btn {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	border: 1px solid;
	background: transparent;
	margin-right: 6px;
	margin-top: 2px;
}

.fm-group-media__add-btn {
	border-color: rgba(124,192,255,0.30);
	color: var(--fb-green);
}
.fm-group-media__add-btn:hover {
	background: var(--fb-sand);
}

.fm-group-media__apply-btn {
	border-color: var(--fb-success);
	color: var(--fb-success);
}
.fm-group-media__apply-btn:hover {
	background: rgba(74,222,128,0.14);
}

/* Child variant media mode section */
.fm-variant-card__media-mode {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 6px 0 4px;
}

.fm-use-group-media-btn {
	padding: 4px 10px;
	border: 1px solid rgba(124,192,255,0.30);
	border-radius: 4px;
	background: transparent;
	color: var(--fb-green);
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
}
.fm-use-group-media-btn:hover {
	background: var(--fb-sand);
}

.fm-group-media-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	background: var(--fb-sand);
	border: 1px solid rgba(124,192,255,0.30);
	border-radius: 12px;
	color: var(--fb-green);
	font-size: 12px;
	font-weight: 500;
}

.fm-use-custom-media-btn {
	padding: 3px 8px;
	border: none;
	background: transparent;
	color: var(--fb-green-soft);
	font-size: 11px;
	cursor: pointer;
	text-decoration: underline;
}
.fm-use-custom-media-btn:hover {
	color: var(--fb-ink);
}

/* Edit page ? apply siblings button */
.fm-variant-row__group-media-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	margin-top: 4px;
	background: var(--fb-accent-bg);
	border: 1px solid rgba(124,192,255,0.30);
	border-radius: 5px;
}

.fm-apply-variant-media-btn {
	padding: 5px 12px;
	border: 1px solid var(--fb-success);
	border-radius: 4px;
	background: transparent;
	color: var(--fb-success);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
}
.fm-apply-variant-media-btn:hover {
	background: rgba(74,222,128,0.14);
}
.fm-apply-variant-media-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

.fm-apply-variant-media-btn__msg {
	font-size: 12px;
}
.fm-apply-variant-media-btn__msg--ok  { color: var(--fb-success); }
.fm-apply-variant-media-btn__msg--err { color: var(--fb-danger); }


/* =========================================================================
   Phase 20 ? Lightweight Seller Rich Text Editor
   ========================================================================= */

.fm-richtext {
	border: 1px solid var(--fb-border-strong);
	border-radius: 6px;
	overflow: hidden;
	background: var(--fb-surface);
}

.fm-richtext__toolbar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 2px;
	padding: 6px 8px;
	background: var(--fb-cream);
	border-bottom: 1px solid var(--fb-border);
}

.fm-richtext__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	padding: 4px 8px;
	border: 1px solid transparent;
	border-radius: 4px;
	background: transparent;
	color: var(--fb-ink-soft);
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.1s, border-color 0.1s, color 0.1s;
	white-space: nowrap;
}

.fm-richtext__button:hover {
	background: var(--fb-sand);
	border-color: var(--fb-border-strong);
}

.fm-richtext__button:focus-visible {
	outline: 2px solid rgba(124,192,255,0.30);
	outline-offset: 1px;
}

.fm-richtext__button.is-active {
	background: var(--fb-sand);
	border-color: rgba(124,192,255,0.30);
	color: var(--fb-green);
}

.fm-richtext__button--italic em {
	font-style: italic;
}

.fm-richtext__button--underline u {
	text-decoration: underline;
}

.fm-richtext__button--clear {
	color: var(--fb-green-soft);
	font-size: 12px;
}

.fm-richtext__sep {
	display: inline-block;
	width: 1px;
	height: 18px;
	background: var(--fb-border-strong);
	margin: 0 4px;
	vertical-align: middle;
}

.fm-richtext__editor {
	padding: 12px 14px;
	min-height: 140px;
	outline: none;
	font-size: 14px;
	line-height: 1.6;
	color: var(--fb-ink-soft);
}

.fm-richtext__editor:focus {
	box-shadow: inset 0 0 0 2px rgba(124,192,255,0.30);
}

.fm-richtext__editor:empty::before {
	content: attr(data-placeholder);
	color: var(--fb-green-soft);
	pointer-events: none;
}

.fm-richtext__editor ul,
.fm-richtext__editor ol {
	margin: 6px 0 6px 20px;
	padding-left: 4px;
}

.fm-richtext__editor li {
	margin-bottom: 2px;
}

.fm-richtext__editor p {
	margin: 0 0 8px;
}

.fm-richtext__editor p:last-child {
	margin-bottom: 0;
}

/* =========================================================================
   Phase 19 ? Safe Product and Variant Removal UX
   ========================================================================= */

/* Remove button on seller product card */
.fm-remove-product-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 12px;
	border: 1px solid var(--fb-danger);
	border-radius: 4px;
	background: transparent;
	color: var(--fb-danger);
	font-size: 13px;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}
.fm-remove-product-btn:hover,
.fm-remove-product-btn:focus-visible {
	background: var(--fb-danger);
	color: #fff;
	outline: 2px solid var(--fb-danger);
	outline-offset: 2px;
}

/* Remove variant button inside variant row */
.fm-variant-row__remove-wrap {
	padding: 8px 0 4px;
	border-top: 1px solid var(--fb-sand);
	margin-top: 8px;
}
.fm-remove-variant-btn {
	padding: 4px 10px;
	border: 1px solid var(--fb-danger);
	border-radius: 4px;
	background: transparent;
	color: var(--fb-danger);
	font-size: 12px;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}
.fm-remove-variant-btn:hover,
.fm-remove-variant-btn:focus-visible {
	background: var(--fb-danger);
	color: #fff;
	outline: 2px solid var(--fb-danger);
	outline-offset: 2px;
}

/* Confirmation modal overlay */
.fm-remove-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.fm-remove-modal {
	background: var(--fb-surface);
	border-radius: 8px;
	padding: 28px 24px 24px;
	max-width: 440px;
	width: 100%;
	box-shadow: 0 8px 32px rgba(0,0,0,0.18);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.fm-remove-modal--open {
	opacity: 1;
	transform: translateY(0);
}

.fm-remove-modal__title {
	margin: 0 0 10px;
	font-size: 17px;
	font-weight: 600;
	color: var(--fb-ink);
}

.fm-remove-modal__body {
	margin: 0 0 20px;
	font-size: 14px;
	color: var(--fb-ink-soft);
	line-height: 1.55;
}

.fm-remove-modal__actions {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
}

.fm-remove-modal__cancel {
	padding: 8px 18px;
	border: 1px solid var(--fb-border-strong);
	border-radius: 4px;
	background: transparent;
	color: var(--fb-ink-soft);
	font-size: 14px;
	cursor: pointer;
}
.fm-remove-modal__cancel:hover {
	background: var(--fb-cream);
}

.fm-remove-modal__msg {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--fb-danger);
	min-height: 18px;
}

/* Hold-to-confirm button */
.fm-hold-confirm {
	position: relative;
	overflow: hidden;
	padding: 9px 20px;
	border: none;
	border-radius: 4px;
	background: var(--fb-danger);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
	touch-action: none;
	min-width: 150px;
}
.fm-hold-confirm:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.fm-hold-confirm__fill {
	position: absolute;
	inset: 0;
	background: var(--fb-danger);
	transform: scaleX(0);
	transform-origin: left center;
	pointer-events: none;
}

.fm-hold-confirm__label {
	position: relative;
	z-index: 1;
}

/* Removal animation */
.fm-is-removing {
	will-change: transform, opacity;
	animation: fm-card-remove 0.45s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

.fm-is-removed {
	display: none;
}

@keyframes fm-card-remove {
	0%   { opacity: 1; transform: scale(1); }
	60%  { opacity: 0.6; transform: scale(0.96) translateY(4px); }
	100% { opacity: 0; transform: scale(0.88) translateY(12px); }
}

/* Bin icon */
.fm-removal-bin {
	font-size: 26px;
	z-index: 99998;
	pointer-events: none;
	line-height: 1;
	transform: scale(0.7);
	transition: transform 0.2s ease;
}
.fm-removal-bin--pop {
	animation: fm-bin-pop 0.35s cubic-bezier(0.3, 1.5, 0.6, 1) forwards;
}

@keyframes fm-bin-pop {
	0%   { transform: scale(0.7); }
	60%  { transform: scale(1.25); }
	100% { transform: scale(1); }
}

/* No variants left warning */
.fm-no-variants-warning {
	padding: 10px 14px;
	background: rgba(245,158,11,0.16);
	border: 1px solid rgba(245,158,11,0.35);
	border-radius: 4px;
	color: #fbbf24;
	font-size: 13px;
	margin: 0 0 12px;
}

/* Reduced motion overrides */
@media (prefers-reduced-motion: reduce) {
	.fm-remove-modal,
	.fm-remove-modal--open {
		transition: none;
		opacity: 1;
		transform: none;
	}
	.fm-is-removing {
		animation: fm-card-fade 0.3s ease forwards;
	}
	.fm-removal-bin--pop {
		animation: none;
	}
	@keyframes fm-card-fade {
		from { opacity: 1; }
		to   { opacity: 0; height: 0; padding: 0; margin: 0; overflow: hidden; }
	}
}

/* =========================================================================
   Phase 22 ? Variant Media UI Polish
   ========================================================================= */

/* Shared compact thumbnail grid ? used for product, group, and variant images */
.fm-media-thumb-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: flex-start;
	margin-bottom: 8px;
}

/* Individual thumbnail cell */
.fm-media-thumb {
	position: relative;
	width: 88px;
	height: 88px;
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	background: var(--fb-surface);
	overflow: hidden;
	flex-shrink: 0;
}

.fm-media-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Badge (e.g. "Main") on first thumbnail */
.fm-media-thumb__badge {
	position: absolute;
	bottom: 4px;
	left: 4px;
	background: var(--fb-green);
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 2px 5px;
	border-radius: 4px;
	pointer-events: none;
	line-height: 1.2;
}

/* Remove � button ? top-right corner */
.fm-media-thumb__remove {
	position: absolute;
	top: 3px;
	right: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: none;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.1s;
}

.fm-media-thumb__remove:hover {
	background: rgba(0, 0, 0, 0.8);
}

/* Move ? ? row ? bottom of thumbnail */
.fm-media-thumb__move-row {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 2px;
	background: rgba(255, 255, 255, 0.88);
	padding: 2px 3px;
}

.fm-media-thumb__move-btn {
	flex: 1;
	padding: 1px 4px;
	border: 1px solid var(--fb-border);
	border-radius: 3px;
	background: var(--fb-surface);
	color: var(--fb-ink-soft);
	font-size: 11px;
	cursor: pointer;
	transition: background 0.12s;
	line-height: 1.2;
}

.fm-media-thumb__move-btn:hover {
	background: var(--fb-khaki);
	border-color: rgba(124,192,255,0.30);
	color: var(--fb-green);
}

/* Add images tile ? same size as thumbnails */
.fm-media-add-tile {
	width: 88px;
	height: 88px;
	border: 1.5px dashed rgba(124,192,255,0.30);
	border-radius: 10px;
	background: var(--fb-accent-bg);
	color: var(--fb-ink-soft);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
	padding: 0;
}

.fm-media-add-tile:hover {
	border-color: rgba(124,192,255,0.30);
	background: var(--fb-sand);
	color: var(--fb-green);
}

.fm-media-add-tile__icon {
	font-size: 26px;
	font-weight: 300;
	line-height: 1;
}

/* Group media card (replaces .fm-group-media panel) */
.fm-group-media-card {
	margin: 10px 0 12px;
	padding: 12px 14px 10px;
	background: var(--fb-accent-bg);
	border: 1px solid rgba(124,192,255,0.30);
	border-radius: 8px;
}

.fm-group-media-card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.fm-group-media-card__title {
	margin: 0 0 2px;
	font-weight: 600;
	font-size: 13px;
	color: var(--fb-green);
}

.fm-group-media-card__hint {
	margin: 0;
	font-size: 12px;
	color: var(--fb-ink-soft);
}

.fm-group-media-card__badge {
	flex-shrink: 0;
	display: inline-block;
	padding: 2px 8px;
	background: var(--fb-accent-bg);
	color: var(--fb-green);
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
	margin-top: 2px;
}

.fm-group-media-card__apply-btn {
	display: inline-block;
	padding: 5px 12px;
	border: 1px solid var(--fb-success);
	border-radius: 4px;
	background: transparent;
	color: var(--fb-success);
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	margin-top: 4px;
	transition: background 0.12s;
}

.fm-group-media-card__apply-btn:hover {
	background: rgba(74,222,128,0.14);
}

/* Product-level preview grid */
#fm-image-picker-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: flex-start;
	margin-top: 10px;
}

/* Phase 23 ? Review Resubmission */
.fm-rejected-banner {
	margin: 0 0 20px;
	padding: 16px 18px;
	background: rgba(245,158,11,0.16);
	border: 1.5px solid rgba(245,158,11,0.35);
	border-radius: 8px;
}
.fm-rejected-banner__title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
	color: #fbbf24;
}
.fm-rejected-banner__body {
	margin: 0 0 8px;
	font-size: 13px;
	color: #fbbf24;
}
.fm-rejected-banner__reason-label {
	margin: 0 0 2px;
	font-size: 12px;
	font-weight: 600;
	color: #fbbf24;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.fm-rejected-banner__reason {
	margin: 0 0 10px;
	padding: 8px 12px;
	background: rgba(245,158,11,0.16);
	border-left: 3px solid rgba(245,158,11,0.35);
	border-radius: 4px;
	font-size: 13px;
	color: #fbbf24;
	white-space: pre-wrap;
}
.fm-rejected-banner__cta {
	margin: 0;
	font-size: 13px;
	color: #fbbf24;
	font-style: italic;
}
.fm-resubmit-notice {
	margin: 10px 0 4px;
	padding: 8px 12px;
	background: var(--fb-accent-bg);
	border: 1px solid rgba(124,192,255,0.30);
	border-radius: 6px;
	font-size: 12px;
	color: var(--fb-green);
}
.fm-resubmit-notice p {
	margin: 0;
}
.fm-resubmit-btn {
	display: inline-block;
	padding: 10px 20px;
	background: var(--fb-green);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.12s;
	margin-top: 4px;
}
.fm-resubmit-btn:hover {
	background: var(--fb-blue);
}

/* Phase 23 ? Variant Quick-Fill Panel */
.fm-variant-quickfill {
	margin: 0 0 18px;
	padding: 14px 16px 12px;
	background: var(--fb-accent-bg);
	border: 1px solid rgba(124,192,255,0.30);
	border-radius: 8px;
}
.fm-variant-quickfill__title {
	margin: 0 0 2px;
	font-size: 13px;
	font-weight: 700;
	color: var(--fb-green);
}
.fm-variant-quickfill__hint {
	margin: 0 0 12px;
	font-size: 12px;
	color: var(--fb-ink-soft);
}
.fm-variant-quickfill__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	align-items: flex-end;
}
.fm-variant-quickfill__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 160px;
}
.fm-variant-quickfill__field label {
	font-size: 11px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.fm-variant-quickfill__field input[type="text"],
.fm-variant-quickfill__field input[type="number"] {
	padding: 5px 8px;
	border: 1px solid rgba(124,192,255,0.30);
	border-radius: 5px;
	font-size: 13px;
	background: var(--fb-surface);
	color: var(--fb-ink);
	width: 100%;
	box-sizing: border-box;
}
.fm-variant-quickfill__row {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: 2px;
}
.fm-variant-quickfill__checkbox-label {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: var(--fb-ink-soft);
	cursor: pointer;
	margin-top: 4px;
}
.fm-variant-quickfill__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.fm-variant-quickfill__btn {
	padding: 5px 12px;
	background: var(--fb-green);
	color: #fff;
	border: none;
	border-radius: 5px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.12s;
}
.fm-variant-quickfill__btn:hover {
	background: var(--fb-blue);
}
.fm-variant-quickfill__message {
	margin-top: 8px;
	font-size: 12px;
	padding: 5px 10px;
	border-radius: 4px;
	display: none;
}
.fm-variant-quickfill__message--success {
	display: block;
	background: rgba(74,222,128,0.14);
	color: var(--fb-success);
	border: 1px solid rgba(74,222,128,0.35);
}
.fm-variant-quickfill__message--error {
	display: block;
	background: rgba(248,113,113,0.14);
	color: var(--fb-danger);
	border: 1px solid rgba(248,113,113,0.35);
}

/* Phase 27 ? Automatic SKU Generation */
.fm-sku-helper {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 5px;
	flex-wrap: wrap;
}
.fm-sku-regen-btn {
	padding: 4px 10px;
	background: var(--fb-sand);
	color: var(--fb-green);
	border: 1px solid rgba(124,192,255,0.30);
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.12s;
	white-space: nowrap;
}
.fm-sku-regen-btn:hover {
	background: var(--fb-accent-bg);
}
.fm-sku-helper-text {
	font-size: 11px;
	color: var(--fb-green-soft);
}
.fm-sku-helper-text--manual {
	color: var(--fb-green-soft);
	font-style: italic;
}
.fm-sku-qf-use-name-btn {
	padding: 4px 10px;
	background: var(--fb-sand);
	color: var(--fb-green);
	border: 1px solid rgba(124,192,255,0.30);
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.12s;
	white-space: nowrap;
}
.fm-sku-qf-use-name-btn:hover {
	background: var(--fb-accent-bg);
}

/* =========================================================================
   CSV Product Import Wizard (Phase 28B)
   ========================================================================= */

.fm-import-wizard {
	max-width: 940px;
	margin: 0 auto;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 16px;
	box-shadow: var(--fb-shadow-sm);
	padding: clamp(16px, 2.4vw, 26px) clamp(18px, 3vw, 36px) clamp(18px, 2.4vw, 28px);
}

/* The upload step is a single focal task, so keep its content in a comfortable
   centred column even though the wizard is wide for the data-heavy preview. */
.fm-import-step[data-step="upload"] {
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
}

.fm-import-nav {
	display: flex;
	justify-content: center;
	gap: 4px;
	margin-bottom: 16px;
	list-style: none;
	padding: 0;
}

@media (max-width: 600px) {
	.fm-import-wizard {
		padding: 20px 18px 24px;
	}
}

.fm-import-nav__item {
	padding: 6px 16px;
	border-radius: 4px;
	background: var(--fb-sand);
	color: var(--fb-green-soft);
	font-size: 13px;
	font-weight: 600;
}

.fm-import-nav__item--active {
	background: var(--fb-green);
	color: #fff;
}

.fm-import-step {
	display: none;
}

.fm-import-step--active {
	display: block;
}

.fm-import-dropzone {
	max-width: none;
	border: 2px dashed rgba(124,192,255,0.45);
	border-radius: 14px;
	padding: 30px 24px;
	text-align: center;
	cursor: pointer;
	background: var(--fb-accent-bg);
	transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
	margin: 0 auto 12px;
}

.fm-import-dropzone:hover {
	border-color: var(--fb-green);
	background: var(--fb-sand);
	transform: translateY(-1px);
	box-shadow: var(--fb-shadow-sm);
}

.fm-import-dropzone--hover {
	border-color: var(--fb-green);
	background: var(--fb-sand);
}

@media (max-width: 600px) {
	.fm-import-dropzone {
		max-width: none;
	}
}

.fm-import-dropzone__icon {
	font-size: 34px;
	margin-bottom: 6px;
	display: block;
}

.fm-import-dropzone__label {
	color: var(--fb-ink-soft);
	font-size: 14px;
}

.fm-import-dropzone input[type="file"] {
	display: none;
}

.fm-import-btn {
	display: inline-block;
	padding: 9px 20px;
	border-radius: 5px;
	border: none;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.12s;
}

.fm-import-btn--primary {
	background: var(--fb-green);
	color: #fff;
}

.fm-import-btn--primary:hover {
	background: var(--fb-blue);
}

.fm-import-btn--secondary {
	background: var(--fb-sand);
	color: var(--fb-ink-soft);
}

.fm-import-btn--secondary:hover {
	background: var(--fb-border);
}

.fm-import-btn:disabled {
	opacity: 0.55;
	cursor: default;
}

.fm-import-error {
	background: rgba(248,113,113,0.14);
	border: 1px solid rgba(248,113,113,0.35);
	color: var(--fb-danger);
	border-radius: 4px;
	padding: 10px 14px;
	margin-bottom: 14px;
	font-size: 13px;
	display: none;
}

.fm-import-source-type {
	font-size: 12px;
	color: var(--fb-green-soft);
	margin-bottom: 12px;
}

.fm-import-map-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

.fm-import-map-table th,
.fm-import-map-table td {
	padding: 8px 10px;
	text-align: left;
	border-bottom: 1px solid var(--fb-border);
	font-size: 13px;
}

.fm-import-col-select {
	width: 100%;
	padding: 5px 8px;
	border: 1px solid var(--fb-border-strong);
	border-radius: 4px;
	background: var(--fb-surface);
	font-size: 13px;
}

.fm-import-preview-stats,
.fm-import-result-stats {
	margin-bottom: 14px;
}

.fm-import-preview-table,
.fm-import-result-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 16px;
}

.fm-import-preview-table td,
.fm-import-result-table td {
	padding: 8px 10px;
	border-bottom: 1px solid var(--fb-border);
	font-size: 14px;
}

/* ---- Per-product import result rows (Phase: accurate row breakdown) ---- */

.fm-import-result-summary {
	font-size: 14px;
	color: var(--fb-ink-soft);
	margin-bottom: 16px;
}

.fm-import-result-summary strong {
	color: var(--fb-ink);
}

.fm-import-result-table {
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	overflow: hidden;
}

.fm-import-result-table th {
	padding: 10px;
	text-align: left;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--fb-ink-soft);
	background: var(--fb-sand);
	border-bottom: 1px solid var(--fb-border);
}

.fm-import-result-table tbody tr:last-child td {
	border-bottom: none;
}

.fm-import-result-table__name {
	font-weight: 600;
	color: var(--fb-ink);
}

.fm-import-result-table__status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.fm-import-result-table__status--created {
	background: var(--fb-accent-bg);
	color: var(--fb-azure);
}

.fm-import-result-table__status--updated {
	background: var(--fb-sand);
	color: var(--fb-ink-soft);
}

.fm-import-result-table__field {
	font-size: 13px;
	white-space: nowrap;
}

.fm-import-result-table__field--ok {
	color: var(--fb-success);
	font-weight: 600;
}

.fm-import-result-table__field--missing {
	color: #fbbf24;
	font-weight: 600;
}

.fm-import-result-table__field--muted {
	color: var(--fb-ink-soft);
}

.fm-import-result-note {
	font-size: 12px;
	color: var(--fb-ink-soft);
	margin-top: 10px;
}

/* "Next: assign variant photos" callout on the import result screen */
.fm-import-result-nextstep {
	margin: 14px 0;
	padding: 14px 16px;
	background: var(--fb-accent-bg);
	border: 1px solid rgba( 124, 192, 255, 0.30 );
	border-radius: 12px;
}

.fm-import-result-nextstep__title {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 700;
	color: var(--fb-ink);
}

.fm-import-result-nextstep p {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--fb-ink-soft);
}

.fm-import-result-nextstep__btn {
	display: inline-block;
	padding: 9px 16px;
	background: var(--fb-blue);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 8px;
	transition: opacity 0.15s ease;
}

.fm-import-result-nextstep__btn:hover {
	opacity: 0.88;
}

@media (max-width: 640px) {
	.fm-import-result-table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

.fm-import-warnings {
	background: rgba(245,158,11,0.16);
	border: 1px solid rgba(245,158,11,0.35);
	border-radius: 4px;
	padding: 12px 16px;
	margin-top: 12px;
	font-size: 13px;
}

.fm-import-warnings ul {
	margin: 6px 0 0 18px;
	padding: 0;
}

.fm-import-status-row {
	margin-bottom: 16px;
}

.fm-import-status-select {
	padding: 6px 10px;
	border: 1px solid var(--fb-border-strong);
	border-radius: 4px;
	font-size: 14px;
	background: var(--fb-surface);
}

.fm-import-actions {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-top: 8px;
}

/* =========================================================================
   Import Wizard UX1 ? auto-scan, scan state, preview cards, advanced mapping
   ========================================================================= */

/* Upload step */
.fm-import-intro {
	color: var(--fb-ink-soft);
	margin-bottom: 14px;
	font-size: 14px;
}

.fm-import-dropzone__title {
	display: block;
	font-size: 20px;
	font-weight: 700;
	color: var(--fb-ink);
	margin-bottom: 4px;
}

.fm-import-dropzone__sub {
	display: block;
	font-size: 13px;
	color: var(--fb-green-soft);
}

.fm-import-sources {
	font-size: 12px;
	color: var(--fb-green-soft);
	text-align: center;
	margin: -8px 0 16px;
}

.fm-import-vendor-field {
	margin-bottom: 14px;
	text-align: center;
}

.fm-import-vendor-field label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
}

.fm-import-vendor-field input[type="number"],
.fm-import-vendor-field select {
	padding: 9px 14px;
	border: 1px solid var(--fb-border-strong);
	border-radius: 6px;
	font-size: 14px;
	min-width: 260px;
	background: var(--fb-cream);
	text-align: center;
	text-align-last: center;
}

/* Ghost button */
.fm-import-btn--ghost {
	background: transparent;
	color: var(--fb-ink-soft);
	border: 1px solid var(--fb-border-strong);
}

.fm-import-btn--ghost:hover {
	background: var(--fb-cream);
}

/* Scan step */
.fm-import-scan {
	padding: 34px 24px;
	text-align: center;
}

.fm-import-scan__spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(124,192,255,0.30);
	border-top-color: var(--fb-green);
	border-radius: 50%;
	animation: fm-spin 0.8s linear infinite;
	margin: 0 auto 16px;
}

@keyframes fm-spin {
	to { transform: rotate(360deg); }
}

.fm-import-scan__messages {
	list-style: none;
	padding: 0;
	margin: 0;
	display: inline-block;
	text-align: left;
}

.fm-import-scan__msg {
	font-size: 14px;
	color: var(--fb-green-soft);
	padding: 4px 0;
}

.fm-import-scan__msg--active {
	color: var(--fb-green);
	font-weight: 600;
}

.fm-import-scan__msg--done {
	color: var(--fb-success);
}

.fm-import-scan__msg--done::before {
	content: '\2713\0020';
}

/* Preview header */
.fm-import-preview-header {
	margin-bottom: 14px;
}

.fm-import-preview-status {
	padding: 14px 18px;
	border-radius: 6px;
	margin-bottom: 8px;
	font-size: 14px;
	line-height: 1.5;
}

.fm-import-preview-status--good {
	background: rgba(74,222,128,0.14);
	border: 1px solid rgba(74,222,128,0.35);
	color: var(--fb-success);
}

.fm-import-preview-status--warn {
	background: rgba(245,158,11,0.16);
	border: 1px solid rgba(245,158,11,0.35);
	color: #fbbf24;
}

/* Preview summary cards */
.fm-import-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin-bottom: 14px;
}

@media (max-width: 600px) {
	.fm-import-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

.fm-import-card {
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 11px 12px;
	text-align: center;
}

.fm-import-card--warn {
	border-color: rgba(245,158,11,0.35);
	background: rgba(245,158,11,0.16);
}

.fm-import-card__num {
	display: block;
	font-size: 22px;
	font-weight: 700;
	color: var(--fb-ink-soft);
	line-height: 1;
	margin-bottom: 3px;
}

.fm-import-card__label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	margin-bottom: 2px;
}

.fm-import-card__sub {
	display: block;
	font-size: 11px;
	color: var(--fb-green-soft);
}

/* Warnings */
.fm-import-warn-list {
	margin-bottom: 16px;
}

.fm-import-warn-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 10px 14px;
	background: rgba(245,158,11,0.16);
	border: 1px solid rgba(245,158,11,0.35);
	border-radius: 5px;
	margin-bottom: 6px;
	font-size: 13px;
	color: #fbbf24;
	line-height: 1.4;
}

.fm-import-warn-icon {
	flex-shrink: 0;
}

.fm-import-warn-list--result .fm-import-warn-item {
	background: rgba(248,113,113,0.14);
	border-color: rgba(248,113,113,0.35);
	color: var(--fb-danger);
}

/* Advanced mapping accordion */
.fm-import-advanced {
	margin: 14px 0 12px;
	border: 1px solid var(--fb-border);
	border-radius: 6px;
	overflow: hidden;
}

.fm-import-advanced__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: var(--fb-cream);
	border: none;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	text-align: left;
}

.fm-import-advanced__toggle:hover {
	background: var(--fb-sand);
}

.fm-import-advanced__arrow {
	font-size: 11px;
	color: var(--fb-green-soft);
	transition: transform 0.2s;
}

.fm-import-advanced__toggle[aria-expanded="true"] .fm-import-advanced__arrow {
	transform: rotate(180deg);
}

.fm-import-advanced__body {
	padding: 16px;
	border-top: 1px solid var(--fb-border);
}

.fm-import-advanced__help {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin-bottom: 12px;
}

.fm-import-col-hint {
	color: var(--fb-green-soft);
	font-weight: 400;
}

/* Result cards */
.fm-import-result-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: 14px;
}

@media (max-width: 500px) {
	.fm-import-result-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

.fm-import-result-card {
	background: rgba(74,222,128,0.14);
	border: 1px solid rgba(74,222,128,0.35);
	border-radius: 8px;
	padding: 11px 12px;
	text-align: center;
}

.fm-import-result-card__num {
	display: block;
	font-size: 22px;
	font-weight: 700;
	color: var(--fb-success);
	line-height: 1;
	margin-bottom: 4px;
}

.fm-import-result-card__label {
	display: block;
	font-size: 12px;
	color: var(--fb-ink-soft);
}

/* Mobile responsive */
@media (max-width: 480px) {
	.fm-import-actions {
		flex-direction: column;
		align-items: stretch;
	}
	.fm-import-actions .fm-import-btn,
	.fm-import-actions a.fm-import-btn {
		width: 100%;
		text-align: center;
	}
	.fm-import-map-table {
		font-size: 12px;
	}
	.fm-import-col-select {
		min-width: 0;
		width: 100%;
	}
}

/* =============================================================================
   Phase 28B-UX2 ? Dreamy Import Experience Polish
   ============================================================================= */

/* Hero (upload step) */
.fm-import-hero {
	text-align: center;
	padding: 0;
	margin-bottom: 16px;
}

.fm-import-hero__title {
	font-size: 20px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 4px;
}

.fm-import-hero__sub {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 0 auto;
	max-width: 440px;
}

/* Secondary reassurance row — sits below the dropzone so it never pushes it down */
.fm-import-meta {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--fb-border);
}

/* Benefit pills — demoted to a compact, muted row */
.fm-import-benefits {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.fm-import-benefit {
	display: flex;
	align-items: center;
	gap: 5px;
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	font-size: 12px;
	color: var(--fb-green-soft);
}

.fm-import-benefit__icon {
	font-size: 13px;
	opacity: 0.85;
}

/* Source badges */
.fm-import-source-badges {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.fm-import-source-badge {
	background: var(--fb-cream);
	border: 1px solid var(--fb-border-strong);
	border-radius: 4px;
	padding: 3px 10px;
	font-size: 11px;
	color: var(--fb-ink-soft);
	letter-spacing: 0.02em;
}

/* Confidence panel */
.fm-import-confidence {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	border-radius: 8px;
	padding: 14px 16px;
	margin: 16px 0;
	border-left: 4px solid;
}

.fm-import-confidence--high {
	background: rgba(74,222,128,0.14);
	border-color: var(--fb-success);
}

.fm-import-confidence--medium {
	background: rgba(245,158,11,0.16);
	border-color: rgba(245,158,11,0.35);
}

.fm-import-confidence--needs-attention {
	background: rgba(248,113,113,0.14);
	border-color: rgba(248,113,113,0.35);
}

.fm-import-confidence__label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 3px;
}

.fm-import-confidence--high .fm-import-confidence__label    { color: var(--fb-success); }
.fm-import-confidence--medium .fm-import-confidence__label  { color: #fbbf24; }
.fm-import-confidence--needs-attention .fm-import-confidence__label { color: var(--fb-danger); }

.fm-import-confidence__desc {
	font-size: 13px;
	color: var(--fb-ink-soft);
}

/* Sample product cards */
.fm-import-samples {
	margin: 20px 0;
}

.fm-import-samples__title {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 10px;
}

.fm-import-sample-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.fm-import-sample-card {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.fm-import-sample-card__title {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fm-import-sample-card__price {
	font-size: 13px;
	color: var(--fb-success);
	font-weight: 600;
}

.fm-import-sample-card__meta {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin-top: 4px;
}

.fm-import-sample-card__meta span {
	font-size: 11px;
	color: var(--fb-green-soft);
}

.fm-import-sample-card__img-found  { color: var(--fb-success) !important; }
.fm-import-sample-card__img-missing { color: #fbbf24 !important; }

.fm-import-sample-card__sku {
	font-size: 10px !important;
	color: var(--fb-green-soft) !important;
	font-family: monospace;
}

/* Sample card image polish (Phase 32A) */
.fm-import-sample-card {
	padding: 0;
	gap: 0;
}
.fm-import-sample-card__media {
	width: 100%;
	height: 140px;
	overflow: hidden;
	background: var(--fb-cream);
	border-radius: 7px 7px 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.fm-import-sample-card__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}
.fm-import-sample-card__placeholder {
	font-size: 11px;
	color: var(--fb-green-soft);
	text-align: center;
	padding: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}
.fm-import-sample-card__body {
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.fm-import-sample-card__price--warn {
	color: #fbbf24 !important;
	font-weight: 400 !important;
	font-style: italic;
}
.fm-import-sample-card__checks {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.fm-import-sample-card__check {
	font-size: 11px;
	color: var(--fb-success);
}
.fm-import-sample-card__check--secondary {
	color: var(--fb-green-soft);
}

/* Product picker — full selectable list on the preview screen */
.fm-import-picker {
	margin: 20px 0;
}
.fm-import-picker__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.fm-import-picker__title {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0;
}
.fm-import-picker__all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	cursor: pointer;
	white-space: nowrap;
}
.fm-import-picker__all input {
	cursor: pointer;
}
.fm-import-picker__hint {
	font-size: 12px;
	color: var(--fb-green-soft);
	margin: 4px 0 10px;
}
.fm-import-picker__hint [data-fm-select-count] {
	font-weight: 600;
	color: var(--fb-ink-soft);
}
.fm-import-picker__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	overflow-y: auto;
	max-height: 360px;
	background: var(--fb-surface);
}
.fm-import-pick + .fm-import-pick {
	border-top: 1px solid var(--fb-border);
}
.fm-import-pick__label {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	cursor: pointer;
}
.fm-import-pick__check {
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	cursor: pointer;
}
.fm-import-pick__media {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 6px;
	overflow: hidden;
	background: var(--fb-cream);
	display: flex;
	align-items: center;
	justify-content: center;
}
.fm-import-pick__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}
.fm-import-pick__noimg {
	font-size: 9px;
	line-height: 1.1;
	text-align: center;
	color: var(--fb-green-soft);
	padding: 2px;
}
.fm-import-pick__name {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.fm-import-pick__price {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-success);
}
.fm-import-pick__price--warn {
	color: #fbbf24;
	font-weight: 400;
	font-style: italic;
	font-size: 12px;
}
/* Dim rows the seller has unticked so it's obvious what won't come across. */
.fm-import-pick__check:not(:checked) ~ .fm-import-pick__media,
.fm-import-pick__check:not(:checked) ~ .fm-import-pick__name,
.fm-import-pick__check:not(:checked) ~ .fm-import-pick__price {
	opacity: 0.4;
}
.fm-import-pick__check:not(:checked) ~ .fm-import-pick__name {
	text-decoration: line-through;
}

/* Per-product photo breakdown — "this photo needs adding" tag + dropdown */
.fm-import-pick__flag {
	flex: 0 0 auto;
	font-size: 11px;
	font-weight: 700;
	color: #7a5200;
	background: #ffe6a8;
	border-radius: 999px;
	padding: 2px 9px;
	white-space: nowrap;
}
.fm-import-pick__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 10px 68px;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
	border-radius: 999px;
	cursor: pointer;
}
.fm-import-pick__toggle:hover {
	border-color: var(--fb-ink-soft);
}
.fm-import-pick__toggle-arrow {
	font-size: 9px;
	transition: transform 0.15s ease;
}
.fm-import-pick__toggle--open .fm-import-pick__toggle-arrow {
	transform: rotate( 180deg );
}
.fm-import-pick__photos {
	padding: 0 14px 14px 68px;
}
.fm-import-pick__photonote {
	margin: 0 0 10px;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--fb-ink-soft);
}
.fm-import-photos {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.fm-import-photo {
	position: relative;
	width: 80px;
	height: 80px;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
}
.fm-import-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.fm-import-photo__ph {
	font-size: 26px;
	line-height: 1;
	opacity: 0.55;
}
.fm-import-photo__tag {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	font-size: 9px;
	font-weight: 700;
	text-align: center;
	padding: 2px 3px;
	color: #fff;
	background: rgba( 0, 0, 0, 0.6 );
}
.fm-import-photo--ok .fm-import-photo__tag {
	background: rgba( 22, 120, 46, 0.9 );
}
.fm-import-photo--missing {
	flex-direction: column;
	gap: 6px;
	border-style: dashed;
	border-color: #d9a300;
	background: rgba( 255, 214, 122, 0.14 );
}
.fm-import-photo--missing .fm-import-photo__tag {
	position: static;
	color: #7a5200;
	background: transparent;
	padding: 0;
}
/* Result-screen "photos to add" list: static rows (no checkbox), full height. */
.fm-import-pick__label--static {
	cursor: default;
}
.fm-import-result-nextstep--photos .fm-import-picker__list {
	margin-top: 12px;
	max-height: none;
}

/* Issue cards */
.fm-import-issues {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 16px 0;
}

.fm-import-issue-card {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	background: rgba(245,158,11,0.16);
	border: 1px solid rgba(245,158,11,0.35);
	border-radius: 8px;
	padding: 12px 14px;
	gap: 12px;
}

.fm-import-issue-card__body {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	flex: 1;
	min-width: 0;
}

.fm-import-issue-card__icon {
	font-size: 16px;
	color: #fbbf24;
	flex-shrink: 0;
	line-height: 1.4;
}

.fm-import-issue-card__text {
	font-size: 13px;
	color: var(--fb-ink-soft);
	line-height: 1.5;
}

.fm-import-issue-card__dismiss {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--fb-green-soft);
	font-size: 18px;
	line-height: 1;
	padding: 0 2px;
	flex-shrink: 0;
}

.fm-import-issue-card__dismiss:hover {
	color: var(--fb-ink-soft);
}

/* "Fix later" — persist needs-attention items to the seller dashboard. */
.fm-import-fixlater {
	margin-top: 10px;
	padding: 10px 12px;
	background: rgba(59,130,246,0.10);
	border: 1px solid rgba(59,130,246,0.30);
	border-radius: 8px;
}

.fm-import-fixlater__label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	color: var(--fb-ink-soft);
	line-height: 1.5;
	cursor: pointer;
}

.fm-import-fixlater__label input {
	margin-top: 2px;
	flex-shrink: 0;
}

/* Unmapped columns list — columns from the uploaded file we didn't recognise. */
.fm-import-unmapped-card {
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 14px 16px;
	margin-top: 12px;
}

.fm-import-unmapped-card__title {
	display: block;
	font-size: 13px;
	color: var(--fb-ink-soft);
	margin-bottom: 4px;
}

.fm-import-unmapped-card__desc {
	font-size: 12px;
	color: var(--fb-green-soft);
	margin: 0 0 8px;
	line-height: 1.5;
}

.fm-import-unmapped-card__list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	max-height: 172px;
	overflow-y: auto;
}

.fm-import-unmapped-card__item {
	background: var(--fb-border);
	border: 1px solid var(--fb-border-strong);
	border-radius: 4px;
	padding: 2px 8px;
	font-size: 11px;
	color: var(--fb-ink-soft);
	font-family: monospace;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
}

/* Transfer CTA */
.fm-import-transfer-cta {
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 20px 24px;
	margin-top: 20px;
	background: var(--fb-cream);
	text-align: center;
}

.fm-import-transfer-cta .fm-import-btn--primary {
	font-size: 16px;
	padding: 13px 32px;
	margin: 8px 0 6px;
}

.fm-import-transfer-sub {
	font-size: 12px;
	color: var(--fb-green-soft);
	margin: 4px 0 0;
}

/* Import progress card (shown during run) */
.fm-import-progress-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 14px 16px;
	margin-top: 16px;
	text-align: left;
}

.fm-import-progress-card[hidden] {
	display: none;
}

.fm-import-progress-msgs {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
}

.fm-import-progress-msgs li {
	font-size: 13px;
	color: var(--fb-ink-soft);
	padding: 2px 0;
}

.fm-import-progress-msgs li:last-child {
	color: var(--fb-ink-soft);
	font-weight: 500;
}

/* Batched transfer: sticky counter headline + per-product status lines. */
.fm-import-progress-msgs {
	max-height: 240px;
	overflow-y: auto;
}

.fm-import-progress-msgs .fm-import-progress-counter {
	position: sticky;
	top: 0;
	z-index: 2;
	font-weight: 700;
	color: var(--fb-ink);
	background: var(--fb-surface);
	margin: 0 0 4px;
	padding: 2px 0 8px;
	border-bottom: 1px solid var(--fb-border);
}

.fm-import-progress-msgs .fm-import-progress-line--ok {
	color: var(--fb-success, #22c55e);
}

.fm-import-progress-msgs .fm-import-progress-line--warn {
	color: var(--fb-warning, #eab308);
}

/* Back link row */
.fm-import-actions--back {
	margin-bottom: 8px;
}

/* Result hero */
.fm-import-result-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding-bottom: 20px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--fb-border);
}

.fm-import-result-hero__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--fb-success);
	color: #fff;
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 12px;
}

.fm-import-result-hero h2 {
	margin: 0;
	font-size: 20px;
	color: var(--fb-ink);
}

/* Result warnings */
.fm-import-result-warnings {
	margin-top: 20px;
	background: rgba(245,158,11,0.16);
	border: 1px solid rgba(245,158,11,0.35);
	border-radius: 8px;
	padding: 14px 16px;
}

.fm-import-result-warnings__title {
	font-size: 13px;
	font-weight: 700;
	color: #fbbf24;
	margin: 0 0 10px;
}

/* Mobile UX2 */
@media (max-width: 600px) {
	.fm-import-sample-cards {
		grid-template-columns: 1fr;
	}
	.fm-import-benefits {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		row-gap: 6px;
	}
	.fm-import-transfer-cta {
		padding: 16px;
	}
	.fm-import-transfer-cta .fm-import-btn--primary {
		width: 100%;
	}
}

/* =========================================================================
   Phase 30 ? Vendor onboarding
   ========================================================================= */

/* Dashboard onboarding card */
.fm-onboarding-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	background: var(--fb-accent-bg);
	border: 1px solid rgba(124,192,255,0.30);
	border-radius: 10px;
	padding: 18px 22px;
	margin: 24px 0;
}

.fm-onboarding-card__content {
	flex: 1 1 auto;
}

.fm-onboarding-card__title {
	font-size: 13px;
	font-weight: 700;
	color: var(--fb-azure);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 4px;
}

.fm-onboarding-card__desc {
	font-size: 14px;
	color: var(--fb-azure);
	margin: 0;
}

.fm-onboarding-card__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.fm-onboarding-card__cta {
	display: inline-block;
	background: var(--fb-green);
	color: var(--fb-white);
	text-decoration: none;
	padding: 10px 20px;
	border-radius: 7px;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	border: none;
	cursor: pointer;
	transition: background 0.15s;
}

.fm-onboarding-card__cta:hover {
	background: var(--fb-blue);
	color: var(--fb-white);
}

.fm-onboarding-card__skip {
	background: none;
	border: none;
	color: var(--fb-green-soft);
	font-size: 13px;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
}

.fm-onboarding-card__skip:hover {
	color: var(--fb-ink-soft);
}

.fm-onboarding-complete-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: rgba(74,222,128,0.14);
	border: 1px solid rgba(74,222,128,0.35);
	border-radius: 8px;
	padding: 10px 16px;
	margin: 24px 0;
}

.fm-onboarding-complete-badge__icon {
	color: var(--fb-success);
	font-size: 16px;
	font-weight: 700;
}

.fm-onboarding-complete-badge__label {
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-success);
}

/* Vendor welcome page */
.fm-vendor-welcome {
	max-width: 680px;
	margin: 0 auto;
	padding: 40px 24px 60px;
}

.fm-vendor-welcome__hero {
	text-align: center;
	margin-bottom: 40px;
}

.fm-vendor-welcome__heading {
	font-size: 28px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 12px;
}

.fm-vendor-welcome__sub {
	font-size: 16px;
	color: var(--fb-ink-soft);
	margin: 0;
	line-height: 1.6;
}

.fm-vendor-welcome__steps {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 32px;
}

.fm-vendor-welcome__step {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 18px 20px;
}

.fm-vendor-welcome__step-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: var(--fb-green);
	color: var(--fb-white);
	border-radius: 50%;
	font-size: 14px;
	font-weight: 700;
	flex-shrink: 0;
}

.fm-vendor-welcome__step-body strong {
	display: block;
	font-size: 15px;
	color: var(--fb-ink);
	margin-bottom: 3px;
}

.fm-vendor-welcome__step-body p {
	font-size: 14px;
	color: var(--fb-ink-soft);
	margin: 0;
}

.fm-vendor-welcome__bolt-card {
	background: var(--fb-accent-bg);
	border: 1px solid rgba(124,192,255,0.30);
	border-radius: 10px;
	padding: 18px 22px;
	margin-bottom: 32px;
}

.fm-vendor-welcome__bolt-intro {
	font-size: 14px;
	color: var(--fb-azure);
	margin: 0;
}

.fm-vendor-welcome__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.fm-vendor-welcome__cta {
	display: inline-block;
	padding: 14px 32px;
	border-radius: 9px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	border: none;
	transition: background 0.15s, color 0.15s;
}

.fm-vendor-welcome__cta--primary {
	background: var(--fb-green);
	color: var(--fb-white);
	width: 100%;
	max-width: 320px;
}

.fm-vendor-welcome__cta--primary:hover {
	background: var(--fb-blue);
	color: var(--fb-white);
}

.fm-vendor-welcome__cta--secondary {
	background: var(--fb-surface);
	color: var(--fb-ink-soft);
	border: 1px solid var(--fb-border);
}

.fm-vendor-welcome__cta--secondary:hover {
	background: var(--fb-border);
	color: var(--fb-ink);
}

.fm-vendor-welcome__cta--ghost {
	background: none;
	color: var(--fb-green-soft);
	font-size: 13px;
	padding: 8px;
	font-weight: 400;
	text-decoration: underline;
}

.fm-vendor-welcome__cta--ghost:hover {
	color: var(--fb-green-soft);
}

/* Bring products page */
.fm-bring-products {
	max-width: 900px;
	margin: 0 auto;
	padding: 40px 24px 60px;
}

.fm-bring-products__hero {
	text-align: center;
	margin-bottom: 40px;
}

.fm-bring-products__heading {
	font-size: 28px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 12px;
}

.fm-bring-products__sub {
	font-size: 16px;
	color: var(--fb-ink-soft);
	margin: 0;
	line-height: 1.6;
}

.fm-bring-products__cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
	margin-bottom: 40px;
}

.fm-bring-products__card {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 12px;
	padding: 24px 20px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	transition: box-shadow 0.15s, border-color 0.15s;
}

.fm-bring-products__card:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,0.07);
	border-color: rgba(124,192,255,0.30);
}

.fm-bring-products__card--future {
	opacity: 0.65;
}

.fm-bring-products__card-icon {
	font-size: 28px;
}

.fm-bring-products__card-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0;
}

.fm-bring-products__card-desc {
	font-size: 14px;
	color: var(--fb-ink-soft);
	margin: 0;
	line-height: 1.5;
	flex: 1 1 auto;
}

.fm-bring-products__card-cta {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 7px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: background 0.15s;
	margin-top: auto;
}

.fm-bring-products__card-cta--primary {
	background: var(--fb-blue);
	color: var(--fb-white);
}

.fm-bring-products__card-cta--primary:hover {
	background: var(--fb-blue-hover);
	color: var(--fb-white);
}

.fm-bring-products__card-cta--secondary {
	background: var(--fb-surface);
	color: var(--fb-ink-soft);
	border: 1px solid var(--fb-border);
}

.fm-bring-products__card-cta--secondary:hover {
	background: var(--fb-border);
}

.fm-bring-products__card-coming-soon {
	display: inline-block;
	background: var(--fb-sand);
	color: var(--fb-green-soft);
	font-size: 12px;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.fm-bring-products__finish {
	display: flex;
	align-items: center;
	gap: 20px;
	border-top: 1px solid var(--fb-border);
	padding-top: 28px;
}

.fm-bring-products__finish-btn {
	background: var(--fb-blue);
	border: 1px solid var(--fb-blue);
	color: var(--fb-on-accent);
	font-size: 14px;
	font-weight: 600;
	padding: 10px 22px;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s;
}

.fm-bring-products__finish-btn:hover {
	background: var(--fb-blue-hover);
}

.fm-bring-products__dashboard-link {
	font-size: 14px;
	color: var(--fb-green-soft);
	text-decoration: underline;
}

/* Bolt-led variant ? Phase 41G */
.fm-bring-products--bolt-led .fm-bring-products__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 480px;
	margin: 0 auto 40px;
}

.fm-bring-products__action {
	display: block;
	width: 100%;
	padding: 14px 20px;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	border-radius: 10px;
	border: 1.5px solid var(--fb-border);
	background: var(--fb-surface);
	color: var(--fb-ink-soft);
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.fm-bring-products__action:hover {
	background: var(--fb-cream);
	border-color: var(--fb-blue);
	box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
	color: var(--fb-ink-soft);
}

.fm-bring-products__action--primary {
	background: var(--fb-blue);
	border-color: var(--fb-blue);
	color: #fff;
}

.fm-bring-products__action--primary:hover {
	background: var(--fb-blue);
	border-color: var(--fb-blue);
	color: #fff;
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.fm-bring-products__action--ghost {
	background: transparent;
	border-color: transparent;
	color: var(--fb-green-soft);
	font-weight: 400;
}

.fm-bring-products__action--ghost:hover {
	background: var(--fb-sand);
	border-color: var(--fb-border);
	color: var(--fb-green-soft);
	box-shadow: none;
}

.fm-bring-products__dashboard-link:hover {
	color: var(--fb-ink-soft);
}

.fm-bring-products__notice {
	border-radius: 8px;
	font-size: 0.9rem;
	margin-bottom: 1.25rem;
	padding: 0.75rem 1rem;
}

.fm-bring-products__notice--success {
	background: rgba(34, 197, 94, 0.12);
	border: 1px solid rgba(34, 197, 94, 0.35);
	color: #86efac;
}

/* Bolt onboarding prompt in panel */
.fb-helper__onboarding-prompt {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fb-helper__action-btn--secondary {
	background: var(--fb-surface);
	color: var(--fb-ink-soft);
	border: 1px solid var(--fb-border);
}

.fb-helper__action-btn--secondary:hover {
	background: var(--fb-border);
	color: var(--fb-ink);
}

/* Mobile */
@media (max-width: 640px) {
	.fm-onboarding-card {
		flex-direction: column;
		align-items: flex-start;
	}

	.fm-onboarding-card__actions {
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
	}

	.fm-onboarding-card__cta {
		width: 100%;
		text-align: center;
	}

	.fm-vendor-welcome {
		padding: 24px 16px 48px;
	}

	.fm-vendor-welcome__heading {
		font-size: 22px;
	}

	.fm-bring-products {
		padding: 24px 16px 48px;
	}

	.fm-bring-products__heading {
		font-size: 22px;
	}

	.fm-bring-products__cards {
		grid-template-columns: 1fr;
	}

	.fm-bring-products__finish {
		flex-direction: column;
		align-items: flex-start;
	}

	.fm-bring-products__finish-btn {
		width: 100%;
	}
}

/* =============================================================================
   Phase 32B ? Inventory notice, button, and table polish
   ============================================================================= */

/* ---- Notice modifiers (--ok = success green, --warn = amber) ---- */

.fm-inv-notice--ok {
	background: rgba(74,222,128,0.14);
	border-color: rgba(74,222,128,0.35);
	color: var(--fb-success);
}

.fm-inv-notice--warn {
	background: rgba(245,158,11,0.16);
	border-color: rgba(245,158,11,0.35);
	color: #fbbf24;
}

/* ---- Section heading colour variants ---- */

.fm-inv-section-heading--ok {
	color: var(--fb-success);
	border-bottom-color: rgba(74,222,128,0.35);
}

.fm-inv-section-heading--warn {
	color: var(--fb-danger);
	border-bottom-color: rgba(245,158,11,0.35);
}

/* ---- Button variants ---- */

.fm-inv-btn--lg {
	padding: 11px 28px;
	font-size: 15px;
}

.fm-inv-btn--apply {
	background: var(--fb-blue);
	color: var(--fb-white);
	padding: 11px 28px;
	font-size: 15px;
}

.fm-inv-btn--apply:hover {
	background: var(--fb-blue-hover);
	color: var(--fb-white);
	text-decoration: none;
}

/* ---- Inline link-buttons (Retry / Ignore) ---- */

.fm-inv-link-btn {
	background: none;
	border: none;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-green);
	cursor: pointer;
	font-family: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fm-inv-link-btn:hover {
	color: var(--fb-green-dark);
}

.fm-inv-link-btn--muted {
	color: var(--fb-green-soft);
	font-weight: 400;
}

.fm-inv-link-btn--muted:hover {
	color: var(--fb-ink-soft);
}

/* ---- Apply checklist (pre-apply confirmation) ---- */

.fm-inv-apply-checklist {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fm-inv-apply-checklist li {
	font-size: 13px;
	color: var(--fb-ink-soft);
	padding-left: 18px;
	position: relative;
}

.fm-inv-apply-checklist li::before {
	content: "?";
	position: absolute;
	left: 0;
	color: var(--fb-success);
	font-weight: 700;
}

/* ---- Stat card value ? small variant (for date display) ---- */

.fm-inv-card__value--small {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

/* ---- Preview summary card ? warn variant ---- */

.fm-inv-preview-card--warn .fm-inv-preview-card__value {
	color: #fbbf24;
}

/* ---- Item table inline text colours ---- */

.fm-text-ok {
	color: var(--fb-success);
	font-weight: 600;
}

.fm-text-warn {
	color: #fbbf24;
	font-weight: 600;
}

.fm-text-danger {
	color: var(--fb-danger);
	font-weight: 600;
}

/* ---- Action link in item tables (Match SKU) ---- */

.fm-inv-action-link {
	font-size: 12px;
	font-weight: 600;
	color: var(--fb-green);
	text-decoration: none;
	white-space: nowrap;
}

.fm-inv-action-link:hover {
	text-decoration: underline;
}

/* ---- SKU match view ---- */

.fm-inv-match-item__name {
	font-size: 12px;
	color: var(--fb-green-soft);
	margin: 2px 0 4px;
}

.fm-inv-match-form {
	margin-top: 12px;
}

.fm-inv-match-fields {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 10px;
}

.fm-inv-match-fields label {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
}

.fm-inv-match-fields select,
.fm-inv-match-variant-input {
	width: 100%;
	max-width: 400px;
	padding: 7px 10px;
	border: 1px solid var(--fb-border-strong);
	border-radius: 5px;
	font-size: 13px;
	font-family: inherit;
}

.fm-inv-match-variant-note {
	font-size: 12px;
	color: var(--fb-danger);
	background: rgba(245,158,11,0.16);
	border: 1px solid rgba(245,158,11,0.35);
	border-radius: 4px;
	padding: 6px 10px;
}

.fm-inv-match-footer {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--fb-border);
}

/* ---- Auto sync note ---- */

.fm-inv-auto-note {
	margin-top: 24px;
	padding: 14px 18px;
	background: var(--fb-sand);
	border: 1px solid rgba(124,192,255,0.30);
	border-radius: 8px;
	font-size: 13px;
	color: var(--fb-green);
}

.fm-inv-auto-note p {
	margin: 0 0 6px;
}

.fm-inv-auto-note p:last-child {
	margin-bottom: 0;
}

/* =============================================================================
   Phase 32C ? External connections status panel
   ============================================================================= */

.fm-inv-ext-status {
	background: rgba(74,222,128,0.14);
	border: 1px solid rgba(74,222,128,0.35);
	border-radius: 8px;
	padding: 18px 22px;
	margin-bottom: 28px;
}

.fm-inv-ext-status__heading {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fb-success);
	margin: 0 0 12px;
}

.fm-inv-ext-status__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.fm-inv-ext-status__row {
	font-size: 13px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.fm-inv-ext-status__row--active {
	color: var(--fb-success);
}

.fm-inv-ext-status__row--soon {
	color: var(--fb-green-soft);
}

.fm-inv-ext-status__icon {
	font-size: 13px;
	font-weight: 700;
	flex-shrink: 0;
	width: 16px;
	text-align: center;
}

.fm-inv-ext-status__icon--soon {
	color: var(--fb-green-soft);
}

.fm-inv-ext-connections__heading {
	font-size: 15px;
	font-weight: 700;
	color: var(--fb-ink-soft);
	margin: 0 0 14px;
}

/* =============================================================================
   Phase 32D ? External stock feed sync MVP
   ============================================================================= */

/* Feed connected state */
.fm-inv-feed-connected {
	background: var(--fb-surface);
	border: 1px solid rgba(74,222,128,0.35);
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 20px;
	max-width: 680px;
}
.fm-inv-feed-connected__header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}
.fm-inv-feed-connected__name {
	font-size: 16px;
	font-weight: 700;
	color: var(--fb-ink);
}
.fm-inv-feed-connected__meta {
	background: var(--fb-cream);
	border-radius: 6px;
	padding: 12px 16px;
	margin-bottom: 14px;
}
.fm-inv-feed-connected__row {
	display: flex;
	gap: 12px;
	padding: 5px 0;
	font-size: 13px;
	border-bottom: 1px solid var(--fb-sand);
}
.fm-inv-feed-connected__row:last-child {
	border-bottom: none;
}
.fm-inv-feed-connected__label {
	width: 90px;
	flex-shrink: 0;
	font-weight: 600;
	color: var(--fb-green-soft);
}
.fm-inv-feed-connected__value {
	color: var(--fb-ink-soft);
	word-break: break-all;
}
.fm-inv-feed-connected__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}
.fm-inv-feed-connected__note {
	font-size: 12px;
	color: var(--fb-green-soft);
	margin: 0;
}

/* Feed connect / edit form */
.fm-inv-feed-form {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 22px 24px;
	margin-bottom: 20px;
	max-width: 600px;
}
.fm-inv-feed-form__desc {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 0 0 18px;
}
.fm-inv-feed-form__form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.fm-inv-feed-form__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.fm-inv-feed-form__field label {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
}
.fm-inv-feed-form__input {
	padding: 8px 10px;
	border: 1px solid var(--fb-border-strong);
	border-radius: 5px;
	font-size: 14px;
	color: var(--fb-ink-soft);
	background: var(--fb-surface);
	transition: border-color 0.15s;
}
.fm-inv-feed-form__input:focus {
	border-color: var(--fb-blue);
	outline: none;
}
.fm-inv-feed-form__input--short {
	max-width: 180px;
}
.fm-inv-feed-form__field-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}
.fm-inv-feed-form__hint {
	font-size: 12px;
	color: var(--fb-green-soft);
}
.fm-inv-feed-form__required {
	color: var(--fb-danger);
}
.fm-inv-feed-form__select {
	padding: 8px 10px;
	border: 1px solid var(--fb-border-strong);
	border-radius: 5px;
	font-size: 14px;
	color: var(--fb-ink-soft);
	background: var(--fb-surface);
	max-width: 320px;
}
.fm-inv-feed-form__advanced {
	border: 1px solid var(--fb-border);
	border-radius: 6px;
	padding: 10px 14px;
}
.fm-inv-feed-form__advanced summary {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	cursor: pointer;
}
.fm-inv-feed-form__advanced .fm-inv-feed-form__field {
	margin-top: 10px;
}
.fm-inv-feed-form__footer {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 4px;
}

/* Feed not connected state */
.fm-inv-feed-unconnected {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 22px 24px;
	margin-bottom: 20px;
	max-width: 480px;
}
.fm-inv-feed-unconnected p {
	margin: 0 0 14px;
	font-size: 14px;
	color: var(--fb-ink-soft);
}
.fm-inv-feed-unconnected__note {
	margin-top: 12px !important;
	font-size: 12px;
	color: var(--fb-green-soft);
}

/* =============================================================================
   Phase 33D ? CSV feed polish
   ============================================================================= */

.fm-inv-feed-form__url-row {
	display: flex;
	gap: 8px;
	align-items: center;
}
.fm-inv-feed-form__url-input {
	flex: 1;
	min-width: 0;
}
.fm-inv-btn--test-url {
	flex-shrink: 0;
	white-space: nowrap;
}

.fm-inv-feed-url-test-result {
	display: block;
	font-size: 12px;
	margin-top: 5px;
	min-height: 16px;
}
.fm-inv-feed-url-test-result--ok {
	color: var(--fb-success);
}
.fm-inv-feed-url-test-result--warn {
	color: var(--fb-danger);
}

/* =============================================================================
   Phase 33C ? Connector picker
   ============================================================================= */

/* Connector picker grid */
.fm-inv-connector-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 14px;
	margin-top: 18px;
}

.fm-inv-connector-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 16px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s, box-shadow 0.15s;
	cursor: pointer;
}
.fm-inv-connector-card:hover {
	border-color: var(--fb-blue);
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.12);
	text-decoration: none;
	color: inherit;
}

.fm-inv-connector-card__icon {
	font-size: 24px;
	line-height: 1;
	flex-shrink: 0;
	width: 36px;
	text-align: center;
	padding-top: 2px;
}

.fm-inv-connector-card__body {
	flex: 1;
	min-width: 0;
}
.fm-inv-connector-card__name {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: var(--fb-ink);
	margin-bottom: 3px;
}
.fm-inv-connector-card__desc {
	display: block;
	font-size: 12px;
	color: var(--fb-green-soft);
	line-height: 1.4;
}

.fm-inv-connector-card .fm-badge {
	flex-shrink: 0;
	margin-top: 2px;
	white-space: nowrap;
}

/* Back link */
.fm-inv-back-link {
	display: inline-block;
	margin-bottom: 16px;
	font-size: 13px;
	color: var(--fb-ink-soft);
	text-decoration: none;
}
.fm-inv-back-link:hover {
	color: var(--fb-azure);
	text-decoration: underline;
}

/* Needs-app info panel */
.fm-inv-connector-app-required {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 22px 24px;
	max-width: 560px;
}
.fm-inv-connector-app-required__badge {
	margin-bottom: 12px;
}
.fm-inv-connector-app-required p {
	font-size: 14px;
	color: var(--fb-ink-soft);
	margin: 0 0 10px;
}

@media (max-width: 600px) {
	.fm-inv-connector-grid {
		grid-template-columns: 1fr;
	}
	.fm-inv-connector-card {
		flex-wrap: wrap;
	}
}

/* =============================================================================
   Phase 30K ? Onboarding Welcome and Dashboard UX Polish
   ============================================================================= */

/* Shell wrapper: ensures no horizontal overflow or clipping */
.fbm-onboarding-shell {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
}

.fbm-onboarding-shell *,
.fbm-onboarding-shell *::before,
.fbm-onboarding-shell *::after {
	box-sizing: border-box;
}

/* Tighten up heading for clarity */
.fm-vendor-welcome__heading {
	line-height: 1.25;
}

/* Step card: prevent text overflow on narrow viewports */
.fm-vendor-welcome__step-body {
	min-width: 0;
}

/* Safe-area padding on mobile so Bolt doesn't cover CTA buttons */
@media ( max-width: 640px ) {
	.fm-vendor-welcome__actions {
		padding-bottom: 96px;
	}

	.fm-bring-products__finish {
		padding-bottom: 96px;
	}

	.fm-vendor-welcome {
		padding: 32px 16px 24px;
	}

	.fm-bring-products {
		padding: 32px 16px 24px;
	}
}

/* Dashboard onboarding card ? polished state badge */
.fm-onboarding-card {
	border-left: 3px solid var(--fb-green);
}

.fm-onboarding-card__title {
	line-height: 1.3;
}

/* Phase 30M ? minimal next-step nudge shown instead of noisy card during dashboard tour */
.fm-onboarding-next-step {
	margin-top: 16px;
	text-align: right;
}

.fm-onboarding-next-step__link {
	font-size: 0.82rem;
	color: var(--fb-green-soft);
	text-decoration: none;
}

.fm-onboarding-next-step__link:hover,
.fm-onboarding-next-step__link:focus-visible {
	color: var(--fb-green);
	text-decoration: underline;
}

/* ---------------------------------------------------------------------------
 * Connector setup guide (Phase 33N)
 * --------------------------------------------------------------------------- */

.fm-inv-connector-guide {
  background: var(--fb-surface);
  border: 1px solid var(--fb-border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.fm-inv-connector-guide--compact {
  margin-top: 16px;
  margin-bottom: 0;
}

.fm-inv-connector-guide__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--fb-ink-soft);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fm-inv-connector-guide__steps {
  margin: 0;
  padding-left: 20px;
  color: var(--fb-ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.fm-inv-connector-guide__steps li {
  margin-bottom: 6px;
}

.fm-inv-connector-guide__steps code {
  background: var(--fb-border);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12px;
}

/* =============================================================================
   Phase 34: Connector UX ? hero, sections, quick cards, connected sources,
   all-platforms drawer, card layout fix, small button, badge variants.
   ============================================================================= */

/* ---- Connector page hero ---- */

.fm-conn-hero {
	margin-bottom: 28px;
}

.fm-conn-hero__title {
	font-size: 22px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 6px;
	line-height: 1.3;
}

.fm-conn-hero__sub {
	font-size: 15px;
	color: var(--fb-ink-soft);
	margin: 0 0 16px;
}

.fm-conn-hero__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 4px;
}

/* ---- Platform group (visible, not in drawer) ---- */

.fm-conn-platform-group {
	margin-bottom: 24px;
}

.fm-conn-platform-group:last-child {
	margin-bottom: 0;
}

/* ---- Workaround fallback section ---- */

.fm-conn-workaround {
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 20px 20px 16px;
}

.fm-conn-workaround .fm-conn-section__title {
	color: var(--fb-green-soft);
}

/* ---- Add products first panel ---- */

.fm-conn-noproducts {
	background: rgba(245,158,11,0.16);
	border: 1px solid rgba(245,158,11,0.35);
	border-radius: 10px;
	padding: 20px 24px;
	margin-bottom: 24px;
}

.fm-conn-noproducts__inner {
	max-width: 560px;
}

.fm-conn-noproducts__title {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: #fbbf24;
	margin-bottom: 6px;
}

.fm-conn-noproducts__body {
	font-size: 14px;
	color: var(--fb-ink-soft);
	margin: 0 0 14px;
}

.fm-conn-noproducts__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* ---- Section wrapper ---- */

.fm-conn-section {
	margin-bottom: 32px;
}

.fm-conn-section--drawer {
	margin-bottom: 16px;
}

.fm-conn-section__title {
	font-size: 13px;
	font-weight: 700;
	color: var(--fb-green-soft);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 14px;
}

.fm-conn-section__reason {
	font-size: 14px;
	color: var(--fb-ink-soft);
	margin: 0 0 14px;
	line-height: 1.6;
}

/* ---- Recommended card ---- */

.fm-conn-rec-card {
	background: var(--fb-surface);
	border: 2px solid var(--fb-blue);
	border-radius: 10px;
	padding: 18px 20px;
	max-width: 480px;
}

.fm-conn-rec-card__header {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
}

.fm-conn-rec-card__name {
	font-size: 16px;
	font-weight: 700;
	color: var(--fb-ink);
}

.fm-conn-rec-card__desc {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 0 0 14px;
}

.fm-conn-use-another {
	margin-left: 8px;
}

/* ---- Quick routes grid ---- */

.fm-conn-quick-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}

.fm-conn-quick-card {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 14px 16px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s, box-shadow 0.15s;
	min-width: 0;
}

.fm-conn-quick-card:hover {
	border-color: var(--fb-blue);
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.12);
	text-decoration: none;
	color: inherit;
}

.fm-conn-quick-card__icon {
	font-size: 22px;
	line-height: 1;
	flex-shrink: 0;
}

.fm-conn-quick-card__body {
	flex: 1;
	min-width: 0;
}

.fm-conn-quick-card__name {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: var(--fb-ink);
	margin-bottom: 2px;
}

.fm-conn-quick-card__desc {
	display: block;
	font-size: 12px;
	color: var(--fb-green-soft);
}

.fm-conn-quick-card .fm-badge {
	flex-shrink: 0;
	margin-left: auto;
	white-space: nowrap;
}

/* ---- Connected sources list ---- */

.fm-conn-connected-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fm-conn-connected-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 12px 16px;
}

.fm-conn-connected-row__info {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
}

.fm-conn-connected-row__name {
	font-size: 14px;
	font-weight: 700;
	color: var(--fb-ink);
}

.fm-conn-connected-row__meta {
	font-size: 12px;
	color: var(--fb-green-soft);
}

.fm-conn-connected-row__actions {
	flex-shrink: 0;
}

/* Phase 36G ? Enhanced connected source row */

.fm-conn-connected-row--detail {
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 12px;
}

.fm-conn-connected-row__titlebar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 6px;
}

.fm-conn-connected-row__meta-list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.fm-conn-connected-row__meta--warn {
	color: #fbbf24;
}

.fm-conn-connected-row__actions--multi {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

/* ---- All platforms drawer ---- */

.fm-conn-all-platforms {
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	overflow: hidden;
}

.fm-conn-all-platforms__toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 18px;
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	cursor: pointer;
	list-style: none;
	background: var(--fb-surface);
	user-select: none;
	transition: background 0.15s;
}

.fm-conn-all-platforms__toggle::-webkit-details-marker {
	display: none;
}

.fm-conn-all-platforms__toggle::before {
	content: '?';
	font-size: 16px;
	line-height: 1;
	color: var(--fb-azure);
	flex-shrink: 0;
}

.fm-conn-all-platforms[open] .fm-conn-all-platforms__toggle::before {
	content: '?';
}

.fm-conn-all-platforms__toggle:hover {
	background: var(--fb-sand);
	color: var(--fb-ink);
}

.fm-conn-all-platforms__inner {
	padding: 20px 18px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.fm-conn-all-platforms__group-title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--fb-green-soft);
	margin: 0 0 10px;
}

/* ---- Connector card fix: badge inside title row (--grouped variant) ---- */

.fm-inv-connector-card--grouped {
	/* icon + body only ? badge is inside body now */
}

.fm-inv-connector-card__title-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 4px;
}

.fm-inv-connector-card--grouped .fm-inv-connector-card__body {
	flex: 1;
	min-width: 0;
}

/* ---- Small button modifier ---- */

.fm-inv-btn--small {
	padding: 5px 12px;
	font-size: 13px;
}

/* ---- Best match badge ---- */

.fm-badge-recommended {
	background: var(--fb-khaki);
	color: var(--fb-green);
	border: 1px solid rgba(124,192,255,0.30);
}

/* ---- Accessibility: focus-visible on connector cards ---- */

.fm-conn-quick-card:focus-visible,
.fm-inv-connector-card:focus-visible {
	outline: 2px solid var(--fb-blue);
	outline-offset: 2px;
}

.fm-conn-all-platforms__toggle:focus-visible {
	outline: 2px solid var(--fb-blue);
	outline-offset: -2px;
}

/* ---- Responsive ---- */

@media (max-width: 640px) {
	.fm-conn-quick-grid {
		grid-template-columns: 1fr;
	}

	.fm-conn-rec-card {
		max-width: 100%;
	}

	.fm-conn-connected-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.fm-conn-hero__title {
		font-size: 19px;
	}
}

/* =========================================================================
   Phase 36D ? Connector card layout and visual hierarchy
   ========================================================================= */

/* Use auto-fit so cards grow to fill space rather than leaving ghost columns */
.fm-inv-connector-grid {
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Inside the title-row flex container the name should be inline, not block */
.fm-inv-connector-card__title-row .fm-inv-connector-card__name {
	display: inline;
	margin-bottom: 0;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Quick-card: allow badge to wrap onto new line on very narrow viewports */
.fm-conn-quick-card {
	flex-wrap: wrap;
	align-items: flex-start;
}

/* Paused badge */
.fm-badge-paused {
	background: rgba(245,158,11,0.16);
	color: #fbbf24;
	border: 1px solid rgba(245,158,11,0.35);
}

/* Mobile: drawer cards also go single-column at 640 px */
@media (max-width: 640px) {
	.fm-conn-all-platforms__inner .fm-inv-connector-grid {
		grid-template-columns: 1fr;
	}

	/* Prevent noproducts action buttons from stacking oddly */
	.fm-conn-noproducts__actions {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* =========================================================================
   Phase 36I ? Responsive, accessibility, copy and polish
   ========================================================================= */

/* Prevent horizontal scroll on the connections page */
.fm-inv-auto {
	box-sizing: border-box;
	max-width: 100%;
	overflow-x: hidden;
}

/* Focus-visible on back link and connected-row action buttons */
.fm-inv-back-link:focus-visible,
.fm-conn-connected-row__actions button:focus-visible,
.fm-conn-connected-row__actions a:focus-visible {
	outline: 2px solid var(--fb-blue);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Mobile: full-width primary CTA in noproducts banner */
@media (max-width: 480px) {
	.fm-conn-noproducts__actions .fm-inv-btn {
		width: 100%;
		text-align: center;
		box-sizing: border-box;
	}

	/* Full-width rec card CTA */
	.fm-conn-rec-card .fm-inv-btn--apply {
		width: 100%;
		text-align: center;
		box-sizing: border-box;
	}

	/* Stack connected-row actions vertically */
	.fm-conn-connected-row__actions--multi {
		flex-direction: column;
		align-items: stretch;
	}

	.fm-conn-connected-row__actions--multi .fm-inv-btn,
	.fm-conn-connected-row__actions--multi form {
		width: 100%;
	}

	.fm-conn-connected-row__actions--multi .fm-inv-btn--small {
		text-align: center;
	}

	/* Wizard frame: full width */
	.fm-wizard-frame {
		max-width: 100%;
	}
}

/* Bolt safe-area: prevent Bolt from covering CTAs on mobile connections page */
@media (max-width: 640px) {
	.fm-inv-auto {
		padding-bottom: 80px;
	}
}

/* =========================================================================
   Phase 36E ? Guided wizard frame
   ========================================================================= */

.fm-wizard-frame {
	max-width: 640px;
}

.fm-wizard-header {
	margin-bottom: 20px;
}

.fm-wizard-header__title {
	font-size: 20px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 6px;
	line-height: 1.3;
}

.fm-wizard-header__desc {
	font-size: 14px;
	color: var(--fb-green-soft);
	margin: 0;
}

.fm-wizard-checklist {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 14px 18px;
	margin-bottom: 24px;
}

.fm-wizard-checklist__title {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fb-green-soft);
	margin: 0 0 10px;
}

.fm-wizard-checklist__list {
	margin: 0;
	padding-left: 18px;
}

.fm-wizard-checklist__list li {
	font-size: 13px;
	color: var(--fb-ink-soft);
	line-height: 1.6;
	margin-bottom: 4px;
}

.fm-wizard-checklist__list li:last-child {
	margin-bottom: 0;
}

.fm-wizard-body {
	margin-top: 0;
}

.fm-wizard-cta-row {
	margin-top: 16px;
}

/* =========================================================================
   Dry-run preview (Phase 35D)
   ========================================================================= */

.fm-inv-dry-run-preview {
	margin-top: 16px;
}

.fm-inv-dry-run-result {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 20px;
}

.fm-inv-dry-run-result__heading {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 600;
	color: var(--fb-ink);
}

.fm-inv-dry-run-result__summary {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.fm-inv-dry-run-result__stat {
	background: var(--fb-border);
	border-radius: 4px;
	padding: 2px 8px;
	font-size: 13px;
	color: var(--fb-ink-soft);
}

.fm-inv-dry-run-result__stat--update {
	background: rgba(74,222,128,0.14);
	color: var(--fb-success);
	font-weight: 600;
}

.fm-inv-dry-run-result__stat--miss {
	background: rgba(248,113,113,0.14);
	color: var(--fb-danger);
}

.fm-inv-dry-run-result__table-wrap {
	overflow-x: auto;
	margin-bottom: 16px;
}

.fm-inv-dry-run-result__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.fm-inv-dry-run-result__table th {
	text-align: left;
	padding: 6px 10px;
	background: var(--fb-sand);
	border-bottom: 2px solid var(--fb-border-strong);
	font-weight: 600;
	color: var(--fb-ink-soft);
	white-space: nowrap;
}

.fm-inv-dry-run-result__table td {
	padding: 6px 10px;
	border-bottom: 1px solid var(--fb-border);
	color: var(--fb-ink-soft);
}

.fm-inv-dry-run-result__row--update td {
	background: rgba(74,222,128,0.14);
}

.fm-inv-dry-run-result__row--miss td {
	background: rgba(248,113,113,0.14);
	color: var(--fb-danger);
}

.fm-inv-dry-run-result__more {
	font-size: 12px;
	color: var(--fb-green-soft);
	margin: 4px 0 16px;
}

.fm-inv-dry-run-result__apply {
	border-top: 1px solid var(--fb-border);
	padding-top: 16px;
	margin-top: 4px;
}

.fm-inv-dry-run-result__apply-note {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 0 0 10px;
}

.fm-inv-dry-run-apply-result {
	margin-left: 10px;
	font-size: 13px;
}

.fm-inv-btn--done {
	opacity: 0.7;
	cursor: default;
}

/* =====================================================================
   Phase 36L ? Stock sync status-first dashboard
   ===================================================================== */

.fm-sync-status-panel {
	background: var(--fb-surface);
	border: 2px solid var(--fb-border);
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 24px;
}

.fm-sync-status-panel--not-connected {
	border-color: var(--fb-border);
	background: var(--fb-cream);
}

.fm-sync-status-panel--connected {
	border-color: var(--fb-success);
	background: rgba(74,222,128,0.14);
}

.fm-sync-status-panel--warning {
	border-color: rgba(245,158,11,0.35);
	background: rgba(245,158,11,0.16);
}

.fm-sync-status-panel__header {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin-bottom: 16px;
}

.fm-sync-status-panel__icon {
	font-size: 24px;
	line-height: 1;
	flex-shrink: 0;
}

.fm-sync-status-panel__titles {
	flex: 1;
}

.fm-sync-status-panel__title {
	font-size: 17px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 6px;
}

.fm-sync-status-panel__body {
	font-size: 14px;
	color: var(--fb-ink-soft);
	margin: 0;
	line-height: 1.6;
}

.fm-sync-status-panel__meta {
	display: block;
	font-size: 13px;
	color: var(--fb-green-soft);
	margin-top: 4px;
}

.fm-sync-status-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.fm-sync-panel--hidden {
	display: none;
}

.fm-sync-setup-panel {
	margin-bottom: 24px;
}

.fm-sync-workaround-panel {
	margin-bottom: 24px;
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 20px 20px 16px;
}

.fm-sync-rec-wrap {
	margin-bottom: 24px;
}

.fm-sync-source-summary {
	margin-top: 14px;
	border-top: 1px solid var(--fb-border);
	padding-top: 12px;
}

.fm-sync-source-summary__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	font-size: 14px;
	border-bottom: 1px solid var(--fb-sand);
}

.fm-sync-source-summary__row:last-child {
	border-bottom: none;
}

.fm-sync-status-panel__footer {
	margin-top: 16px;
	border-top: 1px solid rgba(0,0,0,0.07);
	padding-top: 14px;
	font-size: 13px;
}

@media ( max-width: 600px ) {
	.fm-sync-status-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.fm-sync-status-actions .fm-inv-btn,
	.fm-sync-status-actions .fm-inv-link-btn {
		width: 100%;
		text-align: center;
	}
}

/* =========================================================================
   Phase 36M ? Stock sync setup chooser redesign
   ========================================================================= */

.fm-sync-choice-section {
	margin-bottom: 16px;
}

.fm-sync-choice-section__title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--fb-green-soft);
	margin: 0 0 8px;
}

/* Auto-fill packs 3–4 cards per row on desktop instead of a fixed 2, so odd-count
   sections (e.g. 5 platforms) no longer leave a big empty column and the screen is far
   shorter to scan. Collapses to fewer columns as the viewport narrows. */
.fm-sync-choice-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
	gap: 10px;
}

.fm-sync-choice-card {
	display: flex;
	flex-direction: column;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 12px 13px;
	gap: 6px;
	box-sizing: border-box;
}

.fm-sync-choice-card__icon {
	font-size: 19px;
	line-height: 1;
}

.fm-sync-choice-card__body {
	flex: 1;
}

.fm-sync-choice-card__title {
	font-size: 14px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 2px;
	line-height: 1.25;
	white-space: normal;
	overflow: visible;
}

.fm-sync-choice-card__description {
	font-size: 12.5px;
	color: var(--fb-ink-soft);
	margin: 0 0 2px;
	line-height: 1.4;
}

.fm-sync-choice-card__best {
	font-size: 11.5px;
	color: var(--fb-green-soft);
	margin: 0;
	line-height: 1.35;
}

.fm-sync-choice-card__action {
	margin-top: 4px;
}

/* Compact card CTA — the full-width platform buttons no longer dominate each card. */
.fm-sync-choice-card__button {
	padding: 7px 14px;
	font-size: 13px;
}

.fm-sync-choice-card__button {
	width: 100%;
	text-align: center;
	box-sizing: border-box;
	display: block;
}

.fm-sync-choice-card__button:focus-visible {
	outline: 2px solid var(--fb-blue);
	outline-offset: 2px;
}

.fm-conn-rec-card--choice {
	margin-bottom: 4px;
}

@media (max-width: 640px) {
	.fm-sync-choice-list {
		grid-template-columns: 1fr;
	}

	.fm-sync-choice-card__button {
		width: 100%;
	}
}

/* =========================================================
   Phase 36N ? Seller login gate
   ========================================================= */

.fm-seller-login-gate {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 40px 16px 60px;
}

.fm-seller-login-gate__card {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
	padding: 36px 40px 32px;
	width: 100%;
	max-width: 520px;
}

.fm-seller-login-gate__eyebrow {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fb-azure);
	margin: 0 0 10px;
}

.fm-seller-login-gate__title {
	font-size: 22px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 10px;
	line-height: 1.25;
}

.fm-seller-login-gate__intro {
	font-size: 14px;
	color: var(--fb-ink-soft);
	margin: 0 0 24px;
	line-height: 1.55;
}

.fm-seller-login-gate #loginform {
	margin: 0 0 16px;
}

.fm-seller-login-gate #loginform label {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	display: block;
	margin-bottom: 4px;
}

.fm-seller-login-gate #loginform input[type="text"],
.fm-seller-login-gate #loginform input[type="password"] {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--fb-border-strong);
	border-radius: 6px;
	padding: 9px 12px;
	font-size: 14px;
	color: var(--fb-ink);
	background: var(--fb-cream);
	transition: border-color 0.15s;
}

.fm-seller-login-gate #loginform input[type="text"]:focus,
.fm-seller-login-gate #loginform input[type="password"]:focus {
	border-color: var(--fb-blue);
	outline: none;
	background: var(--fb-surface);
}

.fm-seller-login-gate #loginform .button-primary,
.fm-seller-login-gate #loginform input[type="submit"] {
	display: block;
	width: 100%;
	box-sizing: border-box;
	background: var(--fb-blue);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 11px 20px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	margin-top: 18px;
	transition: background 0.15s;
}

.fm-seller-login-gate #loginform .button-primary:hover,
.fm-seller-login-gate #loginform input[type="submit"]:hover {
	background: var(--fb-blue);
}

.fm-seller-login-gate #loginform .button-primary:focus-visible,
.fm-seller-login-gate #loginform input[type="submit"]:focus-visible {
	outline: 2px solid var(--fb-blue);
	outline-offset: 2px;
}

.fm-seller-login-gate__links {
	margin: 12px 0 0;
}

.fm-seller-login-gate__links a {
	font-size: 13px;
	color: var(--fb-azure);
	text-decoration: none;
}

.fm-seller-login-gate__links a:hover {
	text-decoration: underline;
}

@media (max-width: 560px) {
	.fm-seller-login-gate__card {
		padding: 28px 20px 24px;
	}

	.fm-seller-login-gate__title {
		font-size: 19px;
	}
}

/* ==========================================================================
   Seller postage settings (Phase 39C)
   ========================================================================== */

.fm-seller-postage__notice {
	border-radius: 8px;
	padding: 12px 16px;
	margin: 0 0 20px;
	font-size: 14px;
	font-weight: 500;
}

.fm-seller-postage__notice--success {
	background: rgba(74,222,128,0.14);
	border: 1px solid rgba(74,222,128,0.35);
	color: var(--fb-success);
}

.fm-seller-postage__notice--error {
	background: rgba(248,113,113,0.14);
	border: 1px solid rgba(248,113,113,0.35);
	color: var(--fb-danger);
}

.fm-seller-postage__content {
	max-width: 680px;
}

.fm-seller-postage__intro {
	margin: 0 0 28px;
	color: var(--fb-ink-soft);
	font-size: 15px;
	line-height: 1.55;
}

.fm-seller-postage__form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Method cards */

.fm-postage-methods__legend {
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	margin-bottom: 14px;
	display: block;
}

.fm-postage-methods__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}

.fm-postage-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 18px 20px;
	border: 2px solid var(--fb-border);
	border-radius: 12px;
	cursor: pointer;
	background: var(--fb-surface);
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
	position: relative;
}

.fm-postage-card:hover {
	border-color: var(--fb-blue);
	background: var(--fb-surface);
}

.fm-postage-card--selected {
	border-color: var(--fb-blue);
	background: var(--fb-accent-bg);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.fm-postage-card__radio {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 18px;
	height: 18px;
	accent-color: var(--fb-azure);
	cursor: pointer;
}

.fm-postage-card__icon {
	font-size: 26px;
	line-height: 1;
	margin-bottom: 4px;
}

.fm-postage-card__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--fb-ink);
}

.fm-postage-card__desc {
	font-size: 13px;
	color: var(--fb-green-soft);
	line-height: 1.4;
}

/* Field groups */

.fm-postage-field-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fm-postage-field-group__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
}

.fm-postage-field-group__input,
.fm-postage-field-group__textarea {
	border: 1.5px solid var(--fb-border);
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 14px;
	color: var(--fb-ink);
	background: var(--fb-surface);
	transition: border-color 0.15s, box-shadow 0.15s;
	outline: none;
	width: 100%;
	box-sizing: border-box;
}

.fm-postage-field-group__input:focus,
.fm-postage-field-group__textarea:focus {
	border-color: var(--fb-blue);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.fm-postage-field-group__input--short {
	max-width: 120px;
}

.fm-postage-field-group__textarea {
	resize: vertical;
	min-height: 80px;
}

/* Live preview */

.fm-postage-preview {
	background: var(--fb-cream);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 14px;
	color: var(--fb-ink-soft);
	line-height: 1.5;
	min-height: 42px;
}

.fm-postage-preview__label {
	font-weight: 600;
	color: var(--fb-green-soft);
	margin-right: 4px;
}

/* Optional fields */

.fm-postage-optional {
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 0;
	overflow: hidden;
}

.fm-postage-optional__summary {
	padding: 14px 18px;
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	cursor: pointer;
	list-style: none;
	background: var(--fb-cream);
	border-bottom: 1px solid transparent;
	transition: background 0.15s;
}

.fm-postage-optional[open] .fm-postage-optional__summary {
	border-bottom-color: var(--fb-border);
}

.fm-postage-optional__summary:hover {
	background: var(--fb-sand);
}

.fm-postage-optional__summary::-webkit-details-marker {
	display: none;
}

.fm-postage-optional__summary::before {
	content: '+ ';
	color: var(--fb-azure);
}

.fm-postage-optional[open] .fm-postage-optional__summary::before {
	content: '? ';
}

.fm-postage-optional__fields {
	padding: 20px 18px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* Submit */

.fm-postage-submit__btn {
	display: inline-block;
	padding: 12px 28px;
	background: linear-gradient(135deg, var(--fb-blue) 0%, var(--fb-blue) 100%);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.15s, box-shadow 0.15s;
}

.fm-postage-submit__btn:hover {
	opacity: 0.92;
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.fm-postage-submit__btn:focus-visible {
	outline: 2px solid var(--fb-blue);
	outline-offset: 2px;
}

@media (max-width: 560px) {
	.fm-postage-methods__grid {
		grid-template-columns: 1fr;
	}

	.fm-seller-postage__content {
		max-width: 100%;
	}
}

/* ==========================================================================
   Product delivery option overrides ? Phase 41F
   ========================================================================== */

.fm-pd-delivery {
	margin-top: 32px;
	padding: 24px;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
}

.fm-pd-delivery__heading {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 700;
	color: var(--fb-ink);
}

.fm-pd-delivery__empty {
	font-size: 14px;
	color: var(--fb-green-soft);
	margin: 0 0 10px;
}

.fm-pd-delivery__options-list {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	overflow: hidden;
}

.fm-pd-delivery__option-row {
	border-bottom: 1px solid var(--fb-border);
}

.fm-pd-delivery__option-row:last-child {
	border-bottom: none;
}

.fm-pd-delivery__option-label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	cursor: pointer;
	font-size: 14px;
}

.fm-pd-delivery__option-label input[type="checkbox"] {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	accent-color: var(--fb-green);
	cursor: pointer;
}

.fm-pd-delivery__option-name {
	font-weight: 600;
	color: var(--fb-ink);
}

.fm-pd-delivery__option-meta {
	color: var(--fb-green-soft);
	font-size: 13px;
}

.fm-pd-delivery__add-link {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-green);
	text-decoration: none;
	margin-bottom: 20px;
}

.fm-pd-delivery__add-link:hover {
	text-decoration: underline;
}

.fm-pd-delivery__extra-fields {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-top: 16px;
	border-top: 1px solid var(--fb-border);
	margin-top: 4px;
}

.fm-pd-delivery__field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.fm-pd-delivery__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
}

.fm-pd-delivery__select,
.fm-pd-delivery__input {
	width: 100%;
	max-width: 320px;
	padding: 8px 12px;
	font-size: 14px;
	border: 1px solid var(--fb-border);
	border-radius: 6px;
	background: var(--fb-surface);
	color: var(--fb-ink);
	transition: border-color 0.15s, box-shadow 0.15s;
}

.fm-pd-delivery__select:focus,
.fm-pd-delivery__input:focus {
	outline: none;
	border-color: var(--fb-blue);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.fm-pd-delivery__textarea {
	width: 100%;
	max-width: 480px;
	padding: 8px 12px;
	font-size: 14px;
	font-family: inherit;
	border: 1px solid var(--fb-border);
	border-radius: 6px;
	background: var(--fb-surface);
	color: var(--fb-ink);
	resize: vertical;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.fm-pd-delivery__textarea:focus {
	outline: none;
	border-color: var(--fb-blue);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

@media (max-width: 560px) {
	.fm-pd-delivery__select,
	.fm-pd-delivery__input,
	.fm-pd-delivery__textarea {
		max-width: 100%;
	}
}

.fm-pd-delivery__label--checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 400;
	color: var(--fb-ink-soft);
	cursor: pointer;
}

.fm-pd-delivery__label--checkbox input[type="checkbox"] {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	accent-color: var(--fb-azure);
	cursor: pointer;
}


/* =============================================================================
   Phase 42B ? Dedicated seller tour page (.fm-vendor-tour)
   ============================================================================= */

.fm-vendor-tour {
	max-width: 960px;
	margin: 0 auto;
	padding: 32px 20px 48px;
}

.fm-vendor-tour__hero {
	text-align: center;
	margin-bottom: 36px;
}

.fm-vendor-tour__heading {
	font-size: 26px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 10px;
}

.fm-vendor-tour__sub {
	font-size: 15px;
	color: var(--fb-green-soft);
	line-height: 1.55;
	margin: 0;
}

.fm-vendor-tour__cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin-bottom: 40px;
}

.fm-vendor-tour__card {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 14px;
	padding: 22px 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.fm-vendor-tour__card:hover {
	border-color: rgba(124,192,255,0.30);
	box-shadow: 0 2px 12px rgba(99,102,241,0.1);
}

/* Active highlight from Bolt tour */
.fb-helper-tour-target--active.fm-vendor-tour__card {
	border-color: var(--fb-blue);
	background: var(--fb-accent-bg);
}

.fm-vendor-tour__card-icon {
	font-size: 28px;
	line-height: 1;
	display: block;
	margin-bottom: 4px;
}

.fm-vendor-tour__card-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0;
}

.fm-vendor-tour__card-body {
	font-size: 13px;
	color: var(--fb-ink-soft);
	line-height: 1.55;
	margin: 0;
	flex: 1;
}

.fm-vendor-tour__card-link {
	font-size: 12px;
	color: var(--fb-azure);
	text-decoration: none;
	margin-top: 8px;
	font-weight: 500;
}

.fm-vendor-tour__card-link:hover {
	text-decoration: underline;
}

.fm-vendor-tour__nav {
	text-align: center;
	padding-top: 16px;
	border-top: 1px solid var(--fb-sand);
}

.fm-vendor-tour__nav-link {
	font-size: 13px;
	color: var(--fb-green-soft);
	text-decoration: none;
}

.fm-vendor-tour__nav-link:hover {
	color: var(--fb-ink-soft);
	text-decoration: underline;
}

/* Phase 42H ? tour page action buttons */
.fm-vendor-tour__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 32px;
}

.fm-vendor-tour__start-btn {
	padding: 12px 28px;
	background: var(--fb-blue);
	color: var(--fb-white);
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.12s ease;
	font-family: inherit;
}

.fm-vendor-tour__start-btn:hover {
	background: var(--fb-blue);
	transform: translateY( -1px );
}

.fm-vendor-tour__start-btn:focus-visible {
	outline: 3px solid rgba(124,192,255,0.30);
	outline-offset: 2px;
}

.fm-vendor-tour__action-link {
	display: inline-block;
	padding: 12px 24px;
	background: var(--fb-surface);
	color: var(--fb-azure);
	border: 1px solid rgba(124,192,255,0.30);
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease;
}

.fm-vendor-tour__action-link:hover {
	background: var(--fb-accent-bg);
	color: var(--fb-azure);
	text-decoration: none;
}

.fm-vendor-tour__action-link--ghost {
	background: transparent;
	color: var(--fb-green-soft);
	border-color: var(--fb-border);
}

.fm-vendor-tour__action-link--ghost:hover {
	background: var(--fb-surface);
	color: var(--fb-ink-soft);
}

@media (max-width: 640px) {
	.fm-vendor-tour__cards {
		grid-template-columns: 1fr;
	}
	.fm-vendor-tour__heading {
		font-size: 20px;
	}
}

/* =============================================================================
   Phase 42G ? Welcome onboarding card
   ============================================================================= */

/* Full-screen takeover: covers the theme header/footer entirely so the
   onboarding flow reads as its own focused screen (no chrome, no page scroll). */
.fm-vendor-welcome-shell {
	position: fixed;
	inset: 0;
	z-index: 9995;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	background: var(--fb-cream);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

/* Card — two columns on desktop so it stays short and fits the viewport */
.fm-welcome-card {
	position: relative;
	width: min( 880px, 100% );
	max-height: calc( 100vh - 40px );
	overflow-y: auto;
	margin: auto;
	background: var(--fb-surface);
	border-radius: 20px;
	box-shadow:
		0 24px 80px rgba( 0, 0, 0, 0.45 ),
		0 4px 16px rgba( 0, 0, 0, 0.3 );
	border: 1px solid var(--fb-border);
	padding: clamp( 24px, 3.5vw, 40px );
	text-align: left;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

@media ( min-width: 760px ) {
	.fm-welcome-card {
		grid-template-columns: 0.92fr 1.08fr;
		gap: 44px;
		align-items: center;
	}

	.fm-welcome-card__aside {
		border-left: 1px solid var(--fb-border);
		padding-left: 44px;
	}
}

.fm-welcome-card__main {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.fm-welcome-card__aside {
	min-width: 0;
}

.fm-welcome-card__aside-title {
	margin: 0 0 8px;
	font-family: var(--fb-font-heading, sans-serif);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--fb-green-soft);
}

.fm-welcome-card--in {
	animation: fm-welcome-card-appear 0.45s cubic-bezier( 0.34, 1.56, 0.64, 1 ) both;
}

@keyframes fm-welcome-card-appear {
	from {
		opacity: 0;
		transform: translateY( 18px ) scale( 0.98 );
	}
	to {
		opacity: 1;
		transform: translateY( 0 ) scale( 1 );
	}
}

/* Eyebrow */
.fm-welcome-card__eyebrow {
	display: inline-block;
	font-family: var(--fb-font-heading, sans-serif);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fb-azure);
	margin: 0 0 10px;
}

/* Bolt avatar in a soft glow ring */
.fm-welcome-card__bolt {
	margin: 0 0 12px;
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: radial-gradient( circle at 50% 38%, rgba( 59, 130, 246, 0.25 ), rgba( 59, 130, 246, 0 ) 70% );
}

.fm-welcome-card__bolt img {
	width: 52px;
	height: 52px;
	object-fit: contain;
	display: block;
	filter: drop-shadow( 0 8px 18px rgba( 37, 99, 235, 0.45 ) );
}

/* Heading and subheading */
.fm-welcome-card__heading {
	margin: 0 0 10px;
	font-family: var(--fb-font-heading, sans-serif);
	font-size: clamp( 24px, 4vw, 30px );
	font-weight: 800;
	color: var(--fb-ink);
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.fm-welcome-card__sub {
	margin: 0 0 22px;
	font-size: 15px;
	color: var(--fb-ink-soft);
	line-height: 1.55;
}

/* Numbered setup steps */
.fm-welcome-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-align: left;
}

.fm-welcome-steps__item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 12px 14px;
	border-radius: 12px;
	transition: background 0.15s ease;
}

.fm-welcome-steps__item:hover {
	background: var(--fb-sand);
}

.fm-welcome-steps__num {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--fb-font-heading, sans-serif);
	font-size: 13px;
	font-weight: 700;
	color: var(--fb-azure);
	background: var(--fb-accent-bg);
	border: 1px solid rgba( 124, 192, 255, 0.30 );
}

.fm-welcome-steps__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-top: 2px;
}

.fm-welcome-steps__label {
	font-size: 14.5px;
	font-weight: 600;
	color: var(--fb-ink);
	line-height: 1.3;
}

.fm-welcome-steps__desc {
	font-size: 13px;
	color: var(--fb-green-soft);
	line-height: 1.45;
}

/* Action buttons */
.fm-welcome-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
}

.fm-welcome-action {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 52px;
	padding: 14px 24px;
	border-radius: 12px;
	font-size: 15.5px;
	font-weight: 700;
	text-decoration: none;
	box-sizing: border-box;
	transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.fm-welcome-action:hover {
	text-decoration: none;
	transform: translateY( -1px );
}

/* Primary CTA */
.fm-welcome-action--primary {
	background: var(--fb-blue);
	color: var(--fb-white);
	box-shadow: 0 8px 22px rgba( 37, 99, 235, 0.40 );
}

.fm-welcome-action--primary:hover {
	background: var(--fb-blue-hover);
	color: var(--fb-white);
	box-shadow: 0 12px 30px rgba( 37, 99, 235, 0.50 );
}

.fm-welcome-action__arrow {
	font-size: 18px;
	line-height: 1;
	transition: transform 0.15s ease;
}

.fm-welcome-action--primary:hover .fm-welcome-action__arrow {
	transform: translateX( 3px );
}

/* Ghost / skip */
.fm-welcome-action--ghost {
	background: transparent;
	color: var(--fb-ink-soft);
	font-weight: 600;
	min-height: 0;
	padding: 8px;
}

.fm-welcome-action--ghost:hover {
	color: var(--fb-ink);
	background: transparent;
	transform: none;
}

/* Meta line */
.fm-welcome-card__meta {
	margin: 16px 0 0;
	font-size: 12.5px;
	color: var(--fb-green-soft);
	line-height: 1.5;
}

/* Mobile */
@media ( max-width: 640px ) {
	.fm-welcome-steps__item {
		padding: 10px 10px;
	}
}

/* Reduced motion: no entrance animation */
@media ( prefers-reduced-motion: reduce ) {
	.fm-welcome-card--in {
		animation: none !important;
	}
}

/* Onboarding takeover: lock page scroll and hide theme chrome behind the shell. */
body.fm-onboarding-takeover {
	overflow: hidden;
}

body.fm-onboarding-takeover #masthead,
body.fm-onboarding-takeover .site-header,
body.fm-onboarding-takeover header.site-header,
body.fm-onboarding-takeover .site-footer,
body.fm-onboarding-takeover footer.site-footer,
body.fm-onboarding-takeover #colophon {
	display: none !important;
}

/* ==========================================================================
   Phase 42I ? Inventory Dashboard Overview
   ========================================================================== */

.fm-inventory-overview {
	max-width: 920px;
}

.fm-inventory-overview__head {
	margin-bottom: 14px;
}

.fm-inventory-overview__title {
	font-size: 22px;
	font-weight: 800;
	color: var(--fb-ink);
	margin: 0;
	line-height: 1.2;
}

/* --- Status hero panel (empty-setup state only) --- */

.fm-inventory-hero {
	margin-bottom: 28px;
}

.fm-inventory-status-panel {
	background: var(--fb-surface);
	border: 1.5px solid var(--fb-border);
	border-radius: 14px;
	padding: 28px 32px;
	display: flex;
	align-items: flex-start;
	gap: 20px;
	flex-wrap: wrap;
}

.fm-inventory-status-panel--connected {
	background: rgba(74,222,128,0.14);
	border-color: rgba(74,222,128,0.35);
}

.fm-inventory-status-panel--warning {
	background: rgba(245,158,11,0.16);
	border-color: rgba(245,158,11,0.35);
}

.fm-inventory-status-panel--empty {
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 36px 32px;
}

.fm-inventory-status-panel__icon {
	font-size: 28px;
	line-height: 1;
	flex-shrink: 0;
	margin-top: 2px;
}

.fm-inventory-status-panel__content {
	flex: 1;
	min-width: 0;
}

.fm-inventory-status-panel__title {
	font-size: 18px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 6px;
}

.fm-inventory-status-panel__body {
	font-size: 14px;
	color: var(--fb-ink-soft);
	margin: 0 0 4px;
}

.fm-inventory-status-panel__meta {
	display: block;
	font-size: 13px;
	color: var(--fb-green-soft);
	margin-top: 4px;
}

.fm-inventory-status-panel__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	flex-shrink: 0;
	align-self: center;
}

.fm-inventory-status-panel--empty .fm-inventory-status-panel__actions {
	margin-top: 16px;
	justify-content: center;
}

/* --- Compact status bar (sync, stock health, product count) --- */

.fm-inv-status-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
}

.fm-inv-status-bar__pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 20px;
	padding: 6px 12px;
	font-size: 12.5px;
	color: var(--fb-ink);
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 0.15s, background 0.15s;
}

.fm-inv-status-bar__pill:hover {
	border-color: var(--fb-border-strong);
	text-decoration: none;
}

.fm-inv-status-bar__pill-dot {
	flex-shrink: 0;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--fb-border);
}

.fm-inv-status-bar__pill--ok .fm-inv-status-bar__pill-dot    { background: var(--fb-success); }
.fm-inv-status-bar__pill--warn .fm-inv-status-bar__pill-dot  { background: #f59e0b; }
.fm-inv-status-bar__pill--alert .fm-inv-status-bar__pill-dot { background: var(--fb-danger); }
.fm-inv-status-bar__pill--muted .fm-inv-status-bar__pill-dot { background: #64748b; }

.fm-inv-status-bar__pill--ok    { border-color: rgba(74,222,128,0.35); }
.fm-inv-status-bar__pill--warn  { border-color: rgba(245,158,11,0.35); }
.fm-inv-status-bar__pill--alert { border-color: rgba(248,113,113,0.35); }
.fm-inv-status-bar__pill--muted { border-color: rgba(148,163,184,0.30); }

.fm-inv-status-bar__pill-label {
	color: var(--fb-green-soft);
}

.fm-inv-status-bar__pill-value {
	font-weight: 600;
}

.fm-inv-status-bar__pill--ok .fm-inv-status-bar__pill-value    { color: var(--fb-success); }
.fm-inv-status-bar__pill--warn .fm-inv-status-bar__pill-value  { color: #fbbf24; }
.fm-inv-status-bar__pill--alert .fm-inv-status-bar__pill-value { color: var(--fb-danger); }
.fm-inv-status-bar__pill--muted .fm-inv-status-bar__pill-value { color: #93a0b4; }

.fm-inv-status-bar__link {
	margin-left: auto;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-azure);
	text-decoration: none;
	white-space: nowrap;
}

.fm-inv-status-bar__link:hover {
	text-decoration: underline;
}

/* --- Needs attention (compact, only rendered when something needs flagging) --- */

.fm-inventory-attention-list {
	background: var(--fb-surface);
	border: 1.5px solid var(--fb-border);
	border-radius: 12px;
	padding: 14px 18px;
	margin-bottom: 14px;
}

.fm-inventory-attention-list__title {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fb-green-soft);
	margin: 0 0 12px;
}

.fm-inventory-attention-list ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fm-inventory-attention-list__item {
	font-size: 14px;
	color: var(--fb-ink-soft);
	padding: 10px 14px;
	border-radius: 8px;
	background: var(--fb-surface);
}

.fm-inventory-attention-list__item--error {
	background: rgba(248,113,113,0.14);
	border-left: 3px solid var(--fb-danger);
}

.fm-inventory-attention-list__item--warn {
	background: rgba(245,158,11,0.16);
	border-left: 3px solid rgba(245,158,11,0.35);
}

.fm-inventory-attention-list__item--info {
	background: var(--fb-accent-bg);
	border-left: 3px solid rgba(124,192,255,0.30);
}

.fm-inventory-attention-list__item a {
	font-weight: 600;
	color: var(--fb-azure);
}

/* --- Section wrapper for product list --- */

.fm-inventory-overview__list-section {
	margin-top: 8px;
}

.fm-inventory-overview__section-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 16px;
}

/* --- Mobile --- */

@media ( max-width: 640px ) {
	.fm-inventory-status-panel {
		flex-direction: column;
		padding: 22px 20px;
	}

	.fm-inventory-status-panel__actions {
		width: 100%;
		flex-direction: column;
	}

	.fm-inventory-status-panel__actions .fm-inv-btn {
		width: 100%;
		text-align: center;
	}

	.fm-inv-status-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.fm-inv-status-bar__pill {
		justify-content: flex-start;
	}

	.fm-inv-status-bar__link {
		margin-left: 0;
	}
}

/* ==========================================================================
   Phase 45D ? Seller Payout Account Panel
   ========================================================================== */

.fm-payout-account-panel {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 16px 40px;
}

.fm-payout-account-panel h2 {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 8px;
	color: var(--fb-ink);
}

.fm-payout-intro {
	color: var(--fb-ink-soft);
	margin: 0 0 24px;
	font-size: 15px;
}

/* Status containers */
.fm-payout-status {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 24px 28px;
	margin-bottom: 20px;
}

.fm-payout-status p {
	color: var(--fb-ink);
	margin: 10px 0 18px;
	font-size: 14px;
}

/* Waiting-for-verification helper + email reminder text */
.fm-payout-hint {
	color: var(--fb-ink-soft);
	font-size: 13px;
	margin: -6px 0 18px;
}

.fm-payout-note {
	color: var(--fb-ink-soft);
	font-size: 13px;
	margin: 14px 0 0;
	font-style: italic;
}

/* Space stacked action buttons within a status card */
.fm-payout-status .fm-btn + .fm-btn {
	margin-left: 10px;
}

/* Badges */
.fm-payout-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
}

.fm-payout-badge--success { background: rgba(74,222,128,0.14); color: var(--fb-success); }
.fm-payout-badge--warning { background: rgba(245,158,11,0.16); color: #fbbf24; }
.fm-payout-badge--error   { background: var(--fb-accent-bg); color: var(--fb-danger); }
.fm-payout-badge--info    { background: var(--fb-accent-bg); color: var(--fb-azure); }

/* Info table */
.fm-payout-info-table {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0 18px;
	font-size: 13px;
}

.fm-payout-info-table th {
	text-align: left;
	color: var(--fb-ink-soft);
	font-weight: 500;
	padding: 5px 0;
	width: 40%;
}

.fm-payout-info-table td {
	color: var(--fb-ink);
	padding: 5px 0;
}

/* Buttons */
.fm-btn {
	display: inline-block;
	padding: 12px 20px;
	min-height: 44px;
	box-sizing: border-box;
	line-height: 1.2;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: opacity .15s;
	margin-right: 8px;
	margin-top: 4px;
}

.fm-btn:hover { opacity: .85; }

.fm-btn--primary   { background: var(--fb-surface); color: #fff; }
.fm-btn--secondary { background: var(--fb-surface); color: var(--fb-ink); }

/* Notice inline */
.fm-notice {
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 14px;
	margin-bottom: 20px;
}

.fm-notice--success { background: rgba(74,222,128,0.14); color: var(--fb-success); border: 1px solid rgba(74,222,128,0.35); }
.fm-notice--error   { background: var(--fb-accent-bg); color: var(--fb-danger); border: 1px solid rgba(248,113,113,0.35); }

/* Mobile */
@media ( max-width: 600px ) {
	.fm-payout-status { padding: 16px; }
	.fm-btn { display: block; margin-right: 0; margin-bottom: 8px; text-align: center; }
}

/* =========================================================================
   Phase 45H ? Seller Earnings Dashboard
   ========================================================================= */

.fm-earnings-dashboard {
	max-width: 900px;
	font-family: inherit;
}

.fm-earnings-title {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 20px;
	color: var(--fb-ink);
}

.fm-earnings-section-title {
	font-size: 16px;
	font-weight: 600;
	margin: 28px 0 10px;
	color: var(--fb-ink);
}

/* Summary cards */
.fm-earnings-summary {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.fm-earnings-card {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 20px 24px;
	min-width: 160px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.fm-earnings-label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--fb-ink-soft);
	letter-spacing: .04em;
}

.fm-earnings-value {
	font-size: 26px;
	font-weight: 700;
}

.fm-earnings-pending    { color: #fbbf24; }
.fm-earnings-transferred { color: var(--fb-success); }

.fm-earnings-sub {
	font-size: 12px;
	color: var(--fb-ink-soft);
}

/* Earnings summary + Stripe link on the Payouts page */
.fm-payout-earnings-summary {
	margin-bottom: 12px;
}

.fm-payout-earnings-link {
	margin: 0 0 28px;
	font-size: 14px;
}

.fm-payout-earnings-link a {
	color: var(--fb-blue);
	text-decoration: none;
	font-weight: 600;
}

.fm-payout-earnings-link a:hover {
	text-decoration: underline;
}

.fm-payout-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

/* Tables */
.fm-earnings-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-bottom: 16px;
}

.fm-earnings-table {
	width: 100%;
	min-width: 480px;
	border-collapse: collapse;
	font-size: 14px;
	margin-bottom: 0;
}

.fm-earnings-table th {
	background: var(--fb-surface);
	padding: 8px 12px;
	text-align: left;
	font-weight: 600;
	color: var(--fb-ink);
	border-bottom: 2px solid var(--fb-border);
}

.fm-earnings-table td {
	padding: 8px 12px;
	border-bottom: 1px solid var(--fb-border);
	color: var(--fb-ink);
	vertical-align: middle;
}

.fm-earnings-table tr:hover td { background: var(--fb-surface); }

.fm-amount-credit { color: var(--fb-success); font-weight: 600; }
.fm-amount-debit  { color: var(--fb-danger); font-weight: 600; }

.fm-earnings-empty {
	color: var(--fb-ink-soft);
	font-size: 15px;
	padding: 20px 0;
}

/* Mobile */
@media ( max-width: 600px ) {
	.fm-earnings-summary { flex-direction: column; }
	.fm-earnings-table th,
	.fm-earnings-table td { padding: 6px 8px; font-size: 13px; white-space: nowrap; }
}

/* =========================================================================
   Phase 46D ? Onboarding Wizard Progress Indicator
   ========================================================================= */

.fm-wizard-progress {
	margin: 0 0 32px;
	padding: 20px 0 24px;
	border-bottom: 1px solid var(--fb-border);
}

.fm-wizard-progress__steps {
	display: flex;
	align-items: flex-start;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-x: auto;
}

.fm-wizard-progress__step {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	position: relative;
	text-align: center;
}

.fm-wizard-progress__step + .fm-wizard-progress__step::before {
	content: '';
	position: absolute;
	top: 14px;
	left: calc( -50% + 14px );
	right: calc( 50% + 14px );
	height: 2px;
	background: var(--fb-border);
}

.fm-wizard-progress__step--done + .fm-wizard-progress__step::before {
	background: var(--fb-green);
}

.fm-wizard-progress__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--fb-border);
	color: var(--fb-green-soft);
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 6px;
	position: relative;
	z-index: 1;
}

.fm-wizard-progress__step--done .fm-wizard-progress__num {
	background: var(--fb-green);
	color: #fff;
}

.fm-wizard-progress__step--current .fm-wizard-progress__num {
	background: var(--fb-green);
	color: #fff;
	box-shadow: 0 0 0 3px rgba(26,86,219,.2);
}

.fm-wizard-progress__label {
	font-size: 11px;
	color: var(--fb-green-soft);
	white-space: nowrap;
}

.fm-wizard-progress__step--done .fm-wizard-progress__label,
.fm-wizard-progress__step--current .fm-wizard-progress__label {
	color: var(--fb-ink);
	font-weight: 600;
}

/* =========================================================================
   Phase 46D ? Wizard page layout and form components
   ========================================================================= */

.fm-wizard-page {
	max-width: 640px;
	margin: 0 auto;
}

.fm-wizard-page__header {
	margin-bottom: 28px;
}

.fm-wizard-page__title {
	font-size: 24px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 8px;
}

.fm-wizard-page__intro {
	color: var(--fb-ink-soft);
	font-size: 15px;
	margin: 0;
}

.fm-wizard-form {
	margin-top: 24px;
}

.fm-form-group {
	margin-bottom: 22px;
}

.fm-form-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	margin-bottom: 6px;
}

.fm-form-required {
	color: var(--fb-danger);
	margin-left: 2px;
}

.fm-form-input,
.fm-form-select,
.fm-form-textarea {
	display: block;
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid var(--fb-border-strong);
	border-radius: 8px;
	font-size: 15px;
	color: var(--fb-ink);
	background: var(--fb-surface);
	transition: border-color 0.15s;
	font-family: inherit;
}

.fm-form-input:focus,
.fm-form-select:focus,
.fm-form-textarea:focus {
	outline: none;
	border-color: var(--fb-green);
	box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}

.fm-form-textarea {
	resize: vertical;
	min-height: 100px;
}

.fm-form-hint {
	font-size: 12px;
	color: var(--fb-green-soft);
	margin: 5px 0 0;
}

.fm-wizard-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--fb-border);
	flex-wrap: wrap;
}

.fm-wizard-actions--payout-continue {
	margin-top: 24px;
	border-top: none;
	padding-top: 0;
}

.fm-wizard-back {
	margin-top: 20px;
}

.fm-wizard-back a {
	font-size: 14px;
	color: var(--fb-ink-soft);
	text-decoration: none;
}

.fm-wizard-back a:hover {
	color: var(--fb-green);
	text-decoration: underline;
}

.fm-btn--lg {
	padding: 13px 28px;
	font-size: 16px;
}

.fm-btn--ghost {
	background: transparent;
	color: var(--fb-green-soft);
	border: 1.5px solid var(--fb-border-strong);
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 14px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	cursor: pointer;
}

.fm-btn--ghost:hover {
	color: var(--fb-ink);
	border-color: var(--fb-border);
}

@media ( max-width: 640px ) {
	.fm-wizard-progress__label { font-size: 10px; }
	.fm-wizard-page__title { font-size: 20px; }
	.fm-wizard-actions { flex-direction: column; align-items: stretch; }
	.fm-wizard-actions .fm-btn { width: 100%; text-align: center; }
	.fm-btn--lg { padding: 14px 20px; }
}

/* =========================================================================
   Phase 46F ? Money Status Panel
   ========================================================================= */

.fm-money-status {
	background: var(--fb-surface);
	border: 1.5px solid var(--fb-border);
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 24px;
}

.fm-money-status__title {
	font-size: 17px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 16px;
}

.fm-money-status__notice {
	color: var(--fb-green-soft);
	font-size: 14px;
	margin: 0 0 12px;
	padding: 12px;
	background: var(--fb-cream);
	border-radius: 8px;
}

.fm-money-cards {
	display: flex;
	gap: 16px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.fm-money-card {
	flex: 1;
	min-width: 140px;
	background: var(--fb-cream);
	border-radius: 10px;
	padding: 16px;
}

.fm-money-card__label {
	display: block;
	font-size: 12px;
	color: var(--fb-green-soft);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 6px;
}

.fm-money-card__value {
	display: block;
	font-size: 18px;
	font-weight: 700;
	color: var(--fb-ink);
}

.fm-money-card__value--amount {
	color: var(--fb-success);
}

.fm-money-status__link {
	font-size: 14px;
	color: var(--fb-green);
	text-decoration: none;
	font-weight: 600;
}

.fm-money-status__link:hover {
	text-decoration: underline;
}

@media ( max-width: 600px ) {
	.fm-money-cards { flex-direction: column; }
}

/* =========================================================================
   Phase 53I ? Dashboard bento layout
   ========================================================================= */

.fm-dash-bento {
	display: grid;
	grid-template-columns: 1fr 28%;
	gap: 20px;
	margin-bottom: 24px;
	align-items: stretch;
}

.fm-dash-bento__left,
.fm-dash-bento__right {
	min-width: 0;
}

.fm-dash-bento__right {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.fm-dash-bento__left .fm-dash-notify {
	margin-bottom: 0;
	height: 100%;
}

.fm-dash-bento__right .fm-dash-sales-widget,
.fm-dash-bento__right .fm-dash-recent {
	margin-bottom: 0;
}

@media ( max-width: 900px ) {
	.fm-dash-bento {
		grid-template-columns: 1fr;
	}
}

/* =========================================================================
   Phase 53D ? Dashboard sales widget
   ========================================================================= */

.fm-dash-sales-widget {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 12px;
	padding: 22px 22px 18px;
	margin-bottom: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.fm-dash-sales-widget__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.fm-dash-sales-widget__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0;
}

.fm-dash-sales-widget__notice {
	font-size: 13px;
	color: var(--fb-green-soft);
	background: var(--fb-surface);
	border-radius: 8px;
	padding: 10px 12px;
	margin: 0;
}

.fm-dash-sales-widget__stats {
	display: flex;
	gap: 12px;
}

.fm-dash-sales-stat {
	flex: 1;
	background: var(--fb-surface);
	border-radius: 8px;
	padding: 12px 14px;
}

.fm-dash-sales-stat__label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: var(--fb-green-soft);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 4px;
}

.fm-dash-sales-stat__value {
	display: block;
	font-size: 20px;
	font-weight: 700;
	color: var(--fb-success);
}

.fm-dash-sales-widget__empty {
	padding: 8px 0;
}

.fm-dash-sales-widget__empty-text {
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-ink);
	margin: 0 0 4px;
}

.fm-dash-sales-widget__empty-sub {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 0;
}

.fm-dash-sales-widget__link {
	font-size: 13px;
	color: var(--fb-azure);
	font-weight: 600;
	text-decoration: none;
	align-self: flex-start;
}

.fm-dash-sales-widget__link:hover {
	text-decoration: underline;
}

/* Mini bar graph */

.fm-dash-sales-graph {
	overflow: hidden;
}

.fm-dash-sales-graph__svg {
	width: 100%;
	height: auto;
	max-height: 68px;
	display: block;
}

.fm-dash-sales-bar {
	fill: var(--fb-border);
}

.fm-dash-sales-bar--has-value {
	fill: var(--fb-azure);
}

.fm-dash-sales-bar__label {
	font-size: 10px;
	fill: var(--fb-green-soft);
	font-family: inherit;
}

@media (prefers-reduced-motion: reduce) {
	.fm-dash-sales-bar { transition: none; }
}

/* =========================================================================
   Phase 46G ? Seller account profile edit page
   ========================================================================= */

.fm-account-section {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 12px;
	padding: 28px 32px;
	margin-bottom: 24px;
}

.fm-account-section__title {
	font-size: 18px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 6px;
}

.fm-account-section__desc {
	font-size: 14px;
	color: var(--fb-green-soft);
	margin: 0 0 20px;
}

.fm-account-section__hint {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 12px 0 0;
}

.fm-account-form__actions {
	margin: 4px 0 28px;
}

.fm-account-section--payout {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.fm-account-section--payout .fm-account-section__title,
.fm-account-section--payout .fm-account-section__desc {
	flex-basis: 100%;
	margin-bottom: 0;
}

.fm-account-dl {
	margin: 0;
	padding: 0;
}

.fm-account-dl__row {
	display: flex;
	gap: 16px;
	padding: 8px 0;
	border-bottom: 1px solid var(--fb-sand);
}

.fm-account-dl__row:last-child {
	border-bottom: none;
}

.fm-account-dl__label {
	min-width: 140px;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-green-soft);
}

.fm-account-dl__value {
	font-size: 14px;
	color: var(--fb-ink);
}

.fm-btn--secondary {
	display: inline-block;
	background: var(--fb-surface);
	color: var(--fb-green);
	border: 2px solid var(--fb-green);
	border-radius: 8px;
	padding: 10px 22px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.fm-btn--secondary:hover {
	background: var(--fb-accent-bg);
}

@media ( max-width: 600px ) {
	.fm-account-section {
		padding: 20px 16px;
	}
	.fm-account-dl__row {
		flex-direction: column;
		gap: 4px;
	}
	.fm-account-dl__label {
		min-width: unset;
	}
	.fm-account-section--payout {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ==========================================================================
   Phase 53L ? Compact status strip visual polish
   (also used by the seller Products page status strip, .fm-products-strip)
   ========================================================================== */

.fm-dash-status-strip {
	display: flex;
	gap: 10px;
	margin: 0 0 20px;
	flex-wrap: wrap;
	min-width: 0;
}

.fm-dash-status-item {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 180px;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 10px 14px;
	min-width: 0;
}

.fm-dash-status-item--active        { background: rgba(74,222,128,0.14); border-color: rgba(74,222,128,0.35); }
.fm-dash-status-item--in-progress   { background: var(--fb-accent-bg); border-color: rgba(124,192,255,0.30); }
.fm-dash-status-item--needs-attention { background: rgba(245,158,11,0.16); border-color: rgba(245,158,11,0.35); }
.fm-dash-status-item--alert         { background: rgba(248,113,113,0.14); border-color: rgba(248,113,113,0.35); }

.fm-dash-status-item__dot {
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--fb-green-soft);
}

.fm-dash-status-item--active .fm-dash-status-item__dot          { background: var(--fb-success); }
.fm-dash-status-item--needs-attention .fm-dash-status-item__dot { background: #f59e0b; }
.fm-dash-status-item--in-progress .fm-dash-status-item__dot     { background: var(--fb-blue); }
.fm-dash-status-item--alert .fm-dash-status-item__dot           { background: var(--fb-danger); }

.fm-dash-status-item__body {
	flex: 1;
	min-width: 0;
}

.fm-dash-status-item__label {
	display: block;
	font-size: 10px;
	font-weight: 500;
	color: var(--fb-green-soft);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	line-height: 1;
	margin: 0 0 3px;
}

.fm-dash-status-item__status {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink);
	line-height: 1.2;
	margin: 0;
}

.fm-dash-status-item--active .fm-dash-status-item__status          { color: var(--fb-success); }
.fm-dash-status-item--in-progress .fm-dash-status-item__status     { color: var(--fb-azure); }
.fm-dash-status-item--needs-attention .fm-dash-status-item__status { color: #fbbf24; font-weight: 700; }
.fm-dash-status-item--alert .fm-dash-status-item__status           { color: var(--fb-danger); font-weight: 700; }

.fm-dash-status-item__chip {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	margin-left: auto;
	padding: 5px 11px;
	font-size: 11px;
	font-weight: 600;
	color: var(--fb-azure);
	background: var(--fb-surface);
	border: 1px solid rgba(124,192,255,0.30);
	border-radius: 20px;
	text-decoration: none;
	white-space: nowrap;
	min-height: 32px;
	line-height: 1;
}

.fm-dash-status-item__chip:hover { background: var(--fb-accent-bg); text-decoration: none; }

.fm-dash-status-item--needs-attention .fm-dash-status-item__chip { color: #fbbf24; border-color: rgba(245,158,11,0.35); background: var(--fb-surface); }
.fm-dash-status-item--alert .fm-dash-status-item__chip           { color: var(--fb-danger); border-color: rgba(248,113,113,0.35); background: var(--fb-surface); }

@media ( max-width: 600px ) {
	.fm-dash-status-strip {
		flex-direction: column;
		gap: 8px;
	}

	.fm-dash-status-item {
		flex: 1 1 auto;
	}

	.fm-dash-status-item__chip {
		min-height: 44px;
		padding: 5px 14px;
	}
}

/* ==========================================================================
   Phase 53J ? Dashboard mobile, accessibility, reduced motion
   ========================================================================== */

/* Focus-visible outlines for keyboard navigation */

.fm-dash-status-item__chip:focus-visible,
.fm-dash-sales-widget__link:focus-visible,
.fm-dash-notify-item__action:focus-visible,
.fm-dash-notify__done-toggle:focus-visible {
	outline: 2px solid var(--fb-blue);
	outline-offset: 2px;
	border-radius: 3px;
}

/* No horizontal overflow on small screens */

.fm-dash-bento {
	min-width: 0;
	overflow: hidden;
}

.fm-products-strip {
	min-width: 0;
}

/* Reduce products status strip from 4-col to 2�2 at mid-size screens */

@media ( max-width: 860px ) {
	.fm-products-strip {
		flex-wrap: wrap;
	}
	.fm-products-strip .fm-dash-status-item {
		flex: 1 1 calc(50% - 5px);
	}
}

/* On phones, lay the four product stats out as a compact 2-column tile grid
   instead of four tall full-width bars — this uses the horizontal space and
   keeps the section short. (Overrides the generic strip's column stack.) */
@media ( max-width: 600px ) {
	.fm-products-strip {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.fm-products-strip .fm-dash-status-item {
		flex-wrap: wrap;
		align-items: center;
		gap: 4px 8px;
		padding: 12px 14px;
	}

	.fm-products-strip .fm-dash-status-item__body {
		flex: 1 1 auto;
	}

	/* An inline action (e.g. Stock sync → Connect) drops to a full-width
	   button inside its tile rather than squeezing the label. */
	.fm-products-strip .fm-dash-status-item__chip {
		flex-basis: 100%;
		margin-left: 0;
		margin-top: 6px;
		justify-content: center;
		min-height: 40px;
	}
}

/* Bento single column below 900px already handled in Phase 53I */

/* Reduce motion */

@media (prefers-reduced-motion: reduce) {
	.fm-dash-bento,
	.fm-dash-sales-widget,
	.fm-dash-notify {
		transition: none;
	}
}

/* ==========================================================================
   Phase 62 ? Dashboard quick status card (stock sync / boost / delivery)
   ========================================================================== */

.fm-dash-quick-status__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fm-dash-quick-status__row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.fm-dash-quick-status__dot {
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--fb-border);
}

.fm-dash-quick-status__row.is-active .fm-dash-quick-status__dot {
	background: var(--fb-success);
}

.fm-dash-quick-status__label {
	flex: 1;
	min-width: 0;
	font-size: 13px;
	color: var(--fb-green-soft);
}

.fm-dash-quick-status__value {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink);
}

.fm-dash-quick-status__row.is-active .fm-dash-quick-status__value {
	color: var(--fb-success);
}

/* ==========================================================================
   Phase 61 ? Unified dashboard notifications widget
   (merges the old "shop updates" newsfeed + "setup checklist" into one card)
   ========================================================================== */

.fm-dash-notify {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 14px;
	margin: 0 0 24px;
	overflow: hidden;
	box-shadow: var(--fb-shadow-sm);
}

.fm-dash-notify__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px 16px;
	border-bottom: 1px solid var(--fb-border);
	background: linear-gradient(180deg, rgba(124, 192, 255, 0.06), transparent);
}

.fm-dash-notify__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 2px;
}

.fm-dash-notify__sub {
	font-size: 12px;
	color: var(--fb-green-soft);
	margin: 0;
}

.fm-dash-notify__badge {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.fm-dash-notify__badge--urgent {
	background: rgba(248, 113, 113, 0.16);
	color: var(--fb-danger);
}

.fm-dash-notify__badge--warning {
	background: rgba(245, 158, 11, 0.16);
	color: #fbbf24;
}

.fm-dash-notify__badge--todo {
	background: var(--fb-accent-bg);
	color: var(--fb-azure);
}

.fm-dash-notify__badge--ready {
	background: rgba(74, 222, 128, 0.14);
	color: var(--fb-success);
}

.fm-dash-notify__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fm-dash-notify__empty {
	padding: 28px 20px;
	text-align: center;
}

.fm-dash-notify__empty-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 4px;
}

.fm-dash-notify__empty-sub {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 0;
}

.fm-dash-notify-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 20px;
	border-bottom: 1px solid var(--fb-border);
	border-left: 3px solid transparent;
	transition: background-color 0.15s ease;
}

.fm-dash-notify-item:last-child {
	border-bottom: none;
}

.fm-dash-notify-item:hover {
	background: rgba(124, 192, 255, 0.04);
}

.fm-dash-notify-item__icon {
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	margin-top: 1px;
	background: var(--fb-sand);
	color: var(--fb-green-soft);
}

.fm-dash-notify-item--urgent {
	border-left-color: var(--fb-danger);
}

.fm-dash-notify-item--urgent .fm-dash-notify-item__icon {
	background: rgba(248, 113, 113, 0.16);
	color: var(--fb-danger);
}

.fm-dash-notify-item--warning {
	border-left-color: #f59e0b;
}

.fm-dash-notify-item--warning .fm-dash-notify-item__icon {
	background: rgba(245, 158, 11, 0.16);
	color: #fbbf24;
}

.fm-dash-notify-item--todo {
	border-left-color: var(--fb-blue);
}

.fm-dash-notify-item--todo .fm-dash-notify-item__icon {
	background: var(--fb-accent-bg);
	color: var(--fb-azure);
}

.fm-dash-notify-item--info {
	border-left-color: var(--fb-border-strong);
}

.fm-dash-notify-item--optional .fm-dash-notify-item__icon {
	background: var(--fb-sand);
	color: var(--fb-green-soft);
}

.fm-dash-notify-item--done .fm-dash-notify-item__icon {
	background: rgba(74, 222, 128, 0.14);
	color: var(--fb-success);
}

.fm-dash-notify-item__body {
	flex: 1;
	min-width: 0;
}

.fm-dash-notify-item__title {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink);
	margin: 0 0 2px;
	line-height: 1.3;
}

.fm-dash-notify-item--urgent .fm-dash-notify-item__title {
	color: var(--fb-danger);
}

.fm-dash-notify-item--warning .fm-dash-notify-item__title {
	color: #fbbf24;
}

.fm-dash-notify-item__msg {
	font-size: 12px;
	color: var(--fb-green-soft);
	margin: 0;
	line-height: 1.4;
}

.fm-dash-notify-item__action {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	margin-top: 1px;
	padding: 6px 12px;
	border-radius: 8px;
	background: var(--fb-accent-bg);
	font-size: 12px;
	font-weight: 600;
	color: var(--fb-azure);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.fm-dash-notify-item__action:hover {
	background: rgba(124, 192, 255, 0.24);
	transform: translateY(-1px);
}

.fm-dash-notify__done {
	border-top: 1px solid var(--fb-border);
}

.fm-dash-notify__done-toggle {
	list-style: none;
	cursor: pointer;
	padding: 12px 20px;
	font-size: 12px;
	font-weight: 600;
	color: var(--fb-green-soft);
	user-select: none;
}

.fm-dash-notify__done-toggle::-webkit-details-marker {
	display: none;
}

.fm-dash-notify__done-toggle::before {
	content: "\25B8";
	display: inline-block;
	margin-right: 6px;
	transition: transform 0.15s ease;
}

.fm-dash-notify__done[open] .fm-dash-notify__done-toggle::before {
	transform: rotate(90deg);
}

.fm-dash-notify__done-toggle:hover {
	color: var(--fb-azure);
}

.fm-dash-notify__list--done {
	border-top: 1px solid var(--fb-border);
}

.fm-dash-notify__list--done .fm-dash-notify-item {
	opacity: 0.7;
}

.fm-dash-notify__list--done .fm-dash-notify-item__title {
	text-decoration: line-through;
	text-decoration-color: var(--fb-border-strong);
}

@media ( max-width: 600px ) {
	.fm-dash-notify__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.fm-dash-notify-item {
		flex-wrap: wrap;
		padding: 12px 14px;
	}

	/* Icon + text share the first row and use the full width; the action button
	   drops onto its own full-width line below instead of crushing the message
	   into a one-word-per-line sliver. */
	.fm-dash-notify-item__body {
		flex: 1 1 auto;
	}

	.fm-dash-notify-item__action {
		flex-basis: 100%;
		margin-left: 38px;
		margin-top: 6px;
		justify-content: center;
		white-space: normal;
		padding: 10px 14px;
	}
}

/* ==========================================================================
   Phase 47I ? Seller delivery options page
   ========================================================================== */

.fm-seller-delivery__notice {
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 14px;
	margin-bottom: 16px;
}

.fm-seller-delivery__notice--success {
	background: rgba(74,222,128,0.14);
	border: 1px solid rgba(74,222,128,0.35);
	color: var(--fb-success);
}

.fm-seller-delivery__notice--error {
	background: rgba(248,113,113,0.14);
	border: 1px solid rgba(248,113,113,0.35);
	color: var(--fb-danger);
}

.fm-seller-delivery__notice--info {
	background: var(--fb-accent-bg);
	border: 1px solid rgba(124,192,255,0.30);
	color: var(--fb-azure);
}

.fm-seller-delivery__content {
	max-width: 760px;
	padding: 24px 0 48px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Card wrapper — gives each section (Products, Active delivery options) a single
   cohesive surface instead of a floating header sitting above a separately-bordered list. */
.fm-delivery-card {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 14px;
	padding: 20px 22px 22px;
	box-shadow: var(--fb-shadow-sm);
}

/* ?? Product table (primary section) ??????????????????????? */
/* Real grid table: every row (including the header) shares the exact same
   column widths, so product names of different lengths can never throw the
   delivery badges/pills out of alignment the way a flex row would. */

.fm-delivery-table {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	overflow: hidden;
}

.fm-delivery-table__row {
	display: grid;
	grid-template-columns: 22px minmax(120px, 1.2fr) minmax(180px, 2fr) 116px;
	align-items: center;
	column-gap: 12px;
	padding: 13px 16px;
	background: var(--fb-surface);
	border-bottom: 1px solid var(--fb-border);
	border-left: 3px solid transparent;
	transition: background 0.12s ease;
}

.fm-delivery-table__row:last-child {
	border-bottom: none;
}

.fm-delivery-table__row--head {
	padding: 10px 16px;
	background: var(--fb-cream);
}

.fm-delivery-table__row--head .fm-delivery-table__col {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--fb-green-soft);
}

.fm-delivery-table__row--outstanding:not(.fm-delivery-table__row--head):hover,
.fm-delivery-table__row--covered:hover {
	background: var(--fb-accent-bg);
}

.fm-delivery-table__row--outstanding {
	border-left-color: #f59e0b;
	background: rgba(245,158,11,0.08);
}

.fm-delivery-table__row--outstanding:hover {
	background: rgba(245,158,11,0.14);
}

.fm-delivery-table__col {
	min-width: 0;
}

.fm-delivery-table__col--flag {
	display: flex;
	align-items: center;
	justify-content: center;
}

.fm-delivery-table__col--name {
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fm-delivery-table__col--options {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	align-items: center;
}

.fm-delivery-table__col--action {
	display: flex;
	justify-content: flex-end;
}

.fm-delivery-product-row__flag {
	font-size: 15px;
	color: #fbbf24;
	flex-shrink: 0;
	line-height: 1;
}

.fm-delivery-product-row__tick {
	font-size: 14px;
	color: var(--fb-success);
	flex-shrink: 0;
	line-height: 1;
}

.fm-delivery-product-row__option-pill {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--fb-success);
	background: rgba(74,222,128,0.14);
	border: 1px solid rgba(74,222,128,0.35);
	border-radius: 20px;
	padding: 2px 9px;
	white-space: nowrap;
}

.fm-delivery-product-row__no-delivery {
	font-size: 12.5px;
	color: var(--fb-green-soft);
	font-style: italic;
}

.fm-delivery-product-row__status-badge {
	font-size: 11.5px;
	font-weight: 600;
	color: #fbbf24;
	background: rgba(245,158,11,0.16);
	border: 1px solid rgba(245,158,11,0.35);
	border-radius: 4px;
	padding: 2px 8px;
	white-space: nowrap;
}

.fm-delivery-product-row__cta--add {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	font-size: 12.5px;
	font-weight: 700;
	color: #fff;
	background: var(--fb-green);
	border: 1.5px solid var(--fb-green);
	border-radius: 6px;
	padding: 5px 12px;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.12s ease, transform 0.1s ease;
}

.fm-delivery-product-row__cta--add:hover {
	background: var(--fb-blue);
	color: #fff;
	transform: translateY(-1px);
}

.fm-delivery-product-row__cta--fix {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	font-size: 12.5px;
	font-weight: 700;
	color: #fbbf24;
	background: rgba(245,158,11,0.16);
	border: 1.5px solid rgba(245,158,11,0.35);
	border-radius: 6px;
	padding: 4px 11px;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.12s ease;
}

.fm-delivery-product-row__cta--fix:hover {
	background: rgba(245,158,11,0.16);
	color: #fbbf24;
}

.fm-delivery-product-row__manage-link {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 6px;
	padding: 4px 10px;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.12s ease, color 0.12s ease;
}

.fm-delivery-product-row__manage-link:hover {
	background: var(--fb-border);
	color: var(--fb-ink);
}

/* ?? Rush/Speedy delivery — per-product toggle + quick-add ??????????????????? */

.fm-delivery-table__rush-form {
	margin: 0;
}

.fm-delivery-table__rush-toggle {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--fb-green-soft);
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 20px;
	padding: 3px 10px 3px 8px;
	cursor: pointer;
	white-space: nowrap;
	font-family: inherit;
	transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.fm-delivery-table__rush-toggle:hover {
	border-color: var(--fb-border-strong);
}

.fm-delivery-table__rush-toggle-dot {
	flex-shrink: 0;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--fb-border-strong);
	transition: background 0.12s ease;
}

.fm-delivery-table__rush-toggle.is-on {
	color: var(--fb-azure);
	background: var(--fb-accent-bg);
	border-color: rgba(124,192,255,0.30);
}

.fm-delivery-table__rush-toggle.is-on .fm-delivery-table__rush-toggle-dot {
	background: var(--fb-azure);
}

.fm-delivery-add-rush-form {
	margin: 0;
}

.fm-delivery-add-rush-btn {
	display: inline-flex;
	align-items: center;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--fb-azure);
	background: var(--fb-accent-bg);
	border: 1.5px solid rgba(124,192,255,0.30);
	border-radius: 6px;
	padding: 5px 12px;
	cursor: pointer;
	white-space: nowrap;
	font-family: inherit;
	transition: background 0.12s ease, border-color 0.12s ease;
}

.fm-delivery-add-rush-btn:hover {
	background: rgba(124,192,255,0.20);
	border-color: var(--fb-azure);
}

/* Header action cluster — rush + global add side by side. */
.fm-delivery-section-header__actions {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

/* Global "applies to every product" add button — the primary path. */
.fm-delivery-add-global-btn {
	display: inline-flex;
	align-items: center;
	font-size: 12.5px;
	font-weight: 700;
	color: #fff;
	background: var(--fb-azure, #3b82f6);
	border: 1.5px solid var(--fb-azure, #3b82f6);
	border-radius: 6px;
	padding: 5px 12px;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
	font-family: inherit;
	transition: filter 0.12s ease;
}

.fm-delivery-add-global-btn:hover {
	filter: brightness(1.12);
	color: #fff;
}

.fm-delivery-add-global-btn--lg {
	font-size: 14px;
	padding: 10px 20px;
}

/* Empty state: no delivery options yet — push the global path. */
.fm-delivery-global-empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 6px 2px;
}

.fm-delivery-global-empty__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0;
}

.fm-delivery-global-empty__desc {
	font-size: 13px;
	color: var(--fb-ink-soft);
	margin: 0 0 6px;
	line-height: 1.5;
}

/* ?? Section headers ??????????????????????????????????????? */

.fm-delivery-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.fm-delivery-section-header--products {
	margin-top: 0;
}

.fm-delivery-section-header--options {
	margin-top: 0;
}

.fm-delivery-section-header__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 2px;
}

/* ?? Section description ??????????????????????????????????? */

.fm-delivery-section-desc {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: -6px 0 12px;
	line-height: 1.5;
}

/* ?? Empty card ???????????????????????????????????????????? */

.fm-delivery-empty-card {
	background: var(--fb-surface);
	border: 1.5px dashed var(--fb-border-strong);
	border-radius: 10px;
	padding: 20px;
	margin: 0;
}

.fm-delivery-empty-card__msg {
	font-size: 14px;
	color: var(--fb-green-soft);
	margin: 0;
	line-height: 1.5;
}

/* ?? Delivery option rows ??????????????????????????????????? */

.fm-delivery-list-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 16px 8px;
}

.fm-delivery-list-head__col {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--fb-green-soft);
}

.fm-delivery-list-head__col--info {
	flex: 1;
}

.fm-delivery-list-head__col--actions {
	flex-shrink: 0;
}

.fm-delivery-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	overflow: hidden;
}

.fm-delivery-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: var(--fb-surface);
	border-bottom: 1px solid var(--fb-border);
	transition: background 0.12s ease;
}

.fm-delivery-row:last-child {
	border-bottom: none;
}

.fm-delivery-row:hover {
	background: var(--fb-accent-bg);
}

.fm-delivery-row--off {
	background: var(--fb-surface);
}

.fm-delivery-row--off:hover {
	background: var(--fb-border);
}

.fm-delivery-row--off .fm-delivery-row__name {
	color: var(--fb-green-soft);
}

.fm-delivery-row--off .fm-delivery-row__meta {
	color: var(--fb-border-strong);
}

.fm-delivery-row__info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.fm-delivery-row__name {
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-ink);
}

.fm-delivery-row__meta {
	font-size: 13px;
	color: var(--fb-green-soft);
}

/* Row actions: Edit | Delete | Toggle */
.fm-delivery-row__actions {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}

.fm-delivery-row__form {
	margin: 0;
}

.fm-delivery-row__edit-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 14px;
	font-size: 13px;
	font-weight: 700;
	color: var(--fb-azure);
	background: rgba(124, 192, 255, 0.12);
	border: 1px solid rgba(124, 192, 255, 0.4);
	border-radius: 6px;
	text-decoration: none;
	transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
	white-space: nowrap;
}

.fm-delivery-row__edit-link::before {
	content: "\270E"; /* pencil */
	font-size: 12px;
	line-height: 1;
}

.fm-delivery-row__edit-link:hover {
	background: var(--fb-blue);
	border-color: var(--fb-blue);
	color: var(--fb-white);
}

.fm-delivery-row__delete-btn {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-danger);
	background: transparent;
	border: 1px solid rgba(248,113,113,0.35);
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.12s ease, border-color 0.12s ease;
	white-space: nowrap;
	font-family: inherit;
}

.fm-delivery-row__delete-btn:hover {
	background: rgba(248,113,113,0.14);
	border-color: var(--fb-danger);
}

.fm-delivery-row__toggle {
	padding: 5px 14px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
	letter-spacing: 0.03em;
	white-space: nowrap;
	font-family: inherit;
}

.fm-delivery-row__toggle--on {
	background: rgba(74,222,128,0.14);
	color: var(--fb-success);
	border-color: rgba(74,222,128,0.35);
}

.fm-delivery-row__toggle--on:hover {
	background: rgba(74,222,128,0.14);
}

.fm-delivery-row__toggle--off {
	background: var(--fb-surface);
	color: var(--fb-green-soft);
	border-color: var(--fb-border);
}

.fm-delivery-row__toggle--off:hover {
	background: var(--fb-border);
}

@media ( max-width: 640px ) {
	.fm-delivery-card {
		padding: 16px;
		border-radius: 12px;
	}

	/* Collapse the 4-column table to a 2-column stack: icon+name on the first
	   line, delivery info and action wrapping onto their own lines below. */
	.fm-delivery-table__row {
		grid-template-columns: 18px 1fr;
		row-gap: 6px;
	}

	.fm-delivery-table__row--head {
		display: none;
	}

	.fm-delivery-table__col--options,
	.fm-delivery-table__col--action {
		grid-column: 2 / -1;
	}

	.fm-delivery-table__col--action {
		justify-content: flex-start;
	}

	.fm-delivery-list-head {
		display: none;
	}

	.fm-delivery-row {
		flex-wrap: wrap;
	}

	.fm-delivery-row__actions {
		width: 100%;
		justify-content: flex-end;
	}
}

.fm-seller-delivery__intro {
	font-size: 14px;
	color: var(--fb-ink-soft);
	margin: 0 0 20px;
	line-height: 1.5;
}

.fm-seller-delivery__form-heading {
	font-size: 18px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 20px;
}

/* Presets row */

.fm-delivery-presets {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 24px;
}

.fm-delivery-presets__label {
	font-size: 12px;
	font-weight: 600;
	color: var(--fb-green-soft);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	flex-shrink: 0;
}

.fm-delivery-presets__form {
	margin: 0;
}

.fm-delivery-presets__btn {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border-strong);
	border-radius: 6px;
	padding: 6px 12px;
	font-size: 13px;
	color: var(--fb-ink);
	cursor: pointer;
	white-space: nowrap;
}

.fm-delivery-presets__btn:hover {
	background: var(--fb-surface);
	border-color: var(--fb-green-soft);
}

.fm-delivery-presets__btn--exists {
	text-decoration: none;
	background: rgba(74,222,128,0.14);
	border-color: rgba(74,222,128,0.35);
	color: var(--fb-success);
}

.fm-delivery-presets__btn--exists:hover {
	background: rgba(74,222,128,0.14);
	border-color: rgba(74,222,128,0.35);
	color: var(--fb-success);
}

.fm-delivery-presets__existing {
	display: inline-flex;
}

/* Options list */

.fm-delivery-options-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 20px;
}

.fm-delivery-options-list__empty {
	font-size: 14px;
	color: var(--fb-green-soft);
	padding: 20px 0;
}

.fm-delivery-options-list__footer {
	margin-top: 4px;
}

/* Option row */

.fm-delivery-option-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: var(--fb-surface);
	border-bottom: 1px solid var(--fb-border);
}

.fm-delivery-option-row:last-child {
	border-bottom: none;
}

.fm-delivery-option-row--disabled {
	opacity: 0.65;
}

.fm-delivery-option-row__info {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	min-width: 0;
}

.fm-delivery-option-row__name {
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-ink);
}

.fm-delivery-option-row__price {
	font-size: 14px;
	color: var(--fb-success);
	font-weight: 500;
}

.fm-delivery-option-row__window {
	font-size: 12px;
	color: var(--fb-green-soft);
}

.fm-delivery-option-row__desc {
	font-size: 12px;
	color: var(--fb-green-soft);
	width: 100%;
}

.fm-delivery-option-row__badges {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}

.fm-delivery-option-row__badge {
	font-size: 11px;
	font-weight: 600;
	padding: 2px 7px;
	border-radius: 99px;
}

.fm-delivery-option-row__badge--default {
	background: var(--fb-accent-bg);
	color: var(--fb-azure);
}

.fm-delivery-option-row__badge--disabled {
	background: var(--fb-surface);
	color: var(--fb-green-soft);
}

.fm-delivery-option-row__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.fm-delivery-option-row__form {
	margin: 0;
}

.fm-delivery-option-row__action-link,
.fm-delivery-option-row__action-btn {
	font-size: 13px;
	color: var(--fb-ink-soft);
	text-decoration: none;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
}

.fm-delivery-option-row__action-link:hover,
.fm-delivery-option-row__action-btn:hover {
	color: var(--fb-ink);
	text-decoration: underline;
}

.fm-delivery-option-row__action-btn--danger {
	color: var(--fb-danger);
}

.fm-delivery-option-row__action-btn--danger:hover {
	color: var(--fb-danger);
}

/* Add/edit form */

.fm-delivery-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-width: 520px;
}

.fm-delivery-form__label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	margin-bottom: 5px;
}

.fm-delivery-form__required {
	color: var(--fb-danger);
}

.fm-delivery-form__input {
	width: 100%;
	padding: 8px 10px;
	font-size: 14px;
	border: 1px solid var(--fb-border-strong);
	border-radius: 6px;
	color: var(--fb-ink);
	box-sizing: border-box;
}

.fm-delivery-form__input:focus {
	outline: 2px solid var(--fb-blue);
	outline-offset: 1px;
	border-color: transparent;
}

.fm-delivery-form__input--price {
	max-width: 140px;
}

.fm-delivery-form__input--days {
	max-width: 100px;
}

.fm-delivery-form__input--sort {
	max-width: 100px;
}

.fm-delivery-form__hint {
	display: block;
	font-size: 12px;
	color: var(--fb-green-soft);
	margin-top: 4px;
}

.fm-delivery-form__field-row {
	display: flex;
	gap: 16px;
}

.fm-delivery-form__field-row .fm-delivery-form__field {
	flex: 1;
}

.fm-delivery-form__checks {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fm-delivery-form__check-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--fb-ink-soft);
	cursor: pointer;
}

.fm-delivery-form__field--sort {
	margin-top: 4px;
}

.fm-delivery-form__actions {
	display: flex;
	gap: 12px;
	align-items: center;
	padding-top: 4px;
}

/* Phase 47Q ? UX improvements */

.fm-delivery-explainer {
	background: var(--fb-accent-bg);
	border: 1px solid rgba(124,192,255,0.30);
	border-radius: 8px;
	padding: 14px 18px;
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--fb-azure);
}

.fm-delivery-explainer strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 6px;
}

.fm-delivery-explainer p {
	margin: 0 0 6px;
}

.fm-delivery-explainer p:last-child {
	margin-bottom: 0;
}

.fm-seller-delivery__section-title {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fb-green-soft);
	margin: 0 0 8px;
}

.fm-delivery-option-row__per-order {
	font-size: 11px;
	color: var(--fb-green-soft);
	margin-left: 4px;
	font-weight: 400;
}

.fm-delivery-option-row__badge--visible {
	background: rgba(74,222,128,0.14);
	color: var(--fb-success);
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 12px;
}

.fm-delivery-option-row__badge--hidden {
	background: rgba(245,158,11,0.16);
	color: #fbbf24;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 12px;
}

.fm-delivery-empty-state {
	background: var(--fb-surface);
	border: 1px dashed var(--fb-border-strong);
	border-radius: 8px;
	padding: 20px 24px;
	margin: 16px 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--fb-ink-soft);
}

.fm-delivery-empty-state p {
	margin: 0 0 6px;
}

.fm-delivery-empty-state p:last-child {
	margin-bottom: 0;
}

.fm-delivery-empty-state__fallback {
	font-size: 13px;
	color: var(--fb-green-soft);
}

.fm-delivery-form__fieldset {
	border: none;
	margin: 0 0 16px;
	padding: 0;
}

.fm-delivery-form__legend {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	margin-bottom: 8px;
	padding: 0;
}

.fm-delivery-form__check-group {
	margin-bottom: 12px;
}

.fm-delivery-form__check-hint {
	display: block;
	font-size: 12px;
	color: var(--fb-green-soft);
	margin-top: 3px;
	margin-left: 22px;
	line-height: 1.4;
}

.fm-delivery-form__advanced-toggle {
	background: none;
	border: none;
	padding: 0;
	font-size: 13px;
	color: var(--fb-green-soft);
	cursor: pointer;
	margin-bottom: 12px;
	display: block;
}

.fm-delivery-form__advanced-toggle:hover {
	color: var(--fb-ink);
	text-decoration: underline;
}

/* Phase 48G ? Bespoke delivery review panel */

.fm-delivery-bespoke__empty {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 0;
}

.fm-delivery-bespoke-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fm-delivery-bespoke-item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 12px 16px;
	flex-wrap: wrap;
}

/* =============================================================================
   Phase 60 ? Product Editor Canvas (two-column command centre)
   ============================================================================= */

.fm-pe-canvas {
	max-width: 1360px;
	margin: 0 auto;
	padding: 0 0 80px;
}

/* ?? Header ??????????????????????????????????????????????????????????????? */

.fm-pe-header {
	margin-bottom: 24px;
}

.fm-pe-header__title-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 4px;
}

.fm-pe-header__title {
	font-size: 22px;
	font-weight: 800;
	color: var(--fb-ink);
	margin: 0;
	line-height: 1.2;
}

.fm-pe-header__sub {
	font-size: 14px;
	color: var(--fb-green-soft);
	margin: 0;
}

.fm-pe-header__back {
	font-size: 13px;
	color: var(--fb-green-soft);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 12px;
}

.fm-pe-header__back:hover {
	color: var(--fb-ink);
}

/* ?? Status badges ?????????????????????????????????????????????????????????? */

.fm-pe-badge {
	display: inline-flex;
	align-items: center;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 3px 10px;
	border-radius: 20px;
	white-space: nowrap;
}

.fm-pe-badge--draft      { background: var(--fb-surface); color: var(--fb-ink-soft); }
.fm-pe-badge--pending    { background: rgba(245,158,11,0.16); color: #fbbf24; }
.fm-pe-badge--live       { background: rgba(74,222,128,0.14); color: var(--fb-success); }
.fm-pe-badge--rejected   { background: rgba(248,113,113,0.14); color: var(--fb-danger); }
.fm-pe-badge--approved   { background: rgba(74,222,128,0.14); color: var(--fb-success); }

/* ?? Two-column grid ???????????????????????????????????????????????????????? */

.fm-pe-grid {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 24px;
	align-items: start;
}

.fm-pe-main {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.fm-pe-sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: sticky;
	top: 20px;
}

/* ?? Cards ????????????????????????????????????????????????????????????????? */

.fm-pe-card {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 12px;
	padding: 22px 24px;
}

.fm-pe-card__heading {
	font-size: 15px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 18px;
}

.fm-pe-card__hint {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: -10px 0 14px;
}

.fm-pe-card__note {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 8px 0 0;
	line-height: 1.5;
}
.fm-pe-card__link {
	display: inline-block;
	margin-top: 10px;
	font-size: 13px;
	color: var(--fb-green);
	text-decoration: none;
}
.fm-pe-card__link:hover { text-decoration: underline; }

/* Delivery card ? section inside provides its own heading */
.fm-pe-card--delivery {
	padding: 20px 24px;
}

.fm-pe-card--delivery .fm-pd-delivery {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
}

/* Media card */
.fm-pe-card--media .fm-image-picker__drop-zone {
	margin-top: 8px;
}

.fm-pe-card--media .fm-image-picker__grid {
	margin-top: 14px;
}

/* Consistent thumbnail height in product image grid */
.fm-pe-card--media .fm-image-picker__preview-img {
	height: 110px;
	object-fit: cover;
}

.fm-pe-card--media .fm-image-picker__preview-item {
	border-radius: 10px;
}

/* Status card */
.fm-pe-card--status .fm-pe-status-row {
	margin-bottom: 4px;
}

/* Preview card */
.fm-pe-card--preview {
	padding: 20px 20px 16px;
}

/* Save card */
.fm-pe-card--save {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px 20px;
}

/* ?? Form fields ???????????????????????????????????????????????????????????? */

.fm-pe-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
}

.fm-pe-field:last-child {
	margin-bottom: 0;
}

.fm-pe-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 14px;
	margin-bottom: 16px;
}

.fm-pe-field-row--2col {
	grid-template-columns: 1fr 1fr;
}

/* Variants call-to-action strip */
.fm-pe-variants-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 14px 16px;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	margin-top: 4px;
}

.fm-pe-variants-cta__hint {
	font-size: 12.5px;
	color: var(--fb-green-soft);
	margin: 0;
	line-height: 1.55;
	flex: 1 1 180px;
}

.fm-pe-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
}

.fm-pe-required {
	color: var(--fb-danger);
}

.fm-pe-input {
	width: 100%;
	padding: 9px 12px;
	font-size: 14px;
	font-family: inherit;
	color: var(--fb-ink);
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	transition: border-color 0.15s, box-shadow 0.15s;
	box-sizing: border-box;
}

.fm-pe-input:focus {
	outline: none;
	border-color: var(--fb-green);
	box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
}

.fm-pe-select {
	cursor: pointer;
	padding-right: 34px;
	min-height: 40px;
}

.fm-pe-hint {
	font-size: 12.5px;
	color: var(--fb-green-soft);
	margin: 8px 0 0;
	line-height: 1.5;
}

/* ?? Sidebar preview snapshot ??????????????????????????????????????????????? */

.fm-pe-preview__note {
	font-size: 11.5px;
	color: var(--fb-green-soft);
	margin: -8px 0 12px;
	line-height: 1.55;
}

.fm-pe-preview__thumb {
	width: 100%;
	aspect-ratio: 4 / 3;
	background: var(--fb-surface);
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
	border: 1px solid var(--fb-border);
}

.fm-pe-preview__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fm-pe-preview__placeholder {
	font-size: 11px;
	color: var(--fb-green-soft);
}

.fm-pe-preview__name {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 4px;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.fm-pe-preview__price {
	font-size: 17px;
	font-weight: 800;
	color: var(--fb-success);
	margin: 0 0 5px;
}

.fm-pe-preview__meta {
	font-size: 11.5px;
	color: var(--fb-green-soft);
	margin: 0 0 3px;
}

.fm-pe-preview__sku-row {
	font-size: 11px;
	color: var(--fb-green-soft);
	margin: 0;
	padding-top: 6px;
	border-top: 1px solid var(--fb-border);
}

/* ?? Save panel ????????????????????????????????????????????????????????????? */

.fm-pe-save-btn {
	display: block;
	width: 100%;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 700;
	font-family: inherit;
	color: #fff;
	background: var(--fb-surface);
	border: none;
	border-radius: 9px;
	cursor: pointer;
	text-align: center;
	transition: background 0.15s, transform 0.1s;
}

.fm-pe-save-btn:hover {
	background: var(--fb-surface);
	transform: translateY(-1px);
}

.fm-pe-save-btn:active {
	transform: none;
}

.fm-pe-save-btn--resubmit {
	background: var(--fb-green);
}

.fm-pe-save-btn--resubmit:hover {
	background: var(--fb-blue);
}

.fm-pe-cancel-link {
	display: block;
	text-align: center;
	font-size: 13px;
	font-weight: 500;
	color: var(--fb-green-soft);
	text-decoration: none;
}

.fm-pe-cancel-link:hover {
	color: var(--fb-ink);
	text-decoration: underline;
}

/* ?? Approval / status note ????????????????????????????????????????????????? */

.fm-pe-approval-note {
	font-size: 12.5px;
	color: var(--fb-green-soft);
	line-height: 1.5;
	margin: 8px 0 0;
	padding-top: 10px;
	border-top: 1px solid var(--fb-border);
}

/* ?? Variant managed summary (inside card) ???????????????????????????????? */

.fm-pe-card .fm-variant-managed-summary {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 12px 14px;
}

/* ?? Checklist (sidebar) ??????????????????????????????????????????????????? */

.fm-pe-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fm-pe-checklist__item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--fb-green-soft);
}

.fm-pe-checklist__item--done {
	color: var(--fb-success);
}

.fm-pe-checklist__item--done::before {
	content: '?';
	font-weight: 700;
	font-size: 12px;
	color: var(--fb-success);
}

.fm-pe-checklist__item:not(.fm-pe-checklist__item--done)::before {
	content: '?';
	font-size: 12px;
	color: var(--fb-border-strong);
}

/* ?? Notices (full-width, above grid) ?????????????????????????????????????? */

.fm-pe-notice {
	margin-bottom: 16px;
}

/* ?? Mobile responsive ?????????????????????????????????????????????????????? */

@media (max-width: 920px) {
	.fm-pe-grid {
		grid-template-columns: 1fr;
	}

	.fm-pe-sidebar {
		position: static;
		/* Sidebar moves above main on mobile ? show status/save first */
		order: -1;
	}

	.fm-pe-field-row {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	.fm-pe-canvas {
		padding: 0 0 60px;
	}

	.fm-pe-card {
		padding: 16px;
	}

	.fm-pe-field-row {
		grid-template-columns: 1fr;
	}

	.fm-pe-header__title {
		font-size: 18px;
	}
}

/* ???????????????????????????????????????????????????????????????????????????
   Phase 58AF ? Uniform seller product row (.fm-pr)
   Outer grid: [72px thumb] [fluid identity] [fluid metrics] [fluid actions]
   Inner metrics grid: [price] [stock] [variants] [sync] [delivery] — all fluid,
   so the row compresses instead of clipping when the container is narrower
   than the viewport (e.g. seller sidebar layouts).
   ??????????????????????????????????????????????????????????????????????????? */

.fm-pr {
	display: grid;
	grid-template-columns: 72px minmax(120px, 1.3fr) minmax(280px, 3fr) minmax(88px, 0.9fr);
	align-items: stretch;
	min-height: 80px;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	margin-bottom: 8px;
	overflow: hidden;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.fm-pr:hover {
	border-color: var(--fb-border-strong);
	box-shadow: var(--fb-shadow-sm);
}

.fm-pr + .fm-pr {
	margin-top: 0;
}

/* Thumbnail */
.fm-pr__thumb-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--fb-surface);
	flex-shrink: 0;
	overflow: hidden;
	margin-left: 12px;
}

.fm-pr__thumb-img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	display: block;
}

.fm-pr__thumb-empty {
	width: 72px;
	height: 72px;
	background: var(--fb-border);
}

/* Identity */
.fm-pr__identity {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	padding: 10px 14px;
	min-width: 0;
	border-right: 1px solid var(--fb-border);
}

.fm-pr__name {
	font-size: 13.5px;
	font-weight: 600;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fm-pr__name a {
	color: var(--fb-ink);
	text-decoration: none;
}

.fm-pr__name a:hover {
	color: var(--fb-azure);
	text-decoration: underline;
}

.fm-pr__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.fm-pr__badge {
	display: inline-block;
	font-size: 10.5px;
	font-weight: 600;
	padding: 2px 7px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	line-height: 1.5;
}

.fm-pr__badge--approved    { background: rgba(74,222,128,0.14); color: var(--fb-success); }
.fm-pr__badge--live        { background: rgba(74,222,128,0.14); color: var(--fb-success); }
.fm-pr__badge--pending     { background: rgba(245,158,11,0.16); color: #fbbf24; }
.fm-pr__badge--rejected    { background: rgba(248,113,113,0.14); color: var(--fb-danger); }
.fm-pr__badge--draft       { background: var(--fb-surface); color: var(--fb-ink-soft); }
.fm-pr__badge--inactive    { background: var(--fb-surface); color: var(--fb-green-soft); }
.fm-pr__badge--type-simple   { background: var(--fb-accent-bg); color: var(--fb-azure); }
.fm-pr__badge--type-variable { background: rgba(74,222,128,0.14); color: var(--fb-success); }
.fm-pr__badge--attention   { background: rgba(245,158,11,0.16); color: #fbbf24; cursor: help; }

.fm-pr__sku {
	font-size: 11.5px;
	color: var(--fb-green-soft);
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fm-pr__sku-label {
	font-weight: 600;
	color: var(--fb-green-soft);
	text-transform: uppercase;
	font-size: 10px;
	letter-spacing: 0.4px;
}

/* Metrics container (5-slot inner grid) */
/* Variants toggle + expandable variant summary panel */
.fm-pr__variants-toggle {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	max-width: 100%;
	padding: 0;
	border: none;
	background: none;
	font: inherit;
	font-weight: 600;
	color: var(--fb-azure, #7cc0ff);
	cursor: pointer;
}

.fm-pr__variants-toggle:hover { text-decoration: underline; }

.fm-pr__variants-caret {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	transition: transform 0.15s ease;
	flex-shrink: 0;
}

.fm-pr__variants-toggle.is-open .fm-pr__variants-caret { transform: rotate(180deg); }

.fm-pr__variants-panel {
	grid-column: 1 / -1;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--fb-border);
	overflow-x: auto;
}

.fm-pr-variants {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.fm-pr-variants th {
	text-align: left;
	padding: 4px 12px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--fb-green-soft);
	white-space: nowrap;
}

.fm-pr-variants td {
	padding: 7px 12px;
	border-top: 1px solid var(--fb-border);
	color: var(--fb-ink);
	white-space: nowrap;
}

.fm-pr-variants__col-price,
.fm-pr-variants__col-stock,
.fm-pr-variants__price,
.fm-pr-variants__stock { text-align: right; }

.fm-pr-variants__name { font-weight: 600; }

.fm-pr-variants__sku {
	color: var(--fb-ink-soft);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
}

.fm-pr-variants__stock--low { color: #fbbf24; font-weight: 700; }
.fm-pr-variants__stock--out { color: var(--fb-danger); font-weight: 700; }

.fm-pr__metrics {
	display: grid;
	grid-template-columns:
		minmax(56px, 0.8fr)
		minmax(50px, 0.75fr)
		minmax(80px, 1.25fr)
		minmax(64px, 1fr)
		minmax(96px, 1.4fr);
	align-items: stretch;
	min-width: 0;
}

.fm-pr__slot {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 10px 10px;
	border-right: 1px solid var(--fb-border);
	min-width: 0;
	overflow: hidden;
}

.fm-pr__slot:last-child {
	border-right: none;
}

.fm-pr__slot-label {
	font-size: 10px;
	font-weight: 700;
	color: var(--fb-green-soft);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 3px;
	white-space: nowrap;
}

.fm-pr__slot-val {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fm-pr__slot-val--price  { color: var(--fb-ink); }
.fm-pr__slot-val--muted  { color: var(--fb-green-soft); font-weight: 400; }
.fm-pr__slot-val--out    { color: var(--fb-danger); }
.fm-pr__slot-val--low    { color: #fbbf24; }

.fm-pr__slot-secondary {
	font-size: 11.5px;
	color: var(--fb-green-soft);
	margin-top: 2px;
	white-space: nowrap;
}

/* Delivery chip cluster */
.fm-pr__delivery {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: center;
}

.fm-pr__chip {
	display: inline-block;
	font-size: 11px;
	padding: 2px 7px;
	background: var(--fb-accent-bg);
	color: var(--fb-azure);
	border-radius: 5px;
	font-weight: 500;
	white-space: nowrap;
	line-height: 1.5;
}

.fm-pr__chip--more {
	background: var(--fb-surface);
	color: var(--fb-ink-soft);
}

.fm-pr__chip--flag {
	background: rgba(245,158,11,0.16);
	color: #fbbf24;
}

.fm-pr__delivery-text {
	font-size: 12px;
	color: var(--fb-ink);
	white-space: nowrap;
}

.fm-pr__delivery-text--warn { color: #fbbf24; font-weight: 600; }

.fm-pr__delivery-dispatch {
	font-size: 11px;
	color: var(--fb-green-soft);
}

.fm-pr__delivery-edit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border-radius: 5px;
	color: var(--fb-green-soft);
	background: transparent;
	border: 1px solid var(--fb-border);
	text-decoration: none;
	transition: color 0.12s, border-color 0.12s, background 0.12s;
}

.fm-pr__delivery-edit:hover {
	color: var(--fb-azure);
	border-color: rgba(124,192,255,0.30);
	background: var(--fb-accent-bg);
}

.fm-pr__delivery-add {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	font-size: 11px;
	font-weight: 700;
	color: var(--fb-azure);
	background: var(--fb-accent-bg);
	border: 1px solid rgba(124,192,255,0.30);
	border-radius: 5px;
	padding: 3px 8px;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.12s, border-color 0.12s;
}

.fm-pr__delivery-add:hover {
	background: rgba(124,192,255,0.20);
	border-color: var(--fb-azure);
	color: var(--fb-azure);
	text-decoration: none;
}

/* Actions column */
.fm-pr__actions {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	padding: 10px 10px;
	border-left: 1px solid var(--fb-border);
}

.fm-pr__btn {
	display: block;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	line-height: 1.4;
	white-space: nowrap;
	transition: background 0.12s, color 0.12s;
}

.fm-pr__btn--edit {
	background: var(--fb-surface);
	color: #fff;
}

.fm-pr__btn--edit:hover {
	background: var(--fb-surface);
	color: #fff;
}

.fm-pr__btn--sec {
	background: var(--fb-surface);
	color: var(--fb-ink-soft);
}

.fm-pr__btn--sec:hover {
	background: var(--fb-border);
	color: var(--fb-ink);
}

.fm-pr__btn--remove {
	background: transparent;
	color: var(--fb-danger);
	border: 1px solid rgba(248,113,113,0.35);
}

.fm-pr__btn--remove:hover {
	background: rgba(248,113,113,0.14);
	color: var(--fb-danger);
}

/* ?? Compact: <= 1240px (e.g. narrower content column beside the seller sidebar) ?? */

@media (max-width: 1240px) {
	.fm-pr {
		grid-template-columns: 64px minmax(110px, 1.1fr) minmax(240px, 2.6fr) minmax(76px, 0.8fr);
	}

	.fm-pr__thumb-img,
	.fm-pr__thumb-empty {
		width: 64px;
		height: 64px;
	}

	.fm-pr__slot {
		padding: 10px 8px;
	}

	.fm-pr__actions {
		padding: 8px;
	}

	.fm-pr__btn {
		padding: 5px 8px;
		font-size: 11.5px;
	}
}

/* ?? Mobile: <= 999px ?????????????????????????????????????????????????????? */

@media (max-width: 999px) {
	.fm-pr {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.fm-pr__thumb-wrap {
		width: 100%;
		height: 120px;
	}

	.fm-pr__thumb-img {
		width: 100%;
		height: 120px;
	}

	.fm-pr__thumb-empty {
		width: 100%;
		height: 80px;
	}

	.fm-pr__identity {
		border-right: none;
		border-bottom: 1px solid var(--fb-border);
		padding: 12px 16px;
	}

	.fm-pr__name {
		white-space: normal;
	}

	.fm-pr__metrics {
		grid-template-columns: 1fr 1fr;
		border-bottom: 1px solid var(--fb-border);
	}

	.fm-pr__slot {
		padding: 10px 12px;
		border-right: 1px solid var(--fb-border);
		border-bottom: 1px solid var(--fb-border);
	}

	.fm-pr__slot:nth-child(2n) {
		border-right: none;
	}

	.fm-pr__slot:nth-last-child(-n+2):not(:nth-child(odd)) {
		border-bottom: none;
	}

	.fm-pr__actions {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px;
		border-left: none;
		border-top: 1px solid var(--fb-border);
		padding: 12px 16px;
	}

	.fm-pr__btn {
		flex: 1 1 auto;
		min-width: 72px;
	}
}

/* ??????????????????????????????????????????????????????????????????????????? */

.fm-delivery-bespoke-item__info {
	display: flex;
	flex-direction: column;
	gap: 3px;
	flex: 1;
	min-width: 0;
}

.fm-delivery-bespoke-item__name {
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-ink);
}

.fm-delivery-bespoke-item__sku {
	font-size: 12px;
	color: var(--fb-green-soft);
}

.fm-delivery-bespoke-item__reasons {
	font-size: 12px;
	color: #fbbf24;
	font-weight: 500;
}

/* Phase 49E ? Delivery attention panel */

.fm-delivery-attention__list {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fm-delivery-attention__item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	background: rgba(245,158,11,0.16);
	border: 1px solid rgba(245,158,11,0.35);
	border-radius: 6px;
	padding: 10px 14px;
}

.fm-delivery-attention__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
	min-width: 0;
}

.fm-delivery-attention__name {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink);
}

.fm-delivery-attention__sku {
	font-size: 11px;
	color: var(--fb-green-soft);
}

.fm-delivery-attention__status {
	font-size: 12px;
	font-weight: 600;
	color: #fbbf24;
}

.fm-delivery-attention__reasons {
	font-size: 12px;
	color: #fbbf24;
}

.fm-delivery-attention__empty {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 0;
}

/* Phase 48F ? Setup warnings */

.fm-delivery-warnings {
	background: rgba(245,158,11,0.16);
	border: 1px solid rgba(245,158,11,0.35);
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fm-delivery-warnings__item {
	font-size: 13px;
	color: #fbbf24;
	line-height: 1.5;
}

.fm-delivery-warnings__icon {
	font-size: 13px;
}

/* Phase 49M ? Duplicate delivery option warning panel */

.fm-delivery-warnings--duplicates {
	display: block;
}

.fm-delivery-warnings__item--heading {
	font-weight: 600;
	margin-bottom: 8px;
}

.fm-delivery-warnings__duplicate-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fm-delivery-warnings__duplicate-item {
	font-size: 13px;
	color: #fbbf24;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	background: rgba(255,255,255,0.5);
	border-radius: 4px;
	padding: 6px 10px;
}

.fm-delivery-warnings__dup-name {
	font-weight: 600;
}

.fm-delivery-warnings__dup-price,
.fm-delivery-warnings__dup-window {
	color: #fbbf24;
	font-size: 12px;
}

.fm-delivery-warnings__dup-actions {
	margin-left: auto;
	display: flex;
	gap: 6px;
	align-items: center;
	flex-wrap: wrap;
}

.fm-delivery-warnings__dup-form {
	margin: 0;
	display: inline-flex;
}

/* Phase 48D ? Default card and buyer preview */

.fm-delivery-default-card {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	background: var(--fb-surface);
	border: 2px solid var(--fb-blue);
	border-radius: 10px;
	padding: 16px 20px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}

/* Default delivery chooser — radio-style list: see the chosen one, tap to change */
.fm-delivery-default-intro {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--fb-ink-soft);
}

.fm-delivery-default-choices__none {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-warning, #eab308);
}

.fm-delivery-default-choices {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fm-delivery-default-choice {
	border: 1.5px solid var(--fb-border);
	border-radius: 12px;
	background: var(--fb-surface);
	overflow: hidden;
	transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.fm-delivery-default-choice.is-default {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-color: var(--fb-blue);
	box-shadow: 0 0 0 1px var(--fb-blue) inset;
	background: var(--fb-accent-bg);
}

.fm-delivery-default-choice__form {
	margin: 0;
}

.fm-delivery-default-choice__btn {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 14px 16px;
	background: transparent;
	border: 0;
	cursor: pointer;
	text-align: left;
	color: inherit;
	font: inherit;
}

.fm-delivery-default-choice__btn:hover {
	background: rgba( 124, 192, 255, 0.06 );
}

.fm-delivery-default-choice__btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba( 59, 130, 246, 0.35 ) inset;
}

.fm-delivery-default-choice__radio {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid var(--fb-border-strong);
	background: transparent;
	position: relative;
	transition: border-color 0.14s ease;
}

.fm-delivery-default-choice.is-default .fm-delivery-default-choice__radio {
	border-color: var(--fb-blue);
}

.fm-delivery-default-choice.is-default .fm-delivery-default-choice__radio::after {
	content: '';
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: var(--fb-blue);
}

.fm-delivery-default-choice__text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.fm-delivery-default-choice__name {
	font-size: 15px;
	font-weight: 700;
	color: var(--fb-ink);
}

.fm-delivery-default-choice__meta {
	font-size: 13px;
	color: var(--fb-ink-soft);
}

.fm-delivery-default-choice__badge {
	flex: 0 0 auto;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--fb-blue);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.fm-delivery-default-choice__set {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 700;
	color: var(--fb-azure);
}

.fm-delivery-default-card--warning {
	border-color: rgba(245,158,11,0.35);
	background: rgba(245,158,11,0.16);
}

.fm-delivery-default-card__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.fm-delivery-default-card__name {
	font-size: 16px;
	font-weight: 700;
	color: var(--fb-ink);
}

.fm-delivery-default-card__price {
	font-size: 15px;
	font-weight: 600;
	color: var(--fb-azure);
}

.fm-delivery-default-card__per-order {
	font-size: 12px;
	font-weight: 400;
	color: var(--fb-green-soft);
}

.fm-delivery-default-card__window {
	font-size: 13px;
	color: var(--fb-green-soft);
}

.fm-delivery-default-card__desc {
	font-size: 12px;
	color: var(--fb-green-soft);
}

.fm-delivery-default-card__actions {
	flex-shrink: 0;
}

.fm-delivery-default-card__warning-text {
	font-size: 14px;
	color: #fbbf24;
	margin: 0 0 10px;
	font-weight: 500;
}

.fm-delivery-default-card__pick-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fm-delivery-default-card__pick-item {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	background: rgba(255,255,255,0.7);
	border-radius: 6px;
	padding: 8px 10px;
}

.fm-delivery-default-card__pick-name {
	font-size: 13px;
	font-weight: 600;
	color: #fbbf24;
}

.fm-delivery-default-card__pick-price,
.fm-delivery-default-card__pick-window {
	font-size: 12px;
	color: #fbbf24;
}

.fm-delivery-default-card__pick-form {
	margin: 0 0 0 auto;
	display: inline-flex;
}

.fm-delivery-buyer-preview {
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 8px;
	background: var(--fb-surface);
}

.fm-delivery-buyer-preview__label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--fb-green-soft);
	padding: 10px 16px 6px;
	border-bottom: 1px solid var(--fb-border);
}

.fm-delivery-buyer-preview__option {
	display: grid;
	grid-template-columns: 20px 1fr auto;
	grid-template-rows: auto auto;
	column-gap: 10px;
	row-gap: 2px;
	align-items: baseline;
	padding: 12px 16px;
	border-bottom: 1px solid var(--fb-border);
	font-size: 14px;
}

.fm-delivery-buyer-preview__option:last-child {
	border-bottom: none;
}

.fm-delivery-buyer-preview__option--selected {
	background: var(--fb-accent-bg);
}

.fm-delivery-buyer-preview__radio {
	grid-column: 1;
	grid-row: 1;
	font-size: 14px;
	color: var(--fb-azure);
	align-self: center;
}

.fm-delivery-buyer-preview__name {
	grid-column: 2;
	grid-row: 1;
	font-weight: 600;
	color: var(--fb-ink);
}

.fm-delivery-buyer-preview__price {
	grid-column: 3;
	grid-row: 1;
	font-weight: 700;
	color: var(--fb-ink);
	white-space: nowrap;
}

.fm-delivery-buyer-preview__window {
	grid-column: 2;
	grid-row: 2;
	font-size: 12px;
	color: var(--fb-green-soft);
}

.fm-delivery-buyer-preview__desc {
	grid-column: 2 / 4;
	grid-row: 3;
	font-size: 12px;
	color: var(--fb-green-soft);
}

/* Phase 48B ? Dashboard structure */

.fm-delivery-status-summary {
	display: flex;
	gap: 16px;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 14px 20px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.fm-delivery-status-summary__item {
	display: flex;
	flex-direction: column;
	min-width: 120px;
}

.fm-delivery-status-summary__value {
	font-size: 18px;
	font-weight: 700;
	color: var(--fb-ink);
	line-height: 1.2;
}

.fm-delivery-status-summary__value--none {
	font-size: 14px;
	font-weight: 500;
	color: var(--fb-green-soft);
}

.fm-delivery-status-summary__value--name {
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-ink);
}

.fm-delivery-status-summary__value--ok {
	color: var(--fb-success);
}

.fm-delivery-status-summary__value--warn {
	color: #fbbf24;
}

.fm-delivery-status-summary__value--bad {
	color: var(--fb-danger);
}

.fm-delivery-status-summary__label {
	font-size: 11px;
	color: var(--fb-green-soft);
	margin-top: 2px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.fm-delivery-section {
	margin-bottom: 28px;
}

.fm-delivery-section__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.fm-delivery-section__title {
	font-size: 15px;
	font-weight: 600;
	color: var(--fb-ink);
	margin: 0 0 8px;
}

.fm-delivery-section__header .fm-delivery-section__title {
	margin-bottom: 0;
}

.fm-delivery-section__desc {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: -4px 0 12px;
}

.fm-delivery-presets__btn {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	padding: 10px 14px;
}

.fm-delivery-presets__btn-label {
	font-size: 13px;
	font-weight: 600;
}

.fm-delivery-presets__btn-sub {
	font-size: 11px;
	font-weight: 400;
	opacity: 0.75;
}

.fm-delivery-help-panel {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 16px 20px;
	font-size: 13px;
	color: var(--fb-ink-soft);
	line-height: 1.6;
	margin-top: 8px;
}

.fm-delivery-help-panel__heading {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	margin: 0 0 8px;
}

.fm-delivery-help-panel__list {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 12px;
	margin: 0;
}

.fm-delivery-help-panel__term {
	font-size: 12px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	white-space: nowrap;
	padding-top: 1px;
}

.fm-delivery-help-panel__def {
	font-size: 12px;
	color: var(--fb-green-soft);
	margin: 0;
}

/* Phase 55 ? buyer preview collapsible */

.fm-delivery-preview-details {
	margin-bottom: 24px;
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	background: var(--fb-surface);
	overflow: hidden;
}

.fm-delivery-preview-details__summary {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	padding: 12px 16px;
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.fm-delivery-preview-details__summary::-webkit-details-marker {
	display: none;
}

.fm-delivery-preview-details__summary::after {
	content: ' ?';
	font-size: 11px;
}

.fm-delivery-preview-details[open] .fm-delivery-preview-details__summary::after {
	content: ' ?';
}

.fm-delivery-preview-details .fm-delivery-buyer-preview {
	margin: 0 16px 12px;
}

.fm-delivery-preview-details__note {
	font-size: 12px;
	color: var(--fb-green-soft);
	margin: 0 16px 12px;
}

/* Phase 49B ? Page intro line */

.fm-delivery-intro {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 0 0 16px;
	line-height: 1.5;
}

/* Phase 49G ? Next-action CTAs */

.fm-delivery-next-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 16px;
}

.fm-delivery-next-actions__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	padding: 12px 16px;
}

.fm-delivery-next-actions__item--primary {
	background: var(--fb-accent-bg);
	border-color: rgba(124,192,255,0.30);
}

.fm-delivery-next-actions__item--warning {
	background: rgba(245,158,11,0.16);
	border-color: rgba(245,158,11,0.35);
}

.fm-delivery-next-actions__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
	min-width: 0;
}

.fm-delivery-next-actions__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink);
}

.fm-delivery-next-actions__desc {
	font-size: 12px;
	color: var(--fb-green-soft);
}

/* Phase 49D ? Product delivery coverage panel */

.fm-delivery-coverage__list {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fm-delivery-coverage__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 6px;
	padding: 10px 14px;
}

.fm-delivery-coverage__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
	min-width: 0;
}

.fm-delivery-coverage__name {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-ink);
	line-height: 1.3;
}

.fm-delivery-coverage__sku {
	font-size: 11px;
	color: var(--fb-green-soft);
}

.fm-delivery-coverage__reasons {
	list-style: disc;
	padding-left: 16px;
	margin: 4px 0 0;
	font-size: 12px;
	color: #fbbf24;
	line-height: 1.4;
}

.fm-delivery-coverage__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	flex-shrink: 0;
}

.fm-delivery-coverage__badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 20px;
	white-space: nowrap;
}

.fm-delivery-coverage__badge--normal {
	background: rgba(74,222,128,0.14);
	color: var(--fb-success);
}

.fm-delivery-coverage__badge--review {
	background: rgba(245,158,11,0.16);
	color: #fbbf24;
}

.fm-delivery-coverage__badge--ships-separately {
	background: rgba(245,158,11,0.16);
	color: #fbbf24;
}

.fm-delivery-coverage__badge--no-options {
	background: rgba(248,113,113,0.14);
	color: var(--fb-danger);
}

.fm-delivery-coverage__empty {
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 0;
}

.fm-delivery-coverage__more {
	font-size: 12px;
	color: var(--fb-green-soft);
	margin: 4px 0 0;
}

/* Phase 48E ? Option cards */

.fm-delivery-option-cards {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 8px;
}

/* Phase 49H ? Option group labels */

.fm-delivery-options-group-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fb-green-soft);
	margin: 8px 0 4px;
}

.fm-delivery-options-group-label--hidden {
	color: var(--fb-border-strong);
	margin-top: 16px;
}

.fm-delivery-option-card {
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.fm-delivery-option-card--default {
	border-color: var(--fb-blue);
	border-width: 2px;
}

.fm-delivery-option-card--disabled {
	opacity: 0.65;
	background: var(--fb-surface);
}

.fm-delivery-option-card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.fm-delivery-option-card__name {
	font-size: 15px;
	font-weight: 700;
	color: var(--fb-ink);
}

.fm-delivery-option-card__badges {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	align-items: center;
	flex-shrink: 0;
}

.fm-delivery-option-card__badge {
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 12px;
}

.fm-delivery-option-card__badge--default {
	background: var(--fb-accent-bg);
	color: var(--fb-azure);
}

.fm-delivery-option-card__badge--visible {
	background: rgba(74,222,128,0.14);
	color: var(--fb-success);
}

.fm-delivery-option-card__badge--hidden {
	background: rgba(245,158,11,0.16);
	color: #fbbf24;
}

.fm-delivery-option-card__body {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.fm-delivery-option-card__price {
	font-size: 16px;
	font-weight: 700;
	color: var(--fb-ink);
}

.fm-delivery-option-card__per-order {
	font-size: 11px;
	color: var(--fb-green-soft);
}

.fm-delivery-option-card__window {
	font-size: 13px;
	color: var(--fb-green-soft);
}

.fm-delivery-option-card__desc {
	width: 100%;
	font-size: 12px;
	color: var(--fb-green-soft);
	margin-top: 2px;
}

.fm-delivery-option-card__actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
	border-top: 1px solid var(--fb-border);
	padding-top: 10px;
}

.fm-delivery-option-card__form {
	margin: 0;
}

/* Small button variant */
.fm-btn--sm {
	font-size: 12px;
	padding: 5px 12px;
	border-radius: 5px;
}

.fm-btn--danger {
	background: var(--fb-surface);
	border: 1px solid rgba(248,113,113,0.35);
	color: var(--fb-danger);
	cursor: pointer;
	font-family: inherit;
	font-weight: 500;
	transition: background 0.15s, border-color 0.15s;
}

.fm-btn--danger:hover {
	background: rgba(248,113,113,0.14);
	border-color: var(--fb-danger);
}

@media ( max-width: 600px ) {
	.fm-delivery-option-row {
		flex-wrap: wrap;
	}

	.fm-delivery-option-row__actions {
		width: 100%;
		flex-wrap: wrap;
	}

	.fm-delivery-form__field-row {
		flex-direction: column;
	}

	.fm-delivery-presets {
		flex-direction: column;
		align-items: stretch;
	}

	/* Phase 48K ? responsive additions */

	.fm-delivery-status-summary {
		gap: 12px;
	}

	.fm-delivery-status-summary__item {
		min-width: auto;
		flex: 1;
	}

	.fm-delivery-default-card {
		flex-direction: column;
		gap: 12px;
	}

	.fm-delivery-default-card__actions {
		align-self: flex-start;
	}

	.fm-delivery-buyer-preview__option {
		grid-template-columns: 20px 1fr auto;
	}

	.fm-delivery-option-card__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.fm-delivery-option-card__actions {
		gap: 6px;
	}

	.fm-delivery-section__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.fm-delivery-bespoke-item {
		flex-direction: column;
		gap: 10px;
	}

	.fm-delivery-bespoke-item .fm-btn {
		align-self: flex-start;
	}

	/* Phase 49J ? responsive additions */

	.fm-delivery-coverage__row {
		flex-direction: column;
		gap: 8px;
	}

	.fm-delivery-coverage__meta {
		align-items: flex-start;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px;
	}

	.fm-delivery-attention__item {
		flex-direction: column;
		gap: 8px;
	}

	.fm-delivery-attention__item .fm-btn {
		align-self: flex-start;
	}

	.fm-delivery-next-actions__item {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.fm-delivery-next-actions__item .fm-btn {
		align-self: flex-start;
	}
}

/* Phase 48K ? focus states and accessibility */

.fm-btn:focus-visible,
.fm-delivery-option-card__form button:focus-visible,
.fm-delivery-presets__btn:focus-visible,
.fm-delivery-form__advanced-toggle:focus-visible,
.fm-delivery-option-row__action-btn:focus-visible,
.fm-delivery-preview-details__summary:focus-visible {
	outline: 2px solid var(--fb-blue);
	outline-offset: 2px;
}

.fm-delivery-preview-details__summary:hover {
	color: var(--fb-ink);
	background: var(--fb-surface);
}

.fm-delivery-option-card__badge--hidden::before {
	content: "? ";
	font-size: 10px;
}

.fm-delivery-option-card__badge--visible::before {
	content: "? ";
	font-size: 10px;
}

/* Phase 49J ? coverage badge icon prefixes (not color-only) */

.fm-delivery-coverage__badge--normal::before {
	content: "? ";
}

.fm-delivery-coverage__badge--review::before,
.fm-delivery-coverage__badge--ships-separately::before {
	content: "? ";
}

.fm-delivery-coverage__badge--no-options::before {
	content: "? ";
}

/* ==========================================================================
   Phase 47J/47K ? Checkout delivery selection
   ========================================================================== */

.fm-checkout-delivery-selection {
	margin: 20px 0 16px;
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	overflow: hidden;
}

.fm-checkout-delivery-selection__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--fb-ink);
	padding: 12px 16px;
	margin: 0;
	background: var(--fb-surface);
	border-bottom: 1px solid var(--fb-border);
}

.fm-checkout-delivery-vendor {
	border: none;
	padding: 12px 16px;
	margin: 0;
	border-bottom: 1px solid var(--fb-border);
}

.fm-checkout-delivery-vendor:last-child {
	border-bottom: none;
}

.fm-checkout-delivery-vendor__name {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-green-soft);
	margin-bottom: 8px;
}

.fm-checkout-delivery-vendor__options {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fm-checkout-delivery-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border: 1px solid var(--fb-border);
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	background: var(--fb-surface);
}

.fm-checkout-delivery-option:has(input:checked) {
	border-color: var(--fb-blue);
	background: var(--fb-accent-bg);
}

.fm-checkout-delivery-option input[type="radio"] {
	flex-shrink: 0;
}

.fm-checkout-delivery-option__name {
	flex: 1;
	font-weight: 500;
	color: var(--fb-ink);
}

.fm-checkout-delivery-option__price {
	font-weight: 600;
	color: var(--fb-success);
	white-space: nowrap;
}

.fm-checkout-delivery-option__window {
	font-size: 12px;
	color: var(--fb-green-soft);
	white-space: nowrap;
}

.fm-checkout-delivery-option__desc {
	font-size: 12px;
	color: var(--fb-green-soft);
	grid-column: 2 / 4;
}

.fm-checkout-order-total {
	font-size: 16px;
	font-weight: 600;
	color: var(--fb-ink);
	padding: 14px 0 10px;
	border-top: 2px solid var(--fb-border);
	margin-top: 8px;
}

.fm-checkout-order-total__amount {
	color: var(--fb-ink);
}

/* Shipping option name label in checkout preview postage section */

.forces-marketplace-checkout-preview__shipping-option-name {
	font-size: 12px;
	color: var(--fb-green-soft);
	font-weight: 400;
}

/* Phase 47K ? delivery option shown on order views */

.forces-marketplace-vendor-orders__delivery-option,
.forces-marketplace-customer-orders__shipment-delivery-option {
	font-size: 13px;
	color: var(--fb-ink-soft);
}

/* Phase 47L ? ships separately note */

.fm-ships-separately-note {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	background: rgba(245,158,11,0.16);
	color: #fbbf24;
	border: 1px solid rgba(245,158,11,0.35);
	border-radius: 4px;
	padding: 2px 6px;
}

@media ( max-width: 600px ) {
	.fm-checkout-delivery-option {
		flex-wrap: wrap;
	}

	.fm-checkout-delivery-option__window {
		width: 100%;
	}
}

/* ==========================================================================
   Phase 54D ? Products page: quick actions bar, sync panel, attention panel
   ========================================================================== */

.fm-products-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }

.fm-products-actions__btn {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 500;
	border-radius: 6px;
	text-decoration: none;
	border: 1px solid var(--fb-border);
	background: var(--fb-surface);
	color: var(--fb-ink-soft);
	white-space: nowrap;
	min-height: 36px;
	line-height: 1;
}

.fm-products-actions__btn--primary { background: var(--fb-blue); color: #fff; border-color: var(--fb-blue); }
.fm-products-actions__btn--primary:hover { background: var(--fb-blue); color: #fff; border-color: var(--fb-blue); }
.fm-products-actions__btn:not(.fm-products-actions__btn--primary):hover { background: var(--fb-surface); border-color: var(--fb-border-strong); color: var(--fb-ink); }
.fm-products-actions__btn--stock { color: var(--fb-azure); border-color: rgba(124,192,255,0.30); background: var(--fb-accent-bg); }
.fm-products-actions__btn--stock:hover { background: var(--fb-accent-bg); }

.fm-products-sync-panel {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-radius: 8px;
	margin: 0 0 16px;
	border: 1px solid transparent;
}

.fm-products-sync-panel--active { background: rgba(74,222,128,0.14); border-color: rgba(74,222,128,0.35); }
.fm-products-sync-panel--amber  { background: rgba(245,158,11,0.16); border-color: rgba(245,158,11,0.35); }
.fm-products-sync-panel--grey   { background: var(--fb-surface); border-color: var(--fb-border); }

.fm-products-sync-panel__msg {
	flex: 1;
	margin: 0;
	font-size: 13px;
	color: var(--fb-ink-soft);
}

.fm-products-sync-panel__chips { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }

.fm-products-sync-panel__chip {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 600;
	color: var(--fb-azure);
	background: var(--fb-surface);
	border: 1px solid rgba(124,192,255,0.30);
	border-radius: 20px;
	text-decoration: none;
	white-space: nowrap;
	min-height: 28px;
	line-height: 1;
}

.fm-products-sync-panel__chip--secondary { color: var(--fb-ink-soft); border-color: var(--fb-border); background: var(--fb-surface); }
.fm-products-sync-panel__chip--secondary:hover { background: var(--fb-surface); }

.fm-products-sync-panel__detail { font-style: italic; color: var(--fb-green-soft); }

/* Delivery settings card ? products page */
.fm-products-delivery-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-radius: 8px;
	margin: 0 0 16px;
	border: 1px solid transparent;
}

.fm-products-delivery-card--ok    { background: rgba(74,222,128,0.14); border-color: rgba(74,222,128,0.35); }
.fm-products-delivery-card--amber { background: rgba(245,158,11,0.16); border-color: rgba(245,158,11,0.35); }
.fm-products-delivery-card--warn  { background: rgba(248,113,113,0.14); border-color: rgba(248,113,113,0.35); }

.fm-products-delivery-card__body { flex: 1; min-width: 0; }

.fm-products-delivery-card__title {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 700;
	color: var(--fb-ink-soft);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.fm-products-delivery-card__status {
	margin: 0;
	font-size: 13px;
	color: var(--fb-danger);
}

.fm-products-delivery-card__meta {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
}

.fm-products-delivery-card__meta-item {
	font-size: 13px;
	color: var(--fb-ink-soft);
}

.fm-products-delivery-card__meta-item--warn { color: #fbbf24; font-weight: 600; }

.fm-products-delivery-card__meta-label { font-weight: 600; color: var(--fb-ink-soft); }

.fm-products-delivery-card__actions { flex-shrink: 0; }

.fm-products-delivery-card__chip {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 600;
	color: var(--fb-azure);
	background: var(--fb-surface);
	border: 1px solid rgba(124,192,255,0.30);
	border-radius: 20px;
	text-decoration: none;
	white-space: nowrap;
	min-height: 28px;
	line-height: 1;
}

.fm-products-delivery-card__chip:hover { background: var(--fb-accent-bg); }

.fm-products-attention {
	padding: 12px 14px;
	background: rgba(248,113,113,0.14);
	border: 1px solid rgba(248,113,113,0.35);
	border-radius: 8px;
	margin: 0 0 16px;
}

.fm-products-attention__title {
	font-size: 11px;
	font-weight: 700;
	color: var(--fb-danger);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 6px;
}

.fm-products-attention__list { list-style: none; margin: 0; padding: 0; }

.fm-products-attention__item {
	font-size: 13px;
	color: var(--fb-danger);
	margin: 0 0 4px;
}

.fm-products-attention__item:last-child { margin: 0; }

.fm-products-attention__action {
	font-weight: 600;
	color: var(--fb-danger);
	text-decoration: underline;
}

.fm-products-catalogue-summary {
	font-size: 12px;
	color: var(--fb-green-soft);
	margin: 0 0 12px;
	padding: 0;
}

/* ==========================================================================
   Phase 54G ? Product card UX polish
   ========================================================================== */

/* Stock status colour classes used on product cards and inventory table */
.fm-inv-stock-ok  { color: var(--fb-success); font-weight: 600; }
.fm-inv-stock-low { color: #fbbf24; font-weight: 600; }
.fm-inv-stock-out { color: var(--fb-danger); font-weight: 600; }

/* Tighter badge row ? single approval badge (status badge hidden unless inactive) */
.forces-marketplace-seller-products__card-badges { gap: 5px; margin-bottom: 10px; }

/* Card link polish */
.forces-marketplace-seller-products__card-links { gap: 6px; align-items: center; margin-top: auto; padding-top: 12px; }

.forces-marketplace-seller-products__detail-link,
.forces-marketplace-seller-products__inventory-link {
	font-size: 12px;
	font-weight: 500;
	padding: 5px 12px;
	border-radius: 5px;
	border: 1px solid var(--fb-border);
	background: var(--fb-surface);
	color: var(--fb-ink-soft);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	min-height: 30px;
}

.forces-marketplace-seller-products__detail-link:hover { background: var(--fb-blue); color: #fff; border-color: var(--fb-blue); }
.forces-marketplace-seller-products__inventory-link:hover { background: var(--fb-surface); border-color: var(--fb-border-strong); }

@media ( max-width: 600px ) {
	/* Give the actions a clear hierarchy on phones: a prominent full-width
	   "Add product", the long "Import…" on its own full-width row, and the two
	   short actions (CSV / Manage stock) paired on the final row. */
	.fm-products-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}
	.fm-products-actions__btn {
		min-height: 46px;
		justify-content: center;
		font-size: 14px;
		padding: 8px 10px;
		white-space: normal;
		text-align: center;
	}
	.fm-products-actions__btn--primary {
		grid-column: 1 / -1;
		min-height: 52px;
		font-size: 15px;
		font-weight: 700;
	}
	/* The plain (unmodified) "Import products from my store" button — full row. */
	.fm-products-actions__btn:not(.fm-products-actions__btn--primary):not(.fm-products-actions__btn--secondary):not(.fm-products-actions__btn--stock) {
		grid-column: 1 / -1;
	}
	.fm-products-sync-panel { flex-wrap: wrap; gap: 8px; }
	.fm-products-sync-panel__chip { min-height: 36px; }
}

/* Phase 54I ? Inventory sub-nav back link */
.fm-seller-inventory-nav__back { display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; color: var(--fb-ink-soft); text-decoration: none; margin: -10px 0 6px; padding: 10px 0; min-height: 44px; box-sizing: border-box; }
.fm-seller-inventory-nav__back:hover { color: var(--fb-azure); text-decoration: underline; }

/* Phase 54K ? Account: profile summary card */
.fm-acct-card { background: var(--fb-surface); border: 1px solid var(--fb-border); border-radius: 10px; padding: 18px 20px; margin: 0 0 20px; }
.fm-acct-card__head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.fm-acct-card__title { font-size: 15px; font-weight: 700; color: var(--fb-ink); margin: 0; flex: 1; }
.fm-acct-card__links { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }
.fm-acct-card__action { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 2px; font-size: 13px; font-weight: 600; color: var(--fb-azure); text-decoration: none; white-space: nowrap; box-sizing: border-box; }
.fm-acct-card__action:hover { text-decoration: underline; }
.fm-acct-card__action--secondary { color: var(--fb-ink-soft); }
.fm-acct-card__action--secondary:hover { color: var(--fb-azure); }
.fm-acct-profile-dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 6px; }
.fm-acct-profile-dl__row { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.fm-acct-profile-dl__label { font-size: 12px; font-weight: 600; color: var(--fb-green-soft); text-transform: uppercase; letter-spacing: 0.04em; min-width: 120px; flex-shrink: 0; }
.fm-acct-profile-dl__value { font-size: 13px; color: var(--fb-ink-soft); margin: 0; overflow-wrap: anywhere; min-width: 0; }
.fm-acct-profile-dl__value--empty { color: var(--fb-green-soft); font-style: italic; }
.fm-acct-profile-dl__value--bio { color: var(--fb-ink-soft); }
@media ( max-width: 600px ) { .fm-acct-card { padding: 14px 14px; } .fm-acct-profile-dl__label { min-width: 100px; } }

/* Phase 54L ? Account: status card shared elements (dot, state label, detail) */
.fm-acct-card__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.fm-acct-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.fm-acct-dot--green { background: var(--fb-success); }
.fm-acct-dot--amber { background: #f59e0b; }
.fm-acct-dot--red   { background: var(--fb-danger); }
.fm-acct-dot--blue  { background: var(--fb-blue); }
.fm-acct-dot--grey  { background: var(--fb-green-soft); }
.fm-acct-card__state-label { font-size: 13px; font-weight: 600; color: var(--fb-ink-soft); }
.fm-acct-card__detail { font-size: 13px; color: var(--fb-ink-soft); margin: 0 0 10px; }

/* Phase 54N ? Account: earnings summary card */
.fm-acct-earnings-dl { margin: 0 0 10px; display: flex; gap: 16px; flex-wrap: wrap; }
.fm-acct-earnings-dl__row { display: flex; flex-direction: column; gap: 2px; }
.fm-acct-earnings-dl__label { font-size: 11px; font-weight: 600; color: var(--fb-green-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.fm-acct-earnings-dl__value { font-size: 20px; font-weight: 700; color: var(--fb-ink); }

/* Phase 54O ? Account: info card hint and support text */
.fm-acct-card__hint { font-size: 12px; color: var(--fb-green-soft); margin: 10px 0 4px; }
.fm-acct-card__support { font-size: 13px; color: var(--fb-ink-soft); margin: 4px 0 0; }
.fm-acct-card__support a { color: var(--fb-azure); text-decoration: none; }
.fm-acct-card__support a:hover { text-decoration: underline; }

/* Phase 54P ? Account cards: mobile, focus-visible, reduced-motion */
.fm-acct-card__action:focus-visible,
.fm-acct-card__action--secondary:focus-visible { outline: 2px solid var(--fb-blue); outline-offset: 2px; border-radius: 2px; }
.fm-acct-card__support a:focus-visible { outline: 2px solid var(--fb-blue); outline-offset: 2px; border-radius: 2px; }
@media ( max-width: 600px ) {
	.fm-acct-card { padding: 14px; }
	.fm-acct-card__head { flex-wrap: wrap; gap: 6px; }
	.fm-acct-card__links { flex-direction: column; gap: 6px; }
	.fm-acct-earnings-dl { flex-direction: column; gap: 10px; }
	.fm-acct-profile-dl__label { min-width: 90px; }
}
@media ( prefers-reduced-motion: reduce ) { .fm-acct-card { transition: none; } }

/* ============================================================
   Phase 57D/57E/57F ? Seller portal app shell
   ============================================================ */

/* Skip-to-content link ? visually hidden until keyboard focus */
.fm-seller-skip-link {
	position: absolute;
	top: -100%;
	left: 8px;
	z-index: 9999;
	padding: 8px 16px;
	background: var(--fb-blue);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	border-radius: 0 0 4px 4px;
	text-decoration: none;
	transition: top .1s;
}

.fm-seller-skip-link:focus {
	top: 0;
	outline: 3px solid rgba(245,158,11,0.35);
	outline-offset: 2px;
}

/* Shell layout: sidebar (left) + body (right: topbar + main) */
.fm-seller-shell {
	display: flex;
	min-height: 100vh;
	background: var(--fb-surface);
}

/* Right-side body column */
.fm-seller-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

/* Sidebar */
.fm-seller-sidebar {
	width: 220px;
	flex-shrink: 0;
	background: var(--fb-surface);
	color: var(--fb-green-soft);
	display: flex;
	flex-direction: column;
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
	z-index: 100;
}

.fm-seller-sidebar__brand {
	padding: 20px 16px 14px;
	border-bottom: 1px solid rgba(255,255,255,.08);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fm-seller-sidebar__brand-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-green-soft);
	line-height: 1.3;
	word-break: break-word;
}

.fm-seller-sidebar__nav {
	flex: 1;
	padding: 12px 0;
}

.fm-seller-sidebar__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fm-seller-sidebar__item {
	margin: 0;
}

.fm-seller-sidebar__link {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 13px 16px;
	min-height: 44px;
	box-sizing: border-box;
	color: var(--fb-green-soft);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	border-left: 3px solid transparent;
	transition: background .15s, color .15s, border-color .15s;
	line-height: 1.4;
}

.fm-seller-sidebar__link:hover {
	background: rgba(255,255,255,.06);
	color: var(--fb-green-soft);
}

.fm-seller-sidebar__link--active {
	color: var(--fb-green-soft);
	background: rgba(255,255,255,.08);
	border-left-color: var(--fb-blue);
}

/* Orders badge in sidebar link */
.fm-seller-sidebar__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--fb-danger);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	border-radius: 10px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	line-height: 1;
	margin-left: auto;
}

.fm-seller-sidebar__close {
	display: none;
	background: none;
	border: none;
	color: var(--fb-green-soft);
	font-size: 20px;
	padding: 12px 16px;
	cursor: pointer;
	text-align: left;
	line-height: 1;
}

/* Topbar ? visible on desktop and mobile */
.fm-seller-topbar {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--fb-surface);
	border-bottom: 1px solid var(--fb-border);
	padding: 0 20px;
	height: 52px;
	flex-shrink: 0;
	position: sticky;
	top: 0;
	z-index: 90;
}

/* Mobile hamburger ? hidden on desktop, shown on mobile */
.fm-seller-topbar__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	color: var(--fb-ink-soft);
	font-size: 20px;
	cursor: pointer;
	min-width: 44px;
	min-height: 44px;
	margin-left: -10px;
	line-height: 1;
	flex-shrink: 0;
}

.fm-seller-topbar__brand {
	font-size: 15px;
	font-weight: 600;
	color: var(--fb-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 1;
}

/* Right-side topbar actions */
.fm-seller-topbar__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
	flex-shrink: 0;
}

.fm-seller-topbar__alert {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: rgba(248,113,113,0.14);
	color: var(--fb-danger);
	border: 1px solid rgba(248,113,113,0.35);
	border-radius: 6px;
	padding: 8px 12px;
	min-height: 40px;
	box-sizing: border-box;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s;
}

.fm-seller-topbar__alert:hover {
	background: rgba(248,113,113,0.14);
}

.fm-seller-topbar__alert-count {
	background: var(--fb-danger);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	border-radius: 10px;
	min-width: 18px;
	height: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
}

.fm-seller-topbar__account {
	display: inline-flex;
	align-items: center;
	color: var(--fb-ink-soft);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	padding: 8px 12px;
	min-height: 40px;
	box-sizing: border-box;
	border: 1px solid var(--fb-border);
	border-radius: 6px;
	white-space: nowrap;
	transition: background .15s, border-color .15s;
}

.fm-seller-topbar__account:hover {
	background: var(--fb-surface);
	border-color: var(--fb-border-strong);
}

/* Main content area */
.fm-seller-main {
	flex: 1;
	min-width: 0;
	overflow-x: hidden;
	background: var(--fb-surface);
	padding-bottom: 40px;
}

/* Overlay */
.fm-seller-sidebar-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.45);
	z-index: 149;
}

.fm-seller-sidebar-overlay--visible {
	display: block;
}

/* Sticky "Tools" launcher — desktop keeps the full sidebar, so it's hidden there. */
.fm-seller-tools-fab {
	display: none;
}

/* Mobile layout */
@media ( max-width: 899px ) {
	.fm-seller-shell {
		flex-direction: column;
		overflow-x: hidden;
	}

	.fm-seller-body {
		flex-direction: column;
	}

	.fm-seller-topbar__toggle {
		display: flex;
	}

	.fm-seller-tools-fab {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		position: fixed;
		left: 16px;
		bottom: calc( 16px + env( safe-area-inset-bottom, 0px ) );
		z-index: 120;
		width: 52px;
		height: 52px;
		padding: 0;
		border: 1px solid var(--fb-blue);
		border-radius: 50%;
		background: var(--fb-blue);
		color: #fff;
		line-height: 0;
		cursor: pointer;
		box-shadow: 0 8px 22px rgba( 59, 130, 246, 0.38 );
		-webkit-appearance: none;
		appearance: none;
		transition: transform .15s ease, opacity .2s ease, visibility .2s ease, box-shadow .15s ease;
	}

	.fm-seller-tools-fab__icon {
		display: inline-flex;
	}

	.fm-seller-tools-fab__icon svg {
		display: block;
	}

	.fm-seller-tools-fab:active {
		transform: scale( 0.96 );
	}

	/* Fade the launcher away while the drawer itself is open. */
	.fm-seller-tools-fab--hidden {
		opacity: 0;
		visibility: hidden;
		transform: translateY( 8px );
	}

	.fm-seller-topbar {
		background: var(--fb-surface);
		border-bottom-color: rgba(255,255,255,.1);
	}

	.fm-seller-topbar__brand { color: var(--fb-green-soft); }
	.fm-seller-topbar__toggle { color: var(--fb-green-soft); }
	.fm-seller-topbar__account {
		color: var(--fb-green-soft);
		border-color: rgba(255,255,255,.15);
	}
	.fm-seller-topbar__account:hover {
		background: rgba(255,255,255,.06);
		border-color: rgba(255,255,255,.25);
		color: var(--fb-green-soft);
	}

	.fm-seller-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		height: 100vh;
		width: 260px;
		transform: translateX( -100% );
		transition: transform .25s ease;
		z-index: 150;
	}

	.fm-seller-sidebar--open {
		transform: translateX( 0 );
	}

	.fm-seller-sidebar__close {
		display: block;
	}

	.fm-seller-main {
		width: 100%;
	}
}

/* Focus styles */
.fm-seller-sidebar__link:focus-visible,
.fm-seller-sidebar__logout:focus-visible,
.fm-seller-topbar__toggle:focus-visible,
.fm-seller-topbar__alert:focus-visible,
.fm-seller-topbar__account:focus-visible,
.fm-seller-topbar__logout:focus-visible,
.fm-seller-sidebar__close:focus-visible {
	outline: 2px solid var(--fb-blue);
	outline-offset: 2px;
}

/* On very narrow screens hide the redundant topbar Account/Log out links (accessible via sidebar) */
@media ( max-width: 480px ) {
	.fm-seller-topbar__account,
	.fm-seller-topbar__logout { display: none; }
}

/* Sidebar footer log out */
.fm-seller-sidebar__footer {
	padding: 12px 12px 16px;
	border-top: 1px solid rgba(255,255,255,.08);
}

.fm-seller-sidebar__logout {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px;
	min-height: 44px;
	box-sizing: border-box;
	border-radius: 8px;
	color: var(--fb-ink-soft);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid var(--fb-border);
	transition: background .15s, color .15s, border-color .15s;
}

.fm-seller-sidebar__logout:hover {
	background: rgba(248,113,113,.12);
	border-color: rgba(248,113,113,.4);
	color: #fca5a5;
}

.fm-seller-sidebar__logout-icon {
	display: inline-flex;
	align-items: center;
}

/* Topbar log out */
.fm-seller-topbar__logout {
	display: inline-flex;
	align-items: center;
	color: var(--fb-ink-soft);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	padding: 8px 12px;
	min-height: 40px;
	box-sizing: border-box;
	border: 1px solid var(--fb-border);
	border-radius: 6px;
	white-space: nowrap;
	transition: background .15s, color .15s, border-color .15s;
}

.fm-seller-topbar__logout:hover {
	background: rgba(248,113,113,.12);
	border-color: rgba(248,113,113,.4);
	color: #fca5a5;
}

/* Reduced motion */
@media ( prefers-reduced-motion: reduce ) {
	.fm-seller-sidebar { transition: none; }
	.fm-seller-skip-link { transition: none; }
}

/* ============================================================
   Phase 57G/57H ? Page header system + dashboard polish
   ============================================================ */

/* Standard page header ? used across all seller portal pages */
.fm-seller-page-header {
	display: flex;
	align-items: baseline;
	background: var(--fb-surface);
	gap: 16px;
	padding: 24px 24px 16px;
	border-bottom: 1px solid var(--fb-border);
	margin-bottom: 0;
}

.fm-seller-page-header__title {
	font-size: 22px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0;
	line-height: 1.25;
}

.fm-seller-page-header__back {
	font-size: 13px;
	color: var(--fb-green-soft);
	text-decoration: none;
	font-weight: 500;
	margin-left: auto;
	white-space: nowrap;
}

.fm-seller-page-header__back:hover {
	color: var(--fb-azure);
	text-decoration: underline;
}

@media ( max-width: 600px ) {
	.fm-seller-page-header {
		padding: 16px 16px 12px;
		flex-wrap: wrap;
		gap: 8px;
	}

	.fm-seller-page-header__title { font-size: 18px; }
	.fm-seller-page-header__back { margin-left: 0; }
}

/* Dashboard ? compact section within the page */
.forces-marketplace-seller-area.forces-marketplace-seller-dashboard {
	padding: 0 0 32px;
	background: var(--fb-surface);
}

.forces-marketplace-seller-area.forces-marketplace-seller-dashboard > * {
	padding-left: 24px;
	padding-right: 24px;
}

.forces-marketplace-seller-area.forces-marketplace-seller-dashboard .fm-seller-page-header {
	padding-left: 24px;
	padding-right: 24px;
	padding-bottom: 16px;
}

@media ( max-width: 600px ) {
	.forces-marketplace-seller-area.forces-marketplace-seller-dashboard > * {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* ==========================================================================
   Mobile dashboard redesign — tighter rhythm, unified cards, clear sizing so
   the screen reads as one slick surface instead of sparse, oversized boxes.
   ========================================================================== */
@media ( max-width: 600px ) {
	/* Compact, integrated header: drop the heavy divider, keep it light. */
	.forces-marketplace-seller-dashboard .fm-seller-page-header {
		padding: 18px 16px 8px;
		border-bottom: none;
	}
	.forces-marketplace-seller-dashboard .fm-seller-page-header__title {
		font-size: 22px;
		font-weight: 800;
		letter-spacing: -0.01em;
	}

	/* One consistent gap between every stacked card. */
	.forces-marketplace-seller-dashboard .fm-dash-bento {
		gap: 12px;
		margin-bottom: 12px;
	}
	.forces-marketplace-seller-dashboard .fm-dash-bento__right {
		gap: 12px;
	}

	/* Unified card system: matched radius + padding across the cards. */
	.forces-marketplace-seller-dashboard .fm-dash-notify,
	.forces-marketplace-seller-dashboard .fm-dash-sales-widget {
		border-radius: 14px;
		margin-bottom: 0;
	}
	.forces-marketplace-seller-dashboard .fm-dash-sales-widget {
		padding: 16px;
		gap: 14px;
	}
	.forces-marketplace-seller-dashboard .fm-dash-notify__header {
		padding: 14px 16px 12px;
	}

	/* Hero-size the money numbers — the thing sellers open the app to see. */
	.forces-marketplace-seller-dashboard .fm-dash-sales-widget__stats {
		gap: 10px;
	}
	.forces-marketplace-seller-dashboard .fm-dash-sales-stat {
		padding: 13px 14px;
		border-radius: 12px;
		background: var(--fb-sand);
	}
	.forces-marketplace-seller-dashboard .fm-dash-sales-stat__value {
		font-size: 24px;
		line-height: 1.1;
	}
	.forces-marketplace-seller-dashboard .fm-dash-sales-stat__label {
		font-size: 10px;
	}

	/* Quick-status rows: comfortable reading size and spacing. */
	.forces-marketplace-seller-dashboard .fm-dash-quick-status__list {
		gap: 14px;
	}
	.forces-marketplace-seller-dashboard .fm-dash-quick-status__label,
	.forces-marketplace-seller-dashboard .fm-dash-quick-status__value {
		font-size: 13.5px;
	}

	/* Recent orders: tighter cells, sits flush in the rhythm. */
	.forces-marketplace-seller-dashboard .fm-dash-recent {
		margin-bottom: 0;
	}
	.forces-marketplace-seller-dashboard .fm-dash-recent__heading {
		font-size: 15px;
	}
	.forces-marketplace-seller-dashboard .fm-dash-recent-table th {
		padding: 9px 10px;
	}
	.forces-marketplace-seller-dashboard .fm-dash-recent-table td {
		padding: 11px 10px;
		font-size: 13px;
	}
}

/* ==========================================================================
   Phase 57L / 57O / 57T ? Shell context overrides
   ========================================================================== */

/* Sections inside the shell get a white card surface; stretch to fill available width (Phase 58C) */
.fm-seller-shell .forces-marketplace-seller-area {
	background: var(--fb-surface);
	max-width: none;
	margin: 0;
}

/* Inventory page header sits outside the inventory div ? add margin below it */
.fm-seller-shell > .fm-seller-body > .fm-seller-main > .fm-seller-page-header {
	margin-bottom: 0;
}

/* Inventory: old portal header (vendor name + status badge) */
.fm-seller-shell .fm-inv-portal-header {
	display: none;
}

/* Payout: legacy h2 heading rendered by FM_Seller_Payout inside the shell */
.fm-seller-shell .fm-payout-account-panel > h2:first-of-type {
	display: none;
}

/* Earnings: legacy h2 heading rendered by FM_Seller_Earnings inside the shell */
.fm-seller-shell .fm-earnings-dashboard > .fm-earnings-title {
	display: none;
}

/* Inventory: white card surface for the inventory div */
.fm-seller-shell .fm-seller-inventory.fm-seller-area {
	background: var(--fb-surface);
}

/* Inventory sub-nav: padding inside the white card */
.fm-seller-shell .fm-seller-inventory-nav {
	margin-bottom: 8px;
	padding-top: 16px;
}

/* Payout and earnings: padding inside the white card sections */
.fm-seller-shell .forces-marketplace-seller-payout,
.fm-seller-shell .forces-marketplace-seller-earnings {
	padding-top: 0;
}

/* Payout/earnings inner div: add top padding */
.fm-seller-shell .fm-payout-account-panel,
.fm-seller-shell .fm-earnings-dashboard {
	padding: 24px;
}


/* ==========================================================================
   Phase 58I ? Import source selector
   ========================================================================== */

.fm-import-source-selector {
	padding: 18px 24px 22px;
}

.fm-import-source-selector__title {
	margin: 0 0 4px;
	font-size: 19px;
	font-weight: 700;
	color: var(--fb-ink);
}

.fm-import-source-selector__sub {
	margin: 0 0 16px;
	color: var(--fb-green-soft);
	font-size: 14px;
}

.fm-import-source-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
	margin-bottom: 28px;
}

.fm-import-source-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 16px 12px;
	background: var(--fb-surface);
	border: 2px solid var(--fb-border);
	border-radius: 12px;
	text-decoration: none;
	text-align: center;
	transition: border-color 0.15s ease, background 0.15s ease;
	min-height: 72px;
}

.fm-import-source-card:hover {
	border-color: var(--fb-blue);
	background: rgba(31, 91, 227, 0.04);
	text-decoration: none;
}

.fm-import-source-card__label {
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-ink);
	line-height: 1.3;
}

.fm-import-source-card__badge {
	font-size: 11px;
	font-weight: 500;
	color: var(--fb-green-soft);
	background: var(--fb-surface);
	border-radius: 4px;
	padding: 2px 6px;
}

.fm-import-source-card--assisted .fm-import-source-card__label {
	color: var(--fb-ink-soft);
}

.fm-import-source-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	border-top: 1px solid var(--fb-border);
	padding-top: 14px;
}

.fm-import-source-footer__item {
	font-size: 14px;
	color: var(--fb-green-soft);
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.fm-import-source-footer__item a {
	color: var(--fb-azure);
	text-decoration: none;
	font-weight: 500;
}

.fm-import-source-footer__item a:hover {
	text-decoration: underline;
}

/* Source guide (per-platform instructions) */

.fm-import-source-guide {
	padding: 24px 24px 32px;
}

.fm-import-source-guide__back {
	display: inline-block;
	margin-bottom: 16px;
	font-size: 14px;
	color: var(--fb-green-soft);
	text-decoration: none;
}

.fm-import-source-guide__back:hover {
	color: var(--fb-azure);
	text-decoration: none;
}

.fm-import-source-guide__title {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 700;
	color: var(--fb-ink);
}

.fm-import-source-guide__steps {
	margin: 0 0 20px;
	padding-left: 20px;
}

.fm-import-source-guide__step {
	margin-bottom: 8px;
	font-size: 15px;
	color: var(--fb-ink);
}

.fm-import-source-guide__assisted-msg {
	margin-bottom: 20px;
	font-size: 15px;
	color: var(--fb-ink-soft);
	max-width: 520px;
}

@media (max-width: 600px) {
	.fm-import-source-grid {
		grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
		gap: 8px;
	}

	.fm-import-source-card {
		padding: 12px 8px;
		min-height: 60px;
	}

	.fm-import-source-card__label {
		font-size: 13px;
	}
}

/* Phase 58J ? Template download link */
.fm-import-template-link {
	text-align: center;
	font-size: 13px;
	color: var(--fb-green-soft);
	margin: 12px 0 4px;
}

.fm-import-template-link a {
	color: var(--fb-azure);
	text-decoration: none;
	font-weight: 600;
}

.fm-import-template-link a:hover {
	color: var(--fb-azure);
	text-decoration: underline;
}

/* Phase 58K ? Per-source import guide enhancements */
.fm-import-source-guide__header {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.fm-import-source-guide__badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 20px;
	white-space: nowrap;
}

.fm-import-source-guide__badge--csv {
	background: rgba(74,222,128,0.14);
	color: var(--fb-success);
}

.fm-import-source-guide__badge--assisted {
	background: rgba(245,158,11,0.16);
	color: #fbbf24;
}

.fm-import-source-guide__badge--other {
	background: var(--fb-surface);
	color: var(--fb-ink-soft);
}

.fm-import-source-guide__desc {
	color: var(--fb-ink-soft);
	font-size: 15px;
	margin: 0 0 20px;
	line-height: 1.55;
}

.fm-import-source-guide__tip {
	background: var(--fb-accent-bg);
	border: 1px solid rgba(124,192,255,0.30);
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 13px;
	color: var(--fb-azure);
	margin: 16px 0 20px;
	line-height: 1.5;
}

.fm-import-source-guide__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.fm-import-source-guide__template-link {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-azure);
	text-decoration: none;
}

.fm-import-source-guide__template-link:hover {
	color: var(--fb-azure);
	text-decoration: underline;
}

.fm-import-source-guide__csv-fallback {
	margin-top: 28px;
	padding: 20px;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 12px;
}

.fm-import-source-guide__fallback-label {
	font-size: 15px;
	font-weight: 700;
	color: var(--fb-ink);
	margin: 0 0 6px;
}

.fm-import-source-guide__fallback-desc {
	font-size: 14px;
	color: var(--fb-green-soft);
	margin: 0 0 16px;
}

.fm-import-source-guide__contact {
	margin-top: 20px;
	font-size: 13px;
	color: var(--fb-green-soft);
}

.fm-import-source-guide__contact a {
	color: var(--fb-azure);
	text-decoration: none;
	font-weight: 600;
}

.fm-import-source-guide__contact a:hover {
	color: var(--fb-azure);
	text-decoration: underline;
}

/* Phase 58N ? Delivery presets demoted to collapsed <details> */
.fm-delivery-section--presets {
	border: 1px solid var(--fb-border);
	border-radius: 12px;
	padding: 0;
	margin-top: 16px;
}

.fm-delivery-section__summary {
	padding: 14px 18px;
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 8px;
}

.fm-delivery-section__summary::-webkit-details-marker {
	display: none;
}

.fm-delivery-section__summary::before {
	content: '+';
	font-size: 16px;
	color: var(--fb-azure);
	font-weight: 700;
	line-height: 1;
}

details.fm-delivery-section--presets[open] .fm-delivery-section__summary::before {
	content: '?';
}

details.fm-delivery-section--presets > :not(summary) {
	padding: 0 18px 18px;
}

/* Phase 58Q ? Delivery empty state quick-start tip */
.fm-delivery-empty-state__tip {
	font-size: 13px;
	color: var(--fb-azure);
	background: rgba(31,91,227,0.05);
	border-left: 3px solid var(--fb-blue);
	padding: 8px 12px;
	border-radius: 0 6px 6px 0;
	margin-top: 10px;
}

/* Phase 58U ? Profile completeness indicator */
.fm-profile-completeness {
	background: rgba(245,158,11,0.16);
	border: 1px solid rgba(245,158,11,0.35);
	border-radius: 10px;
	padding: 14px 18px;
	margin-bottom: 20px;
}

.fm-profile-completeness__label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #fbbf24;
	margin-bottom: 10px;
}

.fm-profile-completeness__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.fm-profile-completeness__item {
	font-size: 13px;
}

.fm-profile-completeness__item--done {
	color: var(--fb-success);
}

.fm-profile-completeness__item--missing {
	color: #fbbf24;
}
/* =========================================================================
   Phase 58V ? Public vendor profile page
   ========================================================================= */

.fm-vendor-profile {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 20px 64px;
}

.fm-vendor-profile__back-link {
    margin: 0 0 16px;
    font-size: 0.875rem;
}

.fm-vendor-profile__back-link a {
    color: var(--fb-azure);
    text-decoration: none;
    font-weight: 600;
}

.fm-vendor-profile__back-link a:hover {
    text-decoration: underline;
}

/* Banner */
.fm-vendor-profile__banner {
    height: clamp( 150px, 26vw, 260px );
    border-radius: var(--fb-radius-lg, 20px);
    overflow: hidden;
    border: 1px solid var(--fb-border);
    background: linear-gradient( 135deg, var(--fb-blue-deep) 0%, var(--fb-blue) 100% );
    margin-bottom: 20px;
}

.fm-vendor-profile__banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Header */
.fm-vendor-profile__header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--fb-border);
}

.fm-vendor-profile__logo {
    flex-shrink: 0;
    width: 104px;
    height: 104px;
    border-radius: 18px;
    overflow: hidden;
    background: var(--fb-surface);
    border: 1px solid var(--fb-border);
    box-shadow: var(--fb-shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fm-vendor-profile__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fm-vendor-profile__logo-placeholder {
    font-size: 2.4rem;
}

.fm-vendor-profile__meta {
    flex: 1;
    min-width: 0;
}

.fm-vendor-profile__name {
    font-family: var(--fb-font-heading, sans-serif);
    font-size: clamp( 1.5rem, 3vw, 2rem );
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
    color: var(--fb-ink);
}

/* Service connection as a pill */
.fm-vendor-profile__service {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--fb-azure);
    background: var(--fb-accent-bg);
    border: 1px solid rgba( 124, 192, 255, 0.30 );
    padding: 4px 12px;
    border-radius: 999px;
    margin: 0 0 12px;
}

.fm-vendor-profile__forces-badge {
    font-size: 0.9rem;
}

.fm-vendor-profile__connection {
    font-size: 0.875rem;
    color: var(--fb-green-soft);
    margin: 0 0 10px;
}

.fm-vendor-profile__bio {
    font-size: 0.95rem;
    color: var(--fb-ink-soft);
    margin: 0 0 12px;
    line-height: 1.6;
    max-width: 62ch;
}

.fm-vendor-profile__location {
    font-size: 0.85rem;
    color: var(--fb-green-soft);
    margin: 0 0 10px;
}

.fm-vendor-profile__website {
    font-size: 0.875rem;
    margin: 0;
}

.fm-vendor-profile__website a {
    color: var(--fb-azure);
    text-decoration: none;
    word-break: break-all;
}

.fm-vendor-profile__website a:hover {
    text-decoration: underline;
}

/* Social links as chips */
.fm-vendor-profile__social-links {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fm-vendor-profile__social-item {
    margin: 0;
}

.fm-vendor-profile__social-item a {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--fb-ink-soft);
    background: var(--fb-sand);
    border: 1px solid var(--fb-border);
    padding: 6px 14px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fm-vendor-profile__social-item a:hover {
    color: var(--fb-azure);
    border-color: rgba( 124, 192, 255, 0.40 );
    background: var(--fb-accent-bg);
}

/* About + Forces story cards */
.fm-vendor-profile__about,
.fm-vendor-profile__story {
    background: var(--fb-surface);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius-md, 14px);
    padding: 22px 24px;
    margin: 0 0 20px;
}

.fm-vendor-profile__story {
    border-left: 3px solid var(--fb-blue);
}

.fm-vendor-profile__about-heading,
.fm-vendor-profile__story-heading {
    font-family: var(--fb-font-heading, sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 10px;
    color: var(--fb-azure);
}

.fm-vendor-profile__about-text,
.fm-vendor-profile__story-text {
    font-size: 0.95rem;
    color: var(--fb-ink-soft);
    line-height: 1.7;
    margin: 0;
}

/* Products */
.fm-vendor-profile__products {
    margin-top: 36px;
}

.fm-vendor-profile__products-heading {
    font-family: var(--fb-font-heading, sans-serif);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--fb-border);
    color: var(--fb-ink);
}

@media (max-width: 640px) {
    .fm-vendor-profile__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .fm-vendor-profile__logo {
        width: 84px;
        height: 84px;
    }
}
/* =========================================================================
   Phase 58W ? Buyer discovery links to vendor profiles
   ========================================================================= */

.fm-product-card__brand-link {
    color: inherit;
    text-decoration: none;
}

.fm-product-card__brand-link:hover {
    color: var(--fb-azure);
    text-decoration: underline;
}

.forces-marketplace-product-detail__profile-link {
    font-size: 0.875rem;
    color: var(--fb-azure);
    text-decoration: none;
}

.forces-marketplace-product-detail__profile-link:hover {
    text-decoration: underline;
}

.forces-marketplace-product-detail__brand-sep {
    color: var(--fb-ink-soft);
    font-size: 0.75rem;
}
/* =========================================================================
   Phase 58AA ? Mobile/accessibility/visual polish
   ========================================================================= */

/* Focus rings for Phase 58 interactive elements */
.fm-import-source-card:focus-visible {
    outline: 2px solid var(--fb-blue);
    outline-offset: 2px;
}

.fm-delivery-section__summary:focus-visible {
    outline: 2px solid var(--fb-blue);
    outline-offset: 2px;
    border-radius: 6px;
}

.fm-product-card__brand-link:focus-visible {
    outline: 2px solid var(--fb-blue);
    outline-offset: 2px;
    border-radius: 2px;
}

.forces-marketplace-product-detail__profile-link:focus-visible,
.forces-marketplace-product-detail__brand-link:focus-visible {
    outline: 2px solid var(--fb-blue);
    outline-offset: 2px;
    border-radius: 2px;
}

.fm-vendor-profile__back-link a:focus-visible,
.fm-vendor-profile__website a:focus-visible {
    outline: 2px solid var(--fb-blue);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Ensure delivery presets summary has minimum touch target height on mobile */
@media (max-width: 768px) {
    .fm-delivery-section__summary {
        min-height: 48px;
    }

    .fm-vendor-profile__back-link a,
    .fm-vendor-profile__website a {
        display: inline-block;
        padding: 4px 0;
        min-height: 44px;
        line-height: 44px;
    }

    .fm-import-source-card {
        min-height: 56px;
    }
}
/* =========================================================================
   Platform logos ? import source selector and guide
   ========================================================================= */

.fm-import-source-card__logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

/* Make cards slightly taller now they have logos */
.fm-import-source-card {
    min-height: 96px;
}

/* Guide header ? logo beside title */
.fm-import-source-guide__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.fm-import-source-guide__logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: contain;
    flex-shrink: 0;
}

.fm-import-source-guide__header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fm-import-source-guide__title {
    margin: 0;
}
/* Stock sync choice cards ? swap emoji icon for platform logo */
.fm-sync-choice-card__icon {
    font-size: 0;
    line-height: 0;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.fm-sync-choice-card__logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    display: block;
}

/* =============================================================================
   Phase 60P ? Full-width Shopify-quality product editor overrides
   Layered over Phase 60 rules. All changes are additive / overriding ? no
   Phase 60 rules are removed here so both code paths stay valid.
   ============================================================================= */

/* ?? Full-width canvas (remove centering cap, add breathing room) ??????????? */

.fm-pe-canvas {
	max-width: none;
	margin: 0;
	padding: 28px 32px 80px;
}

/* ?? Wider two-column grid ???????????????????????????????????????????????????? */

.fm-pe-grid {
	grid-template-columns: 1fr 380px;
	gap: 28px;
}

/* ?? Header ??????????????????????????????????????????????????????????????????? */

.fm-pe-header {
	margin-bottom: 28px;
}

.fm-pe-header__title-row {
	align-items: center;
	gap: 14px;
}

.fm-pe-header__title {
	font-size: 26px;
}

.fm-pe-header__sub {
	margin-top: 6px;
}

/* Back link sits on its own line above the title row */
.fm-pe-header__back {
	display: block;
	margin-bottom: 12px;
}

/* ?? Cards ??????????????????????????????????????????????????????????????????? */

.fm-pe-card {
	border-radius: 10px;
	padding: 24px 28px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}

.fm-pe-card__heading {
	font-size: 14px;
}

/* Delivery card ? no double-padding */
.fm-pe-card--delivery {
	padding: 0;
}

.fm-pe-card--delivery .fm-pd-delivery {
	padding: 24px 28px;
}

/* Sidebar */
.fm-pe-sidebar {
	gap: 20px;
}

/* Save card spacing */
.fm-pe-card--save {
	padding: 20px 24px;
	gap: 12px;
}

/* ?? Preview panel ???????????????????????????????????????????????????????????? */

.fm-pe-preview__thumb {
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	margin-bottom: 14px;
}

.fm-pe-preview__price {
	font-size: 19px;
	color: var(--fb-ink);
}

/* ?? Edit-form media gallery ?????????????????????????????????????????????????? */

.forces-marketplace-seller-product-media__gallery {
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 14px;
}

.forces-marketplace-seller-product-media__item {
	border-radius: 10px;
	overflow: hidden;
}

.forces-marketplace-seller-product-media__item--featured {
	border-color: var(--fb-green);
	box-shadow: 0 0 0 3px rgba(26, 86, 219, .14);
}

.forces-marketplace-seller-product-media__badge {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .05em;
	padding: 3px 8px;
	border-radius: 4px;
	top: 8px;
	left: 8px;
}

/* Horizontal action row instead of vertical column */
.forces-marketplace-seller-product-media__item-actions {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 5px;
	padding: 7px 8px;
	background: var(--fb-surface);
	border-top: 1px solid var(--fb-border);
}

.forces-marketplace-seller-product-media__btn {
	flex: 1 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	padding: 9px 8px;
	min-height: 36px;
	box-sizing: border-box;
	border-radius: 5px;
	white-space: nowrap;
}

.forces-marketplace-seller-product-media__btn--remove {
	flex: 0 0 auto;
	margin-left: auto;
}

/* Better empty state */
.forces-marketplace-seller-product-media__empty {
	border: 2px dashed var(--fb-border);
	border-radius: 10px;
	padding: 32px 20px;
}

/* ?? Create-form image picker ????????????????????????????????????????????????? */

.fm-pe-card--media .fm-image-picker__preview-img {
	height: 130px;
}

.fm-pe-card--media .fm-image-picker__preview-item {
	border-radius: 10px;
	overflow: hidden;
	border: 2px solid var(--fb-border);
}

.fm-pe-card--media .fm-image-picker__grid {
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 12px;
}

/* ?? Drop zone (add-images area) ?????????????????????????????????????????????? */

.fm-drop-zone {
	border-radius: 10px;
}

/* ?? Responsive ??????????????????????????????????????????????????????????????? */

@media (max-width: 1200px) {
	.fm-pe-canvas {
		padding: 24px 24px 80px;
	}

	.fm-pe-grid {
		grid-template-columns: 1fr 340px;
	}
}

@media (max-width: 920px) {
	.fm-pe-canvas {
		padding: 20px 20px 60px;
	}

	.fm-pe-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.forces-marketplace-seller-product-media__gallery {
		grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	}
}

@media (max-width: 560px) {
	.fm-pe-canvas {
		padding: 16px 16px 60px;
	}

	.fm-pe-card {
		padding: 18px 18px;
	}

	.fm-pe-card--delivery .fm-pd-delivery {
		padding: 18px 18px;
	}

	.forces-marketplace-seller-product-media__gallery {
		grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	}
}

/* =============================================================================
   Phase 60Q ? Single-column full-width product editor
   Removes the two-column grid+sidebar layout. Editor is one vertical stack.
   ============================================================================= */

/* ?? Single-column editor stack ??????????????????????????????????????????????? */

.fm-pe-editor {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* ?? Page header ? with inline action buttons ?????????????????????????????????? */

.fm-pe-header--actions .fm-pe-header__bar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 6px;
}

.fm-pe-header__identity {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	flex: 1 1 0;
	min-width: 0;
}

.fm-pe-header--actions .fm-pe-header__title {
	font-size: 24px;
}

.fm-pe-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.fm-pe-header__view-btn {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 0.12s, color 0.12s;
}

.fm-pe-header__view-btn:hover {
	border-color: var(--fb-green-soft);
	color: var(--fb-ink);
}

.fm-pe-save-btn--header {
	display: inline-flex;
	align-items: center;
	padding: 8px 20px;
	font-size: 13.5px;
	font-weight: 700;
	color: #fff;
	background: var(--fb-surface);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.12s;
	font-family: inherit;
}

.fm-pe-save-btn--header:hover {
	background: var(--fb-surface);
}

/* ?? Full-width preview section ???????????????????????????????????????????????? */

.fm-pe-preview-section {
	scroll-margin-top: 24px;
}

.fm-pe-preview-section__note {
	font-size: 12.5px;
	color: var(--fb-green-soft);
	margin: -10px 0 20px;
	line-height: 1.5;
}

.fm-pe-preview-section__layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 40px;
	align-items: start;
}

.fm-pe-preview-section__image-col .fm-pe-preview__thumb {
	width: 100%;
	max-width: 280px;
	aspect-ratio: 1 / 1;
	margin-bottom: 0;
	border-radius: 10px;
}

.fm-pe-preview-section__detail-col .fm-pe-preview__name {
	font-size: 22px;
	font-weight: 800;
	color: var(--fb-ink);
	margin: 0 0 10px;
	-webkit-line-clamp: unset;
}

.fm-pe-preview-section__detail-col .fm-pe-preview__price {
	font-size: 26px;
	font-weight: 800;
	color: var(--fb-ink);
	margin: 0 0 12px;
}

.fm-pe-preview-section__detail-col .fm-pe-preview__meta {
	font-size: 13.5px;
	color: var(--fb-ink-soft);
	margin: 0 0 6px;
}

.fm-pe-preview-section__detail-col .fm-pe-preview__sku-row {
	font-size: 12px;
	color: var(--fb-green-soft);
	margin: 0;
	border: none;
	padding: 0;
}

/* ?? Save section ?????????????????????????????????????????????????????????????? */

.fm-pe-save-section {
	display: flex;
	align-items: flex-start;
	gap: 40px;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 10px;
	padding: 28px 32px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
	flex-wrap: wrap;
}

.fm-pe-save-section__check {
	flex: 1 1 220px;
}

.fm-pe-save-section__check-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--fb-green-soft);
	margin: 0 0 12px;
}

.fm-pe-save-section__check .fm-pe-checklist {
	gap: 8px;
}

.fm-pe-save-section__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex-shrink: 0;
	min-width: 200px;
}

/* ?? Sync info card ???????????????????????????????????????????????????????????? */

.fm-pe-card--sync {
	padding: 22px 28px;
}

.fm-pe-card--sync .fm-seller-sync-info {
	/* Reset any margin from the standalone positioning it had before */
	margin: 0;
}

/* ?? Variant builder section (outside form, full-width) ???????????????????????? */

.fm-pe-canvas .fm-variant-builder {
	margin-top: 24px;
}

/* ?? Responsive ??????????????????????????????????????????????????????????????? */

@media (max-width: 860px) {
	.fm-pe-preview-section__layout {
		grid-template-columns: 220px 1fr;
		gap: 28px;
	}

	.fm-pe-preview-section__image-col .fm-pe-preview__thumb {
		max-width: 220px;
	}
}

@media (max-width: 640px) {
	.fm-pe-header__bar {
		flex-direction: column;
		gap: 12px;
	}

	.fm-pe-header__actions {
		width: 100%;
		justify-content: flex-end;
	}

	.fm-pe-preview-section__layout {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.fm-pe-preview-section__image-col .fm-pe-preview__thumb {
		max-width: 240px;
	}

	.fm-pe-save-section {
		flex-direction: column;
		gap: 20px;
		padding: 20px 20px;
	}

	.fm-pe-save-section__actions {
		width: 100%;
	}

	.fm-pe-save-btn--header {
		display: none; /* Save button in header hidden on mobile; use bottom save section */
	}
}

/* ==========================================================================
   Phase 61 ? Product reviews (seller dashboard + public display)
   ========================================================================== */


/* =========================================================================
   Seller Reviews ? Premium Control Panel UI  (Phase 61P / 61Q)
   ========================================================================= */

/* Design tokens ? scoped so they don't bleed into theme */
.fm-seller-reviews,
.fm-seller-reviews * {
  box-sizing: border-box;
}

/* ---- Shell ---- */
.fm-seller-reviews { max-width: 1100px; margin: 0 auto; padding: 0 0 80px; }

/* ---- Header ---- */
.fm-sr-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.fm-sr-header__text { flex: 1; }
.fm-sr-header__title { font-size: 1.6rem; font-weight: 700; color: var(--fb-ink); margin: 0 0 4px; letter-spacing: -0.02em; }
.fm-sr-header__sub { font-size: 0.9rem; color: var(--fb-ink-soft); margin: 0; }
.fm-sr-header__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fm-sr-back { display: inline-flex; align-items: center; gap: 6px; color: var(--fb-green-soft); font-size: 0.875rem; text-decoration: none; margin-bottom: 14px; padding: 6px 0; transition: color 0.15s ease; }
.fm-sr-back:hover { color: var(--fb-ink); }

/* ---- Notices ---- */
.fm-sr-notice { display: flex; align-items: flex-start; gap: 10px; padding: 14px 18px; border-radius: 10px; margin-bottom: 24px; font-size: 0.875rem; line-height: 1.5; }
.fm-sr-notice--success { background: rgba(74,222,128,0.14); color: var(--fb-success); border: 1px solid rgba(74,222,128,0.35); }
.fm-sr-notice--error   { background: rgba(248,113,113,0.14); color: var(--fb-danger); border: 1px solid rgba(248,113,113,0.35); }
.fm-sr-notice--info    { background: var(--fb-accent-bg); color: var(--fb-azure); border: 1px solid rgba(124,192,255,0.30); }
.fm-sr-notice--warning { background: rgba(245,158,11,0.16); color: #fbbf24; border: 1px solid rgba(245,158,11,0.35); }

/* ---- Summary strip ---- */
.fm-sr-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 32px; }
.fm-sr-summary__card { background: var(--fb-surface); border: 1px solid var(--fb-border); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.fm-sr-summary__card--pending { border-color: rgba(245,158,11,0.35); background: rgba(245,158,11,0.16); }
.fm-sr-summary__card--warn    { border-color: rgba(248,113,113,0.35); background: rgba(248,113,113,0.14); }
.fm-sr-summary__num { font-size: 1.8rem; font-weight: 700; color: var(--fb-ink); line-height: 1; letter-spacing: -0.03em; }
.fm-sr-summary__star { font-size: 1.1rem; color: #fbbf24; }
.fm-sr-summary__label { font-size: 0.72rem; color: var(--fb-green-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

/* ---- Product list ---- */
.fm-sr-product-list { display: flex; flex-direction: column; gap: 10px; }

.fm-sr-product-row { display: flex; gap: 18px; align-items: flex-start; background: var(--fb-surface); border: 1px solid var(--fb-border); border-radius: 14px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.04); transition: box-shadow 0.2s ease, transform 0.15s ease; }
.fm-sr-product-row:hover { box-shadow: 0 6px 20px rgba(0,0,0,.09); transform: translateY(-1px); }
.fm-sr-product-row--no-reviews { border-left: 3px solid rgba(245,158,11,0.35); }

/* Product thumb */
.fm-sr-product-row__thumb { flex-shrink: 0; }
.fm-sr-product-thumb { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; display: block; }
.fm-sr-product-thumb--placeholder { width: 72px; height: 72px; border-radius: 10px; background: var(--fb-surface); border: 1px solid var(--fb-border); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }

/* Product info */
.fm-sr-product-row__info { flex: 1; min-width: 0; }
.fm-sr-product-row__name-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.fm-sr-product-row__name { font-size: 0.975rem; font-weight: 600; color: var(--fb-ink); }
.fm-sr-product-row__sku { font-size: 0.775rem; color: var(--fb-green-soft); }
.fm-sr-product-row__badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.fm-sr-product-row__stats { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fm-sr-product-row__avg { font-size: 0.875rem; font-weight: 700; color: var(--fb-ink); }
.fm-sr-product-row__stat-pill { font-size: 0.775rem; background: var(--fb-surface); border: 1px solid var(--fb-border); border-radius: 20px; padding: 3px 10px; color: var(--fb-green-soft); }
.fm-sr-product-row__stat-pill--pending { background: rgba(245,158,11,0.16); border-color: rgba(245,158,11,0.35); color: #fbbf24; }
.fm-sr-product-row__stat-pill--muted   { color: var(--fb-green-soft); }
.fm-sr-product-row__no-reviews { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fm-sr-product-row__more-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.fm-sr-product-row__no-reviews-label { font-size: 0.85rem; color: var(--fb-green-soft); }

/* Action column */
.fm-sr-product-row__action { display: flex; flex-direction: column; gap: 8px; align-items: stretch; flex-shrink: 0; width: 160px; }

/* ---- Buttons ---- */
.fm-sr-btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 10px; font-size: 0.875rem; font-weight: 600; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; white-space: nowrap; letter-spacing: -0.01em; }
.fm-sr-btn:focus-visible { outline: 2px solid var(--fb-green); outline-offset: 2px; }

.fm-sr-btn--primary   { background: var(--fb-surface); color: #fff; border-color: var(--fb-border-strong); }
.fm-sr-btn--primary:hover { background: var(--fb-surface); box-shadow: 0 4px 12px rgba(15,23,42,.28); }

.fm-sr-btn--secondary { background: var(--fb-surface); color: var(--fb-ink); border-color: var(--fb-border); }
.fm-sr-btn--secondary:hover { border-color: var(--fb-green-soft); background: var(--fb-surface); }

.fm-sr-btn--ghost { background: transparent; color: var(--fb-green-soft); border-color: transparent; height: auto; padding: 6px 0; font-weight: 500; font-size: 0.875rem; }
.fm-sr-btn--ghost:hover { color: var(--fb-ink); }

.fm-sr-btn--manage { background: var(--fb-accent-bg); color: var(--fb-azure); border-color: rgba(124,192,255,0.30); }
.fm-sr-btn--manage:hover { background: var(--fb-accent-bg); border-color: rgba(124,192,255,0.30); }

/* ---- Link ---- */
.fm-sr-link { color: var(--fb-green); text-decoration: none; font-size: 0.85rem; font-weight: 500; }
.fm-sr-link:hover { text-decoration: underline; }

/* ---- Badges ---- */
.fm-sr-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid transparent; }

.fm-sr-badge--active,
.fm-sr-badge--publish    { background: rgba(74,222,128,0.14); color: var(--fb-success); border-color: rgba(74,222,128,0.35); }
.fm-sr-badge--draft      { background: var(--fb-surface); color: var(--fb-green-soft); border-color: var(--fb-border); }
.fm-sr-badge--pending    { background: rgba(245,158,11,0.16); color: #fbbf24; border-color: rgba(245,158,11,0.35); }
.fm-sr-badge--approved   { background: rgba(74,222,128,0.14); color: var(--fb-success); border-color: rgba(74,222,128,0.35); }
.fm-sr-badge--rejected   { background: rgba(248,113,113,0.14); color: var(--fb-danger); border-color: rgba(248,113,113,0.35); }
.fm-sr-badge--hidden     { background: var(--fb-surface); color: var(--fb-green-soft); border-color: var(--fb-border-strong); }
.fm-sr-badge--verified   { background: var(--fb-accent-bg); color: var(--fb-azure); border-color: rgba(124,192,255,0.30); }
.fm-sr-badge--imported   { background: var(--fb-accent-bg); color: var(--fb-azure); border-color: rgba(124,192,255,0.30); }
.fm-sr-badge--manual     { background: var(--fb-surface); color: var(--fb-green-soft); border-color: var(--fb-border); }
.fm-sr-badge--reviews-on { background: rgba(74,222,128,0.14); color: var(--fb-success); border-color: rgba(74,222,128,0.35); }
.fm-sr-badge--reviews-off{ background: rgba(248,113,113,0.14); color: var(--fb-danger); border-color: rgba(248,113,113,0.35); }

/* ---- Toggle button ---- */
.fm-sr-toggle-btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 16px; border-radius: 10px; font-size: 0.8rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; letter-spacing: 0.02em; text-transform: uppercase; width: 100%; }
.fm-sr-toggle-btn:focus-visible { outline: 2px solid var(--fb-green); outline-offset: 2px; }
/* Neutral in both states — the label already says what it does, so no red/green. */
.fm-sr-toggle-btn,
.fm-sr-toggle-btn--on,
.fm-sr-toggle-btn--off { background: var(--fb-cream); color: var(--fb-ink-soft); border: 1.5px solid var(--fb-border-strong); }
.fm-sr-toggle-btn:hover,
.fm-sr-toggle-btn--on:hover,
.fm-sr-toggle-btn--off:hover { background: var(--fb-sand); border-color: var(--fb-green-soft); color: var(--fb-ink); }

.fm-sr-product-header__toggle-row { display: flex; align-items: center; gap: 12px; margin: 10px 0; flex-wrap: wrap; }
.fm-sr-toggle-form { margin: 0; }

/* ---- Stars display ---- */
.fm-sr-stars       { letter-spacing: 1px; color: #fbbf24; }
.fm-sr-star--full  { color: #fbbf24; }
.fm-sr-star--half  { color: #fbbf24; opacity: 0.55; }
.fm-sr-star--empty { color: var(--fb-green-soft); }

/* ---- Star picker (interactive rating input) ---- */
.fm-sr-star-picker { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.fm-sr-sp__star { background: none; border: none; padding: 2px; font-size: 2.2rem; cursor: pointer; color: var(--fb-green-soft); line-height: 1; transition: color 0.1s ease, transform 0.1s ease; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.fm-sr-sp__star--on { color: #fbbf24; }
.fm-sr-sp__star:hover { transform: scale(1.18); }
.fm-sr-sp__star:focus-visible { outline: 2px solid var(--fb-green); outline-offset: 2px; }
.fm-sr-sp__label { font-size: 0.875rem; color: var(--fb-green-soft); margin-left: 10px; min-width: 80px; }

/* ---- Nudge / CTA block ---- */
.fm-sr-nudge { background: var(--fb-accent-bg); border: 1px solid rgba(124,192,255,0.30); border-radius: 14px; padding: 24px 28px; margin-top: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fm-sr-nudge__text { flex: 1; font-size: 0.9rem; color: var(--fb-azure); margin: 0; }

/* ---- Empty states ---- */
.fm-sr-empty-state { text-align: center; padding: 72px 24px; }
.fm-sr-empty-state--inline { padding: 48px 24px; background: var(--fb-surface); border: 1px solid var(--fb-border); border-radius: 14px; margin-top: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.fm-sr-empty-state__icon  { font-size: 2.75rem; margin-bottom: 16px; line-height: 1; }
.fm-sr-empty-state__title { font-size: 1.1rem; font-weight: 700; color: var(--fb-ink); margin: 0 0 8px; }
.fm-sr-empty-state__body  { font-size: 0.9rem; color: var(--fb-green-soft); margin: 0 0 24px; max-width: 400px; margin-left: auto; margin-right: auto; }
.fm-sr-empty-state__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---- Product detail header ---- */
.fm-sr-product-header { display: flex; gap: 22px; align-items: flex-start; background: var(--fb-surface); border: 1px solid var(--fb-border); border-radius: 14px; padding: 24px; margin-bottom: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.04); flex-wrap: wrap; }
.fm-sr-product-header__thumb { flex-shrink: 0; }
.fm-sr-product-header__info { flex: 1; min-width: 0; }
.fm-sr-product-header__name { font-size: 1.15rem; font-weight: 700; color: var(--fb-ink); margin: 0 0 4px; }
.fm-sr-product-header__sku  { font-size: 0.8rem; color: var(--fb-green-soft); margin: 0 0 10px; }
.fm-sr-product-header__rating { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.fm-sr-product-header__avg   { font-size: 1rem; font-weight: 700; color: var(--fb-ink); }
.fm-sr-product-header__cnt   { font-size: 0.85rem; color: var(--fb-green-soft); }
.fm-sr-product-header__cnt--pending { color: #fbbf24; }
.fm-sr-product-header__counts { display: flex; gap: 16px; font-size: 0.85rem; color: var(--fb-green-soft); flex-wrap: wrap; margin-top: 6px; }
.fm-sr-product-header__actions { display: flex; gap: 10px; align-items: flex-start; flex-shrink: 0; flex-wrap: wrap; }

/* ---- Review list ---- */
.fm-sr-review-list { display: flex; flex-direction: column; gap: 12px; }
.fm-sr-review-card { background: var(--fb-surface); border: 1px solid var(--fb-border); border-radius: 14px; padding: 22px 24px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.fm-sr-review-card--pending  { border-left: 3px solid rgba(245,158,11,0.35); }
.fm-sr-review-card--approved { border-left: 3px solid rgba(74,222,128,0.35); }
.fm-sr-review-card--rejected { border-left: 3px solid rgba(248,113,113,0.35); }
.fm-sr-review-card--hidden   { border-left: 3px solid var(--fb-border-strong); opacity: 0.65; }
.fm-sr-review-card__top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.fm-sr-review-card__rating { color: #fbbf24; font-size: 1.1rem; letter-spacing: 1px; }
.fm-sr-review-card__meta { display: flex; gap: 6px; flex-wrap: wrap; }
.fm-sr-review-card__title { font-size: 0.95rem; font-weight: 700; color: var(--fb-ink); margin: 0 0 6px; }
.fm-sr-review-card__body { font-size: 0.875rem; color: var(--fb-ink-soft); line-height: 1.65; margin: 0 0 14px; }
.fm-sr-review-card__footer { display: flex; align-items: center; gap: 16px; font-size: 0.8rem; color: var(--fb-green-soft); border-top: 1px solid var(--fb-border); padding-top: 12px; }
.fm-sr-review-card__reviewer { font-weight: 600; color: var(--fb-ink-soft); }

/* ---- Forms ---- */
.fm-sr-form { background: var(--fb-surface); border: 1px solid var(--fb-border); border-radius: 14px; padding: 32px; max-width: 700px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.fm-sr-form--confirm { background: var(--fb-surface); margin-top: 20px; padding: 24px 32px; }
.fm-sr-field { margin-bottom: 22px; }
.fm-sr-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.fm-sr-label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--fb-ink); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }

.fm-sr-input,
.fm-sr-select,
.fm-sr-textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--fb-border); border-radius: 8px; font-size: 0.9rem; color: var(--fb-ink); background: var(--fb-surface); box-sizing: border-box; transition: border-color 0.15s ease, box-shadow 0.15s ease; font-family: inherit; line-height: 1.4; }
.fm-sr-input:focus,
.fm-sr-select:focus,
.fm-sr-textarea:focus { outline: none; border-color: var(--fb-green); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.fm-sr-textarea { resize: vertical; min-height: 110px; }

/* Custom select arrow */
.fm-sr-select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 8l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; cursor: pointer; }

.fm-sr-note { font-size: 0.82rem; color: var(--fb-green-soft); background: var(--fb-surface); border: 1px solid var(--fb-border); border-radius: 8px; padding: 12px 16px; line-height: 1.55; margin-bottom: 22px; }
.fm-sr-form-actions { display: flex; gap: 12px; align-items: center; margin-top: 4px; flex-wrap: wrap; }

/* ---- Vendor add-review panel on product page ---- */
.fm-pr-vendor-add { margin-top: 28px; padding: 18px 22px; background: var(--fb-surface); border: 1.5px dashed var(--fb-border-strong); border-radius: 12px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fm-pr-vendor-add__text { flex: 1; margin: 0; }
.fm-pr-vendor-add__text strong { font-size: 0.875rem; font-weight: 700; color: var(--fb-ink); display: block; margin-bottom: 2px; }
.fm-pr-vendor-add__text span { font-size: 0.85rem; color: var(--fb-green-soft); }

/* ---- Import info block ---- */
.fm-sr-import-info { background: var(--fb-surface); border: 1px solid var(--fb-border); border-radius: 14px; padding: 22px 24px; margin-bottom: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.fm-sr-import-info p { font-size: 0.875rem; color: var(--fb-ink-soft); margin: 0 0 8px; }
.fm-sr-import-info p:last-child { margin: 0; }
.fm-sr-import-info code { background: var(--fb-surface); border: 1px solid var(--fb-border); border-radius: 4px; padding: 2px 6px; font-size: 0.78rem; color: var(--fb-ink); }

/* ---- Preview ---- */
.fm-sr-preview { margin-top: 32px; }
.fm-sr-preview__title { font-size: 1rem; font-weight: 700; color: var(--fb-ink); margin: 0 0 16px; }

/* ---- Table ---- */
.fm-sr-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fm-sr-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.875rem; }
.fm-sr-table th { text-align: left; padding: 10px 12px; background: var(--fb-surface); border-bottom: 2px solid var(--fb-border); color: var(--fb-green-soft); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.fm-sr-table td { padding: 12px; border-bottom: 1px solid var(--fb-border); vertical-align: middle; }
.fm-sr-table tr:hover td { background: var(--fb-surface); }

/* ---- Filters (legacy) ---- */
.fm-sr-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.fm-sr-filter { display: inline-block; padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; background: var(--fb-surface); color: var(--fb-ink-soft); text-decoration: none; transition: background 0.15s; border: 1px solid var(--fb-border); }
.fm-sr-filter:hover, .fm-sr-filter--active { background: var(--fb-surface); color: #fff; border-color: var(--fb-border-strong); }

/* ---- Access denied ---- */
.fm-sr-access-denied { padding: 48px 24px; text-align: center; color: var(--fb-green-soft); }

/* ---- prefers-reduced-motion ---- */
@media (prefers-reduced-motion: reduce) {
  .fm-sr-product-row,
  .fm-sr-btn,
  .fm-sr-toggle-btn,
  .fm-sr-sp__star,
  .fm-sr-input,
  .fm-sr-select,
  .fm-sr-textarea { transition: none; }
  .fm-sr-product-row:hover { transform: none; }
  .fm-sr-sp__star:hover { transform: none; }
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
  .fm-sr-product-row { flex-wrap: wrap; }
  .fm-sr-product-row__action { flex-direction: row; width: 100%; min-width: 0; }
  .fm-sr-product-row__action .fm-sr-btn--manage { flex: 1; }
  .fm-sr-product-row__action .fm-sr-toggle-btn { flex: 1; width: auto; }
  .fm-sr-field-row { grid-template-columns: 1fr; }
  .fm-sr-product-header { flex-direction: column; }
  .fm-sr-product-header__actions { width: 100%; }
  .fm-sr-product-header__toggle-row { flex-direction: row; align-items: center; }
  .fm-sr-toggle-form { flex: 1; }
  .fm-sr-toggle-btn { width: 100%; }
  .fm-sr-summary { grid-template-columns: repeat(2, 1fr); }
  .fm-sr-form { padding: 20px 18px; }
  .fm-sr-nudge { flex-direction: column; align-items: stretch; }
  .fm-pr-vendor-add { flex-direction: column; align-items: stretch; }
  .fm-sr-form-actions { flex-direction: column; align-items: stretch; }
  .fm-sr-form-actions .fm-sr-btn { justify-content: center; }
}

/* =========================================================================
   Product Editor ? Reviews Panel  (Phase 61R)
   ========================================================================= */

.fm-pe-card--reviews.fm-pe-reviews { padding: 24px 28px; }

/* Header */
.fm-pe-reviews__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.fm-pe-reviews__header-text { flex: 1; }
.fm-pe-reviews__title { font-size: 1rem; font-weight: 700; color: var(--fb-ink); margin: 0 0 4px; }
.fm-pe-reviews__sub { font-size: 0.85rem; color: var(--fb-green-soft); margin: 0; line-height: 1.4; }

/* Toggle switch */
.fm-pe-reviews__toggle-row { margin-bottom: 20px; }
.fm-pe-reviews__toggle-label { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; min-height: 44px; }

/* Visually hidden but still focusable/accessible */
.fm-pe-reviews__toggle-cb {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

.fm-pe-reviews__toggle-track {
  flex-shrink: 0;
  display: inline-block;
  width: 44px; height: 24px;
  background: var(--fb-border-strong);
  border-radius: 12px;
  position: relative;
  transition: background 0.2s ease;
}
.fm-pe-reviews__toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--fb-surface);
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform 0.2s ease;
}
.fm-pe-reviews__toggle-cb:checked + .fm-pe-reviews__toggle-track { background: var(--fb-success); }
.fm-pe-reviews__toggle-cb:checked + .fm-pe-reviews__toggle-track .fm-pe-reviews__toggle-thumb { transform: translateX(20px); }
.fm-pe-reviews__toggle-cb:focus-visible + .fm-pe-reviews__toggle-track { outline: 2px solid var(--fb-green); outline-offset: 2px; border-radius: 12px; }

.fm-pe-reviews__toggle-text { font-size: 0.9rem; font-weight: 500; color: var(--fb-ink); }
.fm-pe-reviews__toggle-hint { font-size: 0.8rem; color: var(--fb-green-soft); margin: 6px 0 0 56px; }

/* Stats strip */
.fm-pe-reviews__stats { display: flex; background: var(--fb-surface); border: 1px solid var(--fb-border); border-radius: 10px; overflow: hidden; margin-bottom: 20px; }
.fm-pe-reviews__stat { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid var(--fb-border); min-width: 0; }
.fm-pe-reviews__stat:last-child { border-right: none; }
.fm-pe-reviews__stat--pending { background: rgba(245,158,11,0.16); }
.fm-pe-reviews__stat--muted   { background: var(--fb-surface); }
.fm-pe-reviews__stat-num { font-size: 1.4rem; font-weight: 700; color: var(--fb-ink); line-height: 1; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 3px; }
.fm-pe-reviews__stat-star { font-size: 0.9rem; color: #fbbf24; font-weight: 400; }
.fm-pe-reviews__stat-label { font-size: 0.68rem; color: var(--fb-green-soft); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

/* Action buttons */
.fm-pe-reviews__actions { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.fm-pe-reviews__actions .fm-sr-btn { height: 40px; font-size: 0.82rem; }

/* Empty state (no reviews yet) */
.fm-pe-reviews__empty { padding: 4px 0 20px; }
.fm-pe-reviews__empty-title { font-size: 0.9rem; font-weight: 600; color: var(--fb-ink); margin: 0 0 4px; }
.fm-pe-reviews__empty-body  { font-size: 0.85rem; color: var(--fb-green-soft); margin: 0; line-height: 1.5; }

/* Planned state (new product) */
.fm-pe-reviews__new-state { text-align: center; padding: 24px 16px; background: var(--fb-surface); border: 1.5px dashed var(--fb-border-strong); border-radius: 10px; margin-top: 4px; }
.fm-pe-reviews__new-icon  { font-size: 1.75rem; margin-bottom: 8px; line-height: 1; }
.fm-pe-reviews__new-title { font-size: 0.9rem; font-weight: 700; color: var(--fb-ink); margin: 0 0 6px; }
.fm-pe-reviews__new-body  { font-size: 0.85rem; color: var(--fb-green-soft); margin: 0; line-height: 1.5; }

/* Latest reviews preview */
.fm-pe-reviews__preview { border-top: 1px solid var(--fb-border); padding-top: 16px; }
.fm-pe-reviews__preview-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.fm-pe-reviews__preview-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fb-green-soft); }

.fm-pe-reviews__card { background: var(--fb-surface); border: 1px solid var(--fb-border); border-radius: 10px; padding: 14px 16px; margin-bottom: 8px; }
.fm-pe-reviews__card:last-child { margin-bottom: 0; }
.fm-pe-reviews__card--pending  { border-left: 3px solid rgba(245,158,11,0.35); }
.fm-pe-reviews__card--approved { border-left: 3px solid rgba(74,222,128,0.35); }
.fm-pe-reviews__card--rejected { border-left: 3px solid rgba(248,113,113,0.35); opacity: 0.75; }
.fm-pe-reviews__card--hidden   { border-left: 3px solid var(--fb-border-strong); opacity: 0.6; }

.fm-pe-reviews__card-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 7px; }
.fm-pe-reviews__card-stars { font-size: 0.9rem; letter-spacing: 1px; }
.fm-pe-reviews__star-full  { color: #fbbf24; }
.fm-pe-reviews__star-empty { color: var(--fb-green-soft); }

.fm-pe-reviews__card-title    { font-size: 0.85rem; font-weight: 600; color: var(--fb-ink); margin: 0 0 4px; }
.fm-pe-reviews__card-body     { font-size: 0.82rem; color: var(--fb-green-soft); margin: 0 0 7px; line-height: 1.5; }
.fm-pe-reviews__card-reviewer { font-size: 0.78rem; color: var(--fb-green-soft); margin: 0; }

/* Mobile */
@media (max-width: 640px) {
  .fm-pe-reviews__stats { flex-wrap: wrap; }
  .fm-pe-reviews__stat { min-width: calc(50% - 1px); border-bottom: 1px solid var(--fb-border); }
  .fm-pe-reviews__stat:nth-last-child(-n+2) { border-bottom: none; }
  .fm-pe-reviews__actions { flex-direction: column; align-items: stretch; }
  .fm-pe-reviews__actions .fm-sr-btn { justify-content: center; }
  .fm-pe-reviews__toggle-hint { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .fm-pe-reviews__toggle-track,
  .fm-pe-reviews__toggle-thumb { transition: none; }
}

/* -- Phase 61S: Segmented rating control + text-only badge --------------- */

/* Segmented control */
.fm-sr-seg-ctrl {
  display: inline-flex;
  border: 1px solid var(--fb-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--fb-surface);
}
.fm-sr-seg-ctrl__opt {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.fm-sr-seg-ctrl__lbl {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  height: 42px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fb-ink-soft);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-right: 1px solid var(--fb-border);
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}
.fm-sr-seg-ctrl__lbl:last-child { border-right: none; }
.fm-sr-seg-ctrl__lbl:hover { background: var(--fb-surface); color: var(--fb-ink); }
.fm-sr-seg-ctrl__lbl--active,
.fm-sr-seg-ctrl__opt:checked + span,
.fm-sr-seg-ctrl__lbl:has(.fm-sr-seg-ctrl__opt:checked) {
  background: var(--fb-surface);
  color: #fff;
}
.fm-sr-seg-ctrl__opt:focus-visible ~ .fm-sr-seg-ctrl__lbl,
.fm-sr-seg-ctrl__lbl:has(.fm-sr-seg-ctrl__opt:focus-visible) {
  outline: 2px solid var(--fb-blue);
  outline-offset: -2px;
}

/* Text-only / no-rating badge */
.fm-sr-badge--text-only {
  background: var(--fb-surface);
  color: var(--fb-green-soft);
  border: 1px solid var(--fb-border);
}

/* Hide/show rating picker wrap */
.fm-sr-rating-picker[style*="display: none"] { display: none !important; }

/* 10-star picker wider spacing */
.fm-sr-star-picker.fm-sr-star-picker--10 .fm-sr-sp__star { font-size: 1.1rem; }

/* -- Quick Add Form (Phase 61U) ------------------------------------------- */

.fm-sr-qaform {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 640px;
}

/* Field */
.fm-sr-qaform__field { display: flex; flex-direction: column; gap: 6px; }
.fm-sr-label--hint { font-size: 0.78rem; font-weight: 600; color: var(--fb-green-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.fm-sr-required { color: var(--fb-danger); margin-left: 1px; }
.fm-sr-hint { font-weight: 400; color: var(--fb-green-soft); font-size: 0.8em; }

/* 2-col row inside advanced */
.fm-sr-qaform__field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) { .fm-sr-qaform__field-row { grid-template-columns: 1fr; } }

/* Rating section */
.fm-sr-qaform__rating-section {
  background: var(--fb-surface);
  border: 1px solid var(--fb-border);
  border-radius: 14px;
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fm-sr-qaform__rating-type-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.fm-sr-qaform__star-well {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0 2px;
}

/* Large star picker */
.fm-sr-star-picker--lg { gap: 2px; }
.fm-sr-star-picker--lg .fm-sr-sp__star {
  font-size: 2.4rem;
  line-height: 1;
  padding: 2px 4px;
  transition: transform 0.1s, color 0.12s;
}
.fm-sr-star-picker--lg .fm-sr-sp__star:hover,
.fm-sr-star-picker--lg .fm-sr-sp__star:focus-visible {
  transform: scale(1.18);
  outline: none;
}
.fm-sr-star-picker--lg .fm-sr-sp__label {
  font-size: 0.82rem;
  color: var(--fb-green-soft);
  margin-left: 10px;
  min-width: 70px;
}

/* Tall textarea */
.fm-sr-textarea--tall { min-height: 110px; resize: vertical; }

/* More details toggle */
.fm-sr-adv-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--fb-azure);
  align-self: flex-start;
  transition: color 0.15s;
}
.fm-sr-adv-toggle:hover { color: var(--fb-azure); }
.fm-sr-adv-toggle__chevron {
  transition: transform 0.2s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
}
.fm-sr-adv-toggle--open .fm-sr-adv-toggle__chevron { transform: rotate(180deg); }

/* Advanced / collapsible section */
.fm-sr-form__advanced {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--fb-surface);
  border: 1px solid var(--fb-border);
  border-radius: 12px;
  padding: 20px;
  overflow: hidden;
  transition: max-height 0.28s cubic-bezier(.4,0,.2,1), opacity 0.2s, padding 0.2s;
  max-height: 600px;
  opacity: 1;
}
.fm-sr-form__advanced[aria-hidden="true"] {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
  pointer-events: none;
}

/* Form actions */
.fm-sr-qaform__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}
.fm-sr-btn--lg { height: 48px; padding: 0 28px; font-size: 0.95rem; }

/* ==========================================================================
   Seller Boost Dashboard ? v2.9.0
   ========================================================================== */

/* --- Shared shell --- */
.fm-seller-boosts {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 0 48px;
  font-family: inherit;
}
.fm-seller-boosts__notice {
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}
.fm-seller-boosts__notice--success { background: rgba(74,222,128,0.14); color: var(--fb-success); border: 1px solid rgba(74,222,128,0.35); }
.fm-seller-boosts__notice--error   { background: rgba(248,113,113,0.14); color: var(--fb-danger); border: 1px solid rgba(248,113,113,0.35); }
.fm-seller-boosts__state-msg { color: var(--fb-green-soft); font-style: italic; }

/* --- Hero --- */
.fm-boost-hero {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, var(--fb-blue) 0%, var(--fb-blue) 100%);
  border-radius: 16px;
  padding: 28px 32px;
  color: #fff;
}
.fm-boost-hero__balance-block { display: flex; flex-direction: column; gap: 4px; }
.fm-boost-hero__token-count {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
}
.fm-boost-hero__token-label { font-size: 0.9rem; opacity: 0.85; }
.fm-boost-hero__live-stat {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fm-boost-hero__live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--fb-success);
  animation: fm-pulse 2s ease-in-out infinite;
}
@keyframes fm-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}
.fm-boost-hero__package-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.fm-boost-hero__package-badge {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255,255,255,0.2);
}
.fm-boost-hero__package-badge--boost_seller { background: rgba(251,191,36,0.35); }
.fm-boost-hero__package-status {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
}
.fm-boost-hero__package-status--active { background: rgba(52,211,153,0.3); }
.fm-boost-hero__grant-label { font-size: 0.78rem; opacity: 0.8; }
.fm-boost-hero__cta-block { display: flex; flex-direction: column; align-items: flex-end; }
.fm-boost-hero__cta-btn {
  display: inline-block;
  background: var(--fb-surface);
  color: var(--fb-azure);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}
.fm-boost-hero__cta-btn:hover { background: var(--fb-accent-bg); transform: translateY(-1px); }
.fm-boost-hero__cta-note { font-size: 0.78rem; opacity: 0.75; margin: 0; }

/* --- Slot calendar --- */
.fm-boost-calendar {
  background: var(--fb-surface);
  border: 1px solid var(--fb-border);
  border-radius: 14px;
  overflow: hidden;
}
.fm-boost-calendar__heading { padding: 20px 24px 12px; border-bottom: 1px solid var(--fb-sand); }
.fm-boost-calendar__title { font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; color: var(--fb-ink); }
.fm-boost-calendar__subtitle { font-size: 0.8rem; color: var(--fb-green-soft); margin: 0; }
.fm-boost-calendar__legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 24px;
  border-bottom: 1px solid var(--fb-sand);
}
.fm-boost-calendar__legend-item {
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.fm-boost-calendar__legend-item::before {
  content: '';
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 2px;
}
.fm-boost-calendar__legend-item--available::before  { background: rgba(74,222,128,0.14); border: 1px solid rgba(74,222,128,0.35); }
.fm-boost-calendar__legend-item--vendor-active::before { background: var(--fb-accent-bg); border: 1px solid rgba(124,192,255,0.30); }
.fm-boost-calendar__legend-item--full::before       { background: rgba(248,113,113,0.14); border: 1px solid rgba(248,113,113,0.35); }
.fm-boost-calendar__legend-item--past::before       { background: var(--fb-sand); border: 1px solid var(--fb-border); }

.fm-boost-calendar__scroll-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fm-boost-calendar__grid {
  display: grid;
  grid-template-columns: 54px repeat(7, 1fr);
  min-width: 560px;
}
.fm-boost-calendar__row { display: contents; }
.fm-boost-calendar__row--header .fm-boost-calendar__day-header,
.fm-boost-calendar__row--header .fm-boost-calendar__time-label {
  background: var(--fb-cream);
  border-bottom: 1px solid var(--fb-border);
  padding: 10px 4px 8px;
  text-align: center;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--fb-ink-soft);
  position: sticky;
  top: 0;
  z-index: 1;
}
.fm-boost-calendar__day-header--today { color: var(--fb-azure); }
.fm-boost-calendar__today-badge {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--fb-azure);
  margin-top: 2px;
}
.fm-boost-calendar__time-label {
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--fb-green-soft);
  border-right: 1px solid var(--fb-sand);
  text-align: right;
}
.fm-boost-calendar__cell {
  border: 1px solid var(--fb-sand);
  min-height: 52px;
  display: flex;
  align-items: stretch;
}
/* Cell state colours */
.fm-boost-calendar__cell--available  { background: rgba(74,222,128,0.14); }
.fm-boost-calendar__cell--vendor-active { background: var(--fb-accent-bg); }
.fm-boost-calendar__cell--full       { background: rgba(248,113,113,0.14); }
.fm-boost-calendar__cell--vendor-full { background: rgba(245,158,11,0.16); }
.fm-boost-calendar__cell--past       { background: var(--fb-cream); }
.fm-boost-calendar__cell--no-tokens  { background: var(--fb-cream); }
.fm-boost-calendar__cell--no-products { background: var(--fb-cream); }

.fm-boost-calendar__slot-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 6px 4px;
  text-decoration: none;
  color: var(--fb-success);
  gap: 3px;
  transition: background 0.12s;
}
.fm-boost-calendar__cell--available .fm-boost-calendar__slot-btn:hover {
  background: rgba(74,222,128,0.14);
}
.fm-boost-calendar__slot-avail {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--fb-green-soft);
}
.fm-boost-calendar__slot-action {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--fb-success);
}
.fm-boost-calendar__slot-yours {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 6px 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--fb-azure);
  gap: 3px;
  cursor: default;
}
.fm-boost-calendar__slot-icon { font-size: 0.85rem; }
.fm-boost-calendar__slot-disabled {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 4px;
  font-size: 0.62rem;
  color: var(--fb-green-soft);
  text-align: center;
  cursor: not-allowed;
}
.fm-boost-calendar__cap-note {
  padding: 10px 24px 16px;
  font-size: 0.73rem;
  color: var(--fb-green-soft);
  margin: 0;
  border-top: 1px solid var(--fb-sand);
}

/* --- Boost sections (active / scheduled) --- */
.fm-boost-section { display: flex; flex-direction: column; gap: 14px; }
.fm-boost-section__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fb-ink);
  margin: 0;
}
.fm-boost-section__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fm-boost-section__dot--active    { background: var(--fb-success); animation: fm-pulse 2s ease-in-out infinite; }
.fm-boost-section__dot--scheduled { background: var(--fb-green); }
.fm-boost-section__count {
  background: var(--fb-sand);
  color: var(--fb-ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

/* --- Boost cards grid --- */
.fm-boost-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.fm-boost-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--fb-surface);
  border: 1px solid var(--fb-border);
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.fm-boost-card--active    { border-color: rgba(74,222,128,0.35); }
.fm-boost-card--scheduled { border-color: rgba(124,192,255,0.30); }

.fm-boost-card__image {
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  background: var(--fb-sand);
}
.fm-boost-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-boost-card__image--placeholder { background: linear-gradient(135deg, var(--fb-border), var(--fb-surface)); }
.fm-boost-card__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fm-boost-card__name { font-weight: 600; font-size: 0.9rem; color: var(--fb-ink); line-height: 1.3; }
.fm-boost-card__times { font-size: 0.78rem; color: var(--fb-green-soft); display: flex; flex-direction: column; gap: 2px; }
.fm-boost-card__countdown {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
}
.fm-boost-card__countdown-label { color: var(--fb-green-soft); }
.fm-boost-card__countdown-value { font-weight: 700; color: var(--fb-success); font-variant-numeric: tabular-nums; }
.fm-boost-progress {
  height: 6px;
  background: var(--fb-border);
  border-radius: 3px;
  overflow: hidden;
}
.fm-boost-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(74,222,128,0.14), var(--fb-success));
  border-radius: 3px;
  transition: width 0.4s;
}
.fm-boost-card__stats {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--fb-ink-soft);
}
.fm-boost-card__stat { display: flex; align-items: center; gap: 4px; }
.fm-boost-card__stat-icon { font-size: 0.88rem; }
.fm-boost-card__actions { display: flex; align-items: center; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.fm-boost-card__edit-btn {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fb-green);
  text-decoration: none;
  padding: 5px 12px;
  border: 1px solid rgba(124,192,255,0.30);
  border-radius: 6px;
  transition: background 0.12s;
}
.fm-boost-card__edit-btn:hover { background: var(--fb-accent-bg); }
.fm-boost-card__cancel-form { margin: 0; }
.fm-boost-card__cancel-btn {
  font-size: 0.75rem;
  color: var(--fb-green-soft);
  background: none;
  border: 1px solid var(--fb-border);
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
}
.fm-boost-card__cancel-btn:hover { color: var(--fb-danger); border-color: rgba(248,113,113,0.35); }

/* --- Badge --- */
.fm-boost-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 999px;
}
.fm-boost-badge--active    { background: rgba(74,222,128,0.14); color: var(--fb-success); }
.fm-boost-badge--scheduled { background: var(--fb-accent-bg); color: var(--fb-azure); }
.fm-boost-badge--expired   { background: var(--fb-sand); color: var(--fb-green-soft); }
.fm-boost-badge--cancelled { background: rgba(248,113,113,0.14); color: var(--fb-danger); }

/* --- Missions --- */
.fm-boost-missions {
  background: var(--fb-surface);
  border: 1px solid var(--fb-border);
  border-radius: 14px;
  overflow: hidden;
}
.fm-boost-missions__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--fb-sand);
}
.fm-boost-missions__title { font-size: 0.95rem; font-weight: 700; margin: 0; color: var(--fb-ink); }
.fm-boost-missions__score {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--fb-azure);
  background: var(--fb-accent-bg);
  padding: 2px 10px;
  border-radius: 999px;
}
.fm-boost-missions__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fm-boost-missions__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--fb-cream);
  font-size: 0.85rem;
  color: var(--fb-ink-soft);
  cursor: default;
  transition: background 0.1s;
}
.fm-boost-missions__item:last-child { border-bottom: none; }
.fm-boost-missions__item:hover { background: var(--fb-surface); }
.fm-boost-missions__item--done { color: var(--fb-green-soft); }
.fm-boost-missions__check {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.fm-boost-missions__item--done .fm-boost-missions__check { color: var(--fb-success); }
.fm-boost-missions__label { flex: 1; }
.fm-boost-missions__done-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--fb-success);
  background: rgba(74,222,128,0.14);
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* --- Empty states --- */
.fm-boost-empty-state {
  text-align: center;
  padding: 40px 24px;
  background: var(--fb-cream);
  border-radius: 14px;
  border: 1px dashed var(--fb-border);
}
.fm-boost-empty-state__icon  { font-size: 2.5rem; margin-bottom: 10px; }
.fm-boost-empty-state__heading { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--fb-ink); }
.fm-boost-empty-state__body { font-size: 0.85rem; color: var(--fb-green-soft); max-width: 380px; margin: 0 auto 16px; }
.fm-boost-empty-state__cta {
  display: inline-block;
  background: var(--fb-blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 22px;
  border-radius: 8px;
  text-decoration: none;
}

/* --- Past boosts --- */
.fm-boost-section--past { border: 1px solid var(--fb-border); border-radius: 12px; overflow: hidden; }
.fm-boost-section__heading--past {
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--fb-cream);
  font-size: 0.9rem;
  color: var(--fb-green-soft);
  user-select: none;
}
.fm-boost-section__heading--past::-webkit-details-marker { display: none; }
.fm-boost-section__heading--past::before { content: '?'; font-size: 0.65rem; }
details[open] .fm-boost-section__heading--past::before { content: '?'; }
.fm-boost-past-list { padding: 8px 0; }
.fm-boost-past-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  font-size: 0.82rem;
  color: var(--fb-ink-soft);
  border-bottom: 1px solid var(--fb-sand);
  flex-wrap: wrap;
}
.fm-boost-past-row:last-child { border-bottom: none; }
.fm-boost-past-row__name { flex: 1; min-width: 120px; font-weight: 500; }
.fm-boost-past-row__date { color: var(--fb-green-soft); font-size: 0.75rem; }
.fm-boost-past-row__stats { color: var(--fb-green-soft); font-size: 0.78rem; }

/* --- Activate / Edit form --- */
.fm-seller-boosts--activate,
.fm-seller-boosts--edit { gap: 20px; }
.fm-boost-back-link {
  font-size: 0.82rem;
  color: var(--fb-azure);
  text-decoration: none;
  font-weight: 600;
}
.fm-boost-back-link:hover { text-decoration: underline; }
.fm-boost-activate-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.fm-boost-activate-header__title { font-size: 1.2rem; font-weight: 700; margin: 0; color: var(--fb-ink); }
.fm-boost-activate-header__credit-pill {
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--fb-accent-bg);
  color: var(--fb-azure);
  padding: 4px 12px;
  border-radius: 999px;
}

/* Selected slot info */
.fm-boost-activate-slot {
  background: var(--fb-accent-bg);
  border: 1px solid rgba(124,192,255,0.30);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.fm-boost-activate-slot__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--fb-green);
}
.fm-boost-activate-slot__time { display: flex; align-items: baseline; gap: 8px; }
.fm-boost-activate-slot__day { font-size: 0.95rem; font-weight: 700; color: var(--fb-azure); }
.fm-boost-activate-slot__hours { font-size: 1.15rem; font-weight: 800; color: var(--fb-azure); }
.fm-boost-activate-slot__duration { font-size: 0.78rem; color: var(--fb-green-soft); margin-left: auto; }

/* No slot selected state */
.fm-boost-activate-no-slot {
  text-align: center;
  padding: 36px 24px;
  background: var(--fb-cream);
  border-radius: 12px;
  border: 1px dashed var(--fb-border);
}
.fm-boost-activate-no-slot__icon { font-size: 2rem; margin-bottom: 10px; }
.fm-boost-activate-no-slot__text { color: var(--fb-green-soft); font-size: 0.88rem; margin-bottom: 16px; }

/* Product grid picker */
.fm-boost-activate-form { display: flex; flex-direction: column; gap: 20px; }
.fm-boost-activate-form__field { display: flex; flex-direction: column; gap: 8px; }
.fm-boost-activate-form__label { font-size: 0.85rem; font-weight: 700; color: var(--fb-ink-soft); }
.fm-boost-activate-form__select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--fb-border);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--fb-ink);
  background: var(--fb-surface);
}
.fm-boost-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.fm-boost-product-card {
  border: 2px solid var(--fb-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--fb-surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.fm-boost-product-card:has(input:checked),
.fm-boost-product-card:focus-within { border-color: var(--fb-blue); box-shadow: 0 0 0 3px rgba(124,192,255,0.30); }
.fm-boost-product-card--overlap { opacity: 0.55; cursor: not-allowed; }
.fm-boost-product-card__label {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding-bottom: 10px;
}
.fm-boost-product-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: var(--fb-sand);
}
.fm-boost-product-card__img--placeholder {
  background: linear-gradient(135deg, var(--fb-border), var(--fb-surface));
  aspect-ratio: 4/3;
}
.fm-boost-product-card__info { padding: 8px 10px 0; }
.fm-boost-product-card__name { font-size: 0.82rem; font-weight: 600; color: var(--fb-ink); line-height: 1.3; }
.fm-boost-product-card__note { font-size: 0.7rem; color: var(--fb-green-soft); margin-top: 3px; }
.fm-boost-product-card__note--overlap { color: var(--fb-danger); }
.fm-boost-product-card__radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

/* Ineligible products */
.fm-boost-ineligible {
  background: var(--fb-cream);
  border: 1px solid var(--fb-border);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
}
.fm-boost-ineligible__toggle {
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fb-green-soft);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.fm-boost-ineligible__toggle::-webkit-details-marker { display: none; }
.fm-boost-ineligible__list { list-style: none; margin: 0; padding: 0 14px 10px; }
.fm-boost-ineligible__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--fb-sand);
  font-size: 0.78rem;
  color: var(--fb-green-soft);
}
.fm-boost-ineligible__item:last-child { border-bottom: none; }
.fm-boost-ineligible__reason { font-size: 0.7rem; color: var(--fb-green-soft); }

/* Cost note + submit */
.fm-boost-activate-cost {
  font-size: 0.82rem;
  color: var(--fb-green-soft);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px;
  background: var(--fb-cream);
  border-radius: 8px;
}
.fm-boost-activate-cost__icon { flex-shrink: 0; }
.fm-boost-activate-submit {
  padding: 12px 28px;
  background: var(--fb-blue);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.15s, transform 0.1s;
}
.fm-boost-activate-submit:hover { background: var(--fb-blue); transform: translateY(-1px); }

/* Edit current info */
.fm-boost-edit-current {
  background: var(--fb-cream);
  border: 1px solid var(--fb-border);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fm-boost-edit-current__product { font-weight: 700; font-size: 0.9rem; color: var(--fb-ink); }
.fm-boost-edit-current__times  { font-size: 0.82rem; color: var(--fb-green-soft); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* --- Mobile / accessibility --- */
@media (max-width: 700px) {
  .fm-boost-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px 20px;
  }
  .fm-boost-hero__package-block { align-items: flex-start; }
  .fm-boost-hero__cta-block { align-items: flex-start; }
  .fm-boost-hero__token-count { font-size: 2.8rem; }

  .fm-boost-calendar__scroll-wrap { border-top: 1px solid var(--fb-border); }

  .fm-boost-cards { grid-template-columns: 1fr; }
  .fm-boost-product-grid { grid-template-columns: repeat(2, 1fr); }
  .fm-boost-activate-slot { flex-direction: column; gap: 8px; }
  .fm-boost-activate-slot__duration { margin-left: 0; }
  .fm-boost-activate-submit { width: 100%; text-align: center; }
}
@media (max-width: 420px) {
  .fm-boost-product-grid { grid-template-columns: 1fr; }
  .fm-boost-calendar__grid { grid-template-columns: 44px repeat(7, 1fr); }
  .fm-boost-calendar__time-label { font-size: 0.55rem; padding: 0 2px; }
}

/* High contrast / reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fm-boost-hero__live-dot,
  .fm-boost-section__dot--active { animation: none; }
  .fm-boost-hero__cta-btn,
  .fm-boost-activate-submit { transition: none; }
}

/* =========================================================================
   Phase 67 UX Correction ? compact hero + two-column layout + slot detail
   ========================================================================= */

/* Compact hero (override large defaults above) */
.fm-boost-hero { padding: 14px 22px; gap: 14px; }
.fm-boost-hero__token-count { font-size: 2rem; letter-spacing: -1px; }
.fm-boost-hero__live-stat { margin-top: 2px; }

/* Two-column body: calendar main + sidebar */
.fm-seller-boosts__body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}

/* Sidebar container */
.fm-boost-sidebar { display: flex; flex-direction: column; gap: 14px; }

.fm-boost-sidebar-section {
  background: var(--fb-surface);
  border: 1px solid var(--fb-border);
  border-radius: 12px;
  overflow: hidden;
}
.fm-boost-sidebar-section--empty { padding: 0; }
.fm-boost-sidebar-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fb-ink);
  margin: 0;
  padding: 11px 14px;
  border-bottom: 1px solid var(--fb-sand);
}

/* Compact summary rows (active & scheduled in sidebar) */
.fm-boost-summary-list { padding: 4px 0; }
.fm-boost-summary-row {
  padding: 10px 14px;
  border-bottom: 1px solid var(--fb-cream);
  font-size: 0.82rem;
  color: var(--fb-ink-soft);
}
.fm-boost-summary-row:last-child { border-bottom: none; }
.fm-boost-summary-row__header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
}
.fm-boost-summary-row__name {
  font-weight: 600;
  font-size: 0.83rem;
  color: var(--fb-ink);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fm-boost-summary-row__meta {
  font-size: 0.74rem;
  color: var(--fb-green-soft);
  margin-bottom: 3px;
}
.fm-boost-summary-row__countdown-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.fm-boost-summary-row__countdown {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fb-success);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.fm-boost-summary-row__stats {
  display: flex;
  gap: 10px;
  font-size: 0.73rem;
  color: var(--fb-green-soft);
  margin-bottom: 4px;
}
.fm-boost-summary-row__actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}
.fm-boost-summary-row__edit-btn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  box-sizing: border-box;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--fb-green);
  text-decoration: none;
  padding: 8px 10px;
  border: 1px solid rgba(124,192,255,0.30);
  border-radius: 5px;
  transition: background 0.1s;
}
.fm-boost-summary-row__edit-btn:hover { background: var(--fb-accent-bg); }
.fm-boost-summary-row__cancel-form { margin: 0; }
.fm-boost-summary-row__cancel-btn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  box-sizing: border-box;
  font-size: 0.73rem;
  color: var(--fb-green-soft);
  background: none;
  border: 1px solid var(--fb-border);
  border-radius: 5px;
  padding: 8px 10px;
  cursor: pointer;
  transition: color 0.1s, border-color 0.1s;
}
.fm-boost-summary-row__cancel-btn:hover { color: var(--fb-danger); border-color: rgba(248,113,113,0.35); }

/* Empty state inside sidebar */
.fm-boost-sidebar-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 16px;
  gap: 6px;
}
.fm-boost-sidebar-empty__icon { font-size: 1.6rem; }
.fm-boost-sidebar-empty__text { font-size: 0.8rem; color: var(--fb-green-soft); max-width: 220px; }

/* Vendor boosts inside calendar cells */
.fm-boost-calendar__cell {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 2px;
  padding: 2px;
  min-height: 44px;
}
.fm-boost-calendar__vendor-boost {
  display: flex;
  flex-direction: column;
  padding: 2px 3px;
  border-radius: 3px;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.2;
}
.fm-boost-calendar__vendor-boost--vendor-active  { background: rgba(74,222,128,0.14); }
.fm-boost-calendar__vendor-boost--vendor-scheduled { background: var(--fb-accent-bg); }
.fm-boost-calendar__vendor-boost-name {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--fb-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.fm-boost-calendar__vendor-boost-badge {
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.fm-boost-calendar__vendor-boost--vendor-active .fm-boost-calendar__vendor-boost-badge   { color: var(--fb-success); }
.fm-boost-calendar__vendor-boost--vendor-scheduled .fm-boost-calendar__vendor-boost-badge { color: var(--fb-azure); }

/* "+" add-another link inside a cell that already has a vendor boost */
.fm-boost-calendar__slot-add {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--fb-azure);
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.1s;
}
.fm-boost-calendar__slot-add:hover { background: var(--fb-accent-bg); }

/* New cell colour: vendor_scheduled (blue-tint, distinct from vendor_active green) */
.fm-boost-calendar__cell--vendor-scheduled { background: var(--fb-accent-bg); }

/* Legend swatch for vendor_scheduled */
.fm-boost-calendar__legend-item--vendor-scheduled::before { background: var(--fb-accent-bg); border: 1px solid rgba(124,192,255,0.30); }

/* Responsive: single-column below 960px */
@media (max-width: 960px) {
  .fm-seller-boosts__body { grid-template-columns: 1fr; }
  .fm-boost-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .fm-boost-sidebar > * { flex: 1 1 260px; }
}
@media (max-width: 700px) {
  .fm-boost-hero { grid-template-columns: 1fr; padding: 12px 16px; }
  .fm-boost-hero__token-count { font-size: 1.8rem; }
  .fm-boost-sidebar { flex-direction: column; }
}

/* =========================================================================
   Phase 67 Add-On ? Boost Now panel
   ========================================================================= */

/* Panel container */
.fm-boost-now-panel {
  border: 2px solid rgba(124,192,255,0.30);
}
.fm-boost-now-panel--locked {
  border-color: var(--fb-border);
  opacity: 0.85;
}

/* Panel title badge (Premium label) */
.fm-boost-now-panel__badge {
  display: inline-block;
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--fb-blue) 0%, var(--fb-blue) 100%);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Panel body */
.fm-boost-now-panel__body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Tagline */
.fm-boost-now-panel__tagline {
  margin: 0;
  font-size: 0.82rem;
  color: var(--fb-ink-soft);
}

/* Locked / state note text */
.fm-boost-now-panel__locked-msg,
.fm-boost-now-panel__state-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--fb-green-soft);
  line-height: 1.5;
}

/* Next grant footnote inside state-note */
.fm-boost-now-panel__grant-note {
  font-size: 0.75rem;
  color: var(--fb-green-soft);
}

/* Cost line beneath the form */
.fm-boost-now-panel__cost {
  margin: 0;
  font-size: 0.72rem;
  color: var(--fb-green-soft);
}

/* Form */
.fm-boost-now-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Product select */
.fm-boost-now-form__select {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--fb-border);
  border-radius: 8px;
  font-size: 0.82rem;
  background: var(--fb-cream);
  color: var(--fb-ink);
  cursor: pointer;
  appearance: auto;
}
.fm-boost-now-form__select:focus {
  outline: 2px solid var(--fb-blue);
  outline-offset: 1px;
  border-color: var(--fb-blue);
}

/* Submit button */
.fm-boost-now-form__btn {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--fb-blue) 0%, var(--fb-blue) 100%);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.15s;
}
.fm-boost-now-form__btn:hover { opacity: 0.88; }
.fm-boost-now-form__btn:active { opacity: 0.75; }
.fm-boost-now-form__btn:disabled { opacity: 0.5; cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) {
  .fm-boost-now-form__btn { transition: none; }
}

/* ==========================================================================
   Phase 68I - Account & Brand Profile page
   ========================================================================== */

/* -- Page wrapper ---------------------------------------------------------- */
.fm-brand-profile-page { max-width: 1040px; }
.fm-brand-profile-page__notice {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}
.fm-notice--success { background: rgba(74,222,128,0.14); border: 1px solid rgba(74,222,128,0.35); color: var(--fb-success); }
.fm-notice--error   { background: rgba(248,113,113,0.14); border: 1px solid rgba(248,113,113,0.35); color: var(--fb-danger); }

.fm-brand-profile-page__body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 768px) {
  .fm-brand-profile-page__body { grid-template-columns: 1fr; }
}

/* -- Plan status panel ----------------------------------------------------- */
.fm-plan-status-panel {
  background: var(--fb-surface);
  border: 1px solid var(--fb-border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.fm-plan-status-panel__header { margin-bottom: 16px; }
.fm-plan-status-panel__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.fm-plan-status-panel__plan-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fb-ink);
}
.fm-plan-status-panel__premium-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--fb-blue) 0%, var(--fb-blue) 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.fm-plan-status-panel__status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.fm-plan-status-panel__status-badge--active    { background: rgba(74,222,128,0.14); color: var(--fb-success); }
.fm-plan-status-panel__status-badge--paused    { background: rgba(245,158,11,0.16); color: #fbbf24; }
.fm-plan-status-panel__status-badge--cancelled { background: var(--fb-sand); color: var(--fb-green-soft); }
.fm-plan-status-panel__status-badge--suspended { background: rgba(248,113,113,0.14); color: var(--fb-danger); }

.fm-plan-status-panel__desc {
  margin: 0;
  font-size: 0.87rem;
  color: var(--fb-green-soft);
}
.fm-plan-status-panel__stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}
.fm-plan-status-panel__stat { padding: 10px 14px; background: var(--fb-cream); border-radius: 6px; }
.fm-plan-status-panel__stat dt { font-size: 0.75rem; color: var(--fb-green-soft); margin-bottom: 2px; }
.fm-plan-status-panel__stat dd { margin: 0; font-size: 0.95rem; font-weight: 700; color: var(--fb-ink); }
.fm-plan-status-panel__eligible     { color: var(--fb-success); font-weight: 600; }
.fm-plan-status-panel__not-eligible { color: var(--fb-green-soft); }

.fm-plan-status-panel__upgrade-cta {
  border-top: 1px solid var(--fb-border);
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.fm-plan-status-panel__upgrade-text { margin: 0; font-size: 0.87rem; color: var(--fb-green-soft); }
.fm-plan-status-panel__upgrade-btn {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--fb-blue) 0%, var(--fb-blue) 100%);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.fm-plan-status-panel__upgrade-btn:hover { opacity: 0.88; color: #fff; }

/* -- Brand editor form ----------------------------------------------------- */
.fm-brand-editor {
  background: var(--fb-surface);
  border: 1px solid var(--fb-border);
  border-radius: 10px;
  padding: 24px;
}
.fm-brand-editor__heading {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fb-ink);
}
.fm-brand-editor__intro {
  margin: 0 0 20px;
  font-size: 0.87rem;
  color: var(--fb-green-soft);
}

.fm-brand-editor__media-preview {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fm-brand-editor__media-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--fb-border);
}
.fm-brand-editor__media-thumb--banner { width: 180px; height: 54px; }
.fm-brand-editor__media-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  border: 1px dashed var(--fb-border);
  background: var(--fb-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--fb-green-soft);
  text-align: center;
  padding: 4px;
}
.fm-brand-editor__media-placeholder--banner { width: 180px; height: 54px; }
.fm-brand-editor__media-upload { margin-bottom: 6px; }
.fm-brand-editor__media-upload-label {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--fb-blue);
  border-radius: 5px;
  color: var(--fb-azure);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.fm-brand-editor__media-upload-label:hover { background: var(--fb-accent-bg); }
.fm-brand-editor__media-input { display: none; }
.fm-brand-editor__media-remove {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--fb-green-soft);
  cursor: pointer;
  margin-bottom: 4px;
}

.fm-brand-editor__social-links { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.fm-brand-editor__social-row   { display: flex; align-items: center; gap: 10px; }
.fm-brand-editor__social-label { width: 90px; flex-shrink: 0; font-size: 0.85rem; color: var(--fb-ink-soft); }
.fm-brand-editor__social-input { flex: 1; }

.fm-brand-editor__forces-details {
  border: 1px solid var(--fb-border);
  border-radius: 8px;
  padding: 0;
  margin-bottom: 20px;
}
.fm-brand-editor__forces-summary {
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--fb-ink-soft);
  list-style: none;
  user-select: none;
}
.fm-brand-editor__forces-summary::-webkit-details-marker { display: none; }
.fm-brand-editor__forces-summary::before { content: "\25B6\00a0"; font-size: 0.7em; }
.fm-brand-editor__forces-details[open] .fm-brand-editor__forces-summary::before { content: "\25BC\00a0"; }
.fm-brand-editor__forces-summary-hint { font-weight: 400; color: var(--fb-green-soft); }
.fm-brand-editor__forces-body { padding: 0 16px 16px; }

.fm-brand-editor__preview-link { margin-bottom: 18px; }
.fm-brand-editor__preview-btn { font-size: 0.85rem; color: var(--fb-azure); text-decoration: none; }
.fm-brand-editor__preview-btn:hover { text-decoration: underline; }
.fm-brand-editor__actions { padding-top: 4px; }

/* -- Profile completeness panel ------------------------------------------- */
.fm-brand-completeness {
  background: var(--fb-surface);
  border: 1px solid var(--fb-border);
  border-radius: 10px;
  padding: 20px;
  position: sticky;
  top: 80px;
}
.fm-brand-completeness__title { margin: 0 0 12px; font-size: 0.95rem; font-weight: 700; color: var(--fb-ink); }
.fm-brand-completeness__score-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.fm-brand-completeness__score-pct { font-size: 2rem; font-weight: 800; color: var(--fb-azure); line-height: 1; }
.fm-brand-completeness__score-fraction { font-size: 0.8rem; color: var(--fb-green-soft); }
.fm-brand-completeness__bar-wrap {
  height: 8px;
  background: var(--fb-border);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 16px;
}
.fm-brand-completeness__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--fb-blue) 0%, var(--fb-blue) 100%);
  border-radius: 9999px;
  transition: width 0.4s ease;
}
@media (prefers-reduced-motion: reduce) {
  .fm-brand-completeness__bar { transition: none; }
}
.fm-brand-completeness__list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fm-brand-completeness__item { display: flex; align-items: center; gap: 7px; font-size: 0.83rem; }
.fm-brand-completeness__item-icon { flex-shrink: 0; width: 14px; text-align: center; }
.fm-brand-completeness__item--done .fm-brand-completeness__item-icon    { color: var(--fb-success); }
.fm-brand-completeness__item--missing .fm-brand-completeness__item-icon { color: var(--fb-green-soft); }
.fm-brand-completeness__item--done .fm-brand-completeness__item-label   { color: var(--fb-ink-soft); }
.fm-brand-completeness__item--missing .fm-brand-completeness__item-label { color: var(--fb-green-soft); }
.fm-brand-completeness__item-label { text-decoration: none; }
a.fm-brand-completeness__item-label:hover { text-decoration: underline; color: var(--fb-azure); }
.fm-brand-completeness__preview { border-top: 1px solid var(--fb-border); padding-top: 12px; }
.fm-brand-completeness__preview-link { font-size: 0.83rem; color: var(--fb-azure); text-decoration: none; }
.fm-brand-completeness__preview-link:hover { text-decoration: underline; }

/* -- Subscription & billing panel ------------------------------------------ */
.fm-billing-panel {
  background: var(--fb-surface);
  border: 1px solid var(--fb-border);
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}
.fm-billing-panel__heading { margin: 0 0 14px; font-size: 0.95rem; font-weight: 700; color: var(--fb-ink); }
.fm-billing-panel__unavailable { margin: 0; font-size: 0.85rem; color: var(--fb-green-soft); }
.fm-billing-panel__details { margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.fm-billing-panel__row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--fb-border);
}
.fm-billing-panel__row:last-child { border-bottom: none; padding-bottom: 0; }
.fm-billing-panel__row dt {
  margin: 0;
  min-width: 140px;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fb-green-soft);
}
.fm-billing-panel__row dd {
  margin: 0;
  font-size: 0.88rem;
  color: var(--fb-ink);
  overflow-wrap: anywhere;
}
.fm-billing-panel__cancelling { color: #fbbf24; font-weight: 600; font-size: 0.8rem; }
.fm-billing-panel__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fm-billing-panel__action-form { margin: 0; }

@media (max-width: 480px) {
  .fm-billing-panel__actions { flex-direction: column; }
  .fm-billing-panel__action-form,
  .fm-billing-panel__action-form .fm-btn { width: 100%; }
  .fm-billing-panel__action-form .fm-btn { text-align: center; }
}

/* -- Shared form utilities ------------------------------------------------- */
.fm-form-group { margin-bottom: 20px; }
.fm-form-label { display: block; font-size: 0.87rem; font-weight: 600; color: var(--fb-ink-soft); margin-bottom: 5px; }
.fm-form-label__optional { font-weight: 400; color: var(--fb-green-soft); font-size: 0.8em; margin-left: 4px; }
.fm-form-input,
.fm-form-textarea,
.fm-form-select {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--fb-border);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--fb-ink);
  background: var(--fb-surface);
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.fm-form-input:focus,
.fm-form-textarea:focus,
.fm-form-select:focus {
  outline: none;
  border-color: var(--fb-blue);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.fm-form-textarea { resize: vertical; min-height: 80px; }
.fm-form-hint { margin: 5px 0 0; font-size: 0.78rem; color: var(--fb-green-soft); }

/* -- Buttons --------------------------------------------------------------- */
.fm-btn { display: inline-block; padding: 12px 20px; min-height: 44px; box-sizing: border-box; line-height: 1.2; border-radius: 6px; font-size: 0.9rem; font-weight: 700; cursor: pointer; border: none; text-decoration: none; }
.fm-btn--primary { background: linear-gradient(135deg, var(--fb-blue) 0%, var(--fb-blue) 100%); color: #fff; }
.fm-btn--primary:hover { opacity: 0.88; color: #fff; }
.fm-btn--lg { padding: 13px 24px; font-size: 0.95rem; }

/* =========================================================================
   Import preview polish — CTA moved up, collapsible detail sections
   ========================================================================= */

/* Transfer CTA now sits directly under the summary cards — give it presence. */
.fm-import-transfer-cta {
	border-color: var(--fb-blue);
	box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.22), 0 10px 28px rgba(0, 0, 0, 0.28);
	margin: 18px 0 6px;
}

/* Collapsible sections: notifications + unused columns (closed by default). */
.fm-import-collapse {
	margin: 14px 0 0;
	border: 1px solid var(--fb-border);
	border-radius: 8px;
	overflow: hidden;
}

.fm-import-collapse__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: var(--fb-cream);
	border: none;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	text-align: left;
}

.fm-import-collapse__toggle:hover {
	background: var(--fb-sand);
}

.fm-import-collapse__icon--warn {
	color: #fbbf24;
}

.fm-import-collapse__hint {
	margin-left: auto;
	font-size: 12px;
	font-weight: 400;
	color: var(--fb-green-soft);
}

.fm-import-collapse__arrow {
	font-size: 11px;
	color: var(--fb-green-soft);
	transition: transform 0.2s;
}

.fm-import-collapse__toggle[aria-expanded="true"] .fm-import-collapse__arrow {
	transform: rotate(180deg);
}

.fm-import-collapse__body {
	padding: 14px 16px;
	border-top: 1px solid var(--fb-border);
}

/* Inside a collapse the old card chrome would double up — flatten it. */
.fm-import-collapse__body .fm-import-unmapped-card {
	border: none;
	background: transparent;
	padding: 0;
	margin-top: 0;
}

.fm-import-collapse__body .fm-import-issues {
	margin: 0;
}

@media (max-width: 640px) {
	.fm-import-collapse__hint {
		display: none;
	}
}

/* =========================================================================
   Variant photos — collapsed editor section + standalone assign screen
   ========================================================================= */

/* "Assign all" button on the products-list needs-photos panel */
.fm-vphoto-panel__assign-all {
	display: inline-block;
	margin-top: 12px;
	padding: 9px 16px;
	background: var(--fb-blue);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 9px;
	transition: opacity 0.15s ease;
}
.fm-vphoto-panel__assign-all:hover {
	opacity: 0.88;
}

/* Collapsed <details> wrapper around the editor's Options/Variants/Photos section */
.fm-variant-collapse {
	margin: 18px 0;
	border: 1px solid var(--fb-border);
	border-radius: 14px;
	background: var(--fb-surface);
	overflow: hidden;
}
.fm-variant-collapse--attention {
	border-color: rgba( 124, 192, 255, 0.45 );
}
.fm-variant-collapse__summary {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	cursor: pointer;
	list-style: none;
	user-select: none;
}
.fm-variant-collapse__summary::-webkit-details-marker {
	display: none;
}
.fm-variant-collapse__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--fb-ink);
}
.fm-variant-collapse__hint {
	flex: 1 1 auto;
	font-size: 12.5px;
	color: var(--fb-ink-soft);
}
.fm-variant-collapse--attention .fm-variant-collapse__hint {
	color: var(--fb-azure);
	font-weight: 600;
}
.fm-variant-collapse__arrow {
	flex: 0 0 auto;
	font-size: 11px;
	color: var(--fb-ink-soft);
	transition: transform 0.18s ease;
}
.fm-variant-collapse[open] .fm-variant-collapse__arrow {
	transform: rotate( 180deg );
}
.fm-variant-collapse__assign {
	padding: 0 18px 12px;
}
.fm-variant-collapse__assign-link {
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-blue);
	text-decoration: none;
}
.fm-variant-collapse__assign-link:hover {
	text-decoration: underline;
}
/* The section keeps its own internal padding; drop the top margin inside the panel. */
.fm-variant-collapse .fm-variant-builder {
	margin-top: 0;
}

/* Standalone "Assign variant photos" screen */
.fm-assign-photos {
	max-width: 860px;
	margin: 0 auto;
}
.fm-assign-photos__head {
	margin-bottom: 18px;
}
.fm-assign-photos__review-note {
	margin: 0 0 12px;
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--fb-accent-bg);
	border: 1px solid rgba( 124, 192, 255, 0.30 );
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-azure);
}
.fm-assign-photos__progress {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fb-ink-soft);
}
.fm-assign-photos__title-row {
	display: flex;
	align-items: center;
	gap: 12px;
}
.fm-assign-photos__thumb {
	flex: 0 0 auto;
}
.fm-assign-photos__thumb-img {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	object-fit: cover;
	display: block;
	border: 1px solid var(--fb-border);
	background: var(--fb-sand);
}
.fm-assign-photos__title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	color: var(--fb-ink);
}
.fm-assign-photos__hint {
	margin: 10px 0 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--fb-ink-soft);
}
.fm-assign-photos__bar {
	margin-top: 12px;
	height: 6px;
	border-radius: 999px;
	background: var(--fb-border);
	overflow: hidden;
}
.fm-assign-photos__bar > span {
	display: block;
	height: 100%;
	background: var(--fb-blue);
	border-radius: 999px;
	transition: width 0.25s ease;
}

/* Footer navigation */
.fm-assign-photos__nav {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--fb-border);
	flex-wrap: wrap;
}
.fm-assign-photos__next {
	margin-left: auto;
}
.fm-assign-photos__exit {
	flex-basis: 100%;
	font-size: 12.5px;
	color: var(--fb-ink-soft);
	text-decoration: none;
}
.fm-assign-photos__exit:hover {
	text-decoration: underline;
}

/* Done state */
.fm-assign-photos--done {
	display: flex;
	justify-content: center;
}
.fm-assign-photos__done-card {
	max-width: 460px;
	margin: 24px auto;
	padding: 34px 28px;
	text-align: center;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 16px;
}
.fm-assign-photos__done-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 999px;
	background: var(--fb-accent-bg);
	color: var(--fb-success);
	font-size: 28px;
	margin-bottom: 14px;
}
.fm-assign-photos__done-title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 800;
	color: var(--fb-ink);
}
.fm-assign-photos__done-text {
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--fb-ink-soft);
}
.fm-assign-photos__done-actions {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

/* Photos-only variant rows (fallback when the grouped picker doesn't apply) */
.fm-variant-row--photos-only {
	padding: 14px 16px;
	margin-bottom: 12px;
	background: var(--fb-surface);
	border: 1px solid var(--fb-border);
	border-radius: 12px;
}
.fm-variant-row--photos-only .fm-variant-row__label {
	font-size: 14px;
	font-weight: 700;
	color: var(--fb-ink);
}

/* =====================================================================
   Vendor Orders — "Fulfilment & tracking" form. These fm-fulfilment-*
   classes were never styled, so labels sat inline and overlapped their
   inputs. Match the seller portal's fm-form-* look: stacked label above a
   full-width field, on-theme inputs, and a primary Save button.
   ===================================================================== */
.forces-marketplace-vendor-orders__fulfilment-form {
	max-width: 460px;
	margin-top: 12px;
}
.fm-fulfilment-field {
	margin-bottom: 16px;
}
.fm-fulfilment-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--fb-ink-soft);
	margin-bottom: 6px;
}
.fm-fulfilment-input,
.fm-fulfilment-select,
.fm-fulfilment-textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 14px;
	border: 1.5px solid var(--fb-border-strong);
	border-radius: 8px;
	font-size: 15px;
	color: var(--fb-ink);
	background: var(--fb-surface);
	font-family: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fm-fulfilment-input::placeholder,
.fm-fulfilment-textarea::placeholder {
	color: var(--fb-green-soft);
}
.fm-fulfilment-input:focus,
.fm-fulfilment-select:focus,
.fm-fulfilment-textarea:focus {
	outline: none;
	border-color: var(--fb-blue);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.fm-fulfilment-textarea {
	resize: vertical;
	min-height: 64px;
}
.fm-fulfilment-btn {
	display: inline-block;
	margin-top: 4px;
	padding: 11px 20px;
	min-height: 44px;
	box-sizing: border-box;
	background: var(--fb-blue);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
}
.fm-fulfilment-btn:hover {
	background: var(--fb-blue-deep);
}
