/* GMF Commerce — checkout auth modal (aligned with storefront --gmf-* tokens) */
.gmf-commerce-modal {
	--gmf-modal-accent: var(--gmf-purple, #82b424);
	--gmf-modal-accent-hover: #5a3d74;
	--gmf-modal-surface: #fff;
	--gmf-modal-border: #e5e7eb;
	--gmf-modal-muted: var(--gmf-muted, #6b7280);
	--gmf-modal-text: var(--gmf-text, #1a1a1a);
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
	font-family: "Open Sans", system-ui, -apple-system, sans-serif;
}

.gmf-commerce-modal[hidden] {
	display: none !important;
}

.gmf-commerce-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(6px);
}

@media (prefers-reduced-motion: reduce) {
	.gmf-commerce-modal__backdrop {
		backdrop-filter: none;
	}
}

.gmf-commerce-modal__panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 440px;
	max-height: min(90vh, 720px);
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	background: var(--gmf-modal-surface);
	border-radius: 12px;
	padding: 2.75rem 1.75rem 1.75rem;
	box-shadow:
		0 0 0 1px rgba(15, 23, 42, 0.06),
		0 24px 48px rgba(15, 23, 42, 0.14);
}

.gmf-commerce-modal__close {
	position: absolute;
	top: 0.65rem;
	right: 0.65rem;
	width: 2.25rem;
	height: 2.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 8px;
	background: transparent;
	font-size: 1.5rem;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	color: var(--gmf-modal-muted);
	transition: background 0.15s ease, color 0.15s ease;
}

.gmf-commerce-modal__close:hover {
	background: #f3f4f6;
	color: var(--gmf-modal-text);
}

.gmf-commerce-modal__close:focus-visible {
	outline: 2px solid var(--gmf-modal-accent);
	outline-offset: 2px;
}

.gmf-commerce-modal__tabs {
	display: flex;
	gap: 0;
	margin: 0 0 1.35rem;
	padding: 4px;
	background: #f3f4f6;
	border-radius: 10px;
	border: 1px solid var(--gmf-modal-border);
}

.gmf-commerce-modal__tab {
	flex: 1;
	padding: 0.6rem 0.65rem;
	border: 0;
	background: transparent;
	cursor: pointer;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--gmf-modal-muted);
	border-radius: 8px;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.gmf-commerce-modal__tab:hover:not(.is-active) {
	color: var(--gmf-modal-text);
	background: rgba(255, 255, 255, 0.7);
}

.gmf-commerce-modal__tab.is-active {
	background: var(--gmf-modal-surface);
	color: var(--gmf-modal-accent);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.gmf-commerce-modal__tab:focus-visible {
	outline: 2px solid var(--gmf-modal-accent);
	outline-offset: 2px;
}

.gmf-commerce-modal__pane--hidden {
	display: none !important;
}

.gmf-commerce-modal__field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-bottom: 1rem;
	font-size: 0.875rem;
	color: var(--gmf-modal-text);
}

.gmf-commerce-modal__field > span {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #374151;
	letter-spacing: 0.01em;
}

.gmf-commerce-modal__field input,
.gmf-commerce-modal__field select,
.gmf-commerce-modal__field .gmf-commerce-modal__field-select {
	margin: 0;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--gmf-modal-border);
	border-radius: 8px;
	font: inherit;
	font-size: 0.9375rem;
	color: var(--gmf-modal-text);
	background: #fff;
	box-sizing: border-box;
	width: 100%;
	min-height: 2.75rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gmf-commerce-modal__field select,
.gmf-commerce-modal__field .gmf-commerce-modal__field-select {
	cursor: pointer;
	appearance: auto;
}

.gmf-commerce-modal__field input:hover,
.gmf-commerce-modal__field select:hover,
.gmf-commerce-modal__field .gmf-commerce-modal__field-select:hover {
	border-color: #d1d5db;
}

.gmf-commerce-modal__field input:focus,
.gmf-commerce-modal__field select:focus,
.gmf-commerce-modal__field .gmf-commerce-modal__field-select:focus {
	outline: none;
	border-color: var(--gmf-modal-accent);
	box-shadow: 0 0 0 3px rgba(130, 180, 36, 0.18);
}

.gmf-commerce-modal__field input::placeholder {
	color: #9ca3af;
}

/* Keep autofill from breaking visual consistency (yellow/blue browser defaults) */
.gmf-commerce-modal__field input:-webkit-autofill,
.gmf-commerce-modal__field input:-webkit-autofill:hover,
.gmf-commerce-modal__field input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--gmf-modal-text);
	-webkit-box-shadow: 0 0 0 1000px #fff inset;
	box-shadow: 0 0 0 1000px #fff inset;
	transition: background-color 99999s ease-out 0s;
}

