/* Shared sign-in pop-up + website header user menu (2026-11-25). Loaded by website.js and the shop layout. */
html.smad-auth-lock, html.smad-auth-lock body { overflow: hidden; }
.smad-auth { position: fixed; inset: 0; z-index: 2100; display: flex; align-items: center; justify-content: center; padding: 16px; font-family: Calibri, "Trebuchet MS", sans-serif; color: #1b4332; }
.smad-auth[hidden] { display: none; }
.smad-auth *, .smad-auth *::before, .smad-auth *::after { box-sizing: border-box; }
.smad-auth-backdrop { position: absolute; inset: 0; background: rgba(10, 24, 17, .55); opacity: 0; transition: opacity .2s ease; }
.smad-auth-dialog {
	position: relative;
	width: 100%;
	max-width: 430px;
	max-height: min(92vh, 640px);
	overflow-y: auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
	opacity: 0;
	transform: translateY(16px) scale(.98);
	transition: opacity .22s ease, transform .22s ease;
}
.smad-auth.is-open .smad-auth-backdrop { opacity: 1; }
.smad-auth.is-open .smad-auth-dialog { opacity: 1; transform: none; }
.smad-auth-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid #e6ece8; }
.smad-auth-mark { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: #e8f1ea; color: #2d6a4f; display: grid; place-items: center; font-size: 1.15rem; }
.smad-auth-who { flex: 1; min-width: 0; }
.smad-auth-who h2 { margin: 0; font-family: inherit; font-size: 1.2rem; font-weight: 700; line-height: 1.2; letter-spacing: 0; color: #1b4332; }
.smad-auth-who p { margin: 2px 0 0; font-size: .88rem; color: #5c7065; }
.smad-auth-x { flex: 0 0 36px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f5f2; color: #1b4332; font-size: 22px; line-height: 1; cursor: pointer; }
.smad-auth-x:hover { background: #e3ebe5; }
.smad-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 14px 18px 0; }
.smad-auth-tabs[hidden] { display: none; }
.smad-auth-tabs button { height: 42px; border: 1px solid #dbe4de; border-radius: 10px; background: #fff; font: inherit; font-size: .95rem; font-weight: 700; color: #5c7065; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.smad-auth-tabs button i { margin-right: 6px; }
.smad-auth-tabs button.is-on { background: #1b4332; border-color: #1b4332; color: #fff; }
.smad-auth-body { padding: 16px 18px 18px; }
.smad-auth-form { display: grid; gap: 12px; }
.smad-auth-field { display: grid; gap: 5px; margin: 0; }
.smad-auth-field > span { font-size: .85rem; font-weight: 700; color: #1b4332; }
.smad-auth-field small { font-weight: 400; color: #5c7065; }
.smad-auth-field input {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid #cfdad3;
	border-radius: 8px;
	background: #fff;
	font: inherit;
	font-size: 1rem;
	color: #1b4332;
	box-shadow: none;
}
.smad-auth-field input:focus { outline: 2px solid rgba(45, 106, 79, .35); border-color: #2d6a4f; }
.smad-auth-field input[readonly] { background: #f4f7f5; color: #5c7065; }
.smad-auth-mobile { display: flex; }
.smad-auth-mobile em { display: grid; place-items: center; padding: 0 12px; border: 1px solid #cfdad3; border-right: 0; border-radius: 8px 0 0 8px; background: #f4f7f5; font-style: normal; font-weight: 700; color: #5c7065; }
.smad-auth-mobile input { border-radius: 0 8px 8px 0; }
.smad-auth-link { justify-self: start; margin-top: 6px; border: 0; background: none; padding: 0; font: inherit; font-size: .85rem; font-weight: 600; color: #2d6a4f; text-decoration: underline; cursor: pointer; }
.smad-auth-msg { margin: 0; font-size: .9rem; font-weight: 600; color: #b42318; }
.smad-auth-msg:empty { display: none; }
.smad-auth-primary { height: 48px; border: 0; border-radius: 8px; background: #1b4332; color: #fff; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background .15s ease, opacity .15s ease; }
.smad-auth-primary:hover { background: #2d6a4f; }
.smad-auth-primary:disabled { opacity: .5; cursor: wait; }
.smad-auth-fine { margin: 0; font-size: .8rem; color: #7a8a81; text-align: center; }
.smad-auth-done { display: grid; justify-items: center; gap: 6px; padding: 12px 0; text-align: center; }
.smad-auth-done h3 { margin: 6px 0 0; font-family: inherit; font-size: 1.25rem; color: #1b4332; letter-spacing: 0; }
.smad-auth-done p { margin: 0; color: #5c7065; }
.smad-auth-tick { width: 56px; height: 56px; border-radius: 50%; background: #e7f3ec; color: #2d6a4f; display: grid; place-items: center; animation: smad-auth-pop .4s cubic-bezier(.2,.9,.3,1.3); }
.smad-auth-tick svg { width: 30px; height: 30px; }
@keyframes smad-auth-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
html.smad-auth-lock .grecaptcha-badge { visibility: hidden !important; }
@media (max-width: 560px) {
	.smad-auth { padding: 0; align-items: flex-end; }
	.smad-auth-dialog { max-width: none; border-radius: 16px 16px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
	.smad-auth-dialog, .smad-auth-backdrop { transition: none; }
	.smad-auth-tick { animation: none; }
}

/* Website header: avatar + first name with a hover menu */
.smad-um { position: relative; display: inline-flex; align-items: center; }
.topbar-right .smad-um { padding-left: .9rem; border-left: 1px solid rgba(255,255,255,.18); }
.topbar-right .smad-um .topbar-link { padding-left: 0; border-left: 0; }
.topbar-link.is-signed { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.smad-um-avatar { width: 20px; height: 20px; border-radius: 50%; background: #c9a227; color: #12261c; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.smad-um-chev { font-size: 9px !important; opacity: .7; transition: transform .2s ease; }
.smad-um:hover .smad-um-chev, .smad-um:focus-within .smad-um-chev { transform: rotate(180deg); }
.smad-um-menu {
	position: absolute; top: calc(100% + 8px); right: 0; z-index: 1200; min-width: 230px; padding: 6px;
	background: #fff; border: 1px solid #e3e9e5; border-radius: 12px; box-shadow: 0 16px 40px rgba(16, 41, 31, .18);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility 0s .18s;
	font-family: Calibri, "Trebuchet MS", sans-serif;
}
.smad-um-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.smad-um:hover .smad-um-menu, .smad-um:focus-within .smad-um-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.smad-um-head { display: grid; gap: 1px; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid #eef2ef; }
.smad-um-head b { font-size: .95rem; color: #1b4332; }
.smad-um-head small { font-size: .8rem; color: #5c7065; }
.smad-um-menu a, .smad-um-menu button {
	display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none;
	font: inherit; font-size: .92rem; font-weight: 600; color: #1b4332 !important; text-align: left; text-decoration: none !important; cursor: pointer;
}
.smad-um-menu a:hover, .smad-um-menu button:hover { background: #f1f6f2; }
.smad-um-menu i { width: 16px; text-align: center; color: #9a7a16; font-size: .85rem; }
.smad-um-menu button { margin-top: 4px; border-top: 1px solid #eef2ef; border-radius: 0 0 8px 8px; color: #b42318 !important; }
.smad-um-menu button i { color: #b42318; }
