/*
 * ODAM Account Button 3.0 - front-end styles.
 * Structure: tokens > button designs > overlay/panel shell > panel modes > mobile sheets > forms > account list.
 * Everything is scoped under .oab-* so a theme cannot restyle it by accident; the button rules are written
 * at (0,3,0) specificity so themes that style button:hover / [type=button] do not win.
 */

/* ---------- Tokens ---------- */
.oab-wrapper,
.oab-portal,
.oab-standalone {
	--oab-primary: #e01e26;
	--oab-text: #1e1e1e;
	--oab-bg: #ffffff;
	--oab-radius: 12px;
	--oab-panel-width: 360px;
	--oab-speed: 260ms;
	--oab-offset: 12px;
	--oab-overlay: .45;
	--oab-z: 2147483000;
	--oab-top: 64px;
	--oab-btn-fs: 14px;
	--oab-btn-fw: 600;
	--oab-ease: cubic-bezier(.22, 1, .36, 1);
	--oab-tint: rgba(0, 0, 0, .06);
	--oab-ring: rgba(0, 0, 0, .12);
	--oab-primary-dark: var(--oab-primary);
}
@supports (color: color-mix(in srgb, red, blue)) {
	.oab-wrapper,
	.oab-portal,
	.oab-standalone {
		--oab-tint: color-mix(in srgb, var(--oab-primary) 11%, transparent);
		--oab-ring: color-mix(in srgb, var(--oab-primary) 24%, transparent);
		--oab-primary-dark: color-mix(in srgb, var(--oab-primary) 84%, #000);
	}
}
.oab-ease-smooth { --oab-ease: cubic-bezier(.22, 1, .36, 1); }
.oab-ease-snappy { --oab-ease: cubic-bezier(.4, 0, .2, 1); }
.oab-ease-bounce { --oab-ease: cubic-bezier(.34, 1.56, .64, 1); }

.oab-hidden { display: none !important; }
.oab-wrapper .screen-reader-text,
.oab-panel .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- Button: base ---------- */
.oab-wrapper {
	position: relative;
	display: inline-block;
	vertical-align: middle;
	font-family: inherit;
	line-height: 1;
}
.oab-size-sm { --b-py: 6px;  --b-px: 12px; --b-gap: 6px; }
.oab-size-md { --b-py: 9px;  --b-px: 15px; --b-gap: 8px; }
.oab-size-lg { --b-py: 12px; --b-px: 20px; --b-gap: 10px; }

.oab-wrapper .oab-button {
	--b-bg: transparent; --b-fg: var(--oab-text); --b-bd: transparent;
	--b-bg-h: var(--oab-tint); --b-fg-h: var(--oab-text); --b-bd-h: transparent;
	--b-rad: 10px;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--b-gap, 8px);
	box-sizing: border-box;
	width: auto;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: var(--b-py, 9px) var(--b-px, 15px);
	font-family: inherit;
	font-size: var(--oab-btn-fs);
	font-weight: var(--oab-btn-fw);
	line-height: 1.1;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	text-shadow: none;
	white-space: nowrap;
	cursor: pointer;
	color: var(--b-fg);
	background: var(--b-bg);
	border: 1.5px solid var(--b-bd);
	border-radius: var(--b-rad);
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease;
}
.oab-wrapper .oab-button:hover,
.oab-wrapper .oab-button:focus,
.oab-wrapper .oab-button:active,
.oab-wrapper .oab-button.is-open {
	color: var(--b-fg-h);
	background: var(--b-bg-h);
	border-color: var(--b-bd-h);
	text-decoration: none;
	box-shadow: none;
}
.oab-wrapper .oab-button:active { transform: scale(.98); }
.oab-wrapper .oab-button:focus-visible { outline: 2px solid var(--oab-primary); outline-offset: 2px; }