.gmf-commerce-modal__check {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1.15rem;
	font-size: 0.875rem;
	color: #4b5563;
	line-height: 1.4;
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
}

.gmf-commerce-modal__check input[type="checkbox"] {
	width: 1.05rem;
	height: 1.05rem;
	margin: 0;
	flex-shrink: 0;
	accent-color: var(--gmf-modal-accent);
	cursor: pointer;
	border-radius: 4px;
}

.gmf-commerce-modal .gmf-commerce-modal__submit {
	width: 100%;
	margin-top: 0.25rem;
	padding: 0.8rem 1rem;
	border: 0;
	border-radius: 8px;
	background: var(--gmf-modal-accent);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
}

.gmf-commerce-modal .gmf-commerce-modal__submit:hover {
	background: var(--gmf-modal-accent-hover);
}

.gmf-commerce-modal .gmf-commerce-modal__submit:active {
	transform: scale(0.99);
}

.gmf-commerce-modal .gmf-commerce-modal__submit:focus-visible {
	outline: 2px solid var(--gmf-modal-accent);
	outline-offset: 2px;
}

.gmf-commerce-modal__msg {
	margin: 0 0 1rem;
	padding: 0.65rem 0.85rem;
	font-size: 0.875rem;
	line-height: 1.45;
	color: #b91c1c;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	box-sizing: border-box;
}

.gmf-commerce-modal__msg--success {
	color: #166534;
	background: #f0fdf4;
	border-color: #bbf7d0;
}

.gmf-commerce-modal__aux {
	margin: -0.35rem 0 0.85rem;
	text-align: right;
}

.gmf-commerce-modal__aux--center {
	text-align: center;
	margin-top: 0.75rem;
	margin-bottom: 0;
}

.gmf-commerce-modal__text-btn {
	display: inline;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--gmf-modal-accent, #82b424);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.gmf-commerce-modal__text-btn:hover {
	color: #5a3d74;
}

.gmf-commerce-modal__msg:empty,
.gmf-commerce-modal__msg[hidden] {
	display: none !important;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
}

.gmf-commerce-modal__signup-hint {
	margin: 0 0 1rem;
	padding: 0.75rem 0.85rem;
	font-size: 0.8125rem;
	color: #4b5563;
	line-height: 1.5;
	background: #f9fafb;
	border: 1px solid var(--gmf-modal-border);
	border-radius: 8px;
}

.gmf-commerce-modal__textarea {
	width: 100%;
	min-height: 4.5rem;
	margin: 0;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--gmf-modal-border);
	border-radius: 8px;
	font: inherit;
	font-size: 0.9375rem;
	color: var(--gmf-modal-text);
	background: #fff;
	resize: vertical;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gmf-commerce-modal__textarea:hover {
	border-color: #d1d5db;
}

.gmf-commerce-modal__textarea:focus {
	outline: none;
	border-color: var(--gmf-modal-accent);
	box-shadow: 0 0 0 3px rgba(130, 180, 36, 0.18);
}

