/*
 * Header account dropdown: profile menu + login form.
 * Mirrors the Audioknihy / E-knihy mega menu panel (white surface, warm border,
 * soft shadow, #fff1ec hover) with rounded corners.
 */

.site-header-account .account-dropdown {
	margin-top: 12px;
}

/* Parent draws a 2px red bar on top of the panel; the mega menu has none. */
.site-header-account .account-dropdown::after {
	content: none !important;
	display: none !important;
}

.site-header-account .account-dropdown .account-wrap {
	border: 1px solid #eee4df;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 20px 50px rgba(56, 34, 25, .13);
}

.site-header-account .account-dropdown .account-inner {
	width: 320px;
	padding: 22px 22px 18px;
}

.site-header-account .account-dropdown .account-inner.dashboard {
	width: 250px;
	padding: 8px;
}

/* ---------- Logged-in profile menu ---------- */

.site-header-account .aai-account-head {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 6px;
	padding: 16px 14px;
	background: #faf0e9;
}

.site-header-account .aai-account-eyebrow {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.3px;
	line-height: 1.6;
	text-transform: uppercase;
	color: #a15c48;
}

.site-header-account .aai-account-name {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	color: #282320;
	overflow-wrap: anywhere;
}

.site-header-account .aai-account-email {
	font-size: 11px;
	line-height: 1.5;
	color: #75665e;
	overflow-wrap: anywhere;
}

.site-header-account .account-links-menu,
.site-header-account .account-dashboard {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-header-account .account-links-menu li,
.site-header-account .account-dashboard li {
	margin: 0;
	padding: 0;
}

.site-header-account .account-links-menu li a,
.site-header-account .account-dashboard li a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 12px;
	border-radius: 12px;
	color: #615650;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	text-decoration: none;
	transition: background .16s, color .16s;
}

.site-header-account .aai-account-icon {
	flex: 0 0 18px;
	width: 18px;
	font-size: 15px;
	line-height: 1;
	text-align: center;
	color: #a15c48;
	transition: color .16s;
}

.site-header-account .account-links-menu li a:hover,
.site-header-account .account-dashboard li a:hover,
.site-header-account .account-links-menu li a:focus-visible,
.site-header-account .account-dashboard li a:focus-visible {
	background: #fff1ec;
	color: #b74437;
}

.site-header-account .account-dashboard li a:hover .aai-account-icon,
.site-header-account .account-dashboard li a:focus-visible .aai-account-icon {
	color: #b74437;
}

.site-header-account .account-dashboard li a:focus-visible,
.site-header-account .account-links-menu li a:focus-visible {
	outline: 2px solid #c64e43;
	outline-offset: -2px;
}

.site-header-account .account-dashboard li.aai-account-logout {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid #eee8e4;
}

/* ---------- Logged-out login form ---------- */

.site-header-account .account-dropdown .login-form-head {
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid #eee8e4;
}

.site-header-account .account-dropdown .login-form-title {
	font-size: 17px;
	font-weight: 600;
	color: #282320;
}

.site-header-account .account-dropdown a.register-link,
.site-header-account .account-dropdown a.lostpass-link {
	color: #994235;
	font-size: 12px;
	font-weight: 600;
}

.site-header-account .account-dropdown a.register-link:hover,
.site-header-account .account-dropdown a.lostpass-link:hover {
	color: #b74437;
}

.site-header-account .account-dropdown a.lostpass-link {
	font-weight: 400;
	text-decoration: underline dotted;
	text-underline-offset: 3px;
}

.site-header-account .account-dropdown label {
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #282320;
}

.site-header-account .account-dropdown label .required {
	color: #c64e43;
}

.site-header-account .account-dropdown p {
	margin-bottom: 14px;
}

