/* Marketplace accounts — isolated from main.css */

.fg-mp-main,
.main__content.fg-mp-main {
	padding-bottom: 0;
}

/* Tablet account pages: drop the Customizer viewport min-height so the footer follows the dashboard. */
@media (min-width: 768px) and (max-width: 1119px) {
	.main__content.fg-mp-main {
		min-height: 0 !important;
	}
}

.fg-mp-main > .hot-draw-section {
	display: none;
}

.fg-mp-page {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 8px 16px 32px;
	overflow-x: hidden;
}

.fg-mp-card {
	box-sizing: border-box;
	width: 100%;
	max-width: 440px;
	margin: 0 auto;
	padding: 28px 22px 24px;
	background: #ffffff;
	border: 1px solid #eef0f4;
	border-radius: 16px;
	box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06), 0 4px 16px rgba(17, 24, 39, 0.04);
}

.fg-mp-title {
	margin: 0 0 8px;
	color: #111827;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.fg-mp-lead {
	margin: 0 0 20px;
	color: #6b7280;
	font-size: 15px;
	line-height: 1.5;
	word-break: break-word;
}

.fg-mp-alert {
	margin: 0 0 16px;
	padding: 10px 12px;
	border-radius: 12px;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	color: #9a3412;
	font-size: 14px;
	line-height: 1.45;
	word-break: break-word;
}

.fg-mp-alert[hidden] {
	display: none !important;
}

.fg-mp-form {
	display: block;
}

.fg-mp-field {
	margin: 0 0 14px;
}

.fg-mp-label {
	display: block;
	margin: 0 0 6px;
	color: #111827;
	font-size: 14px;
	font-weight: 600;
}

.fg-mp-hint {
	margin: 6px 0 0;
	color: #6b7280;
	font-size: 12px;
	line-height: 1.4;
}

.fg-mp-hint--error,
.fg-mp-field-error {
	color: #9a3412;
	word-break: break-word;
}

.fg-mp-field-error {
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 1.4;
	word-break: break-word;
}

.fg-mp-field-error[hidden] {
	display: none !important;
}

.fg-mp-settings-field-message {
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 1.4;
	word-break: break-word;
}

.fg-mp-settings-field-message[hidden] {
	display: none !important;
}

.fg-mp-settings-field-message--error {
	color: #9a3412;
}

.fg-mp-settings-field-message--success {
	color: #166534;
}

.fg-mp-input {
	box-sizing: border-box;
	display: block;
	width: 100%;
	max-width: 100%;
	height: 48px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #ffffff;
	color: #111827;
	font-size: 16px;
	line-height: 1.4;
	appearance: none;
}

.fg-mp-input:focus {
	outline: none;
	border-color: #ff7a00;
	box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.18);
}

.fg-mp-input:disabled,
.fg-mp-textarea:disabled {
	opacity: 0.85;
	cursor: not-allowed;
	background: #f9fafb;
	color: #111827;
}

.fg-mp-input:disabled:focus,
.fg-mp-textarea:disabled:focus {
	border-color: #e5e7eb;
	box-shadow: none;
}

.fg-mp-input--code {
	letter-spacing: 0.28em;
	text-align: center;
	font-weight: 700;
	font-size: 20px;
}

.fg-mp-password-wrap {
	position: relative;
}

.fg-mp-password-wrap .fg-mp-input {
	padding-right: 92px;
}

.fg-mp-toggle {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	height: 32px;
	padding: 0 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #ff7a00;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.fg-mp-toggle:focus {
	outline: 2px solid rgba(255, 122, 0, 0.45);
	outline-offset: 1px;
}

.fg-mp-submit {
	box-sizing: border-box;
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 8px 0 0;
	padding: 12px 16px;
	border: 0;
	border-radius: 12px;
	background: #ff7a00;
	color: #ffffff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

.fg-mp-submit:not(:disabled):hover,
.fg-mp-submit:not(:disabled):focus {
	background: #e86e00;
}

.fg-mp-submit:disabled {
	opacity: 0.65;
	cursor: wait;
}

#fg-mp-account[data-fg-mp-restricted="1"] .fg-mp-dash__save:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	background: #ff7a00;
	pointer-events: none;
}

.fg-mp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	justify-content: space-between;
	margin-top: 16px;
}

.fg-mp-link {
	padding: 0;
	border: 0;
	background: transparent;
	color: #ff7a00;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.fg-mp-link:disabled {
	color: #9ca3af;
	cursor: default;
}

/* Auth popup action links: theme `button { font: 14px/1.2 }` plus padding:0
 * clips Georgian descenders; overflow-x:hidden on .fg-mp-auth__scroll then
 * clips anything that paints below the last line box.
 */
.fg-mp-auth .fg-mp-actions .fg-mp-link {
	display: inline-block;
	padding: 2px 0;
	line-height: 1.5;
	overflow: visible;
}

.fg-mp-dl {
	margin: 0;
}

.fg-mp-dl-row {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 0;
	border-top: 1px solid #eef0f4;
}

.fg-mp-dl-row dt {
	color: #6b7280;
	font-size: 13px;
	font-weight: 600;
}

.fg-mp-dl-row dd {
	margin: 0;
	color: #111827;
	font-size: 16px;
	word-break: break-word;
}

.fg-mp-alert--ok {
	background: #ecfdf3;
	border-color: #bbf7d0;
	color: #166534;
}

.fg-mp-check {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	margin: 2px 0 10px;
	color: #111827;
	font-size: 14px;
	cursor: pointer;
}

.fg-mp-check input {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	accent-color: #ff7a00;
}

.fg-mp-switch {
	margin: 18px 0 0;
	color: #6b7280;
	font-size: 14px;
	line-height: 1.45;
	text-align: center;
}

.fg-mp-switch .fg-mp-link {
	color: #ff7a00;
	font-size: inherit;
	font-weight: 600;
}

.fg-mp-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.fg-mp-page--account {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--site-visual-width, 1482px);
	margin-inline: auto;
	padding-top: 24px;
	padding-bottom: 24px;
	padding-left: 16px;
	padding-right: 16px;
}

.fg-mp-dash {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 24px;
	align-items: stretch;
}

.fg-mp-dash__sidebar,
.fg-mp-dash__main {
	box-sizing: border-box;
	align-self: stretch;
	min-width: 0;
	min-height: 0;
	background: #ffffff;
	border: 1px solid #eef0f4;
	border-radius: 16px;
	box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06), 0 4px 16px rgba(17, 24, 39, 0.04);
}

@media (min-width: 768px) and (max-width: 1599px) {
	.fg-mp-dash__main {
		align-self: stretch;
	}
}

.fg-mp-dash__sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 24px 20px 20px;
}

.fg-mp-dash__main {
	padding: 28px 28px 24px;
}

@media (min-width: 1600px) {
	.fg-mp-page--account {
		--fg-mp-dash-min-height: min(720px, calc(100dvh - var(--fg-mp-account-chat-offset, 220px)));
	}

	.fg-mp-dash {
		min-height: var(--fg-mp-dash-min-height);
		grid-template-rows: minmax(var(--fg-mp-dash-min-height), auto);
		align-items: stretch;
		align-content: stretch;
	}

	.fg-mp-dash__main {
		display: flex;
		flex-direction: column;
	}
}

.fg-mp-dash__identity {
	min-width: 0;
	text-align: center;
}

.fg-mp-dash__identity .fg-mp-avatar--lg {
	margin: 0 auto 14px;
}