/* Checkout page — aligns with theme cart (gmf-cart__*); main uses .gmf-cart-page + .gmf-checkout-page */
.gmf-checkout-page__lede {
	margin: -12px 0 24px;
	max-width: 42rem;
	font-size: 16px;
	line-height: 1.55;
	color: var(--gmf-muted, #6b7280);
}

.gmf-checkout__account-note {
	margin: 0 0 16px;
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--gmf-text, #1f2937);
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: var(--gmf-radius, 8px);
}

.gmf-checkout__account-note strong {
	font-weight: 700;
}

.gmf-checkout__account-note--guest {
	background: #fffbeb;
	border-color: #fcd34d;
	color: var(--gmf-text, #1f2937);
}

.gmf-checkout__qty-readonly {
	display: inline-block;
	min-width: 40px;
	text-align: center;
	font-weight: 600;
	font-size: 15px;
	padding: 8px 14px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: var(--gmf-radius, 8px);
}

.gmf-checkout-page .gmf-cart__cell--qty {
	text-align: center;
}

.gmf-cart__summary .gmf-checkout__pay {
	width: 100%;
	margin-top: 0;
	text-align: center;
}

.gmf-checkout__stripe-note {
	margin: 12px 0 0;
	font-size: 12px;
	color: var(--gmf-muted, #6b7280);
	text-align: center;
	line-height: 1.4;
}

.gmf-checkout__payment-choice {
	margin: 0 0 16px;
	padding: 14px 14px 12px;
	border: 1px solid #e5e7eb;
	border-radius: var(--gmf-radius, 8px);
	background: #fafafa;
}

.gmf-checkout__payment-choice__legend {
	padding: 0;
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	color: var(--gmf-text, #1f2937);
}

.gmf-checkout__payment-choice__opt {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--gmf-text, #1f2937);
	cursor: pointer;
}

.gmf-checkout__payment-choice__opt:last-child {
	margin-bottom: 0;
}

.gmf-checkout__payment-choice__opt input {
	margin-top: 3px;
	flex-shrink: 0;
}

.gmf-checkout__pay-note {
	margin: 12px 0 0;
	font-size: 12px;
	color: var(--gmf-muted, #6b7280);
	text-align: center;
	line-height: 1.45;
}

.gmf-checkout__pay-note--cod {
	color: #4b5563;
}

/* Checkout order-summary aside (mini lines + totals) */
.gmf-checkout__summary-aside {
	position: sticky;
	top: 1rem;
	align-self: start;
}

.gmf-checkout__summary-inner {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.gmf-checkout__user-badge {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e5e7eb;
}

.gmf-checkout__user-badge-avatar {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
	color: #4c1d95;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-transform: uppercase;
}

.gmf-checkout__user-badge-name {
	font-size: 15px;
	font-weight: 600;
	color: var(--gmf-text, #1f2937);
	line-height: 1.35;
}

.gmf-checkout__summary-heading {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--gmf-muted, #6b7280);
}

.gmf-checkout__summary-lines {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 4px;
}

.gmf-checkout__summary-line {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.gmf-checkout__summary-line-media {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 6px;
	overflow: hidden;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
}

.gmf-checkout__summary-thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gmf-checkout__summary-thumb--ph {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(145deg, #e5e7eb 0%, #f3f4f6 100%);
}

.gmf-checkout__summary-line-body {
	flex: 1;
	min-width: 0;
}

.gmf-checkout__summary-line-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--gmf-text, #1f2937);
	line-height: 1.35;
	margin: 0 0 4px;
	overflow-wrap: break-word;
}

.gmf-checkout__summary-line-meta {
	font-size: 13px;
	color: var(--gmf-muted, #6b7280);
	line-height: 1.4;
}

.gmf-checkout__summary-line-total {
	flex-shrink: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--gmf-text, #1f2937);
	white-space: nowrap;
	padding-left: 4px;
}

.gmf-checkout__summary-divider {
	height: 1px;
	background: #e5e7eb;
	margin: 16px 0 12px;
}

.gmf-checkout__summary-dl {
	margin: 0;
	padding: 0;
}

.gmf-checkout__summary-dl-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin: 0 0 8px;
	font-size: 14px;
}

.gmf-checkout__summary-dl-row dt {
	margin: 0;
	font-weight: 500;
	color: var(--gmf-muted, #6b7280);
}

.gmf-checkout__summary-dl-row dd {
	margin: 0;
	font-weight: 600;
	color: var(--gmf-text, #1f2937);
	text-align: right;
}

.gmf-checkout__summary-dl-row--total {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #e5e7eb;
	margin-bottom: 0;
	font-size: 16px;
}

.gmf-checkout__summary-dl-row--total dt {
	font-weight: 700;
	color: var(--gmf-text, #1f2937);
}

.gmf-checkout__summary-dl-row--total dd {
	font-weight: 700;
}

.gmf-checkout__summary-inner .gmf-cart__actions {
	margin-top: 20px;
	margin-bottom: 0;
}

.gmf-checkout-root .gmf-cart__empty .gmf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 8px;
}

/* ——— My account (storefront) ——— */
.gmf-account-page__container {
	max-width: 1100px;
	margin: 0 auto;
	padding-bottom: 3rem;
}

.gmf-account-page__page-head {
	margin-bottom: 1.75rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid #e2e8f0;
}

.gmf-account-page__title {
	margin: 0 0 0.35rem;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 600;
	color: #0f172a;
}

.gmf-account-page__lede {
	margin: 0;
	font-size: 1rem;
	color: #64748b;
	max-width: 42rem;
	line-height: 1.5;
}

.gmf-account-guest {
	display: flex;
	justify-content: center;
	padding: 2rem 0;
}

.gmf-account-guest__card {
	width: 100%;
	max-width: 440px;
	padding: 2rem 2.25rem;
	text-align: center;
	background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.gmf-account-guest__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 1.25rem;
	color: #0f172a;
	background: #f1f5f9;
	border-radius: 50%;
}

.gmf-account-guest__title {
	margin: 0 0 0.5rem;
	font-size: 1.35rem;
	font-weight: 600;
	color: #0f172a;
}

.gmf-account-guest__text {
	margin: 0 0 1.5rem;
	font-size: 0.95rem;
	color: #64748b;
	line-height: 1.55;
}

.gmf-account-guest__cta {
	width: 100%;
	justify-content: center;
}

.gmf-account-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.25rem;
}

.gmf-account-tabs__btn {
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	padding: 0.45rem 1rem;
	border-radius: 999px;
	border: 1px solid #e2e8f0;
	background: #fff;
	color: #334155;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.gmf-account-tabs__btn:hover {
	border-color: #cbd5e1;
	color: #0f172a;
}

.gmf-account-tabs__btn.is-active {
	background: #0f172a;
	border-color: #0f172a;
	color: #f8fafc;
}

.gmf-account-tabpanel--hidden {
	display: none !important;
}

.gmf-account-invoice-pdf {
	white-space: nowrap;
	font-size: 0.8125rem;
	padding: 0.35rem 0.75rem;
}

.gmf-account-dashboard__hero {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	margin-bottom: 1.75rem;
	padding: 1.25rem 1.5rem;
	background: #0f172a;
	color: #f8fafc;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(15, 23, 42, 0.2);
}

.gmf-account-dashboard__hero-main {
	display: flex;
	align-items: center;
	gap: 1rem 1.25rem;
}

.gmf-account-avatar {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1.1rem;
	letter-spacing: 0.02em;
	color: #0f172a;
	background: #c9a227;
	border-radius: 50%;
}

.gmf-account-dashboard__eyebrow {
	margin: 0 0 0.2rem;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	opacity: 0.85;
}

.gmf-account-dashboard__name {
	margin: 0 0 0.15rem;
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.25;
}

.gmf-account-dashboard__email {
	margin: 0;
	font-size: 0.9rem;
	opacity: 0.88;
}

.gmf-account-dashboard__logout.gmf-btn--outline {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #0f172a;
	background: #fff;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.gmf-account-dashboard__logout.gmf-btn--outline:hover {
	background: #f1f5f9;
	border-color: #fff;
}

.gmf-account-dashboard__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 900px) {
	.gmf-account-dashboard__grid {
		grid-template-columns: 1fr 1.05fr;
		align-items: start;
	}
}

.gmf-account-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1.35rem 1.5rem 1.5rem;
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}

.gmf-account-card__head {
	margin-bottom: 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #f1f5f9;
}

.gmf-account-card__title {
	margin: 0 0 0.35rem;
	font-size: 1.1rem;
	font-weight: 600;
	color: #0f172a;
}

.gmf-account-card__desc {
	margin: 0;
	font-size: 0.875rem;
	color: #64748b;
	line-height: 1.5;
}

.gmf-account-profile-form__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem 1rem;
}

@media (min-width: 560px) {
	.gmf-account-field-row {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
	}

	.gmf-account-profile-form__grid {
		grid-template-columns: 1fr 1fr;
	}

	.gmf-account-field--full {
		grid-column: 1 / -1;
	}
}

.gmf-account-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.gmf-account-field__label {
	font-size: 0.8rem;
	font-weight: 600;
	color: #475569;
}

.gmf-account-field__input,
.gmf-account-field__textarea,
select.gmf-account-field__input {
	width: 100%;
	padding: 0.55rem 0.7rem;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font: inherit;
	font-size: 0.95rem;
	color: #0f172a;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select.gmf-account-field__input {
	min-height: 2.5rem;
	cursor: pointer;
	appearance: auto;
}

.gmf-account-field__input:focus,
.gmf-account-field__textarea:focus,
select.gmf-account-field__input:focus {
	outline: none;
	border-color: #c9a227;
	box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.gmf-account-field__input--readonly {
	background: #f8fafc;
	color: #64748b;
	cursor: default;
}

.gmf-account-field__hint {
	font-size: 0.75rem;
	color: #94a3b8;
	line-height: 1.35;
}

.gmf-account-field__textarea {
	min-height: 5rem;
	resize: vertical;
}

.gmf-account-profile-form__actions {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid #f1f5f9;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
}

.gmf-btn--primary.gmf-account-profile-form__submit {
	padding: 0.6rem 1.25rem;
	font-weight: 600;
	border: 0;
	border-radius: 8px;
	background: #c9a227;
	color: #1a1a1a;
	cursor: pointer;
}

.gmf-btn--primary.gmf-account-profile-form__submit:hover {
	filter: brightness(1.04);
}

.gmf-account-profile-form__submit.is-loading {
	opacity: 0.72;
	pointer-events: none;
}

.gmf-account-profile-form__status {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 500;
}

.gmf-account-profile-form__status.is-success {
	color: #15803d;
}

.gmf-account-profile-form__status.is-error {
	color: #b91c1c;
}

.gmf-account-table-wrap {
	overflow-x: auto;
	margin: 0 -0.25rem;
	padding: 0 0.25rem;
}

.gmf-account-page .gmf-account-orders {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	margin-top: 0;
	font-size: 0.875rem;
}

.gmf-account-page .gmf-account-orders th,
.gmf-account-page .gmf-account-orders td {
	border: 1px solid #e2e8f0;
	padding: 0.65rem 0.75rem;
	text-align: left;
	vertical-align: top;
}

.gmf-account-page .gmf-account-orders th {
	background: #f8fafc;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
}

.gmf-account-orders__id {
	font-weight: 600;
	color: #0f172a;
}

.gmf-account-badge {
	display: inline-block;
	padding: 0.2rem 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	border-radius: 6px;
	background: #f1f5f9;
	color: #334155;
	text-transform: capitalize;
}

.gmf-account-orders__lines {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gmf-account-page .gmf-account-orders__line {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.45rem;
}

.gmf-account-page .gmf-account-orders__line:last-child {
	margin-bottom: 0;
}

.gmf-account-page .gmf-account-orders__line-media {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 6px;
	overflow: hidden;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
}

.gmf-account-page .gmf-account-orders__thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gmf-account-page .gmf-account-orders__thumb--ph {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(145deg, #e2e8f0 0%, #f1f5f9 100%);
}

.gmf-account-page .gmf-account-orders__line-body {
	flex: 1;
	min-width: 0;
	line-height: 1.35;
}

.gmf-account-orders__qty {
	color: #64748b;
	font-weight: 500;
}

.gmf-account-orders__pieces {
	margin: 0.5rem 0 0;
	font-size: 0.75rem;
	color: #94a3b8;
}

.gmf-account-empty {
	padding: 2rem 1rem;
	text-align: center;
	background: #f8fafc;
	border-radius: 8px;
	border: 1px dashed #cbd5e1;
}

.gmf-account-empty__text {
	margin: 0;
	font-size: 0.95rem;
	color: #64748b;
}

.gmf-account-page__ajax-error {
	color: #b91c1c;
	font-size: 0.95rem;
}

/* Thank-you page (shortcode) */
.gmf-commerce-thankyou {
	--gmf-ty-accent: var(--gmf-purple, #82b424);
	--gmf-ty-text: var(--gmf-text, #1a1a1a);
	--gmf-ty-muted: var(--gmf-muted, #6b7280);
	margin: 0 auto 2.5rem;
	max-width: 640px;
	padding: 0 1rem;
	box-sizing: border-box;
	font-family: "Open Sans", system-ui, -apple-system, sans-serif;
}

.gmf-commerce-thankyou__inner {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 1.5rem;
}

.gmf-commerce-thankyou__hero {
	text-align: center;
	padding: 0.5rem 0 0.25rem;
}

.gmf-commerce-thankyou__icon {
	margin: 0 auto 1rem;
	color: #16a34a;
	display: flex;
	justify-content: center;
}

.gmf-commerce-thankyou__icon--pending {
	color: #d97706;
}

.gmf-commerce-thankyou__icon--denied {
	color: #dc2626;
}

.gmf-commerce-thankyou__eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gmf-ty-accent);
}

.gmf-commerce-thankyou__title {
	margin: 0 0 0.65rem;
	font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	font-size: clamp(1.85rem, 4vw, 2.35rem);
	font-weight: 600;
	line-height: 1.2;
	color: var(--gmf-ty-text);
}

.gmf-commerce-thankyou__lede {
	margin: 0 auto;
	max-width: 34rem;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--gmf-ty-muted);
}

.gmf-commerce-thankyou__card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
	overflow: hidden;
}

.gmf-commerce-thankyou__card-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem 1rem;
	padding: 1rem 1.25rem;
	background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
	border-bottom: 1px solid #e5e7eb;
}

.gmf-commerce-thankyou__card-head-main {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.5rem;
}

.gmf-commerce-thankyou__order-label {
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--gmf-ty-muted);
}

.gmf-commerce-thankyou__order-num {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--gmf-ty-text);
}

.gmf-commerce-thankyou__badge {
	display: inline-block;
	padding: 0.28rem 0.65rem;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.2;
	border-radius: 999px;
	text-transform: capitalize;
}

.gmf-commerce-thankyou__badge--paid {
	background: #dcfce7;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.gmf-commerce-thankyou__badge--pending {
	background: #fffbeb;
	color: #92400e;
	border: 1px solid #fde68a;
}

.gmf-commerce-thankyou__badge--muted {
	background: #f3f4f6;
	color: #4b5563;
	border: 1px solid #e5e7eb;
}

.gmf-commerce-thankyou__items {
	list-style: none;
	margin: 0;
	padding: 0.25rem 0 0;
}

.gmf-commerce-thankyou__item {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid #f3f4f6;
}

.gmf-commerce-thankyou__item:last-of-type {
	border-bottom: 0;
}

.gmf-commerce-thankyou__item-media {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	border-radius: 10px;
	overflow: hidden;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
}

.gmf-commerce-thankyou__thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gmf-commerce-thankyou__thumb--ph {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(145deg, #e5e7eb 0%, #f3f4f6 100%);
}

.gmf-commerce-thankyou__item-body {
	flex: 1;
	min-width: 0;
}

.gmf-commerce-thankyou__item-code {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--gmf-ty-muted);
	letter-spacing: 0.02em;
	margin-bottom: 0.15rem;
}

.gmf-commerce-thankyou__item-title {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--gmf-ty-text);
}

.gmf-commerce-thankyou__item-title a {
	color: var(--gmf-ty-accent);
	text-decoration: none;
}

.gmf-commerce-thankyou__item-title a:hover {
	text-decoration: underline;
}

.gmf-commerce-thankyou__item-meta {
	margin-top: 0.35rem;
	font-size: 0.8125rem;
	color: var(--gmf-ty-muted);
	line-height: 1.4;
}

.gmf-commerce-thankyou__item-total {
	flex-shrink: 0;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--gmf-ty-text);
	white-space: nowrap;
	padding-top: 0.15rem;
}

.gmf-commerce-thankyou__divider {
	height: 1px;
	background: #e5e7eb;
	margin: 0 1.25rem;
}

.gmf-commerce-thankyou__totals {
	margin: 0;
	padding: 1rem 1.25rem 1.25rem;
}

.gmf-commerce-thankyou__total-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
}

.gmf-commerce-thankyou__total-row dt {
	margin: 0;
	font-weight: 500;
	color: var(--gmf-ty-muted);
}

.gmf-commerce-thankyou__total-row dd {
	margin: 0;
	font-weight: 600;
	color: var(--gmf-ty-text);
}

.gmf-commerce-thankyou__total-row--grand {
	margin-top: 0.65rem;
	padding-top: 0.75rem;
	border-top: 1px solid #e5e7eb;
	margin-bottom: 0;
	font-size: 1.05rem;
}

.gmf-commerce-thankyou__total-row--grand dt {
	font-weight: 700;
	color: var(--gmf-ty-text);
}

.gmf-commerce-thankyou__total-row--grand dd {
	font-weight: 700;
}

.gmf-commerce-thankyou__actions {
	display: flex;
	justify-content: center;
	padding-top: 0.25rem;
}

.gmf-commerce-thankyou__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0 1.5rem;
	font-size: 0.9375rem;
	font-weight: 600;
	font-family: inherit;
	color: #fff;
	background: var(--gmf-ty-accent);
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.1s ease;
}

.gmf-commerce-thankyou__btn:hover {
	background: #5a3d74;
	color: #fff;
}

.gmf-commerce-thankyou__btn:active {
	transform: scale(0.99);
}

.gmf-commerce-thankyou__btn:focus-visible {
	outline: 2px solid var(--gmf-ty-accent);
	outline-offset: 2px;
}

/* Alternate states (no order / wrong account) */
.gmf-commerce-thankyou--state .gmf-commerce-thankyou__inner {
	align-items: center;
}

.gmf-commerce-thankyou__state-card {
	width: 100%;
	max-width: 420px;
	text-align: center;
	padding: 2rem 1.5rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

.gmf-commerce-thankyou--state .gmf-commerce-thankyou__icon {
	margin-bottom: 1.25rem;
}

.gmf-commerce-thankyou__state-title {
	margin: 0 0 0.65rem;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--gmf-ty-text);
	line-height: 1.3;
}

.gmf-commerce-thankyou__state-text {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--gmf-ty-muted);
}

