/**
 * Share My Ride — header account widget ([smr_account_widget]).
 * Meant to sit inline in the theme's own header, so it stays minimal
 * and deliberately doesn't fight the page's font — it inherits
 * font-family from context and only sets its own sizing/color/shape.
 */
.smr-acct { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- Logged out: Sign in / Get started ---------- */
.smr-acct-guest { gap: 18px; }
.smr-acct-signin {
	font-size: 14px; font-weight: 600; color: #0f2942; text-decoration: none;
}
.smr-acct-signin:hover { color: #00808c; }
.smr-acct-getstarted {
	display: inline-flex; align-items: center; gap: 7px;
	background: #2563eb; color: #fff; text-decoration: none;
	padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 700;
	transition: background 0.15s ease;
}
.smr-acct-getstarted:hover { background: #1d4ed8; color: #fff; }

/* ---------- Logged in: avatar + name dropdown ---------- */
.smr-acct-user { position: relative; }
.smr-acct-summary {
	display: flex; align-items: center; gap: 9px; cursor: pointer;
	list-style: none; padding: 6px 12px 6px 6px; border-radius: 999px;
	border: 1px solid #e5e7eb; background: #fff; color: #0f2942;
	transition: border-color 0.15s ease;
}
.smr-acct-summary::-webkit-details-marker { display: none; }
.smr-acct-summary:hover { border-color: #00808c; }
.smr-acct-avatar {
	width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
	background: #00808c; color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 12.5px; font-weight: 700;
}
.smr-acct-avatar img { width: 100%; height: 100%; object-fit: cover; }
.smr-acct-name { font-size: 13.5px; font-weight: 600; color: #0f2942; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.smr-acct-summary svg { color: #9ca3af; flex-shrink: 0; transition: transform 0.15s ease; }
.smr-acct-user[open] .smr-acct-summary svg { transform: rotate(180deg); }

.smr-acct-menu {
	position: absolute; top: calc(100% + 8px); right: 0; z-index: 200;
	min-width: 170px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
	box-shadow: 0 10px 30px rgba(15, 41, 66, 0.14); padding: 6px; font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}
.smr-acct-menu a {
	display: flex; align-items: center; gap: 9px;
	padding: 9px 10px; border-radius: 8px; text-decoration: none;
	font-size: 13px; font-weight: 600; color: #374151;
}
.smr-acct-menu a:hover { background: #f3f4f6; color: #00808c; }
.smr-acct-menu svg { flex-shrink: 0; color: #9ca3af; }