.fg-mp-avatar {
	box-sizing: border-box;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--fg-mp-avatar-fallback-bg, #fff4e8);
	border: 1px solid var(--fg-mp-avatar-fallback-border, #fed7aa);
}

.fg-mp-avatar--lg {
	width: 112px;
	height: 112px;
}

.fg-mp-avatar--md {
	width: 80px;
	height: 80px;
	flex: 0 0 auto;
}

.fg-mp-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fg-mp-avatar img[hidden],
.fg-mp-avatar-fallback[hidden] {
	display: none !important;
}

.fg-mp-avatar-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 36px;
	font-weight: 700;
	line-height: 1;
}

.fg-mp-avatar--md .fg-mp-avatar-fallback {
	font-size: 28px;
}

.fg-mp-handle {
	margin: 0 0 6px;
	color: #111827;
	font-size: 18px;
	font-weight: 700;
	word-break: break-word;
}

.fg-mp-dash__identity .fg-mp-handle a {
	color: inherit;
	font: inherit;
	text-decoration: none;
}

.fg-mp-dash__identity .fg-mp-handle a:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fg-mp-dash__identity .fg-mp-handle a:focus-visible {
	outline: 2px solid #ff7a00;
	outline-offset: 2px;
	border-radius: 4px;
}

.fg-mp-dash__identity .fg-mp-dash__profile-link {
	display: inline-block;
	margin: 0 0 8px;
	color: #6b7280;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-color: #d1d5db;
	cursor: pointer;
}

.fg-mp-dash__identity .fg-mp-dash__profile-link:hover {
	color: #374151;
	text-decoration-color: #9ca3af;
}

.fg-mp-dash__identity .fg-mp-dash__profile-link:focus-visible {
	outline: 2px solid #ff7a00;
	outline-offset: 2px;
	border-radius: 4px;
}

.fg-mp-dash__profile-link-short {
	display: none;
}

.fg-mp-dash__handle-row {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 6px;
}

.fg-mp-dash__handle-row .fg-mp-handle {
	margin: 0;
}

.fg-mp-dash__level {
	flex: 0 0 auto;
	line-height: 0;
}

.fg-mp-dash__identity .fg-mp-avatar.fg-mp-level-tier {
	overflow: visible;
	border-width: 3px;
	border-style: solid;
	border-color: var(--fg-level-accent, #94a3b8);
	box-shadow: 0 0 0 1px var(--fg-level-accent-soft, rgba(148, 163, 184, 0.42)), 0 0 10px var(--fg-level-glow, rgba(100, 116, 139, 0.26));
}

.fg-mp-dash__identity .fg-mp-avatar.fg-mp-level-tier img,
.fg-mp-dash__identity .fg-mp-avatar.fg-mp-level-tier .fg-mp-avatar-fallback {
	border-radius: 50%;
}

.fg-mp-email {
	margin: 0;
	color: #6b7280;
	font-size: 13px;
	line-height: 1.4;
	cursor: default;
	text-decoration: none !important;
	text-decoration-line: none !important;
	-webkit-text-decoration-line: none !important;
	text-decoration-color: transparent !important;
	text-decoration-thickness: 0 !important;
	border: 0 !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
	background: none !important;
	background-image: none !important;
	pointer-events: none;
}

.fg-mp-email a,
.fg-mp-email a:link,
.fg-mp-email a:visited,
.fg-mp-email a:hover,
.fg-mp-email a:active,
.fg-mp-email a[href^="mailto:"],
.fg-mp-email a[x-apple-data-detectors],
.fg-mp-email [x-apple-data-detectors] {
	color: #6b7280 !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	line-height: inherit !important;
	text-decoration: none !important;
	text-decoration-line: none !important;
	-webkit-text-decoration-line: none !important;
	text-decoration-color: transparent !important;
	text-decoration-thickness: 0 !important;
	border: 0 !important;
	border-bottom: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	background: none !important;
	background-image: none !important;
	pointer-events: none !important;
	cursor: default !important;
}

/* Chrome on iOS wraps visible emails in chrome_annotation with an inline bottom border; !important beats that inline style. */
.fg-mp-email chrome_annotation,
[data-fg-mp-account-panel="settings"] .fg-mp-dash__value--wrap chrome_annotation {
	border: 0 !important;
	border-bottom: 0 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	background: transparent !important;
	color: inherit !important;
}

.fg-mp-dash__nav-toggle {
	display: none;
}

.fg-mp-dash__nav-panel,
.fg-mp-dash__nav-panel-inner {
	display: contents;
}

.fg-mp-dash__nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.fg-mp-dash__nav-btn {
	box-sizing: border-box;
	display: block;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 14px;
	border: 0;
	border-left: 3px solid transparent;
	border-radius: 10px;
	background: transparent;
	color: #374151;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	appearance: none;
}

.fg-mp-dash__nav-btn:hover {
	background: #f9fafb;
}

.fg-mp-dash__nav-icon {
	display: none;
}

.fg-mp-dash__nav-btn.is-active {
	background: #fff7ed;
	border-left-color: #ff7a00;
	color: #c2410c;
}

.fg-mp-dash__nav-badge {
	display: inline-block;
	min-width: 18px;
	margin-left: 8px;
	padding: 1px 6px;
	border-radius: 999px;
	background: #ff7a00;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.45;
	text-align: center;
	vertical-align: middle;
}

.fg-mp-balance-nav-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-left: 8px;
	border-radius: 50%;
	background: #dc2626;
	vertical-align: middle;
}

.fg-mp-balance-nav-dot[hidden] {
	display: none !important;
}

.fg-mp-dash__nav-badge[hidden] {
	display: none;
}

.fg-mp-dash__logout {
	margin: auto 0 0;
}

.fg-mp-dash__logout-btn {
	box-sizing: border-box;
	display: block;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #ffffff;
	color: #6b7280;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	appearance: none;
}

.fg-mp-dash__logout-btn:hover,
.fg-mp-dash__logout-btn:focus-visible {
	border-color: #fecaca;
	background: #fef2f2;
	color: #b91c1c;
	outline: none;
}

.fg-mp-dash [data-fg-mp-account-panel][hidden] {
	display: none !important;
}

.fg-mp-dash__heading {
	margin: 0 0 8px;
	color: #111827;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

.fg-mp-dash__row {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr);
	gap: 10px 20px;
	align-items: start;
	padding: 18px 0;
	border-top: 1px solid #eef0f4;
}

.fg-mp-dash__row--stack {
	grid-template-columns: minmax(0, 1fr);
}

.fg-mp-dash__label {
	color: #6b7280;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.fg-mp-dash__value {
	min-width: 0;
	color: #111827;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
	word-break: break-word;
}

.fg-mp-dash__value--wrap {
	font-weight: 500;
	overflow-wrap: anywhere;
	word-break: break-word;
	white-space: normal;
}

.fg-mp-dash__value--avatar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.fg-mp-dash__value > .fg-mp-field-error,
.fg-mp-dash__value > .fg-mp-settings-field-message {
	margin-top: 6px;
}

.fg-mp-dash__empty {
	margin: 12px 0 0;
	color: #6b7280;
	font-size: 15px;
	line-height: 1.55;
}