.site-header-account .account-dropdown input[type="text"],
.site-header-account .account-dropdown input[type="password"] {
	height: 44px;
	padding: 0 14px;
	border: 1px solid #e6dcd6;
	border-radius: 22px !important;
	background: #fff;
	color: #282320;
	font-size: 13px;
	box-shadow: none;
	transition: border-color .16s, box-shadow .16s;
}

.site-header-account .account-dropdown input[type="text"]:focus,
.site-header-account .account-dropdown input[type="password"]:focus {
	border-color: #c64e43;
	box-shadow: 0 0 0 3px rgba(198, 78, 67, .12);
	outline: none;
}

.site-header-account .account-dropdown input::placeholder {
	color: #a89a92;
}

.site-header-account .account-dropdown .bookory-login-form-ajax button[type="submit"] {
	height: 44px;
	padding: 0 16px;
	border-radius: 22px !important;
	font-size: 12px !important;
	font-weight: 700;
	letter-spacing: .6px;
}

.site-header-account .account-dropdown .login-form-bottom {
	margin-top: 10px;
}

/* Login error / success notice inside the dropdown. */
.site-header-account .account-dropdown .result-error.woocommerce-error {
	margin: 0 0 16px !important;
	padding: 11px 14px !important;
	border: 0 !important;
	border-left: 3px solid #c64e43 !important;
	border-radius: 22px !important;
	background: #fff1ec !important;
	color: #9b3529 !important;
	font-size: 12px !important;
	font-weight: 500;
	line-height: 1.55 !important;
	box-shadow: none !important;
	list-style: none;
}

.site-header-account .account-dropdown .result-error.woocommerce-error::before,
.site-header-account .account-dropdown .result-error.woocommerce-error::after {
	content: none !important;
	display: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.site-header-account .account-dashboard li a,
	.site-header-account .aai-account-icon,
	.site-header-account .account-dropdown input {
		transition: none;
	}
}

