/* =========================================================================
   GlobeMarket account area. Figma: home/Accunt/profile (559:9465) and the
   personal info / billing / shipping pop-ups (559:9931, 559:10182, 559:10453).
   Inputs, buttons and alerts come from gm-auth.css.
   ========================================================================= */
.gm-acct-page { font-family: var(--gm-font-sans); color: var(--gm-color-text-primary); }
.gm-acct-page p { margin: 0; }

/* ---------- Hero: breadcrumb, title, intro, tabs (559:9518) ---------- */
.gm-account-hero { padding: 80px 0; background: var(--gm-color-bg-surface); }
.gm-crumbs { display: flex; align-items: center; gap: 4px; height: 32px; padding: 4px 0; font-size: 14px; line-height: 20px; }
.gm-crumbs a { font-weight: 500; color: var(--gm-color-text-secondary); text-decoration: none; transition: color var(--gm-dur-fast, .15s) ease; }
.gm-crumbs a:hover { color: var(--gm-color-action-secondary-default); text-decoration: underline; }
.gm-crumbs span { font-weight: 600; color: var(--gm-color-text-primary); }
.gm-crumbs .gm-icon { width: 24px; height: 24px; }
.gm-account-hero__info { display: flex; flex-direction: column; gap: var(--gm-spacing-lg); padding: 24px 0; }
.gm-account-hero__title { margin: 0; font-size: 40px; line-height: 48px; font-weight: 700; letter-spacing: -.6px; color: var(--gm-color-text-primary); }
.gm-account-hero__intro { max-width: 1179px; font-size: 18px; line-height: 28px; font-weight: 400; color: #62676c; }

.gm-account-tabs { position: relative; padding: 10px 0 22px; }
.gm-account-tabs::after { content: ""; position: absolute; left: 0; top: 67px; width: 362px; max-width: 100%; height: 1px; background: #d5d9dc; }
.gm-account-tabs ul { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.gm-account-tabs li { width: var(--gm-w, auto); flex: none; }
.gm-account-tabs a {
	position: relative; display: inline-flex; align-items: center; height: 46px; padding: 10px;
	font-size: 18px; line-height: 28px; font-weight: 400; color: var(--gm-color-action-disabled-text);
	text-decoration: none; white-space: nowrap; transition: color var(--gm-dur-fast, .15s) ease;
}
.gm-account-tabs a::after {
	content: ""; position: absolute; left: 0; right: 0; top: 57px; height: 1px; z-index: 1;
	background: #d96500; transform: scaleX(0); transform-origin: left; transition: transform var(--gm-dur, .25s) var(--gm-ease, ease);
}
.gm-account-tabs a:hover { color: var(--gm-color-text-secondary); }
.gm-account-tabs a.is-current { font-weight: 600; color: #000; }
.gm-account-tabs a.is-current::after, .gm-account-tabs a:hover::after { transform: scaleX(1); }
.gm-account-tabs a:hover:not(.is-current)::after { background: #d5d9dc; }
.gm-account-tabs a:focus-visible { outline: none; box-shadow: var(--gm-focus-ring); border-radius: var(--gm-radius-sm); }

/* ---------- Profile cards (559:9547) ---------- */
.gm-profile, .gm-account-body { padding: 80px 0; background: var(--gm-color-bg-subtle); }
.gm-profile__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 1314px; }
.gm-pcard-box {
	display: flex; align-items: flex-start; gap: 10px; min-height: 238px; padding: 20px 30px;
	background: var(--gm-color-bg-surface); border-radius: var(--gm-radius-sm);
}
/* Figma (updated): four equal 650px cards, Edit pinned to the right padding. */
.gm-pcard-box__body { display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; gap: 28px; color: #000; }
.gm-pcard-box__title { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; color: #000; }
.gm-pcard-box__content { display: flex; flex-direction: column; gap: 22px; }
.gm-profile-lines { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 16px; line-height: 24px; overflow-wrap: anywhere; }
.gm-pcard-empty { font-size: 16px; line-height: 24px; color: #000; }
.gm-profile-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.gm-profile-link {
	padding: 0; border: 0; background: none; cursor: pointer;
	font-family: inherit; font-size: 18px; line-height: 28px; font-weight: 500; color: #000;
	text-decoration: underline; text-decoration-thickness: from-font; text-underline-position: from-font;
	transition: color var(--gm-dur-fast, .15s) ease;
}
.gm-profile-link:hover { color: var(--gm-color-action-primary-default); }
.gm-profile-link:focus-visible { outline: none; box-shadow: var(--gm-focus-ring); border-radius: 4px; }

/* Button/Ghost (65:185) */
.gm-ghost-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--gm-spacing-sm);
	width: 82px; height: 44px; flex: none; padding: 0 var(--gm-spacing-md);
	background: transparent; border: 1px solid #000; border-radius: var(--gm-radius-md);
	font-family: inherit; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--gm-color-text-primary);
	cursor: pointer; transition: background-color var(--gm-dur-fast, .15s) ease, color var(--gm-dur-fast, .15s) ease;
}
.gm-ghost-btn:hover { background: var(--gm-color-action-secondary-default); border-color: var(--gm-color-action-secondary-default); color: #fff; }
.gm-ghost-btn:focus-visible { outline: none; box-shadow: var(--gm-focus-ring); }

/* Toggle (Figma Component 1, Toggle-off 516:9716; "on" uses the brand colour) */
.gm-prefs { display: flex; flex-direction: column; gap: 16px; }
.gm-toggle { position: relative; display: inline-flex; align-items: center; gap: 16px; cursor: pointer; }
.gm-toggle input { position: absolute; opacity: 0; width: 48px; height: 28px; margin: 0; cursor: pointer; }
.gm-toggle__track { position: relative; width: 48px; height: 28px; flex: none; border-radius: 14px; background: #d5d9dc; transition: background-color var(--gm-dur, .25s) ease; }
.gm-toggle__track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(17, 15, 21, .12); transition: transform var(--gm-dur, .25s) var(--gm-ease, ease); }
.gm-toggle input:checked + .gm-toggle__track { background: var(--gm-color-action-primary-default); }
.gm-toggle input:checked + .gm-toggle__track::after { transform: translateX(20px); }
.gm-toggle input:focus-visible + .gm-toggle__track { box-shadow: var(--gm-focus-ring); }
.gm-toggle__label { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: .1px; color: #0a0a0a; }

/* ---------- Pop-ups (559:9931 / 559:10182 / 559:10453) ---------- */
.gm-modal { position: fixed; inset: 0; z-index: 1001; display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow-y: auto; overscroll-behavior: contain; }
.gm-modal[hidden], .gm-modal-overlay[hidden] { display: none; }
.gm-modal__card {
	position: relative; display: flex; flex-direction: column; gap: 24px;
	width: 604px; max-width: 100%; margin: auto 0; padding: 32px;
	background: var(--gm-color-bg-surface); border-radius: var(--gm-radius-md);
	opacity: 0; transform: translateY(12px) scale(.98);
	transition: opacity var(--gm-dur, .25s) ease, transform var(--gm-dur, .25s) var(--gm-ease, ease);
}
.gm-modal.is-open .gm-modal__card { opacity: 1; transform: none; }
.gm-modal__head { display: flex; flex-direction: column; gap: 10px; }
.gm-modal__title { margin: 0; padding: 4px 0; text-align: center; font-size: 18px; line-height: 28px; font-weight: 500; color: var(--gm-color-text-secondary); }
.gm-modal__head::after { content: ""; display: block; height: 1px; background: #d5d9dc; }
.gm-modal__close {
	position: absolute; top: 26px; right: 32px; width: 48px; height: 48px; padding: 12px;
	border: 0; background: none; border-radius: var(--gm-radius-full); cursor: pointer;
	transition: background-color var(--gm-dur-fast, .15s) ease;
}
.gm-modal__close img { display: block; }
.gm-modal__close:hover { background: var(--gm-color-bg-subtle); }
.gm-modal__close:focus-visible { outline: none; box-shadow: var(--gm-focus-ring); }
.gm-modal .gm-auth__alert:not([hidden]) { margin: 0; }
.gm-modal__fields { display: flex; flex-direction: column; gap: 24px; }
.gm-modal__fields--address { gap: 16px; }
.gm-modal__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.gm-modal .gm-field__label { color: var(--gm-color-text-secondary); }
.gm-field__control { position: relative; }
.gm-modal input.gm-field__input:not(:placeholder-shown) { font-weight: 700; }
.gm-field__control .gm-field__input { padding-right: 48px; }
.gm-field__clear {
	position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
	display: none; width: 32px; height: 32px; padding: 4px; border: 0; background: none; border-radius: var(--gm-radius-full); cursor: pointer;
}
.gm-field__clear img { display: block; }
.gm-field__clear:hover { background: var(--gm-color-bg-subtle); }
.gm-field__clear:focus-visible { outline: none; box-shadow: var(--gm-focus-ring); }
.gm-field__control.has-value .gm-field__clear { display: block; }
.gm-field__hint { margin: 0; font-size: 12px; line-height: 20px; color: var(--gm-color-text-muted); }

/* Select with the Figma keyboard_arrow_down */
.gm-field__select { cursor: pointer; padding-right: 48px; color: var(--gm-color-text-muted); }
.gm-field__select.is-filled { color: var(--gm-color-text-primary); font-weight: 700; }
.gm-field__select option { color: var(--gm-color-text-primary); font-weight: 400; }
.gm-field__select[data-gm-locked] { pointer-events: none; padding-right: var(--gm-spacing-lg); cursor: default; }
.gm-field__arrow { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; }

/* Phone: "+44 ⌄ | 7400 123456" (559:10511) */
.gm-phone {
	display: flex; align-items: center; gap: var(--gm-spacing-sm); height: 48px; padding: 0 var(--gm-spacing-lg);
	background: var(--gm-color-bg-surface); border: 1px solid var(--gm-color-border-default); border-radius: var(--gm-radius-md);
	transition: border-color var(--gm-dur, .25s) ease, box-shadow var(--gm-dur, .25s) ease;
}
.gm-phone:focus-within { border-color: var(--gm-color-border-focus); box-shadow: var(--gm-focus-ring); }
.gm-field.is-error .gm-phone { border-color: var(--gm-color-border-danger); }
.gm-phone__dial { display: inline-flex; align-items: center; gap: 8px; padding-right: 12px; font-size: 16px; line-height: 24px; color: #0a0a0a; white-space: nowrap; }
.gm-phone__divider { width: 1px; height: 24px; background: #d5d9dc; flex: none; }
.gm-field__control .gm-phone__input { flex: 1; min-width: 0; height: 46px; padding: 0; border: 0; box-shadow: none; background: transparent; }
.gm-field__control .gm-phone__input:focus { box-shadow: none; }

/* "Saved" toast */
.gm-toast {
	position: fixed; left: 50%; bottom: 32px; z-index: 1002; transform: translate(-50%, 16px);
	padding: 12px 20px; border-radius: var(--gm-radius-full);
	background: var(--gm-color-action-secondary-default); color: #fff;
	font-size: 14px; line-height: 20px; font-weight: 600;
	opacity: 0; transition: opacity var(--gm-dur, .25s) ease, transform var(--gm-dur, .25s) var(--gm-ease, ease);
}
.gm-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.gm-toast[hidden] { display: none; }

/* WooCommerce endpoint content (orders etc.) until those pages are redesigned */
.gm-account-body .woocommerce-MyAccount-content { max-width: calc(var(--gm-container) + 2 * var(--gm-gutter)); }

/* =========================================================================
   My Orders (Figma 559:11301)
   ========================================================================= */
.gm-orders { padding: 80px 0; background: var(--gm-color-bg-subtle); }
.gm-orders__in { display: flex; align-items: flex-start; gap: 32px; }

/* Aside (559:11302) */
.gm-orders-aside { width: 320px; flex: none; overflow: hidden; background: var(--gm-color-bg-surface); border-radius: var(--gm-radius-md); }
.gm-orders-aside ul { margin: 0; padding: 0; list-style: none; }
.gm-orders-aside a {
	display: block; padding: 14px 24px; font-size: 16px; line-height: normal; font-weight: 500; color: #000;
	text-decoration: none; transition: background-color var(--gm-dur-fast, .15s) ease, color var(--gm-dur-fast, .15s) ease;
}
.gm-orders-aside a:hover { background: var(--gm-color-bg-subtle); }
.gm-orders-aside a.is-current { background: #fff4e8; font-weight: 700; color: #ff7a00; }
.gm-orders-aside a:focus-visible { outline: none; box-shadow: inset var(--gm-focus-ring); }

.gm-orders__content { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 32px; }
.gm-orders__filters { display: flex; flex-direction: column; gap: 23px; }

/* Filter tabs: 3px grey rule, 3px orange under the active tab (559:11326) */
.gm-otabs ul { position: relative; display: flex; align-items: flex-end; gap: 20px; margin: 0; padding: 0; list-style: none; box-shadow: inset 0 -3px 0 #d5d9dc; overflow-x: auto; scrollbar-width: none; }
.gm-otabs ul::-webkit-scrollbar { display: none; }
.gm-otabs a {
	display: block; padding: 10px 10px 3px; border-bottom: 3px solid transparent;
	font-size: 20px; line-height: 28px; font-weight: 600; color: var(--gm-color-text-secondary); white-space: nowrap; text-decoration: none;
	transition: color var(--gm-dur-fast, .15s) ease, border-color var(--gm-dur, .25s) ease;
}
.gm-otabs a:hover { color: #b45300; }
.gm-otabs a.is-current { color: #b45300; border-bottom-color: #ff7a00; }
/* Sliding underline (gm-orders.js): one bar that glides between tabs; the per-tab border is the no-JS fallback. */
.gm-otabs.has-ink a.is-current { border-bottom-color: transparent; }
.gm-otabs__ink {
	position: absolute; left: 0; bottom: 0; width: 1px; height: 3px; border-radius: 3px 3px 0 0; background: #ff7a00;
	transform-origin: 0 0; pointer-events: none;
	transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}
.gm-otabs__ink.is-instant { transition: none; }
.gm-otabs a:focus-visible { outline: none; box-shadow: var(--gm-focus-ring); border-radius: var(--gm-radius-sm); }

/* Search (559:11329) */
.gm-osearch {
	display: flex; align-items: center; gap: 10px; height: 61px; margin: 0; padding: 0 18px;
	background: var(--gm-color-bg-surface); border: 1px solid var(--gm-color-border-default); border-radius: var(--gm-radius-lg);
	transition: border-color var(--gm-dur, .25s) ease, box-shadow var(--gm-dur, .25s) ease;
}
.gm-osearch:hover { border-color: var(--gm-color-border-strong); }
.gm-osearch:focus-within { border-color: var(--gm-color-border-focus); box-shadow: var(--gm-focus-ring); }
.gm-osearch input {
	flex: 1; min-width: 0; height: 28px; margin: 0; padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none;
	font-family: var(--gm-font-sans); font-size: 18px; line-height: 28px; color: var(--gm-color-text-primary);
}
.gm-osearch input::placeholder { color: var(--gm-color-text-secondary); opacity: 1; }

/* Main panel and order rows (559:11330 / 559:11332) */
.gm-orders__main { overflow: hidden; background: var(--gm-color-bg-surface); border-radius: var(--gm-radius-md); }
.gm-orders__main:has(.gm-oempty) { padding-top: 32px; }
.gm-olist { margin: 0; padding: 0; list-style: none; }
.gm-order {
	display: flex; align-items: center; gap: 20px;
	width: 100%; padding: 24px 62px 24px 30px; /* Rule spans the panel; buttons end 62px from its edge (Figma 994:25847). */
	border-bottom: 1px solid #e8ebed;
}
.gm-order__info { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 20px; }
.gm-order__id { display: flex; flex-direction: column; gap: 4px; }
.gm-order__title { margin: 0; font-size: 20px; line-height: normal; font-weight: 700; color: #000; }
.gm-order__sub { font-size: 14px; line-height: normal; font-weight: 500; color: #62676c; white-space: pre-wrap; }
.gm-order__rows { display: flex; flex-direction: column; gap: 10px; max-width: 537px; margin: 0; font-size: 14px; line-height: normal; }
.gm-order__rows > div { display: flex; gap: 16px; }
.gm-order__rows dt { width: 150px; flex: none; font-weight: 500; color: #62676c; }
.gm-order__rows dd { flex: 1; min-width: 0; margin: 0; font-weight: 500; color: #000; }
.gm-order__status, .gm-order__total { font-weight: 700 !important; }
.gm-order__status.is-warning { color: #b54708; }
.gm-order__status.is-info    { color: #0858ce; }
.gm-order__status.is-danger  { color: var(--gm-color-text-danger, #9b1c1c); }
.gm-order__status.is-success { color: #067647; }
.gm-order__status.is-neutral { color: #0a0a0a; }
.gm-order__items { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 4px 0 0; list-style: none; }
.gm-order__item { display: flex; align-items: center; gap: 16px; }
.gm-order__thumb { display: block; width: 64px; height: 64px; flex: none; overflow: hidden; background: #f0f2f4; border-radius: 6px; }
.gm-order__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gm-order__itext { display: flex; min-width: 0; flex-direction: column; gap: 3px; font-weight: 500; line-height: normal; }
.gm-order__iname { font-size: 16px; color: #000; text-decoration: none; }
a.gm-order__iname:hover { color: var(--gm-color-action-primary-default); }
.gm-order__imeta { font-size: 14px; color: #62676c; white-space: pre-wrap; }
/* The customer's own review on the order card */
.gm-order__actions { display: flex; flex-direction: column; gap: 12px; width: 242px; flex: none; }
/* Reviewed order: full-width review card under the details, buttons at the top (Figma 1037:18149). */
.gm-order:has(.gm-order__reviews) { flex-wrap: wrap; align-items: flex-start; }
.gm-order__reviews { display: flex; flex: 0 0 calc(100% + 32px); flex-direction: column; gap: 16px; margin-right: -32px; }
.gm-oreview { display: flex; flex-direction: column; gap: 16px; padding: 20px; border: 1px solid var(--gm-color-border-default, #d5d9dc); border-radius: var(--gm-radius-sm, 8px); text-align: left; }
.gm-oreview__head { display: flex; flex-direction: column; gap: 8px; }
.gm-oreview__label { margin: 0; font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -.2px; color: #000; }
.gm-oreview__stars { display: flex; margin: 0; }
.gm-oreview__star { display: grid; place-items: center; width: 44px; height: 44px; }
.gm-oreview__star svg { display: block; fill: #d5d9dc; }
.gm-oreview__star.is-on svg { fill: #d96500; }
.gm-oreview__rec { margin: 0; font-size: 16px; line-height: 24px; font-weight: 700; color: #000; }
.gm-oreview__text { margin: 0; font-size: 16px; line-height: 24px; color: var(--gm-color-text-secondary, #454a4f); white-space: pre-line; overflow-wrap: anywhere; }
.gm-oreview__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding-top: 8px; font-size: 16px; line-height: 24px; color: var(--gm-color-text-secondary, #454a4f); }
.gm-oreview__dot { width: 6px; height: 6px; border-radius: 50%; background: #bebebe; }
.gm-order { transition: opacity .3s ease, transform .3s ease; }
.gm-order.is-leaving { opacity: 0; transform: translateX(12px); }
.gm-order[hidden], .gm-oempty[hidden], .gm-olist__more[hidden], .gm-obtn[hidden] { display: none; }
.gm-order.is-in { animation: gm-order-in .3s var(--gm-ease, ease) both; }
@keyframes gm-order-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Order buttons (Button/Ghost 44px; navy filled = main action) */
.gm-obtn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--gm-spacing-sm);
	height: 44px; padding: 0 var(--gm-spacing-md);
	background: transparent; border: 1px solid var(--gm-color-border-strong); border-radius: var(--gm-radius-md);
	font-family: var(--gm-font-sans); font-size: 16px; line-height: 24px; font-weight: 600; color: var(--gm-color-text-primary);
	text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color var(--gm-dur-fast, .15s) ease, border-color var(--gm-dur-fast, .15s) ease, color var(--gm-dur-fast, .15s) ease;
}
.gm-obtn:hover { background: var(--gm-color-bg-subtle); border-color: var(--gm-color-text-secondary); color: var(--gm-color-text-primary); }
.gm-obtn--primary { background: var(--gm-color-bg-inverse); border-color: var(--gm-color-bg-inverse); color: var(--gm-color-text-inverse); }
.gm-obtn--primary:hover { background: #172a3d; border-color: #172a3d; color: #fff; }
.gm-obtn--primary-orange { background: var(--gm-color-action-primary-default); border-color: var(--gm-color-action-primary-default); color: var(--gm-color-text-primary); }
.gm-obtn--primary-orange:hover { background: #f06f00; border-color: #f06f00; color: var(--gm-color-text-primary); }
.gm-obtn:focus-visible { outline: none; box-shadow: var(--gm-focus-ring); }
.gm-olist__more { display: flex; justify-content: center; padding: 24px 30px 32px; }

/* No orders yet (Figma 988:25370): text on the left, the box illustration on a peach panel. */
.gm-orders:has(.gm-onone) { padding-bottom: 109px; } /* Figma 988:25341 is 604px tall. */
.gm-onone { position: relative; display: flex; align-items: center; min-height: 415px; overflow: hidden; background: var(--gm-color-bg-surface); border-radius: var(--gm-radius-lg); }
.gm-onone__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; width: 520px; max-width: calc(100% - 120px); margin-left: 60px; }
.gm-onone__text { display: flex; flex-direction: column; gap: 14px; }
.gm-onone__title { margin: 0; font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -.2px; color: #000; }
.gm-onone__lead { margin: 0; font-size: 16px; line-height: 24px; font-weight: 500; color: #62676c; }
.gm-onone__btn {
	display: inline-flex; align-items: center; justify-content: center; width: 253px; height: 56px; padding: 0 var(--gm-spacing-lg);
	border: 1px solid #0a0a0a; border-radius: var(--gm-radius-md); background: #0d1b2a;
	font-size: 16px; line-height: 24px; font-weight: 600; color: #fff; text-decoration: none;
	transition: background-color var(--gm-dur-fast, .15s) ease, transform var(--gm-dur-fast, .15s) ease;
}
.gm-onone__btn:hover { background: #172a3d; color: #fff; }
.gm-onone__btn:focus-visible { outline: none; box-shadow: var(--gm-focus-ring); }
.gm-onone__art { position: absolute; top: 0; right: 0; width: 602px; height: 100%; background: var(--gm-color-bg-brand-subtle, #fff4e8); }
.gm-onone__box { position: absolute; left: calc(50% + .5px); top: 50%; width: 333px; height: 333px; transform: translate(-50%, -50%); }
.gm-onone__shadow { position: absolute; left: 196.5px; top: calc(50% + 49.5px); width: 227px; height: 71px; }

/* Empty states (559:11496, 559:11507) */
.gm-oempty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px 30px 56px; text-align: center; }
.gm-oempty__ic { width: 56px; height: 56px; background: #f0f2f4; border-radius: 12px; }
.gm-oempty__title { font-size: 20px; line-height: normal; font-weight: 700; color: #000; }
.gm-oempty__text { max-width: 520px; font-size: 16px; line-height: 24px; color: #62676c; }
.gm-oempty__actions { display: flex; gap: 12px; padding-top: 6px; }
.gm-oempty .gm-obtn { height: 48px; padding: 0 var(--gm-spacing-lg); }
.gm-obtn--browse { min-width: 253px; }
.gm-obtn--clear { min-width: 132px; }
.gm-obtn--all { min-width: 156px; border-color: var(--gm-color-border-strong); }

@media (max-width: 1100px) {
	.gm-orders { padding: 40px 0 56px; }
	.gm-orders__in { flex-direction: column; gap: 20px; }
	.gm-orders-aside { width: 100%; }
	.gm-orders-aside ul { display: flex; overflow-x: auto; scrollbar-width: none; }
	.gm-orders-aside li { flex: none; }
	.gm-orders__content { width: 100%; }
}
@media (max-width: 768px) {
	.gm-orders__main { min-height: 0; padding-top: 8px; }
	.gm-order { flex-direction: column; align-items: stretch; width: 100%; padding: 20px; }
	.gm-order__actions { width: 100%; }
	.gm-order__reviews { flex-basis: 100%; margin-right: 0; order: 2; }
	.gm-oreview__label { font-size: 20px; line-height: 28px; }
	.gm-oreview__star { width: 36px; height: 36px; }
	.gm-oreview__star svg { width: 28px; height: 28px; }
	.gm-order__rows > div { flex-direction: column; gap: 2px; }
	.gm-order__rows dt { width: auto; }
	.gm-otabs a { font-size: 18px; }
	.gm-osearch input { font-size: 16px; }
	.gm-oempty__actions { flex-direction: column; width: 100%; }
	.gm-onone { flex-direction: column; align-items: stretch; min-height: 0; }
	.gm-onone__copy { order: 2; width: auto; max-width: none; margin: 0; padding: 28px 20px 32px; }
	.gm-onone__art { position: relative; width: 100%; height: 260px; }
	.gm-onone__box { width: 220px; height: 220px; }
	.gm-onone__shadow { left: calc(50% - 88px); top: calc(50% + 32px); width: 150px; height: 47px; }
	.gm-onone__btn { width: 100%; }
}
@media (min-width: 769px) and (max-width: 1100px) {
	.gm-onone__art { width: 45%; }
	.gm-onone__copy { width: 48%; margin-left: 40px; }
	.gm-onone__shadow { left: calc(50% - 113px); }
}

@media (prefers-reduced-motion: reduce) { .gm-order, .gm-otabs__ink { transition: none; } .gm-order.is-in { animation: none; } }

/* =========================================================================
   Favorite (Figma 559:22564 / card 559:23580)
   ========================================================================= */
.gm-favs { padding: 80px 0; background: var(--gm-color-bg-subtle); }
.gm-favs__in { display: flex; flex-direction: column; gap: 32px; }
.gm-favs__count { font-size: 18px; line-height: 28px; font-weight: 400; color: #62676c; }
.gm-favs__grid { display: grid; grid-template-columns: repeat(auto-fill, 300px); gap: 32px; margin: 0; padding: 0; list-style: none; }
.gm-favs__grid[hidden], .gm-favs__empty[hidden] { display: none; }
.gm-favs__empty { min-height: 0; padding-top: 32px; }
.gm-fav {
	display: flex; flex-direction: column; align-items: center; gap: 8px; /* Content height (QA-036 UI): the Figma 447px min-height was sized for the demo rating row. */
	background: var(--gm-color-bg-surface); border-radius: var(--gm-radius-md);
	filter: drop-shadow(0 2px 2px rgba(17, 15, 21, .05));
	transition: transform var(--gm-dur, .25s) var(--gm-ease, ease), opacity var(--gm-dur, .25s) ease, filter var(--gm-dur, .25s) ease;
}
.gm-fav:hover { transform: translateY(-4px); filter: drop-shadow(0 10px 18px rgba(17, 15, 21, .08)); }
.gm-fav.is-removing { opacity: 0; transform: scale(.96); }
.gm-fav__media { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 200px; padding: 18px 18px 0; }
.gm-fav__img { display: flex; align-items: flex-start; width: 150px; height: 150px; padding: 0 14.063px; overflow: hidden; }
.gm-fav__img img { width: 120.85px; height: 150px; max-width: none; object-fit: cover; transition: transform .4s var(--gm-ease, ease); }
.gm-fav:hover .gm-fav__img img { transform: scale(1.04); }
.gm-fav__save {
	position: absolute; left: 242px; top: 14px; width: 44px; height: 44px; padding: 10px;
	border: 0; border-radius: var(--gm-radius-sm); background: var(--gm-color-bg-brand-subtle); cursor: pointer;
	transition: transform var(--gm-dur-fast, .15s) var(--gm-ease, ease), background-color var(--gm-dur-fast, .15s) ease;
}
.gm-fav__save img { display: block; }
.gm-fav__save:hover { background: #ffe8cf; transform: scale(1.06); }
.gm-fav__save:active { transform: scale(.94); }
.gm-fav__save:focus-visible { outline: none; box-shadow: var(--gm-focus-ring); }
.gm-fav__body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 24px; width: 100%; padding: 0 18px 24px; } /* Fills the row's tallest card... */
.gm-fav__info { display: flex; flex-direction: column; gap: 14px; }
.gm-fav__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; line-height: 28px; font-weight: 700; color: var(--gm-color-text-primary); text-decoration: none; }
.gm-fav__title:hover { color: var(--gm-color-action-secondary-default); }
.gm-fav__rating { display: flex; align-items: center; height: 18px; font-size: 12px; line-height: 16px; color: #110f15; }
.gm-fav__stars { display: flex; }
.gm-fav__stars img { display: block; width: 14px; height: 14px; }
.gm-fav__score { padding: 2px 0 0 4px; font-weight: 700; }
.gm-fav__reviews { padding-left: 4px; font-weight: 400; }
.gm-fav .gm-pcard__label, .gm-fav .gm-pcard__was { white-space: normal; } /* Longer price text wraps inside the card instead of overflowing. */
.gm-fav__cart { width: 100%; margin-top: auto; } /* ...so every button sits on the same line in a row. */
/* Unavailable product: outlined, same size as the orange button (the inset border adds no height). */
.gm-fav__cart--outline {
	background: var(--gm-color-bg-surface, #fff); color: var(--gm-color-text-primary, #0a0a0a);
	box-shadow: inset 0 0 0 1.5px #cfd4d9;
	transition: background-color var(--gm-dur-fast, .15s) ease, box-shadow var(--gm-dur-fast, .15s) ease;
}
.gm-fav__cart--outline:hover { background: #f4f5f6; color: var(--gm-color-text-primary, #0a0a0a); box-shadow: inset 0 0 0 1.5px #9aa1a8; }
.gm-fav__cart--outline:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px #9aa1a8, var(--gm-focus-ring); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.gm-account-hero { padding: 48px 0 32px; }
	.gm-account-hero__title { font-size: 32px; line-height: 40px; letter-spacing: -.4px; }
	.gm-profile, .gm-account-body { padding: 40px 0 56px; }
}
@media (max-width: 900px) {
	.gm-profile__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.gm-pcard-box { min-height: 0; }
}
@media (max-width: 700px) {
	.gm-favs { padding: 40px 0 56px; }
	.gm-favs__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.gm-fav__save { left: auto; right: 14px; }
	.gm-fav__body { gap: 20px; padding-bottom: 20px; } /* QA-036 UI: a little tighter on phones. */
}
@media (max-width: 600px) {
	.gm-account-hero__intro { font-size: 16px; line-height: 24px; }
	.gm-account-tabs { overflow-x: auto; scrollbar-width: none; }
	.gm-account-tabs li { width: auto; margin-right: 12px; }
	.gm-pcard-box { padding: 20px; }
	.gm-pcard-box__body { gap: 20px; }
	.gm-modal { padding: 16px; }
	.gm-modal__card { padding: 24px 20px; }
	.gm-modal__close { top: 16px; right: 12px; }
	.gm-modal__row { grid-template-columns: 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.gm-modal__card, .gm-toast, .gm-toggle__track, .gm-toggle__track::after, .gm-account-tabs a::after { transition: none; }
}

/* QA-036: real product photos are square; show the whole phone in the card's image box. */
.gm-fav__img--product img { object-fit: contain; }