.fg-mp-purchases {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fg-mp-purchases > li {
	margin: 0;
	padding: 0;
}

.fg-mp-purchase {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #ffffff;
}

button.fg-mp-purchase--chat,
button.fg-mp-purchase--view {
	display: flex;
	width: 100%;
	margin: 0;
	box-sizing: border-box;
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.fg-mp-purchase--chat .fg-mp-purchase__image,
.fg-mp-purchase--chat img,
.fg-mp-purchase--view .fg-mp-purchase__image,
.fg-mp-purchase--view img {
	pointer-events: none;
}

.fg-mp-purchase--chat:hover,
.fg-mp-purchase--view:hover {
	border-color: #fdba74;
	background: #fffaf5;
}

.fg-mp-purchase--chat:focus,
.fg-mp-purchase--view:focus {
	outline: none;
}

.fg-mp-purchase--chat:focus-visible,
.fg-mp-purchase--view:focus-visible {
	border-color: #e85d04;
	box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.18);
}

.fg-mp-dash [data-fg-mp-purchases-list][hidden],
.fg-mp-dash [data-fg-mp-purchases-chat][hidden] {
	display: none !important;
}

.fg-mp-chat-detail {
	position: static;
	width: 100%;
	max-width: 100%;
}

.fg-mp-chat-detail__product {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	margin: 0 0 16px;
}

.fg-mp-chat-detail__image {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	overflow: hidden;
	background: #f3f4f6;
}

.fg-mp-chat-detail__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fg-mp-purchase-official .fg-mp-chat-detail__image {
	background: #ffffff;
}

.fg-mp-purchase-official .fg-mp-chat-detail__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.fg-mp-chat-detail__name {
	min-width: 0;
	color: #111827;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	word-break: break-word;
}

.fg-mp-chat-detail .fg-chat {
	margin: 0;
	max-width: 100%;
}

.fg-mp-chat-detail .fg-chat[hidden],
.fg-mp-purchase-ff[hidden],
.fg-mp-purchase-ff__btn[hidden],
.fg-mp-purchase-official[hidden],
.fg-mp-purchase-listing[hidden] {
	display: none !important;
}

.fg-mp-purchase-listing {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	min-height: 0;
}

.fg-mp-purchase-listing__info {
	min-width: 0;
}

.fg-mp-purchase-listing__chat {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
}

.fg-mp-chat-detail .fg-chat__messages,
.fg-mp-chat-detail .fg-chat__msg-text {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.fg-mp-purchase__image {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border-radius: 10px;
	overflow: hidden;
	background: #f3f4f6;
}

.fg-mp-purchase__image > picture,
.fg-mp-chat-detail__image > picture,
.fg-mp-avatar > picture,
.fg-mp-header-auth__avatar > picture,
.fg-official-seller picture {
	display: contents;
}

.fg-mp-purchase__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fg-mp-purchase__info {
	flex: 1 1 auto;
	min-width: 0;
}

.fg-mp-purchase__name {
	color: #111827;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	word-break: break-word;
}

.fg-mp-purchase__date {
	margin-top: 4px;
	color: #6b7280;
	font-size: 13px;
	line-height: 1.4;
}

.fg-mp-purchase__aside {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

.fg-mp-purchase__status {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}

.fg-mp-purchase__status--pending {
	background: #fef3c7;
	color: #92400e;
}

.fg-mp-purchase__status--processing {
	background: #e0f2fe;
	color: #075985;
}

.fg-mp-purchase__status--completed {
	background: #dcfce7;
	color: #166534;
}

.fg-mp-purchase__status--cancelled {
	background: #fee2e2;
	color: #991b1b;
}

.fg-mp-purchase__status--refunded {
	background: #f3f4f6;
	color: #4b5563;
}

.fg-mp-purchase__status--confirm {
	background: #ffedd5;
	color: #9a3412;
}

.fg-mp-purchase__status--report_open,
.fg-mp-purchase__status--report_rejected {
	background: #f3f4f6;
	color: #4b5563;
}

.fg-mp-purchase__status--report_approved {
	background: #dcfce7;
	color: #166534;
}

.fg-mp-buyer-balance {
	margin: 0 0 24px;
	padding: 18px 16px;
	border: 1px solid #eef0f4;
	border-radius: 14px;
	background: #fff;
}

.fg-mp-buyer-balance__label {
	margin: 0 0 6px;
	color: #6b7280;
	font-size: 13px;
	font-weight: 600;
}

.fg-mp-buyer-balance__amount {
	margin: 0;
	color: #111827;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.2;
}

.fg-mp-buyer-balance__tx-heading {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 700;
}

.fg-mp-buyer-ledger {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid #eef0f4;
	border-radius: 12px;
	overflow: hidden;
	max-width: 100%;
}

.fg-mp-buyer-ledger__item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-top: 1px solid #eef0f4;
	min-width: 0;
}

.fg-mp-buyer-ledger__item:first-child {
	border-top: 0;
}

.fg-mp-buyer-ledger__amount {
	flex: 0 0 auto;
	font-size: 16px;
	font-weight: 800;
}

.fg-mp-buyer-ledger__amount--credit {
	color: #166534;
}

.fg-mp-buyer-ledger__amount--debit {
	color: #991b1b;
}

.fg-mp-buyer-ledger__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	min-width: 0;
	text-align: right;
}

.fg-mp-buyer-ledger__title {
	color: #111827;
	font-size: 14px;
	font-weight: 700;
}

.fg-mp-buyer-ledger__ref,
.fg-mp-buyer-ledger__date {
	color: #6b7280;
	font-size: 12px;
}

.fg-mp-buyer-ledger__ref--link {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #c2410c;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fg-mp-buyer-ledger__ref--link:focus-visible {
	outline: 2px solid #c2410c;
	outline-offset: 2px;
}

.fg-mp-purchase-ff {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 8px;
	flex-wrap: nowrap;
	margin: 0 0 16px;
	padding: 14px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
}

.fg-mp-purchase-ff__label {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	align-self: center;
	margin: 0;
	max-width: 100%;
	padding: 8px 14px;
	border-radius: 10px;
	background: #f3f4f6;
	color: #374151;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	pointer-events: none;
	cursor: default;
}

.fg-mp-purchase-ff__label:empty {
	display: none;
}

.fg-mp-purchase-ff:has([data-fg-mp-purchase-confirm][hidden]):has([data-fg-mp-purchase-report]:not([hidden])) .fg-mp-purchase-ff__label {
	background: #dcfce7;
	color: #166534;
}

.fg-mp-purchase-ff__alerts {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	max-width: 100%;
}

.fg-mp-purchase-ff__alerts[hidden] {
	display: none !important;
}

.fg-mp-ff-alert[hidden] {
	display: none !important;
}

.fg-mp-ff-alert {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 10px 12px;
	border-radius: 10px;
	color: #78350f;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.fg-mp-ff-alert--safety {
	background: #fffbeb;
	border: 1px solid #f59e0b;
	color: #78350f;
}

.fg-mp-ff-alert--payout {
	background: #fff7ed;
	border: 1px solid #fdba74;
	color: #9a3412;
}

.fg-mp-ff-alert__icon {
	flex: 0 0 auto;
	display: inline-flex;
	margin-top: 1px;
}

.fg-mp-ff-alert__text {
	margin: 0;
	min-width: 0;
}

.fg-mp-purchase-ff__complete,
.fg-mp-purchase-ff__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 8px;
	max-width: 100%;
	width: 100%;
}

.fg-mp-purchase-ff__actions {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: stretch;
	width: 100%;
}

.fg-mp-purchase-ff__actions:not(:has(button:not([hidden]))) {
	display: none;
}

.fg-mp-purchase-ff__complete:not(:has(:not([hidden]))) {
	display: none;
}