.gmf-commerce-thankyou--denied .gmf-commerce-thankyou__state-card {
	border-color: #fecaca;
	background: #fffafa;
}

.gmf-commerce-modal__submit.is-loading,
.gmf-checkout__pay.is-loading {
	opacity: 0.72;
	pointer-events: none;
	position: relative;
	padding-inline-end: 2.25rem;
}

.gmf-checkout__pay.is-loading::after {
	content: "";
	position: absolute;
	right: 0.75rem;
	top: 50%;
	width: 1.1em;
	height: 1.1em;
	margin-top: -0.55em;
	border: 2px solid rgba( 0, 0, 0, 0.12 );
	border-top-color: rgba( 0, 0, 0, 0.55 );
	border-radius: 50%;
	animation: gmf-commerce-spin 0.7s linear infinite;
}

@keyframes gmf-commerce-spin {
	to {
		transform: rotate( 360deg );
	}
}

/* Legacy block kept minimal — summary copy now lives in .gmf-checkout__account-note */
.gmf-checkout__signed-in {
	font-size: 0.95rem;
	color: #334155;
	margin: 0 0 0.75rem;
}

#gmf-account-dynamic[aria-busy="true"] {
	opacity: 0.65;
	pointer-events: none;
	transition: opacity 0.2s ease;
}