/* Account surfaces use AudioSpace coral and warm neutral backgrounds. */
.site-header-account {
	--account-coral: var(--primary, #f65d4e);
	--account-ink: #282320;
}
.site-header-account:focus-within .account-dropdown {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}
.site-header-account .account-dropdown .account-inner {
	width: 350px;
	max-width: calc(100vw - 32px);
	box-sizing: border-box;
}
.site-header-account .aai-account-head { background: #fff1ec; }
.site-header-account .aai-account-icon,
.site-header-account .aai-account-eyebrow { color: #bd4438; }
.site-header-account .account-dropdown .login-form-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}
.site-header-account .account-dropdown .bookory-login-form-ajax button[type="submit"] {
	background: var(--account-coral);
	color: #fff;
	border: 0;
	letter-spacing: 0;
}
.site-header-account .account-dropdown .bookory-login-form-ajax button[type="submit"]:hover {
	background: #d94b3e;
}
.site-header-account .account-dropdown .aai-google-login {
	width: 100%;
	margin: 0 0 18px;
}
.aai-google-error {
	color: #a12c23;
	background: #fff1ec;
	padding: 10px 12px;
	font-size: 13px;
	line-height: 1.5;
}

.woocommerce-account .woocommerce-breadcrumb { text-transform: none; }
.woocommerce-account .breadcrumb-wrap {
	background: #fff7f3;
	padding-top: 24px;
	padding-bottom: 24px;
	margin-bottom: 32px;
}
.woocommerce-account .breadcrumb-wrap .bookory-woocommerce-title {
	font-size: clamp(28px, 3.5vw, 42px) !important;
	line-height: 1.2;
	text-transform: none !important;
	letter-spacing: -.7px;
	color: #282320;
}
.woocommerce-account:not(.logged-in) .site-content { padding-bottom: 48px; }
.woocommerce-account:not(.logged-in) .entry-content > .woocommerce {
	max-width: 1040px;
	margin-inline: auto;
}
.woocommerce-account:not(.logged-in) .entry-content > .woocommerce > .aai-google-login {
	max-width: 400px;
	width: 100%;
	margin: 0 auto 26px;
}
.woocommerce-account #customer_login {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 28px;
	margin: 0;
}
.woocommerce-account #customer_login::before,
.woocommerce-account #customer_login::after { display: none; }
.woocommerce-account #customer_login > .col-1,
.woocommerce-account #customer_login > .col-2 {
	float: none;
	width: auto;
	max-width: none;
	padding: 0;
	margin: 0;
	min-width: 0;
}
.woocommerce-account #customer_login form,
.woocommerce-account:not(.logged-in) form.woocommerce-ResetPassword {
	background: #fff;
	border: 1px solid #eee4df;
	border-radius: 12px;
	padding: clamp(20px, 3vw, 34px);
	margin: 0;
	box-shadow: 0 8px 28px rgba(56, 34, 25, .04);
}
.woocommerce-account #customer_login form.register { background: #fff7f3; }
.woocommerce-account #customer_login .woocommerce-form-login-wrap { padding: 0; }
.woocommerce-account #customer_login h2 {
	font-size: 25px;
	line-height: 1.25;
	margin: 0 0 24px;
	color: #282320;
}
.woocommerce-account #customer_login p { line-height: 1.7; }
.woocommerce-account #customer_login label { font-size: 13px; font-weight: 600; }
.woocommerce-account #customer_login input.input-text,
.woocommerce-account form.woocommerce-ResetPassword input.input-text {
	background: #fff;
	border: 1px solid #e3d9d3;
	border-radius: 8px;
	min-height: 48px;
	padding: 12px 14px;
	font-size: 14px;
}
.woocommerce-account #customer_login input.input-text:focus,
.woocommerce-account form.woocommerce-ResetPassword input.input-text:focus {
	border-color: #f65d4e;
	box-shadow: 0 0 0 3px rgba(246, 93, 78, .13);
	outline: none;
}
.woocommerce-account #customer_login button[type="submit"],
.woocommerce-account form.woocommerce-ResetPassword button[type="submit"] {
	background: var(--primary, #f65d4e);
	color: #fff;
	border-radius: 8px;
	min-height: 48px;
	padding: 12px 20px;
}
.woocommerce-account #customer_login button[type="submit"]:hover { background: #d94b3e; }
.woocommerce-account #customer_login .lost_password a,
.woocommerce-account #customer_login .woocommerce-privacy-policy-link { color: #aa392f; }
@media (max-width: 767px) {
	.woocommerce-account #customer_login { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.woocommerce-account .breadcrumb-wrap { margin-bottom: 24px; padding-block: 20px; }
	.woocommerce-account #customer_login .woocommerce-form-login-wrap .lost_password {
		display: block;
		float: none;
		clear: both;
		width: 100%;
		margin: 12px 0 20px;
	}
}

.site-header-account .aai-google-btn { display: flex; justify-content: center; min-height: 40px; }
.site-header-account .aai-google-or { margin: 14px 0 4px; text-align: center; font-size: 12px; color: #75665e; }

/* Google includes its own transparent iframe padding; the theme's global
   max-width:100% clips the button's right edge when that padding is squeezed. */
.aai-google-btn iframe { max-width: none; }
.woocommerce-account .breadcrumb-wrap .elementor-top-section {
	background-color: #fff7f3 !important;
}

/* Keep the pointer inside the dropdown while crossing its visual gap. */
.site-header-account .account-dropdown::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -12px;
	height: 12px;
}
.site-header-account .account-dropdown .account-wrap { border-radius: 16px; }
.site-header-account .aai-account-head { border-radius: 10px; }
.site-header-account .account-dropdown .result-error.woocommerce-error { border-radius: 10px !important; }
.woocommerce-account #customer_login input.input-text,
.woocommerce-account form.woocommerce-ResetPassword input.input-text,
.woocommerce-account #customer_login button[type="submit"],
.woocommerce-account form.woocommerce-ResetPassword button[type="submit"] { border-radius: 24px; }