.fg-mp-purchase-ff__check {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 8px 14px;
	border-radius: 10px;
	background: #dcfce7;
	color: #166534;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	pointer-events: none;
	cursor: default;
}

.fg-mp-purchase-ff__check[hidden] {
	display: none !important;
}

.fg-mp-purchase-ff__note[hidden] {
	display: none !important;
}

.fg-mp-purchase-ff__help[hidden] {
	display: none !important;
}

.fg-mp-purchase-ff__help {
	margin: 0;
	max-width: 100%;
	color: #6b7280;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.fg-mp-purchase-ff__btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	width: auto;
	max-width: 100%;
	padding: 8px 14px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: #ff7a00;
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	white-space: normal;
	text-align: center;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.fg-mp-purchase-ff__btn--complete {
	width: 100%;
}

.fg-mp-purchase-ff__btn--complete:not(:disabled):hover,
.fg-mp-purchase-ff__btn--complete:not(:disabled):focus-visible {
	background: #e86e00;
	border-color: #e86e00;
}

.fg-mp-purchase-ff__btn--complete:focus-visible {
	outline: 2px solid rgba(232, 110, 0, 0.45);
	outline-offset: 2px;
}

.fg-mp-purchase-ff__btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
}

.fg-mp-purchase-ff__btn--report {
	background: #fff;
	color: #b91c1c;
	border-color: #fecaca;
	font-weight: 600;
	flex: 1 1 140px;
}

.fg-mp-purchase-ff__btn--report:not(:disabled):hover,
.fg-mp-purchase-ff__btn--report:not(:disabled):focus-visible {
	background: #fef2f2;
	border-color: #f87171;
	color: #991b1b;
}

.fg-mp-purchase-ff__btn--report:focus-visible {
	outline: 2px solid rgba(185, 28, 28, 0.28);
	outline-offset: 2px;
}

.fg-mp-purchases-pager {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 16px;
}

.fg-mp-purchases-pager__link,
.fg-mp-purchases-pager__link:link,
.fg-mp-purchases-pager__link:visited {
	color: #111827;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.fg-mp-purchases-pager__link:hover,
.fg-mp-purchases-pager__link:focus-visible {
	color: #c2410c;
	outline: none;
}

.fg-mp-purchases-pager__meta {
	color: #6b7280;
	font-size: 13px;
}

[data-fg-mp-purchases-list][data-fg-mp-paging="1"] {
	opacity: 0.55;
	pointer-events: none;
}

.fg-mp-purchase-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.fg-mp-purchase-modal[hidden] {
	display: none !important;
}

.fg-mp-purchase-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.45);
}

.fg-mp-purchase-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 520px;
	max-height: min(88vh, calc(100dvh - 32px));
	overflow-y: auto;
	overflow-x: hidden;
	padding: 24px 20px 20px;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.fg-mp-purchase-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #6b7280;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.fg-mp-purchase-modal__title {
	margin: 0 36px 12px 0;
	color: #111827;
	font-size: 18px;
	font-weight: 700;
}

.fg-mp-purchase-modal__pre {
	margin: 0;
	white-space: pre-wrap;
	word-break: break-word;
	color: #111827;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 13px;
	line-height: 1.5;
}

.fg-mp-purchase-modal[data-fg-mp-view-modal] {
	z-index: 10060;
	box-sizing: border-box;
	padding:
		max(16px, env(safe-area-inset-top, 0px))
		max(16px, env(safe-area-inset-right, 0px))
		max(16px, env(safe-area-inset-bottom, 0px))
		max(16px, env(safe-area-inset-left, 0px));
}

.fg-mp-purchase-modal[data-fg-mp-view-modal] .fg-mp-purchase-modal__dialog {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	min-width: 0;
	width: min(100%, 520px);
	max-height: min(88vh, calc(100vh - 32px));
	max-height: min(88dvh, calc(100dvh - 32px));
	overflow: hidden;
	padding: 0;
}

