/* ETO Accounts: the account screens (/account/…, centred card in the app shell) and the top bar account slot.
   Theme tokens only (wp-content/themes/eto/assets/css/base.css). Yellow = the next action; orange = rewards. */

/* ---------- top bar: streak, points, avatar menu (mockup top bar, signed in) ---------- */
.eto-acc-me { display: flex; align-items: center; gap: 6px; }
.eto-acc-pill {
	display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border-radius: 999px;
	border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 750; font-size: 14.5px;
	white-space: nowrap; text-decoration: none; font-variant-numeric: tabular-nums;
}
.eto-acc-pill:hover { border-color: var(--line-strong); }
.eto-acc-tic { flex: none; color: var(--reward); }
.eto-acc-menu { position: relative; }
.eto-acc-av {
	list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
	border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); background: var(--surface-3);
	color: var(--text); font-weight: 750; font-size: 15px; user-select: none;
}
.eto-acc-av::-webkit-details-marker { display: none; }
.eto-acc-av::marker { content: ""; }
.eto-acc-menu__list {
	position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 220px; padding: 6px;
	display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r);
	background: var(--surface); box-shadow: var(--shadow), 0 12px 30px rgba(0, 0, 0, .12);
}
.eto-acc-menu__name { margin: 0; padding: 8px 12px 6px; font-weight: 700; font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.eto-acc-menu__list a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: 15px; }
.eto-acc-menu__list a:hover { background: var(--surface-3); color: var(--text); }
.eto-acc-menu__out { border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 8px 8px; }
@media (max-width: 767px) {
	.eto-acc-pill--pts { display: none; } /* mockup: phones keep the streak and the avatar */
	.eto-acc-pill { height: 40px; padding: 0 10px; }
	.eto-acc-av { width: 40px; height: 40px; }
}

/* ---------- account screens: centred card ---------- */
.eto-main > .eto-acc-screen { max-width: 480px; margin: 24px auto 0; }
.eto-acc-card { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.eto-acc-h1 { margin: 0 0 6px; font-family: var(--font-serif); font-weight: 500; font-size: 32px; line-height: 1.2; letter-spacing: -.01em; }
.eto-acc-lead { margin: 0 0 18px; color: var(--text-2); font-size: 16px; }
.eto-acc-msg { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--right-soft); color: var(--text); font-weight: 600; font-size: 15px; }
.eto-acc-msg--error { background: var(--wrong-soft); }
.eto-acc-form { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.eto-acc-label { font-weight: 650; font-size: 15px; color: var(--text); margin-top: 8px; padding: 0; }
.eto-acc-input {
	width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r);
	background: var(--bg); color: var(--text); font: inherit; font-size: 16px;
}
.eto-acc-input:focus-visible { outline-offset: 0; border-radius: var(--r); }
.eto-acc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin-top: 12px; padding: 0 20px;
	border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--surface); color: var(--text);
	font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; box-shadow: 0 3px 0 var(--line-strong);
}
.eto-acc-btn:hover { background: var(--surface-2); }
.eto-acc-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 3px 0 var(--accent-edge); }
.eto-acc-btn--primary:hover { background: var(--accent-hover); }
.eto-acc-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line-strong); }
.eto-acc-small { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.eto-acc-small a, .eto-acc-foot a:not(.eto-acc-btn) { color: var(--text); font-weight: 600; }
.eto-acc-foot { margin: 18px 0 0; text-align: center; font-size: 15px; color: var(--text-2); }
.eto-acc-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0 0; font-size: 15px; color: var(--text); cursor: pointer; }
.eto-acc-check input, .eto-acc-choice input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent-edge); }
.eto-acc-more { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 8px; }
.eto-acc-more > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 650; cursor: pointer; color: var(--text); list-style: none; }
.eto-acc-more > summary::-webkit-details-marker { display: none; }
.eto-acc-more > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.eto-acc-more[open] > summary::before { transform: rotate(45deg); }
.eto-acc-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; color: var(--muted); font-size: 14px; }
.eto-acc-or::before, .eto-acc-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.eto-acc-google { display: flex; flex-direction: column; }
.eto-acc-set { margin: 8px 0 0; padding: 0; border: 0; min-width: 0; }
.eto-acc-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.eto-acc-choices--stack { flex-direction: column; }
.eto-acc-choice {
	display: flex; align-items: flex-start; gap: 10px; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong);
	border-radius: var(--r); background: var(--bg); font-size: 15.5px; cursor: pointer; flex: 1 1 140px;
}
.eto-acc-choice:has(input:checked) { border-color: var(--accent-edge); background: var(--accent-soft); }
.eto-acc-agree { padding-left: 4px; }
/* Honeypot: out of sight for people and screen readers (aria-hidden), still in the form for bots. */
.eto-acc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 620px) {
	.eto-main > .eto-acc-screen { margin-top: 4px; }
	.eto-acc-card { padding: 20px 18px; }
	.eto-acc-h1 { font-size: 27px; }
}

/* ---------- contact form ([eto_contact], contact.php): the account form fields inside a page ---------- */
.eto-acc-contact { max-width: 640px; margin: 24px 0; }
.eto-acc-contact .eto-acc-choices { gap: 8px; }
.eto-acc-contact .eto-acc-choice { flex: 1 1 calc(50% - 4px); align-items: center; } /* four topics: two by two */
.eto-acc-textarea { min-height: 180px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.eto-acc-contact .eto-acc-btn { align-self: flex-start; }
@media (max-width: 620px) {
	.eto-acc-contact .eto-acc-btn { align-self: stretch; }
	.eto-acc-contact .eto-acc-choice { flex-basis: 100%; }
}

/* One-time notice after sign-in (e.g. the password was reset to take the account back). */
.eto-acc-flash { margin: 0; padding: 10px 16px; background: var(--accent-soft); color: var(--text); border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; text-align: center; }