.oab-wrapper .oab-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--oab-primary); flex: none; }
.oab-wrapper .oab-icon svg { display: block; width: 1.35em; height: 1.35em; }
.oab-wrapper .oab-avatar img,
.oab-wrapper .oab-avatar .oab-avatar-img { display: block; width: 1.9em; height: 1.9em; border-radius: 50%; object-fit: cover; margin: 0; }
.oab-wrapper .oab-text { white-space: nowrap; }
.oab-wrapper .oab-chevron { display: inline-flex; opacity: .55; transition: transform var(--oab-speed) var(--oab-ease); }
.oab-wrapper .oab-button.is-open .oab-chevron { transform: rotate(180deg); }

/* Badge (open orders) */
.oab-wrapper .oab-icon-wrap { position: relative; display: inline-flex; margin-inline-end: 6px; }
.oab-design-icon_only .oab-icon-wrap,
.oab-design-stacked .oab-icon-wrap { margin-inline-end: 0; }
.oab-wrapper .oab-badge {
	position: absolute; top: -7px; inset-inline-end: -8px; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box;
	border-radius: 99px; background: var(--oab-primary); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
	box-shadow: 0 0 0 2px var(--oab-badge-ring, #fff);
}
.oab-wrapper .oab-badge-dot { top: -3px; inset-inline-end: -4px; min-width: 0; width: 9px; height: 9px; padding: 0; }

/* ---------- Button: designs ---------- */
.oab-design-outline_pill .oab-button { --b-bg: #fff; --b-bd: rgba(0, 0, 0, .14); --b-bg-h: #fff; --b-bd-h: var(--oab-primary); --b-rad: 999px; }

.oab-design-soft_pill .oab-button { --b-bg: rgba(0, 0, 0, .06); --b-bg-h: rgba(0, 0, 0, .1); --b-rad: 999px; }
@supports (color: color-mix(in srgb, red, blue)) {
	.oab-design-soft_pill .oab-button { --b-bg: color-mix(in srgb, var(--oab-primary) 10%, #fff); --b-bg-h: color-mix(in srgb, var(--oab-primary) 18%, #fff); }
}

.oab-design-pill .oab-button { --b-bg: var(--oab-primary); --b-fg: #fff; --b-bd: var(--oab-primary); --b-bg-h: var(--oab-primary-dark); --b-fg-h: #fff; --b-bd-h: var(--oab-primary-dark); --b-rad: 999px; }
.oab-design-pill .oab-icon { color: #fff; }
.oab-design-pill .oab-badge { --oab-badge-ring: var(--oab-primary); background: #fff; color: var(--oab-primary); }

.oab-design-dark_pill .oab-button { --b-bg: #16171b; --b-fg: #fff; --b-bd: #16171b; --b-bg-h: var(--oab-primary); --b-fg-h: #fff; --b-bd-h: var(--oab-primary); --b-rad: 999px; }
.oab-design-dark_pill .oab-icon { color: #fff; }
.oab-design-dark_pill .oab-badge { --oab-badge-ring: #16171b; }

.oab-design-greeting .oab-button { --b-bg: #fff; --b-bd: rgba(0, 0, 0, .1); --b-bg-h: #fff; --b-bd-h: var(--oab-primary); --b-rad: 999px; padding-inline-start: 8px; gap: 10px; }
.oab-design-greeting .oab-icon { width: 2.3em; height: 2.3em; border-radius: 50%; background: var(--oab-tint); }
.oab-design-greeting .oab-icon svg { width: 1.15em; height: 1.15em; }
.oab-design-greeting .oab-icon.oab-avatar { background: none; }
.oab-design-greeting .oab-text-2 { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: start; }
.oab-design-greeting .oab-line1 { font-size: .74em; font-weight: 500; opacity: .62; }
.oab-design-greeting .oab-line2 { font-weight: 700; }

.oab-design-stacked .oab-button { flex-direction: column; gap: 5px; padding: 6px 10px; --b-rad: 12px; font-size: calc(var(--oab-btn-fs) * .86); }
.oab-design-stacked .oab-icon svg { width: 1.7em; height: 1.7em; }

.oab-design-icon_text .oab-button { --b-rad: 10px; }

.oab-design-icon_only .oab-button { --b-bd: rgba(0, 0, 0, .12); --b-rad: 50%; width: 2.9em; height: 2.9em; padding: 0; }
.oab-design-icon_only .oab-icon svg { width: 1.45em; height: 1.45em; }

.oab-design-text_only .oab-button { --b-bg-h: transparent; --b-fg-h: var(--oab-primary); padding-inline: 4px; }

.oab-design-underline .oab-button { --b-bg-h: transparent; --b-fg-h: var(--oab-primary); --b-rad: 0; padding: 8px 2px; }
.oab-design-underline .oab-button::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 2px; background: var(--oab-primary);
	transform: scaleX(0); transition: transform .25s var(--oab-ease);
}
.oab-design-underline .oab-button:hover::after,
.oab-design-underline .oab-button.is-open::after { transform: scaleX(1); }

.oab-design-avatar .oab-button { --b-bg: #fff; --b-bd: rgba(0, 0, 0, .12); --b-bg-h: #fff; --b-bd-h: var(--oab-primary); --b-rad: 999px; padding-inline-start: 5px; }
.oab-design-avatar .oab-icon:not(.oab-avatar) { width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--oab-tint); }
.oab-design-avatar .oab-icon:not(.oab-avatar) svg { width: 1.1em; height: 1.1em; }

/* ---------- Overlay ---------- */
.oab-overlay {
	position: fixed; inset: 0; z-index: calc(var(--oab-z) - 1);
	background: rgba(10, 12, 18, var(--oab-overlay));
	opacity: 0; visibility: hidden; pointer-events: none;
	transition: opacity var(--oab-speed) ease, visibility 0s linear var(--oab-speed);
}
.oab-mode-popup .oab-overlay.is-open,
.oab-mode-slide_side .oab-overlay.is-open,
.oab-sheet .oab-overlay.is-open,
.oab-dim .oab-overlay.is-open {
	opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s;
}

/* Portal host: zero-size fixed box that owns the stacking context. */
.oab-portal { position: fixed; top: 0; left: 0; width: 0; height: 0; z-index: var(--oab-z); }
html.oab-lock { overflow: hidden !important; padding-right: var(--oab-sbw, 0); }

/* ---------- Panel shell ---------- */
.oab-panel {
	--p-bg: var(--oab-bg); --p-fg: var(--oab-text); --p-input: var(--oab-bg);
	--p-line: rgba(0, 0, 0, .12); --p-soft: rgba(0, 0, 0, .05); --p-muted: rgba(0, 0, 0, .58);
	--oab-r2: min(var(--oab-radius), 14px);
	position: fixed; top: 0; left: 0; z-index: var(--oab-z);
	display: flex; flex-direction: column;
	box-sizing: border-box; width: var(--oab-panel-width); max-width: calc(100vw - 16px); max-height: calc(100vh - 24px);
	margin: 0; padding: 0;
	background: var(--p-bg); color: var(--p-fg);
	border: 1px solid var(--p-line); border-radius: var(--oab-radius);
	font-family: inherit; font-size: 15px; line-height: 1.45; text-align: start; text-transform: none; letter-spacing: normal;
	visibility: hidden; opacity: 0; pointer-events: none; outline: none;
	transition: opacity var(--oab-speed) var(--oab-ease), transform var(--oab-speed) var(--oab-ease), visibility 0s linear var(--oab-speed);
}
.oab-panel.is-open { visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s; }
.oab-panel *, .oab-panel *::before, .oab-panel *::after { box-sizing: border-box; }
.oab-panel-inner { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 30px 24px 24px; border-radius: inherit; -webkit-overflow-scrolling: touch; }

.oab-theme-dark .oab-panel {
	--p-bg: #17181c; --p-fg: #f3f3f5; --p-input: rgba(255, 255, 255, .05);
	--p-line: rgba(255, 255, 255, .14); --p-soft: rgba(255, 255, 255, .07); --p-muted: rgba(255, 255, 255, .62);
}

.oab-shadow-none .oab-panel   { box-shadow: none; }
.oab-shadow-soft .oab-panel   { box-shadow: 0 4px 16px rgba(0, 0, 0, .10); }
.oab-shadow-medium .oab-panel { box-shadow: 0 14px 38px rgba(0, 0, 0, .16); }
.oab-shadow-strong .oab-panel { box-shadow: 0 26px 64px rgba(0, 0, 0, .26); }

.oab-panel .oab-panel-close {
	position: absolute; top: 9px; inset-inline-end: 9px; z-index: 2;
	width: 32px; height: 32px; margin: 0; padding: 0;
	display: flex; align-items: center; justify-content: center;
	font-size: 22px; line-height: 1; font-family: inherit; text-transform: none;
	color: var(--p-muted); background: transparent; border: 0; border-radius: 50%; box-shadow: none; cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
.oab-panel .oab-panel-close:hover,
.oab-panel .oab-panel-close:focus { background: var(--p-soft); color: var(--p-fg); }
.oab-panel .oab-panel-close:focus-visible { outline: 2px solid var(--oab-primary); outline-offset: 0; }

.oab-sheet-grip { display: none; }

/* ---------- Panel modes ---------- */
/* Dropdowns: JS sets top/left from the button; here only the motion and the caret. */
.oab-mode-slide_down .oab-panel { transform: translateY(-10px) scale(.985); transform-origin: var(--oab-caret-x, calc(100% - 32px)) 0; }
.oab-mode-slide_down .oab-panel.is-open { transform: none; }
.oab-mode-fade .oab-panel { transform: scale(.97); transform-origin: var(--oab-caret-x, calc(100% - 32px)) 0; }
.oab-mode-fade .oab-panel.is-open { transform: none; }

.oab-mode-slide_down:not(.oab-sheet):not(.oab-no-caret) .oab-panel::before,
.oab-mode-fade:not(.oab-sheet):not(.oab-no-caret) .oab-panel::before {
	content: ""; position: absolute; z-index: 1; top: -7px; left: var(--oab-caret-x, calc(100% - 32px));
	width: 12px; height: 12px; margin-left: -6px; background: var(--p-bg);
	border: 1px solid var(--p-line); border-right: 0; border-bottom: 0; border-radius: 3px 0 0 0;
	transform: rotate(45deg); pointer-events: none;
}

/* Popup */
.oab-mode-popup .oab-panel {
	top: 50%; left: 50%; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
	transform: translate(-50%, -46%) scale(.96);
}
.oab-mode-popup .oab-panel.is-open { transform: translate(-50%, -50%); }

/* Slide from the side */
.oab-mode-slide_side .oab-panel {
	top: 0; bottom: 0; right: 0; left: auto; height: 100vh; height: 100dvh; max-height: none;
	width: var(--oab-panel-width); max-width: 92vw;
	border-radius: var(--oab-radius) 0 0 var(--oab-radius); border-width: 0 0 0 1px;
	transform: translateX(100%);
}
.oab-mode-slide_side.oab-position-side_left .oab-panel,
.oab-mode-slide_side.oab-position-under_left .oab-panel {
	left: 0; right: auto; border-radius: 0 var(--oab-radius) var(--oab-radius) 0; border-width: 0 1px 0 0; transform: translateX(-100%);
}
.oab-mode-slide_side .oab-panel.is-open { transform: none; }
.oab-mode-slide_side .oab-panel-inner { padding-top: 54px; }

/* ---------- In-page panel ([odam_login_form] / [odam_account_content]) ---------- */
.oab-standalone .oab-panel {
	position: relative; top: auto; left: auto; width: 100%; max-width: var(--oab-panel-width); max-height: none; margin: 0 auto;
	visibility: visible; opacity: 1; pointer-events: auto; transform: none; transition: none;
}
.oab-standalone .oab-panel-close { display: none; }
.oab-standalone .oab-panel-inner { padding-top: 26px; overflow: visible; }

/* ---------- Mobile sheets (dropdown styles on narrow screens) ---------- */
.oab-sheet .oab-panel { left: 0; right: 0; width: 100%; max-width: none; margin: 0; }

.oab-sheet.oab-mobile-bottom_sheet .oab-panel {
	top: auto; bottom: 0; max-height: 90vh; max-height: 90dvh; border-width: 1px 0 0; border-radius: 22px 22px 0 0;
	transform: translateY(100%);
}
.oab-sheet.oab-mobile-bottom_sheet .oab-panel.is-open { transform: none; }
.oab-sheet.oab-mobile-bottom_sheet .oab-panel-inner { padding: 34px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
.oab-sheet.oab-mobile-bottom_sheet .oab-sheet-grip {
	display: block; position: absolute; top: 9px; left: 50%; width: 42px; height: 4px; margin-left: -21px;
	border-radius: 4px; background: var(--p-line);
}

.oab-sheet.oab-mobile-centered .oab-panel {
	top: var(--oab-top); bottom: auto; left: 50%; right: auto; width: calc(100vw - 24px); max-width: max(var(--oab-panel-width), 420px);
	max-height: calc(100vh - var(--oab-top) - 12px); max-height: calc(100dvh - var(--oab-top) - 12px);
	transform: translate(-50%, -12px) scale(.98);
}
.oab-sheet.oab-mobile-centered .oab-panel.is-open { transform: translate(-50%, 0); }

.oab-sheet.oab-mobile-full_screen .oab-panel {
	top: var(--oab-top); bottom: 0; max-height: none; height: calc(100vh - var(--oab-top)); height: calc(100dvh - var(--oab-top));
	border-width: 1px 0 0; border-radius: 22px 22px 0 0; transform: translateY(28px);
}
.oab-sheet.oab-mobile-full_screen .oab-panel.is-open { transform: none; }

/* Popup / side panels on narrow screens */
.oab-narrow.oab-mode-popup .oab-panel { width: calc(100vw - 24px); max-width: max(var(--oab-panel-width), 420px); }
.oab-narrow.oab-mode-slide_side .oab-panel { width: min(var(--oab-panel-width), 92vw); }

/* ---------- Panel content: headings ---------- */
.oab-panel-brand { text-align: center; font-size: 26px; font-weight: 800; letter-spacing: .02em; line-height: 1.1; margin: 0; }
.oab-panel-brand .oab-word-accent { color: var(--oab-primary); }
.oab-panel-divider { height: 1px; margin: 14px 0 18px; border: 0; background: var(--p-line); }
.oab-panel-heading { margin: 0 0 4px; font-size: 19px; font-weight: 700; line-height: 1.3; text-align: center; color: var(--p-fg); }
.oab-panel-subheading { margin: 0 0 18px; font-size: 13.5px; text-align: center; color: var(--p-muted); }

/* ---------- Forms ---------- */
.oab-panel .oab-form { margin: 0; padding: 0; }
.oab-panel .oab-field { position: relative; margin: 0 0 12px; padding: 0; }
.oab-panel .oab-field input[type="text"],
.oab-panel .oab-field input[type="email"],
.oab-panel .oab-field input[type="password"],
.oab-panel .oab-field input[type="tel"] {
	display: block; width: 100%; max-width: none; height: 46px; margin: 0;
	padding-block: 0; padding-inline-start: var(--pi-s, 14px); padding-inline-end: var(--pi-e, 14px);
	font-family: inherit; font-size: 15px; line-height: normal; color: var(--p-fg); background: var(--p-input);
	border: 1.5px solid var(--p-line); border-radius: var(--oab-r2); box-shadow: none; outline: none;
	-webkit-appearance: none; appearance: none;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.oab-panel .oab-field input::placeholder { color: var(--p-muted); opacity: .85; }
.oab-panel .oab-field input:hover { border-color: rgba(128, 128, 128, .55); }
.oab-panel .oab-field input:focus { border-color: var(--oab-primary); box-shadow: 0 0 0 3px var(--oab-ring); background: var(--p-input); color: var(--p-fg); }
.oab-panel .oab-field input[aria-invalid="true"] { border-color: #d93025; box-shadow: 0 0 0 3px rgba(217, 48, 37, .14); }
.oab-panel .oab-field input:-webkit-autofill { -webkit-text-fill-color: var(--p-fg); box-shadow: 0 0 0 40px var(--p-bg) inset; }
.oab-panel .oab-field-icon { --pi-s: 40px; }
.oab-panel .oab-field-eye { --pi-e: 44px; }
.oab-panel .oab-field-icon-svg { position: absolute; top: 50%; inset-inline-start: 13px; transform: translateY(-50%); color: var(--p-muted); pointer-events: none; }
/* The icon precedes the input in the markup, so tint it through :focus-within. */
.oab-panel .oab-field-icon:focus-within .oab-field-icon-svg { color: var(--oab-primary); }

.oab-panel .oab-toggle-eye {
	position: absolute; top: 50%; inset-inline-end: 6px; transform: translateY(-50%); width: 34px; height: 34px; margin: 0; padding: 0;
	display: flex; align-items: center; justify-content: center; color: var(--p-muted); background: transparent;
	border: 0; border-radius: 8px; box-shadow: none; cursor: pointer;
}
.oab-panel .oab-toggle-eye:hover,
.oab-panel .oab-toggle-eye:focus { color: var(--p-fg); background: var(--p-soft); }
.oab-panel .oab-toggle-eye:focus-visible { outline: 2px solid var(--oab-primary); outline-offset: 0; }
.oab-eye-on, .oab-eye-off { display: inline-flex; }
.oab-eye-off { display: none; }
.oab-toggle-eye.is-visible .oab-eye-on { display: none; }
.oab-toggle-eye.is-visible .oab-eye-off { display: inline-flex; }

/* Field styles */
.oab-input-filled .oab-panel .oab-field input[type="text"],
.oab-input-filled .oab-panel .oab-field input[type="email"],
.oab-input-filled .oab-panel .oab-field input[type="password"],
.oab-input-filled .oab-panel .oab-field input[type="tel"] { background: var(--p-soft); border-color: transparent; }
.oab-input-filled .oab-panel .oab-field input:focus { background: var(--p-input); border-color: var(--oab-primary); }
.oab-input-underline .oab-panel .oab-field input[type="text"],
.oab-input-underline .oab-panel .oab-field input[type="email"],
.oab-input-underline .oab-panel .oab-field input[type="password"],
.oab-input-underline .oab-panel .oab-field input[type="tel"] { background: transparent; border-width: 0 0 1.5px; border-radius: 0; }
.oab-input-underline .oab-panel .oab-field { --pi-s: 4px; }
.oab-input-underline .oab-panel .oab-field-icon { --pi-s: 30px; }
.oab-input-underline .oab-panel .oab-field-icon-svg { inset-inline-start: 4px; }
.oab-input-underline .oab-panel .oab-field input:focus { box-shadow: none; }

.oab-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }

.oab-panel .oab-field-inline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 14px; font-size: 13.5px; }
.oab-panel .oab-field-inline label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: inherit; font-weight: 400; color: var(--p-fg); cursor: pointer; }
.oab-panel .oab-field-inline input[type="checkbox"] { width: 16px; height: 16px; margin: 0; flex: none; accent-color: var(--oab-primary); }
.oab-panel .oab-terms { justify-content: flex-start; align-items: flex-start; }
.oab-panel .oab-terms label { align-items: flex-start; line-height: 1.4; }
.oab-panel .oab-terms input[type="checkbox"] { margin-top: 2px; }
.oab-panel .oab-terms input[aria-invalid="true"] { outline: 2px solid #d93025; outline-offset: 1px; }
.oab-panel .oab-terms a { color: var(--oab-primary); text-decoration: underline; }

.oab-panel .oab-lost-password { color: var(--oab-primary); font-weight: 600; text-decoration: none; }
.oab-panel .oab-lost-password:hover { text-decoration: underline; }

.oab-panel .oab-switch-link { display: block; margin-top: 16px; font-size: 14px; text-align: center; text-decoration: none; color: var(--p-muted); }
.oab-panel .oab-switch-link b { color: var(--oab-primary); font-weight: 700; }
.oab-panel .oab-switch-link:hover b { text-decoration: underline; }

.oab-form-msg { margin: 0; padding: 0; height: 0; overflow: hidden; font-size: 13.5px; line-height: 1.4; border-radius: 8px; }
.oab-form-msg.is-error,
.oab-form-msg.is-ok { height: auto; overflow: visible; margin: 0 0 12px; padding: 9px 12px; }
.oab-form-msg.is-error { color: #b3261e; background: rgba(217, 48, 37, .1); }
.oab-form-msg.is-ok { color: #137333; background: rgba(24, 128, 56, .12); }
.oab-theme-dark .oab-form-msg.is-error { color: #ffb4ab; background: rgba(217, 48, 37, .2); }
.oab-theme-dark .oab-form-msg.is-ok { color: #9ee2b0; background: rgba(24, 128, 56, .25); }

.oab-panel .oab-submit,
.oab-panel .oab-btn-outline {
	position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 46px; margin: 0; padding: 0 18px;
	font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1; text-transform: none; letter-spacing: normal; text-decoration: none;
	border-radius: var(--oab-r2); box-shadow: none; cursor: pointer; -webkit-appearance: none; appearance: none;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease, box-shadow .15s ease;
}
.oab-panel .oab-submit { color: #fff; background: var(--oab-primary); border: 1.5px solid var(--oab-primary); }
.oab-panel .oab-submit:hover,
.oab-panel .oab-submit:focus { color: #fff; background: var(--oab-primary-dark); border-color: var(--oab-primary-dark); box-shadow: 0 6px 16px var(--oab-ring); }
.oab-panel .oab-submit:active { transform: translateY(1px); box-shadow: none; }
.oab-panel .oab-submit:disabled { cursor: default; opacity: .85; transform: none; }
.oab-panel .oab-submit:focus-visible,
.oab-panel .oab-btn-outline:focus-visible { outline: 2px solid var(--oab-primary); outline-offset: 2px; }
.oab-panel .oab-submit::after {
	content: ""; position: absolute; inset: 0; width: 18px; height: 18px; margin: auto; border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; opacity: 0; animation: oab-spin .7s linear infinite; animation-play-state: paused;
}
.oab-form.is-loading .oab-submit .oab-submit-label { opacity: 0; }
.oab-form.is-loading .oab-submit::after { opacity: 1; animation-play-state: running; }

.oab-panel .oab-btn-outline { margin-top: 10px; color: var(--p-fg); background: transparent; border: 1.5px solid var(--p-line); font-weight: 600; }
.oab-panel .oab-btn-outline:hover,
.oab-panel .oab-btn-outline:focus { color: var(--oab-primary); background: var(--oab-tint); border-color: var(--oab-primary); }

/* Honeypot: clipped, never display:none (bots skip those) and never off-screen (that adds a huge scroll area in RTL). */
.oab-hp { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* Password strength */
.oab-strength { display: flex; align-items: center; gap: 10px; margin: -4px 0 12px; font-size: 12px; }
.oab-strength[hidden] { display: none !important; }
.oab-strength-bar { display: block; flex: 1; height: 5px; border-radius: 5px; overflow: hidden; background: var(--p-soft); }
.oab-strength-bar i { display: block; width: 0; height: 100%; border-radius: 5px; background: #d93025; transition: width .25s ease, background-color .25s ease; }
.oab-strength[data-level="1"] i { background: #e8710a; }
.oab-strength[data-level="2"] i { background: #f2b200; }
.oab-strength[data-level="3"] i { background: #7cb342; }
.oab-strength[data-level="4"] i { background: #188038; }
.oab-strength em { min-width: 62px; font-style: normal; text-align: end; color: var(--p-muted); }

/* Legacy layouts */
.oab-tabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 16px; background: var(--p-soft); border-radius: var(--oab-r2); }
.oab-panel .oab-tab {
	flex: 1; margin: 0; padding: 9px 10px; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; text-transform: none;
	color: var(--p-muted); background: transparent; border: 0; border-radius: calc(var(--oab-r2) - 3px); box-shadow: none; cursor: pointer;
}
.oab-panel .oab-tab:hover { color: var(--p-fg); background: transparent; }
.oab-panel .oab-tab.is-active { color: var(--p-fg); background: var(--p-bg); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.oab-panel .oab-tab:focus-visible { outline: 2px solid var(--oab-primary); outline-offset: 1px; }
.oab-panel-style-stacked .oab-tab-panel + .oab-tab-panel { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--p-line); }

/* ---------- Logged-in panel ---------- */
.oab-account-header { display: flex; align-items: center; gap: 14px; margin: 0 0 8px; padding: 0 28px 16px 0; border-bottom: 1px solid var(--p-line); }
.oab-panel .oab-account-avatar { flex: none; width: 52px; height: 52px; margin: 0; border-radius: 50%; object-fit: cover; background: var(--p-soft); }
.oab-account-id { min-width: 0; }
.oab-account-name { font-size: 17px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.oab-account-email { margin-top: 2px; font-size: 13px; color: var(--p-muted); overflow-wrap: anywhere; }

.oab-panel ul.oab-account-links { margin: 0; padding: 0; list-style: none; }
.oab-panel .oab-account-links li { margin: 0; padding: 0; list-style: none; }
.oab-panel .oab-account-links a {
	display: flex; align-items: center; gap: 12px; margin: 0 -10px; padding: 9px 10px;
	font-size: 15px; font-weight: 500; line-height: 1.3; text-decoration: none; color: var(--p-fg);
	border-radius: var(--oab-r2); transition: background-color .15s ease, color .15s ease;
}
.oab-panel .oab-account-links a:hover,
.oab-panel .oab-account-links a:focus-visible { color: var(--oab-primary); background: var(--p-soft); }
.oab-panel .oab-account-links a:focus-visible { outline: 2px solid var(--oab-primary); outline-offset: -2px; }
.oab-mi { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; color: var(--oab-primary); background: var(--oab-tint); }
.oab-link-label { flex: 1 1 auto; min-width: 0; }
.oab-panel .oab-count {
	display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px;
	font-size: 12px; font-weight: 700; line-height: 1; color: #fff; background: var(--oab-primary); border-radius: 99px;
}
.oab-panel .oab-li-logout { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--p-line); }
.oab-panel .oab-li-logout a { color: var(--p-muted); }
.oab-panel .oab-li-logout .oab-mi { color: var(--p-muted); background: var(--p-soft); }
.oab-panel .oab-li-logout a:hover,
.oab-panel .oab-li-logout a:focus-visible { color: #d93025; background: rgba(217, 48, 37, .09); }
.oab-panel .oab-li-logout a:hover .oab-mi { color: #d93025; background: rgba(217, 48, 37, .12); }
.oab-panel .oab-logout-link.is-loading { opacity: .55; pointer-events: none; }

/* ---------- Motion ---------- */
@keyframes oab-spin { to { transform: rotate(360deg); } }
@keyframes oab-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
.oab-form.oab-shake { animation: oab-shake .36s ease; }

@media (prefers-reduced-motion: reduce) {
	.oab-panel, .oab-overlay, .oab-wrapper .oab-button, .oab-wrapper .oab-chevron, .oab-design-underline .oab-button::after { transition-duration: .01ms !important; }
	.oab-form.oab-shake { animation: none; }
	.oab-panel .oab-submit::after { animation-duration: 1.6s; }
}

/* Very narrow panels: stack the first/last name row. */
@media (max-width: 380px) {
	.oab-field-row { grid-template-columns: 1fr; }
	.oab-panel-inner { padding-inline: 18px; }
}

/* Custom (Elementor) icons: font icons size with the text, SVG keeps the default em box. */
.oab-wrapper .oab-icon i { font-size: 1.25em; line-height: 1; display: block; }

/* Phone fields follow the page direction like the others. */
.oab-panel .oab-field input { text-align: start; }