.fg-mp-purchase-modal[data-fg-mp-view-modal] .fg-mp-purchase-modal__title {
	flex: 0 0 auto;
	margin: 0;
	padding: 18px 56px 14px 20px;
	font-size: 18px;
	line-height: 1.35;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.fg-mp-purchase-modal[data-fg-mp-view-modal] .fg-mp-purchase-modal__accounts {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.fg-mp-purchase-modal[data-fg-mp-view-modal] .fg-mp-purchase-modal__account {
	box-sizing: border-box;
	min-width: 0;
	padding: 14px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #f8fafc;
}

.fg-mp-purchase-modal[data-fg-mp-view-modal] .fg-mp-purchase-modal__close {
	width: 44px;
	height: 44px;
	top: 8px;
	right: 8px;
}

.fg-mp-purchase-modal[data-fg-mp-view-modal] .fg-mp-purchase-modal__close:focus-visible {
	outline: 2px solid #ff7a00;
	outline-offset: 2px;
}

.fg-mp-purchase-modal[data-fg-mp-view-modal] .fg-mp-purchase-modal__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 0 20px 20px;
}

.fg-mp-purchase-modal[data-fg-mp-view-modal] .fg-mp-purchase-modal__pre {
	max-width: 100%;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.65;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	word-break: break-word;
	user-select: text;
}

@media (max-width: 480px) {
	.fg-mp-purchase-modal[data-fg-mp-view-modal] .fg-mp-purchase-modal__title {
		padding: 16px 52px 12px 16px;
		font-size: 16px;
	}

	.fg-mp-purchase-modal[data-fg-mp-view-modal] .fg-mp-purchase-modal__body {
		padding: 0 16px 16px;
	}

	.fg-mp-purchase-modal[data-fg-mp-view-modal] .fg-mp-purchase-modal__account {
		padding: 12px 14px;
	}

	.fg-mp-purchase-modal[data-fg-mp-view-modal] .fg-mp-purchase-modal__pre {
		font-size: 13px;
	}
}

html.fg-mp-view-modal-open,
html.fg-mp-view-modal-open body {
	overflow: hidden;
}

@media (min-width: 768px) {
	html.fg-mp-view-modal-open,
	html.fg-mp-view-modal-open body {
		overflow: clip;
	}
}

html.fg-mp-buyer-report-open .main__content.fg-mp-main {
	z-index: 10050;
}

html.fg-mp-buyer-report-open,
html.fg-mp-buyer-report-open body {
	overflow: hidden;
}

html.fg-mp-logout-confirm-open .main__content.fg-mp-main {
	z-index: 10050;
}

html.fg-mp-logout-confirm-open,
html.fg-mp-logout-confirm-open body {
	overflow: hidden;
}

.fg-mp-purchase-modal--logout .fg-mp-purchase-modal__dialog {
	max-width: 380px;
	padding: 22px 20px 18px;
}

.fg-mp-logout-confirm__text {
	margin: 0 0 18px;
	color: #374151;
	font-size: 15px;
	line-height: 1.45;
}

.fg-mp-logout-confirm__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.fg-mp-logout-confirm__no,
.fg-mp-logout-confirm__yes {
	min-height: 44px;
	padding: 10px 16px;
	border-radius: 10px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.fg-mp-logout-confirm__no {
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #374151;
}

.fg-mp-logout-confirm__yes {
	border: 0;
	background: #ff7a00;
	color: #fff;
}

.fg-mp-logout-confirm__no:disabled,
.fg-mp-logout-confirm__yes:disabled,
.fg-mp-purchase-modal--logout .fg-mp-purchase-modal__close:disabled {
	opacity: 0.6;
	cursor: default;
}

html.fg-mp-locale-modal-open,
html.fg-mp-locale-modal-open body {
	overflow: hidden;
}

.fg-mp-purchase-modal--locale .fg-mp-purchase-modal__dialog {
	max-width: 420px;
	padding: 22px 20px 18px;
}

.fg-mp-locale-modal__text {
	margin: 0 0 10px;
	color: #374151;
	font-size: 15px;
	line-height: 1.45;
}

.fg-mp-locale-modal__text:last-of-type {
	margin-bottom: 18px;
}

.fg-mp-locale-modal__actions {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 8px;
	justify-content: stretch;
}

.fg-mp-locale-modal__form {
	display: flex;
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
}

.fg-mp-locale-modal__stay,
.fg-mp-locale-modal__logout {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border-radius: 10px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	white-space: normal;
	cursor: pointer;
}

.fg-mp-locale-modal__stay {
	border: 1px solid #e5e7eb;
	background: #fff;
	color: #374151;
}

.fg-mp-locale-modal__logout {
	border: 0;
	background: #ff7a00;
	color: #fff;
}

@media (max-width: 767px) {
	.fg-mp-purchase-modal--locale .fg-mp-locale-modal__actions {
		flex-direction: column;
		flex-wrap: nowrap;
	}

	.fg-mp-purchase-modal--locale .fg-mp-locale-modal__form {
		flex: 1 1 auto;
		width: 100%;
	}

	.fg-mp-purchase-modal--locale .fg-mp-locale-modal__stay,
	.fg-mp-purchase-modal--locale .fg-mp-locale-modal__logout {
		width: 100%;
	}
}

.fg-mp-locale-modal__stay:disabled,
.fg-mp-locale-modal__logout:disabled,
.fg-mp-purchase-modal--locale .fg-mp-purchase-modal__close:disabled {
	opacity: 0.6;
	cursor: default;
}

.fg-mp-purchase-modal--report .fg-mp-purchase-modal__dialog {
	max-width: 420px;
	max-height: min(88vh, calc(100dvh - 32px));
	overflow-y: auto;
	overflow-x: hidden;
}

.fg-mp-purchase-modal--report .fg-mp-purchase-modal__title {
	margin: 0 0 16px;
}

.fg-mp-report-field {
	display: block;
	margin: 0 0 14px;
}

.fg-mp-report-field__label {
	display: block;
	margin: 0 0 6px;
	color: #374151;
	font-size: 13px;
	font-weight: 700;
}

.fg-mp-report-reasons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fg-mp-report-reason {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
	color: #374151;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.fg-mp-report-reason[aria-pressed="true"] {
	border-color: #fdba74;
	background: #fff7ed;
	color: #9a3412;
}

.fg-mp-report-reason[hidden] {
	display: none !important;
}

.fg-mp-report-message {
	box-sizing: border-box;
	display: block;
	width: 100%;
	min-height: 96px;
	padding: 10px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
	color: #111827;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.45;
	resize: none;
}

.fg-mp-report-message:focus {
	outline: 2px solid rgba(255, 122, 0, 0.35);
	outline-offset: 1px;
	border-color: #fdba74;
}

.fg-mp-report-error {
	margin: 0 0 12px;
	color: #b91c1c;
	font-size: 13px;
}

.fg-mp-report-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	align-items: center;
}

.fg-mp-report-submit {
	min-height: 44px;
	padding: 10px 16px;
	border: 0;
	border-radius: 10px;
	background: #ff7a00;
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.fg-mp-report-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.fg-mp-report-submit[aria-busy="true"] {
	position: relative;
	padding-left: 36px;
}

.fg-mp-report-submit[aria-busy="true"]::before {
	content: "";
	position: absolute;
	left: 14px;
	top: 50%;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: fg-mp-report-spin 0.7s linear infinite;
}

@keyframes fg-mp-report-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 639px) {
	.fg-mp-purchase-ff,
	.fg-mp-purchase-ff__complete,
	.fg-mp-purchase-ff__actions,
	.fg-mp-purchase-ff__alerts {
		width: 100%;
		align-items: flex-start;
	}

	.fg-mp-purchase-ff__actions {
		flex-direction: column;
	}

	.fg-mp-purchase-ff__help,
	.fg-mp-purchase-ff__btn,
	.fg-mp-purchase-ff__label,
	.fg-mp-ff-alert {
		max-width: 100%;
	}

	.fg-mp-purchase-ff__btn,
	.fg-mp-purchase-ff__btn--report,
	.fg-mp-purchase-ff__check {
		width: 100%;
		min-height: 44px;
	}

	.fg-mp-purchase {
		flex-wrap: wrap;
	}

	.fg-mp-purchase__aside {
		width: 100%;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	.fg-mp-purchase--chat .fg-mp-purchase__aside {
		justify-content: flex-end;
	}

	.fg-mp-chat-detail .fg-chat__form {
		flex-wrap: wrap;
	}

	.fg-mp-chat-detail .fg-chat__input {
		min-width: 0;
		width: 100%;
		flex: 1 1 160px;
	}

	.fg-mp-chat-detail .fg-chat__send {
		flex: 0 0 auto;
		min-height: 44px;
	}
}

@media (max-width: 359px) {
	.fg-mp-chat-detail .fg-chat__send {
		width: 100%;
	}
}

@media (max-width: 767px) {
	.fg-mp-purchase,
	button.fg-mp-purchase--chat,
	button.fg-mp-purchase--view {
		display: grid;
		grid-template-columns: 108px minmax(0, 1fr);
		grid-template-rows: auto minmax(0, 1fr);
		column-gap: 12px;
		row-gap: 0;
		align-items: start;
		flex-wrap: nowrap;
	}

	.fg-mp-purchase__image {
		grid-column: 1;
		grid-row: 1 / span 2;
		flex: none;
		width: 108px;
		min-width: 108px;
		height: 108px;
		align-self: start;
	}

	.fg-mp-purchase__info {
		grid-column: 2;
		grid-row: 1;
		align-self: start;
		min-width: 0;
	}

	.fg-mp-purchase__name {
		min-width: 0;
		max-width: 100%;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		word-break: normal;
		overflow-wrap: normal;
	}

	.fg-mp-purchase__aside,
	.fg-mp-purchase--chat .fg-mp-purchase__aside,
	.fg-mp-purchase--view .fg-mp-purchase__aside {
		display: contents;
		width: auto;
	}

	.fg-mp-purchase__status {
		grid-column: 2;
		grid-row: 2;
		justify-self: start;
		align-self: end;
		display: inline-block;
		box-sizing: border-box;
		width: fit-content;
		min-width: 0;
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		text-align: left;
	}

}

/* Tablet purchase cards reuse the phone hierarchy. The image stays 64px.
   Seller names ellipsize because the dashboard panel is narrower than a phone card. */
@media (min-width: 768px) and (max-width: 1119px) {
	.fg-mp-purchase,
	button.fg-mp-purchase--chat,
	button.fg-mp-purchase--view {
		display: grid;
		grid-template-columns: 64px minmax(0, 1fr);
		grid-template-rows: auto minmax(0, 1fr);
		column-gap: 12px;
		row-gap: 0;
		align-items: start;
		flex-wrap: nowrap;
		min-width: 0;
	}

	.fg-mp-purchase__image {
		grid-column: 1;
		grid-row: 1 / span 2;
		flex: none;
		width: 64px;
		min-width: 64px;
		height: 64px;
		align-self: start;
	}

	.fg-mp-purchase__info {
		grid-column: 2;
		grid-row: 1;
		align-self: start;
		min-width: 0;
	}

	.fg-mp-purchase__name {
		min-width: 0;
		max-width: 100%;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		word-break: normal;
		overflow-wrap: normal;
	}

	.fg-mp-purchase__info > .fg-official-seller {
		width: 100%;
		max-width: 100%;
		flex-wrap: nowrap;
		min-width: 0;
	}

	.fg-mp-purchase__info > .fg-official-seller .fg-official-seller__id {
		flex: 1 1 auto;
		min-width: 0;
		max-width: 100%;
	}

	.fg-mp-purchase__info > .fg-official-seller .fg-official-seller__name {
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.fg-mp-purchase__aside,
	.fg-mp-purchase--chat .fg-mp-purchase__aside,
	.fg-mp-purchase--view .fg-mp-purchase__aside {
		display: contents;
		width: auto;
	}

	.fg-mp-purchase__status {
		grid-column: 2;
		grid-row: 2;
		justify-self: start;
		align-self: end;
		display: inline-block;
		box-sizing: border-box;
		width: fit-content;
		min-width: 0;
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		text-align: left;
	}
}

.fg-mp-dash__change {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #ffffff;
	color: #111827;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	appearance: none;
}

.fg-mp-dash__change:not(:disabled):hover,
.fg-mp-dash__change:not(:disabled):focus-visible {
	border-color: #ff7a00;
	color: #e86e00;
	outline: none;
}

.fg-mp-dash__change:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
	border-color: #e5e7eb;
	color: #6b7280;
	background: #ffffff;
}

.fg-mp-textarea {
	box-sizing: border-box;
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 120px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #ffffff;
	color: #111827;
	font-size: 16px;
	line-height: 1.4;
	resize: vertical;
}

[data-fg-mp-account-panel="settings"] [data-fg-mp-bio-input] {
	resize: none;
}

.fg-mp-textarea:not(:disabled):focus {
	outline: none;
	border-color: #ff7a00;
	box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.18);
}

.fg-mp-page--account .fg-mp-dash__save {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	justify-self: start;
	width: auto;
	min-width: 140px;
	margin-top: 12px;
}

@media (max-width: 767px) {
	.fg-mp-dash {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		height: auto;
	}

	.fg-mp-dash__sidebar {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
		align-content: start;
		height: auto;
		padding: 14px 12px 12px;
		background: #ffffff;
		border: 1px solid #eef0f4;
		border-radius: 16px;
		box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06), 0 4px 16px rgba(17, 24, 39, 0.04);
	}

	.fg-mp-dash__identity {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: 64px minmax(0, 1fr) auto;
		column-gap: 12px;
		row-gap: 2px;
		align-items: center;
		min-width: 0;
		margin: 0;
		padding: 2px 2px 0;
		text-align: left;
		background: transparent;
		border: 0;
		border-bottom: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.fg-mp-dash__identity .fg-mp-avatar--lg {
		grid-column: 1;
		grid-row: 1 / span 2;
		width: 64px;
		height: 64px;
		margin: 0;
	}

	.fg-mp-dash__identity .fg-mp-avatar--lg .fg-mp-avatar-fallback {
		font-size: 22px;
	}

	.fg-mp-dash__identity .fg-mp-dash__handle-row {
		grid-column: 2;
		grid-row: 1;
		justify-self: start;
		justify-content: flex-start;
		align-self: end;
		flex-wrap: nowrap;
		gap: 6px;
		width: max-content;
		min-width: 0;
		max-width: 100%;
		margin: 0;
	}

	.fg-mp-dash__identity .fg-mp-handle {
		flex: 0 1 auto;
		width: max-content;
		min-width: 0;
		max-width: 100%;
		overflow: hidden;
		font-size: 16px;
		white-space: nowrap;
		text-overflow: ellipsis;
		overflow-wrap: normal;
		word-break: normal;
	}

	.fg-mp-dash__identity .fg-mp-handle a {
		display: inline-block;
		width: max-content;
		max-width: 100%;
		min-width: 0;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
		vertical-align: top;
	}

	.fg-mp-dash__identity .fg-mp-dash__level {
		flex: 0 0 auto;
		flex-shrink: 0;
		margin: 0;
	}

	.fg-mp-dash__identity .fg-mp-email {
		grid-column: 2;
		grid-row: 2;
		align-self: start;
		min-width: 0;
		max-width: 100%;
		margin: 0;
		overflow: hidden;
		font-size: clamp(11px, 3.15vw, 12px);
		line-height: 1.3;
		white-space: nowrap;
		text-overflow: ellipsis;
		overflow-wrap: normal;
		word-break: normal;
		text-decoration: none !important;
		text-decoration-line: none !important;
		-webkit-text-decoration-line: none !important;
		text-decoration-color: transparent !important;
		border-bottom: 0 !important;
		box-shadow: none !important;
		background-image: none !important;
	}

	.fg-mp-dash__nav-toggle {
		display: inline-flex;
		grid-column: 1 / -1;
		align-items: center;
		justify-content: center;
		justify-self: center;
		width: 36px;
		height: 28px;
		margin: 2px auto 0;
		padding: 0;
		border: 0;
		background: transparent;
		color: #9ca3af;
		cursor: pointer;
	}

	.fg-mp-dash__nav-toggle svg {
		display: block;
		width: 18px;
		height: 18px;
		transition: transform 260ms ease;
	}

	.fg-mp-dash__sidebar.is-nav-collapsed {
		row-gap: 0;
		padding-bottom: 6px;
	}

	.fg-mp-dash__sidebar.is-nav-collapsed .fg-mp-dash__nav-toggle {
		margin-top: 10px;
	}

	.fg-mp-dash__sidebar.is-nav-collapsed .fg-mp-dash__nav-toggle svg {
		transform: rotate(180deg);
	}

	.fg-mp-dash__nav-panel {
		display: grid;
		grid-column: 1 / -1;
		grid-template-rows: 1fr;
		min-height: 0;
		overflow: hidden;
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		transition: grid-template-rows 260ms ease, opacity 260ms ease, transform 260ms ease, margin-top 260ms ease, visibility 0s linear;
	}

	.fg-mp-dash__nav-panel-inner {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
		min-height: 0;
		overflow: hidden;
	}

	.fg-mp-dash__sidebar.is-nav-collapsed .fg-mp-dash__nav-panel {
		grid-template-rows: 0fr;
		min-height: 0;
		margin-top: 0;
		margin-bottom: 0;
		padding: 0;
		overflow: hidden;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(-8px);
		transition: grid-template-rows 260ms ease, opacity 260ms ease, transform 260ms ease, margin-top 260ms ease, visibility 0s linear 260ms;
	}

	@media (prefers-reduced-motion: reduce) {
		.fg-mp-dash__nav-toggle svg,
		.fg-mp-dash__nav-panel,
		.fg-mp-dash__nav-panel-inner {
			transition: none;
		}
	}

	.fg-mp-dash__identity .fg-mp-dash__profile-link {
		grid-column: 3;
		grid-row: 1 / span 2;
		align-self: center;
		justify-self: end;
		display: inline-flex;
		align-items: center;
		margin: 0;
		padding: 8px 12px;
		border: 1px solid #fed7aa;
		border-radius: 999px;
		background: #fff7ed;
		color: #c2410c;
		font-size: 13px;
		font-weight: 700;
		line-height: 1.2;
		text-decoration: none !important;
		text-decoration-line: none !important;
		-webkit-text-decoration-line: none !important;
		white-space: nowrap;
		font-variant-ligatures: none;
		font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "calt" 0;
	}

	.fg-mp-dash__identity .fg-mp-dash__profile-link::before,
	.fg-mp-dash__identity .fg-mp-dash__profile-link::after,
	.fg-mp-dash__identity .fg-mp-dash__profile-link-full::before,
	.fg-mp-dash__identity .fg-mp-dash__profile-link-full::after,
	.fg-mp-dash__identity .fg-mp-dash__profile-link-short::before,
	.fg-mp-dash__identity .fg-mp-dash__profile-link-short::after {
		content: none !important;
		display: none !important;
	}

	.fg-mp-dash__identity .fg-mp-dash__profile-link-full {
		display: none !important;
	}

	.fg-mp-dash__identity .fg-mp-dash__profile-link-short {
		display: inline !important;
		font-variant-ligatures: none;
		font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "calt" 0;
	}

	.fg-mp-dash__identity .fg-mp-dash__profile-link:hover,
	.fg-mp-dash__identity .fg-mp-dash__profile-link:focus-visible {
		color: #c2410c;
		background: #fff7ed;
		text-decoration: none;
	}

	.fg-mp-dash__nav {
		display: contents;
	}

	.fg-mp-dash__nav-btn,
	.fg-mp-dash__logout-btn {
		position: relative;
		box-sizing: border-box;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 6px;
		width: 100%;
		min-width: 0;
		min-height: 76px;
		margin: 0;
		padding: 10px 6px;
		border: 1px solid #e5e7eb;
		border-radius: 12px;
		background: #ffffff;
		color: #374151;
		font-size: 12px;
		font-weight: 600;
		line-height: 1.25;
		text-align: center;
		white-space: normal;
	}

	.fg-mp-dash__nav-icon {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 22px;
		height: 22px;
		color: currentColor;
	}

	.fg-mp-dash__nav-icon svg {
		display: block;
		width: 22px;
		height: 22px;
	}

	.fg-mp-dash__nav-label {
		display: block;
		max-width: 100%;
		overflow-wrap: anywhere;
		word-break: normal;
	}

	.fg-mp-dash__nav-btn:hover {
		background: #f9fafb;
	}

	.fg-mp-dash__nav-btn.is-active {
		background: #fff7ed;
		border-color: #ff7a00;
		color: #c2410c;
	}

	.fg-mp-dash__nav-badge {
		position: absolute;
		top: 6px;
		left: calc(50% + 4px);
		min-width: 16px;
		margin-left: 0;
		padding: 0 4px;
		font-size: 10px;
		line-height: 16px;
	}

	.fg-mp-dash__nav-btn .fg-mp-balance-nav-dot {
		position: absolute;
		top: 8px;
		left: calc(50% + 8px);
		margin-left: 0;
	}

	.fg-mp-dash__main {
		box-sizing: border-box;
		order: 2;
		padding: 20px 16px 18px;
		height: auto;
		background: #ffffff;
		border: 1px solid #eef0f4;
		border-radius: 16px;
		box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06), 0 4px 16px rgba(17, 24, 39, 0.04);
	}

	.fg-mp-dash__logout {
		display: flex;
		min-width: 0;
		min-height: 0;
		margin: 0;
		padding: 0;
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.fg-mp-dash__logout-btn {
		flex: 1 1 auto;
		height: auto;
		align-self: stretch;
		color: #b91c1c;
	}

	.fg-mp-dash__logout-btn:hover,
	.fg-mp-dash__logout-btn:focus-visible {
		border-color: #fecaca;
		background: #fef2f2;
		color: #b91c1c;
		outline: none;
	}

	.fg-mp-dash__heading {
		font-size: 20px;
	}

	.fg-mp-dash__row {
		grid-template-columns: minmax(0, 1fr);
		padding: 16px 0;
	}

	.fg-mp-page--account .fg-mp-dash__save {
		display: flex;
		justify-self: stretch;
		width: 100%;
	}
}

@media (min-width: 480px) and (max-width: 767px) {
	.fg-mp-dash__sidebar {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Auth popup — isolated from Search / News / payment locks */
html.fg-mp-auth-open,
body.fg-mp-auth-open {
	overflow: hidden;
	overscroll-behavior: none;
}

.fg-mp-auth {
	position: fixed;
	inset: 0;
	z-index: 10030;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 12px;
	padding-top: max(12px, env(safe-area-inset-top, 0px));
	padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
	-webkit-text-size-adjust: 100%;
}

.fg-mp-auth[hidden] {
	display: none !important;
}

.fg-mp-auth__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 10, 18, 0.65);
}

.fg-mp-auth__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: min(440px, calc(100vw - 24px));
	max-height: min(88vh, calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
	margin: 0;
	overflow: hidden;
}

.fg-mp-auth__dialog.fg-mp-card {
	padding-top: 22px;
}

.fg-mp-auth__close {
	position: absolute;
	top: 20px;
	right: 14px;
	z-index: 3;
	box-sizing: border-box;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f3f4f6;
	color: #374151;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	appearance: none;
}

.fg-mp-auth .fg-mp-title {
	padding-right: 44px;
	overflow-wrap: break-word;
}

.fg-mp-auth__close:hover,
.fg-mp-auth__close:focus-visible {
	background: #e5e7eb;
	outline: 2px solid rgba(255, 122, 0, 0.45);
	outline-offset: 2px;
}

.fg-mp-auth__scroll {
	flex: 0 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

.fg-mp-auth [data-fg-mp-auth-view][hidden] {
	display: none !important;
}

.fg-mp-auth [data-fg-mp-auth-view] > .fg-mp-alert:not([hidden]) {
	margin-top: -4px;
}

@media (max-height: 700px) {
	.fg-mp-auth {
		align-items: flex-start;
	}
}

/* Phones often match the short-height rule above. Keep the dialog centered
   in the fixed overlay. Extra form content scrolls inside the dialog.
   Keyboard open/close must not resize or move this overlay. */
@media (max-width: 767px) {
	.fg-mp-auth {
		align-items: center;
		align-items: safe center;
	}

	.fg-mp-auth__dialog {
		min-height: 0;
		max-height: min(88vh, calc(100vh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
	}

	.fg-mp-auth__scroll {
		flex: 1 1 auto;
		min-height: 0;
		overflow-y: auto;
	}
}

@media (max-width: 359px) {
	.fg-mp-card {
		padding: 22px 16px 20px;
	}

	.fg-mp-auth__dialog.fg-mp-card {
		padding-top: 16px;
	}

	.fg-mp-auth__close {
		top: 12px;
		right: 10px;
	}

	.fg-mp-title {
		font-size: 22px;
	}

	.fg-mp-auth .fg-mp-title {
		padding-right: 40px;
	}
}

@media (min-width: 768px) {
	.fg-mp-page {
		padding: 16px 24px 48px;
	}

	.fg-mp-page.fg-mp-page--account {
		padding-top: 24px;
		padding-bottom: 24px;
		padding-left: 16px;
		padding-right: 16px;
	}

	.fg-mp-dash__main {
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	.fg-mp-dash__main > [data-fg-mp-account-panel="chats"]:not([hidden]),
	.fg-mp-dash__main > [data-fg-mp-account-panel="purchases"]:not([hidden]),
	.fg-mp-dash__main > [data-fg-mp-account-panel="sell"]:not([hidden]) {
		flex: 1 1 auto;
		min-height: 0;
		display: flex;
		flex-direction: column;
	}

	.fg-mp-dash [data-fg-mp-purchases-chat]:not([hidden]) {
		flex: 1 1 auto;
		min-height: 0;
		display: flex;
		flex-direction: column;
	}

	.fg-mp-dash__main:has(.fg-mp-purchase-official:not([hidden])) {
		overflow: hidden;
	}

	.fg-mp-purchase-official:not([hidden]) {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		min-height: 0;
	}

	.fg-mp-purchase-official .fg-mp-chat-detail__product {
		flex-shrink: 0;
	}

	.fg-mp-purchase-official .fg-chat {
		flex: 0 1 auto;
		width: 100%;
		height: auto;
		min-height: 0;
		overflow: hidden;
	}

	.fg-mp-purchase-official .fg-chat__header {
		order: 1;
		flex: 0 0 auto;
	}

	.fg-mp-purchase-official .fg-chat__empty {
		order: 2;
		flex: 0 0 auto;
	}

	.fg-mp-purchase-official .fg-chat__messages {
		order: 3;
		flex: 1 1 auto;
		min-height: 0;
		max-height: none;
		overflow-y: auto;
	}

	.fg-mp-purchase-official .fg-chat__closed-note {
		order: 4;
		flex: 0 0 auto;
	}

	.fg-mp-purchase-official .fg-chat__form {
		order: 5;
		flex: 0 0 auto;
	}

	.fg-mp-purchase-official .fg-chat__error {
		order: 6;
		flex: 0 0 auto;
	}

	.fg-mp-card {
		padding: 32px 28px 28px;
	}

	.fg-mp-auth__dialog.fg-mp-card {
		padding-top: 28px;
	}

	/* OTP titles are longer; widen only those steps so the 28px heading stays one line. */
	.fg-mp-auth:has([data-fg-mp-auth-view="login-otp"]:not([hidden])) .fg-mp-auth__dialog.fg-mp-card,
	.fg-mp-auth:has([data-fg-mp-auth-view="otp"]:not([hidden])) .fg-mp-auth__dialog.fg-mp-card {
		width: min(540px, calc(100vw - 24px));
		max-width: 540px;
	}

	.fg-mp-auth__close {
		top: 28px;
		right: 20px;
	}

	.fg-mp-title {
		font-size: 28px;
	}

	.fg-mp-auth .fg-mp-title {
		padding-right: 48px;
	}
}

@media (min-width: 1120px) {
	/* Five-order Selling list border box. Short lists and other tabs share it. */
	.fg-mp-dash__main {
		min-height: 612px;
	}

	/*
	 * The purchases list is a plain div (display:block). Keep that display
	 * while the detail is open so the list still sets the panel height.
	 * visibility:hidden keeps it out of painting, hit-testing, and tab order.
	 */
	.fg-mp-dash [data-fg-mp-account-panel="purchases"]:has([data-fg-mp-purchases-chat]:not([hidden])) {
		position: relative;
		flex: 1 1 auto;
		min-height: 0;
	}

	.fg-mp-dash [data-fg-mp-account-panel="purchases"]:has([data-fg-mp-purchases-chat]:not([hidden])) > [data-fg-mp-purchases-list][hidden] {
		display: block !important;
		visibility: hidden;
		pointer-events: none;
	}

	.fg-mp-dash [data-fg-mp-account-panel="purchases"]:has([data-fg-mp-purchases-chat]:not([hidden])) > [data-fg-mp-purchases-chat] {
		position: absolute;
		inset: 0;
		display: flex;
		flex-direction: column;
		min-height: 0;
		overflow: hidden;
	}

	.fg-mp-dash [data-fg-mp-account-panel="purchases"]:has([data-fg-mp-purchases-chat]:not([hidden])) > [data-fg-mp-purchases-chat] > .fg-mp-purchase-official:not([hidden]) {
		flex: 1 1 auto;
		min-height: 0;
		overflow: hidden;
	}

	.fg-mp-dash [data-fg-mp-account-panel="purchases"]:has([data-fg-mp-purchases-chat]:not([hidden])) > [data-fg-mp-purchases-chat] > .fg-mp-purchase-official:not([hidden]) .fg-chat {
		flex: 1 1 auto;
		min-height: 0;
		height: auto;
		max-height: 100%;
	}

	.fg-mp-purchase-listing {
		display: grid;
		grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
		grid-template-rows: minmax(0, 1fr);
		gap: 20px;
		align-items: stretch;
		flex: 1 1 auto;
		width: 100%;
		height: auto;
		min-height: 0;
		overflow: hidden;
	}

	.fg-mp-purchase-listing__info {
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		align-items: flex-start;
		align-self: stretch;
		height: auto;
		min-height: 0;
		max-height: 100%;
		overflow-x: hidden;
		overflow-y: auto;
	}

	.fg-mp-purchase-listing__info > .fg-mp-chat-detail__product {
		flex: 0 0 auto;
		margin-bottom: 8px;
	}

	.fg-mp-purchase-listing__info > .fg-mp-purchase-ff {
		width: 100%;
		max-width: none;
		margin-bottom: 0;
		padding: 10px 12px;
		gap: 6px;
	}

	.fg-mp-purchase-listing__info .fg-mp-ff-alert {
		padding: 8px 10px;
	}

	.fg-mp-purchase-listing__info .fg-mp-purchase-ff,
	.fg-mp-purchase-listing__info .fg-mp-purchase-ff__complete,
	.fg-mp-purchase-listing__info .fg-mp-purchase-ff__actions,
	.fg-mp-purchase-listing__info .fg-mp-purchase-ff__alerts {
		flex: 0 0 auto;
		flex-grow: 0;
		align-self: stretch;
		height: fit-content;
		margin-top: 0;
		justify-content: flex-start;
	}

	.fg-mp-purchase-listing__chat {
		display: flex;
		flex-direction: column;
		align-self: stretch;
		height: auto;
		min-height: 0;
		max-height: 100%;
		overflow: hidden;
	}
}

@media (min-width: 1600px) {
	.fg-mp-page.fg-mp-page--account {
		padding-left: 0;
		padding-right: 0;
	}
}

.fg-mp-restriction-notice {
	box-sizing: border-box;
	margin: 0 0 20px;
	padding: 16px 16px 14px;
	border-radius: 14px;
	background: #fff7ed;
	border: 1px solid #fdba74;
	color: #9a3412;
}

.fg-mp-restriction-notice__title {
	margin: 0 0 6px;
	color: #9a3412;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.fg-mp-restriction-notice__text {
	margin: 0 0 12px;
	color: #9a3412;
	font-size: 14px;
	line-height: 1.5;
}

.fg-mp-restriction-notice__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 14px;
	border: 0;
	border-radius: 10px;
	background: #ff7a00;
	color: #ffffff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	appearance: none;
}

.fg-mp-restriction-notice__cta:hover,
.fg-mp-restriction-notice__cta:focus-visible {
	background: #ea580c;
	outline: none;
}

.fg-mp-submit.is-disabled,
.fg-mp-seller__add.is-disabled,
.button__buy.is-disabled,
.fg-mp-chat-contact.is-disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

@media (max-width: 767px) {
	.fg-mp-restriction-notice {
		margin-bottom: 16px;
		padding: 14px 12px 12px;
	}

	.fg-mp-restriction-notice__cta {
		width: 100%;
	}
}

