/* =========================================================================
   Premium My Account — Singair Mart  (.ac-* namespace)
   Matches the mockup: 3-col layout, stat cards, order table, rec slider.
   ========================================================================= */

:root {
	--ac-radius:     12px;
	--ac-radius-sm:  8px;
	--ac-shadow:     0 2px 14px rgba(17, 24, 39, .06);
	--ac-shadow-lg:  0 12px 40px rgba(17, 24, 39, .12);
	--ac-transition: .18s ease;
	--ac-border:     1px solid var(--singair-border, #e5e7eb);
	--ac-ink:        #111827;
	--ac-muted:      #6b7280;
	--ac-save:       #16a34a;
	--ac-line:       #eef0f3;
}

/* ── Page ──────────────────────────────────────────────────────────────── */
.ac-page { padding: 1.5rem 0 3rem; }

/* page.php renders a .singair-breadcrumb on every page — hide it on account pages
   since my-account.php renders its own premium breadcrumb. */
.woocommerce-account .singair-breadcrumb { display: none; }
/* WC default breadcrumb — also hide as fallback. */
.woocommerce-account .woocommerce-breadcrumb { display: none !important; }
/* Remove extra top-padding from singair-container on account pages
   (page.php's container already sets padding; ac-page adds its own). */
.woocommerce-account .singair-container > .ac-page { padding-top: 0; }

/* ── Premium breadcrumb ────────────────────────────────────────────────── */
.ac-breadcrumb { margin-bottom: 1.5rem; }
.ac-breadcrumb__list {
	display: flex; flex-wrap: wrap; align-items: center; gap: .25rem;
	list-style: none; margin: 0; padding: 0;
	font-size: .8125rem; color: var(--ac-muted);
}
.ac-breadcrumb__item a { color: inherit; text-decoration: none; }
.ac-breadcrumb__item a:hover { color: var(--singair-primary); }
.ac-breadcrumb__sep { opacity: .5; }

/* ══════════════════════════════════════════════════════════════════════════
   LAYOUT — sidebar / center / right
   ══════════════════════════════════════════════════════════════════════════ */
.ac-layout {
	display: grid;
	grid-template-columns: 240px 1fr 300px;
	align-items: start;
	gap: 1.5rem;
}
.ac-sidebar { position: sticky; top: 90px; }
.ac-main { min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.ac-right { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1.25rem; }

/* ── Card base ─────────────────────────────────────────────────────────── */
.ac-card {
	background: #fff;
	border: var(--ac-border);
	border-radius: var(--ac-radius);
	box-shadow: var(--ac-shadow);
}

/* ══════════════════════════════════════════════════════════════════════════
   LEFT SIDEBAR
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Profile card ── */
.ac-profile { padding: 1.5rem; text-align: center; border-bottom: var(--ac-border); }
.ac-profile__avatar-wrap { position: relative; display: inline-block; margin-bottom: .85rem; }
.ac-profile__avatar {
	width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
	border: 3px solid #fff;
	box-shadow: 0 0 0 2.5px var(--singair-primary);
	display: block;
}
.ac-profile__edit-btn {
	position: absolute; bottom: 2px; right: 0;
	width: 24px; height: 24px;
	display: grid; place-items: center;
	background: var(--singair-primary); color: #fff;
	border: 2px solid #fff; border-radius: 50%;
	font-size: .6rem; text-decoration: none;
	transition: var(--ac-transition);
}
.ac-profile__edit-btn:hover { filter: brightness(1.1); }
.ac-profile__name { font-size: 1rem; font-weight: 700; color: var(--ac-ink); margin: 0 0 .2rem; }
.ac-profile__email { font-size: .775rem; color: var(--ac-muted); margin: 0 0 .65rem; word-break: break-word; }
.ac-profile__badge {
	display: inline-flex; align-items: center; gap: .3rem;
	background: rgba(255, 106, 33, .1); color: var(--singair-primary);
	border-radius: 999px; font-size: .7rem; font-weight: 700;
	padding: .25rem .75rem;
}

/* ── Sidebar nav ── */
.ac-nav { padding: .375rem 0; }
.ac-nav__list { list-style: none; margin: 0; padding: 0; }
.ac-nav__link {
	display: flex; align-items: center; gap: .75rem;
	padding: .75rem 1.25rem;
	font-size: .875rem; font-weight: 500; color: var(--ac-muted);
	text-decoration: none;
	border-left: 3px solid transparent;
	transition: color var(--ac-transition), background var(--ac-transition), border-color var(--ac-transition);
}
.ac-nav__link:hover { color: var(--singair-primary); background: rgba(255, 106, 33, .05); }
.ac-nav__link i { width: 18px; text-align: center; font-size: .95rem; flex-shrink: 0; }
.ac-nav__item.is-active .ac-nav__link {
	color: var(--singair-primary);
	background: rgba(255, 106, 33, .08);
	border-left-color: var(--singair-primary);
	font-weight: 700;
}
.ac-nav__item--logout .ac-nav__link { color: #dc2626; }
.ac-nav__item--logout .ac-nav__link:hover { background: rgba(220, 38, 38, .05); border-left-color: #dc2626; }
.ac-nav__divider { height: 1px; background: var(--ac-line); margin: .375rem 1.25rem; }

/* ── Help card ── */
.ac-help {
	padding: 1.25rem;
	border-top: var(--ac-border);
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: .4rem;
}
.ac-help__icon {
	width: 44px; height: 44px;
	display: grid; place-items: center;
	background: rgba(255, 106, 33, .1); color: var(--singair-primary);
	border-radius: 50%; font-size: 1.1rem;
}
.ac-help__title { font-size: .9rem; font-weight: 700; color: var(--ac-ink); margin: 0; }
.ac-help__sub { font-size: .775rem; color: var(--ac-muted); margin: 0; }
.ac-help__btn {
	width: 100%; padding: .65rem;
	background: transparent; color: var(--singair-primary);
	border: 1.5px solid var(--singair-primary); border-radius: var(--ac-radius-sm);
	font-size: .82rem; font-weight: 700; text-decoration: none;
	display: block; text-align: center;
	transition: var(--ac-transition);
}
.ac-help__btn:hover { background: var(--singair-primary); color: #fff; }

/* ══════════════════════════════════════════════════════════════════════════
   CENTER — DASHBOARD HEADER
   ══════════════════════════════════════════════════════════════════════════ */
.ac-dash-head { padding: 1.5rem; }
.ac-dash-head__title {
	font-size: 1.5rem; font-weight: 800; color: var(--ac-ink);
	margin: 0 0 .3rem;
}
.ac-dash-head__sub { font-size: .875rem; color: var(--ac-muted); margin: 0; }

/* ── Mobile drawer toggle ── */
.ac-mobile-nav-toggle {
	display: none;
	align-items: center; gap: .5rem;
	background: var(--singair-primary); color: #fff;
	border: none; border-radius: var(--ac-radius-sm);
	padding: .65rem 1rem; font-size: .875rem; font-weight: 700; cursor: pointer;
	margin-bottom: .5rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   STAT CARDS
   ══════════════════════════════════════════════════════════════════════════ */
.ac-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.ac-stat {
	padding: 1.25rem;
	display: flex; align-items: flex-start; gap: 1rem;
	transition: transform var(--ac-transition), box-shadow var(--ac-transition);
}
.ac-stat:hover { transform: translateY(-2px); box-shadow: var(--ac-shadow-lg); }

.ac-stat__icon {
	width: 44px; height: 44px; flex-shrink: 0;
	display: grid; place-items: center;
	border-radius: var(--ac-radius-sm); font-size: 1.1rem;
}
.ac-stat__icon--orange { background: rgba(255, 106, 33, .12); color: var(--singair-primary); }
.ac-stat__icon--green  { background: rgba(22, 163, 74, .12);  color: #16a34a; }
.ac-stat__icon--blue   { background: rgba(37, 99, 235, .12);  color: #2563eb; }
.ac-stat__icon--purple { background: rgba(124, 58, 237, .12); color: #7c3aed; }

.ac-stat__body { flex: 1; min-width: 0; }
.ac-stat__count { font-size: 1.625rem; font-weight: 800; color: var(--ac-ink); line-height: 1.1; }
.ac-stat__label { font-size: .8rem; color: var(--ac-muted); margin: .2rem 0 .5rem; }
.ac-stat__link  { font-size: .78rem; font-weight: 600; color: var(--singair-primary); text-decoration: none; }
.ac-stat__link:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════════════════
   SECTION HEADER (shared)
   ══════════════════════════════════════════════════════════════════════════ */
.ac-section-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 1.25rem 1.5rem;
	border-bottom: var(--ac-border);
}
.ac-section-head__title { font-size: 1rem; font-weight: 700; color: var(--ac-ink); margin: 0; }
.ac-section-head__link  { font-size: .8125rem; font-weight: 600; color: var(--singair-primary); text-decoration: none; }
.ac-section-head__link:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════════════════
   RECENT ORDERS TABLE
   ══════════════════════════════════════════════════════════════════════════ */
.ac-orders-wrap { overflow-x: auto; }
.ac-orders-table {
	width: 100%; border-collapse: collapse; font-size: .875rem;
}
.ac-orders-table th {
	text-align: left; padding: .85rem 1rem;
	font-size: .72rem; font-weight: 700; color: var(--ac-muted);
	text-transform: uppercase; letter-spacing: .04em;
	background: #f9fafb; border-bottom: var(--ac-border);
	white-space: nowrap;
}
.ac-orders-table td { padding: 1rem; border-bottom: var(--ac-border); vertical-align: middle; }
.ac-orders-table tr:last-child td { border-bottom: none; }
.ac-orders-table tr:hover td { background: #fafafa; }

.ac-order-id { font-weight: 700; color: var(--ac-ink); text-decoration: none; }
.ac-order-id:hover { color: var(--singair-primary); }
.ac-order-date { color: var(--ac-muted); white-space: nowrap; }
.ac-order-total { font-weight: 700; color: var(--ac-ink); }

/* Product thumbs */
.ac-order-thumbs { display: flex; gap: 4px; flex-wrap: nowrap; }
.ac-order-thumb {
	width: 36px; height: 36px; flex-shrink: 0;
	border-radius: 6px; object-fit: cover; border: var(--ac-border);
}
.ac-order-thumb-more {
	width: 36px; height: 36px; flex-shrink: 0;
	border-radius: 6px; background: #f3f4f6; color: var(--ac-muted);
	font-size: .7rem; font-weight: 700; display: grid; place-items: center;
}

/* Status badges */
.ac-badge {
	display: inline-flex; align-items: center; justify-content: center;
	padding: .3rem .75rem; border-radius: 999px;
	font-size: .72rem; font-weight: 700; white-space: nowrap;
}
.ac-badge--pending     { background: #fef9c3; color: #854d0e; }
.ac-badge--processing  { background: #dbeafe; color: #1e40af; }
.ac-badge--on-hold     { background: #f3e8ff; color: #6b21a8; }
.ac-badge--completed   { background: #dcfce7; color: #15803d; }
.ac-badge--shipped     { background: #d1fae5; color: #065f46; }
.ac-badge--cancelled   { background: #fee2e2; color: #991b1b; }
.ac-badge--refunded    { background: #fce7f3; color: #9d174d; }
.ac-badge--failed      { background: #fee2e2; color: #991b1b; }

/* Action button */
.ac-order-action {
	display: inline-block; padding: .45rem .9rem;
	font-size: .78rem; font-weight: 600; color: var(--ac-ink);
	border: var(--ac-border); border-radius: var(--ac-radius-sm);
	text-decoration: none; white-space: nowrap;
	transition: var(--ac-transition);
}
.ac-order-action:hover { border-color: var(--singair-primary); color: var(--singair-primary); }

/* Empty cell inside AJAX tbody */
.ac-orders-empty-cell { padding: 1.5rem; text-align: center; color: var(--ac-muted); font-style: italic; }

/* Empty state (no orders at all) */
.ac-orders-empty { padding: 3rem 1.5rem; text-align: center; color: var(--ac-muted); }
.ac-orders-empty i { font-size: 2.5rem; margin-bottom: .75rem; opacity: .3; display: block; }
.ac-orders-empty p { font-size: .9rem; margin: 0 0 1rem; }

/* Pagination */
.ac-pagination {
	display: flex; align-items: center; justify-content: center; gap: .5rem;
	padding: 1rem; border-top: var(--ac-border);
}
.ac-page-btn {
	width: 32px; height: 32px; display: grid; place-items: center;
	border: var(--ac-border); border-radius: var(--ac-radius-sm);
	background: #fff; color: var(--ac-ink);
	font-size: .8rem; font-weight: 600; cursor: pointer;
	transition: var(--ac-transition);
}
.ac-page-btn:hover, .ac-page-btn.is-active { background: var(--singair-primary); color: #fff; border-color: var(--singair-primary); }
.ac-page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ══════════════════════════════════════════════════════════════════════════
   RECOMMENDED SLIDER
   ══════════════════════════════════════════════════════════════════════════ */
.ac-rec { padding: 0 1.5rem 1.5rem; }
.ac-rec-slider {
	display: flex; gap: 1rem;
	overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
	padding-bottom: .5rem;
}
.ac-rec-slider::-webkit-scrollbar { height: 4px; }
.ac-rec-slider::-webkit-scrollbar-track { background: var(--ac-line); border-radius: 999px; }
.ac-rec-slider::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 999px; }

.ac-rec-card {
	flex: 0 0 160px; scroll-snap-align: start;
	border: var(--ac-border); border-radius: var(--ac-radius-sm);
	overflow: hidden; text-decoration: none; background: #fff;
	transition: transform var(--ac-transition), box-shadow var(--ac-transition);
}
.ac-rec-card:hover { transform: translateY(-2px); box-shadow: var(--ac-shadow-lg); }
.ac-rec-card__img { position: relative; height: 130px; overflow: hidden; background: #f5f6f8; }
.ac-rec-card__img img { width: 100%; height: 100%; object-fit: cover; }
.ac-rec-card__badge {
	position: absolute; top: 6px; left: 6px;
	background: var(--singair-primary); color: #fff;
	font-size: .65rem; font-weight: 800; padding: .2rem .45rem; border-radius: 999px;
}
.ac-rec-card__body { padding: .65rem .75rem; }
.ac-rec-card__name {
	font-size: .78rem; font-weight: 600; color: var(--ac-ink);
	margin: 0 0 .3rem; line-height: 1.3;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ac-rec-card__stars { display: flex; align-items: center; gap: .2rem; font-size: .68rem; color: #f59e0b; margin-bottom: .3rem; }
.ac-rec-card__stars span { color: var(--ac-muted); }
.ac-rec-card__price { font-size: .8rem; font-weight: 700; color: var(--singair-primary); }
.ac-rec-card__price del { color: var(--ac-muted); font-weight: 400; margin-left: .25rem; }

/* ══════════════════════════════════════════════════════════════════════════
   RIGHT SIDEBAR
   ══════════════════════════════════════════════════════════════════════════ */
.ac-right-card { padding: 1.25rem; }
.ac-right-card__title {
	font-size: .9rem; font-weight: 700; color: var(--ac-ink);
	margin: 0 0 1rem;
	display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.ac-right-card__link { font-size: .78rem; color: var(--singair-primary); font-weight: 600; text-decoration: none; flex-shrink: 0; }
.ac-right-card__link:hover { text-decoration: underline; }

/* Account overview rows */
.ac-overview-rows { display: flex; flex-direction: column; gap: .7rem; }
.ac-overview-row { display: flex; align-items: center; justify-content: space-between; font-size: .8125rem; }
.ac-overview-row__label { display: flex; align-items: center; gap: .5rem; color: var(--ac-muted); }
.ac-overview-row__label i { width: 14px; text-align: center; font-size: .85rem; }
.ac-overview-row__val { font-weight: 600; color: var(--ac-ink); }
.ac-overview-row__val--verified { color: var(--ac-save); }
.ac-overview-row__val--pending  { color: #d97706; }

/* Address */
.ac-address-badge {
	display: inline-block; padding: .2rem .65rem;
	background: rgba(22, 163, 74, .1); color: #15803d;
	border: 1px solid rgba(22, 163, 74, .25);
	border-radius: 999px; font-size: .68rem; font-weight: 700;
	margin-bottom: .75rem;
}
.ac-address-lines {
	font-size: .8125rem; line-height: 1.7; color: var(--ac-ink);
	margin: 0; font-style: normal;
}
.ac-address-phone { font-size: .78rem; color: var(--ac-muted); margin: .35rem 0 0; display: flex; align-items: center; gap: .35rem; }
.ac-address-actions { margin-top: .85rem; }
.ac-address-btn {
	display: block; text-align: center; padding: .65rem;
	border: 1.5px solid var(--singair-primary); border-radius: var(--ac-radius-sm);
	color: var(--singair-primary); font-size: .82rem; font-weight: 700;
	text-decoration: none; transition: var(--ac-transition);
}
.ac-address-btn:hover { background: var(--singair-primary); color: #fff; }
.ac-address-empty { color: var(--ac-muted); font-size: .8125rem; margin: 0 0 .75rem; }

/* Referral */
.ac-referral {
	padding: 1.25rem; position: relative; overflow: hidden;
	background: linear-gradient(135deg, #fff7ed 0%, #fff 70%);
}
.ac-referral__deco {
	position: absolute; bottom: -8px; right: 8px;
	font-size: 3.5rem; opacity: .1; color: var(--singair-primary);
	line-height: 1; pointer-events: none;
}
.ac-referral__icon { font-size: 1.5rem; color: var(--singair-primary); margin-bottom: .4rem; display: block; }
.ac-referral__title { font-size: 1.0625rem; font-weight: 800; color: var(--ac-ink); margin: 0 0 .2rem; }
.ac-referral__sub   { font-size: .775rem; color: var(--ac-muted); margin: 0 0 .85rem; }
.ac-referral__btn {
	display: block; text-align: center;
	padding: .75rem; border-radius: var(--ac-radius-sm);
	background: var(--singair-primary); color: #fff;
	border: none; font-size: .875rem; font-weight: 700; cursor: pointer;
	text-decoration: none; transition: var(--ac-transition);
}
.ac-referral__btn:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* ══════════════════════════════════════════════════════════════════════════
   WC GENERIC ENDPOINT STYLES (orders list, edit forms, etc.)
   ══════════════════════════════════════════════════════════════════════════ */
.ac-main .woocommerce-MyAccount-content { display: block; }
.ac-main table.woocommerce-orders-table {
	width: 100%; border-collapse: collapse; font-size: .875rem;
}
.ac-main table.woocommerce-orders-table th {
	background: #f9fafb; font-size: .72rem; text-transform: uppercase;
	letter-spacing: .04em; color: var(--ac-muted); padding: .85rem 1rem;
	border-bottom: var(--ac-border); text-align: left;
}
.ac-main table.woocommerce-orders-table td { padding: 1rem; border-bottom: var(--ac-border); }
.ac-main .woocommerce-form-row input.input-text,
.ac-main .woocommerce-form-row select {
	width: 100%; border: var(--ac-border); border-radius: var(--ac-radius-sm);
	padding: .7rem .85rem; font-size: .875rem;
}
.ac-main .woocommerce-form-row input.input-text:focus,
.ac-main .woocommerce-form-row select:focus {
	outline: none; border-color: var(--singair-primary);
	box-shadow: 0 0 0 3px rgba(255, 106, 33, .12);
}
.ac-main .button, .ac-main button[type="submit"] {
	background: var(--singair-primary); color: #fff;
	border: none; border-radius: var(--ac-radius-sm);
	padding: .75rem 1.5rem; font-weight: 700; font-size: .875rem; cursor: pointer;
	transition: var(--ac-transition);
}
.ac-main .button:hover { filter: brightness(1.06); }
/* Wrap endpoint pages in a card */
.ac-main > .woocommerce-MyAccount-content,
.ac-main > .woocommerce {
	background: #fff; border: var(--ac-border);
	border-radius: var(--ac-radius); box-shadow: var(--ac-shadow);
	padding: 1.5rem;
}

/* Mobile overlay */
.ac-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 998; }
.ac-overlay.is-open { display: block; }

/* Skeleton */
.ac-skeleton {
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: ac-shimmer 1.5s infinite;
	border-radius: 4px;
}
@keyframes ac-shimmer { to { background-position: -200% 0; } }

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
	.ac-layout { grid-template-columns: 220px 1fr 270px; }
	.ac-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
	.ac-layout { grid-template-columns: 1fr; }

	/* Sidebar becomes an off-canvas drawer */
	.ac-sidebar {
		position: fixed; left: -290px; top: 0; bottom: 0; z-index: 999;
		width: 280px; overflow-y: auto;
		background: #fff;
		border-radius: 0 var(--ac-radius) var(--ac-radius) 0;
		box-shadow: var(--ac-shadow-lg);
		transition: left .28s ease;
	}
	.ac-sidebar.is-open { left: 0; }

	.ac-mobile-nav-toggle { display: inline-flex; }
	.ac-right { position: static; }
	.ac-stats { grid-template-columns: repeat(4, 1fr); }
}

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

	/* Orders table → stacked cards */
	.ac-orders-table thead { display: none; }
	.ac-orders-table,
	.ac-orders-table tbody,
	.ac-orders-table tr,
	.ac-orders-table td { display: block; width: 100%; }
	.ac-orders-table tr { padding: .85rem 1rem; border-bottom: var(--ac-border); }
	.ac-orders-table tr:last-child { border-bottom: none; }
	.ac-orders-table td { padding: .25rem 0; border: none; font-size: .82rem; }
	.ac-orders-table td::before {
		content: attr(data-label) ": ";
		font-weight: 700; font-size: .72rem; color: var(--ac-muted);
	}
}

@media (max-width: 480px) {
	.ac-stats { gap: .75rem; }
	.ac-stat { padding: 1rem; gap: .75rem; }
	.ac-stat__count { font-size: 1.375rem; }
	.ac-stat__icon { width: 38px; height: 38px; font-size: .95rem; }
	.ac-page { padding-bottom: 2rem; }
	.ac-rec-card { flex: 0 0 140px; }
	.ac-rec-card__img { height: 110px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, ::before, ::after { transition: none !important; animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Premium login / registration (sm-login)
   Rendered by woocommerce/myaccount/form-login.php inside the account shell.
   ═══════════════════════════════════════════════════════════════════════════ */

.sm-login { --sm-primary: var(--singair-primary, #ff6a21); margin: 1.5rem 0 2.5rem; }

.sm-login__card {
	display: grid;
	grid-template-columns: 46% 54%;
	background: #fff;
	border: 1px solid #f0e6df;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 24px 60px -30px rgba(17, 24, 39, .18);
}

/* ── Welcome / benefits column ─────────────────────────────────────────── */
.sm-login__aside {
	position: relative;
	overflow: hidden;
	padding: 3rem 3rem 2rem;
	background: linear-gradient(150deg, #fdefe6 0%, #fce7da 55%, #fbe0d0 100%);
	display: flex;
	align-items: center;
}
.sm-login__aside-inner { position: relative; z-index: 2; width: 100%; }
.sm-login__blob { position: absolute; border-radius: 50%; z-index: 1; opacity: .5; }
.sm-login__blob--1 { width: 260px; height: 260px; top: -90px; right: -80px; background: radial-gradient(circle at 30% 30%, #ffd9c4, transparent 70%); }
.sm-login__blob--2 { width: 200px; height: 200px; bottom: -70px; left: -50px; background: radial-gradient(circle at 50% 50%, #ffe4d3, transparent 70%); }
.sm-login__dots {
	position: absolute; z-index: 1; left: 1.5rem; bottom: 4.5rem; width: 70px; height: 70px; opacity: .5;
	background-image: radial-gradient(#f5b48f 1.6px, transparent 1.6px);
	background-size: 12px 12px;
}

.sm-login__welcome { font-size: 2rem; font-weight: 800; color: #1f2937; margin: 0 0 .6rem; letter-spacing: -.01em; }
.sm-login__lead { color: #6b7280; font-size: .95rem; line-height: 1.6; margin: 0 0 1.8rem; max-width: 24rem; }

.sm-login__perks { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1.1rem; }
.sm-login__perk { display: flex; align-items: center; gap: .9rem; }
.sm-login__perk-icon {
	flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: #fff; color: var(--sm-primary); font-size: 1.15rem;
	box-shadow: 0 8px 20px -8px rgba(255, 106, 33, .45);
}
.sm-login__perk-text { display: flex; flex-direction: column; line-height: 1.35; }
.sm-login__perk-text strong { color: #1f2937; font-size: .95rem; font-weight: 700; }
.sm-login__perk-text small { color: #6b7280; font-size: .82rem; }

.sm-login__art { display: block; width: 78%; max-width: 320px; margin: .5rem auto 0; }

/* ── Forms column ──────────────────────────────────────────────────────── */
.sm-login__main { padding: 3rem 3.5rem; display: flex; flex-direction: column; justify-content: center; }

.sm-login__title { text-align: center; font-size: 1.8rem; font-weight: 800; color: #1f2937; margin: 0 0 .5rem; }
.sm-login__title span { color: var(--sm-primary); }
.sm-login__title-rule { display: block; width: 54px; height: 3px; border-radius: 3px; background: var(--sm-primary); margin: 0 auto 2rem; }

.sm-login__form { display: block; margin: 0; }

/* Fields */
.sm-field { margin-bottom: 1.25rem; }
.sm-field > label { display: block; font-size: .85rem; font-weight: 600; color: #374151; margin-bottom: .5rem; }
.sm-field__control { position: relative; display: flex; align-items: center; }
.sm-field__icon { position: absolute; left: 1rem; color: #9ca3af; font-size: .95rem; pointer-events: none; }
.sm-login .sm-input {
	width: 100%; height: 52px; padding: 0 2.8rem 0 2.9rem;
	border: 1px solid #e5e7eb; border-radius: 12px; background: #fff;
	font-size: .95rem; color: #1f2937; transition: border-color .15s, box-shadow .15s;
	box-shadow: none;
}
.sm-login .sm-input::placeholder { color: #9ca3af; }
.sm-login .sm-input:focus { outline: none; border-color: var(--sm-primary); box-shadow: 0 0 0 4px rgba(255, 106, 33, .12); }
.sm-login .sm-field__toggle {
	position: absolute; right: .5rem; width: 40px; height: 40px; min-height: 0; padding: 0;
	border: 0; background: transparent; color: #9ca3af; cursor: pointer; border-radius: 8px;
	display: inline-flex; align-items: center; justify-content: center; z-index: 2;
}
.sm-login .sm-field__toggle:hover { color: var(--sm-primary); background: transparent; }

/* WooCommerce's frontend JS injects its own password reveal (wrapping the
   input in .password-input and adding .show-password-input). Unwrap it so it
   doesn't break the flex field, and hide its toggle — we use our own. */
.sm-field__control .password-input { display: contents !important; }
.sm-field__control .show-password-input { display: none !important; }

/* Remember / forgot row */
.sm-login__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: -.25rem 0 1.5rem; flex-wrap: wrap; }
.sm-check { display: inline-flex; align-items: center; gap: .5rem; margin: 0; font-size: .88rem; color: #4b5563; cursor: pointer; }
.sm-login .sm-check__input { width: 16px; height: 16px; margin: 0; accent-color: var(--sm-primary); cursor: pointer; }
.sm-login__forgot { font-size: .88rem; font-weight: 600; color: var(--sm-primary); text-decoration: none; }
.sm-login__forgot:hover { text-decoration: underline; }

/* Primary submit. Extra class (.sm-btn.sm-btn--primary → 0,3,0) beats WC's
   `.woocommerce button.button` (0,2,1) which otherwise paints it grey. */
.sm-login .sm-btn.sm-btn--primary {
	display: block; width: 100%; height: 54px; min-height: 54px; border: 0; border-radius: 12px; cursor: pointer;
	background: linear-gradient(180deg, #ff7d3b 0%, var(--sm-primary) 100%);
	color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: .01em; text-align: center;
	box-shadow: 0 12px 24px -10px rgba(255, 106, 33, .6); transition: transform .12s, box-shadow .12s, filter .12s;
}
.sm-login .sm-btn.sm-btn--primary:hover { filter: brightness(1.03); background: linear-gradient(180deg, #ff7d3b 0%, var(--sm-primary) 100%); color: #fff; box-shadow: 0 16px 30px -10px rgba(255, 106, 33, .7); }
.sm-login .sm-btn.sm-btn--primary:active { transform: translateY(1px); }

/* Divider — single line behind centered text (robust vs. the WC cascade;
   avoids the fragile flex + double-pseudo construction). */
.sm-login__or { position: relative; text-align: center; margin: 1.6rem 0; }
.sm-login__or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #ececec; }
.sm-login .sm-login__or-txt { position: relative; display: inline-block; background: #fff; padding: 0 1rem; color: #9ca3af; font-size: .85rem; }

/* Social buttons */
.sm-login__socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.sm-login .sm-social {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	height: 48px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff;
	color: #374151; font-size: .9rem; font-weight: 600; text-decoration: none; cursor: pointer;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.sm-login .sm-social:hover { border-color: #d1d5db; box-shadow: 0 6px 16px -10px rgba(17, 24, 39, .3); }
.sm-login .sm-social i { font-size: 1.05rem; }
.sm-login .sm-social--google i { color: #ea4335; }
.sm-login .sm-social--facebook i { color: #1877f2; }
.sm-login .sm-social--apple i { color: #111827; }

/* Switch (login ↔ register) */
.sm-login__switch { text-align: center; margin: 1.6rem 0 0; font-size: .92rem; color: #4b5563; }
.sm-login .sm-login__switch-btn {
	border: 0; background: none; padding: 0; min-height: 0; cursor: pointer;
	color: var(--sm-primary); font-weight: 700; font-size: .92rem;
}
.sm-login .sm-login__switch-btn:hover { background: none; text-decoration: underline; }

.sm-login__note { font-size: .85rem; color: #6b7280; background: #f9fafb; border: 1px solid #f0f0f0; border-radius: 10px; padding: .7rem .85rem; margin: 0 0 1.25rem; }

/* Panels */
.sm-login__panel { display: none; }
.sm-login__panel.is-active { display: block; animation: sm-login-fade .25s ease; }
@keyframes sm-login-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Inherit WC validation notice styling into the card head */
.sm-login__main > .woocommerce-notices-wrapper:empty { display: none; }
.sm-login__main > .woocommerce-notices-wrapper { margin-bottom: 1.25rem; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.sm-login__card { grid-template-columns: 1fr; }
	.sm-login__aside { padding: 2.25rem 2rem 1.5rem; }
	.sm-login__art { max-width: 240px; }
	.sm-login__main { padding: 2.25rem 2rem; }
}
@media (max-width: 560px) {
	.sm-login__main { padding: 1.75rem 1.25rem; }
	.sm-login__title { font-size: 1.5rem; }
	.sm-login__socials { grid-template-columns: 1fr; }
	.sm-login .sm-social { justify-content: flex-start; padding: 0 1.1rem; }
	.sm-login__welcome { font-size: 1.6rem; }
	.sm-login__art { display: none; }
}
