/*
 * Bookly Customer Auth - base styles.
 * Every section has its own dedicated class exactly as requested, so all
 * visual design can be overridden with custom CSS (e.g. from Elementor's
 * "Custom CSS" or a child theme) without touching this file:
 *   .bkc-login-form
 *   .bkc-register-form
 *   .bkc-reset-form
 *   .bkc-account-button
 *   .bkc-avatar
 *   .bkc-account-menu
 */

.bkc-login-form,
.bkc-register-form,
.bkc-reset-form {
	max-width: 360px;
}

.bkc-login-form .bkc-field,
.bkc-register-form .bkc-field,
.bkc-reset-form .bkc-field {
	margin-bottom: 1em;
	display: flex;
	flex-direction: column;
	gap: .35em;
}

.bkc-login-form input,
.bkc-register-form input,
.bkc-reset-form input {
	padding: .6em .75em;
	border: 1px solid #ccc;
	border-radius: 4px;
	width: 100%;
	box-sizing: border-box;
}

.bkc-login-form button,
.bkc-register-form button,
.bkc-reset-form button {
	cursor: pointer;
	padding: .6em 1.2em;
	border: 0;
	border-radius: 4px;
}

.bkc-form-error {
	background: #fdecea;
	color: #611a15;
	border: 1px solid #f5c6cb;
	border-radius: 4px;
	padding: .6em .8em;
	margin-bottom: 1em;
}

.bkc-account-button {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	text-decoration: none;
}

.bkc-avatar {
	display: inline-flex;
	line-height: 0;
}

.bkc-avatar img {
	border-radius: 50%;
	display: block;
}

/*
 * Hover menu on the logged-in account button (panel link + logout) - the
 * whole ".bkc-account" wrapper is the hover/focus target so moving the
 * mouse from the avatar down onto the menu doesn't close it.
 */
.bkc-account {
	position: relative;
	display: inline-block;
}

.bkc-account-menu {
	position: absolute;
	top: 100%;
	inset-inline-end: 0;
	min-width: 180px;
	margin-top: .25em;
	padding: .3em;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
	z-index: 100;
}

.bkc-account:hover .bkc-account-menu,
.bkc-account:focus-within .bkc-account-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.bkc-account-menu__item {
	display: block;
	padding: .55em .8em;
	border-radius: 4px;
	text-decoration: none;
	color: inherit;
	white-space: nowrap;
	font-size: .9em;
}

.bkc-account-menu__item:hover,
.bkc-account-menu__item:focus {
	background: rgba(0, 0, 0, .06);
}

.bkc-account-menu__item--logout {
	color: #c0392b;
}

/*
 * Combined tabbed widget ([bookly_customer_auth]) - one shortcode showing
 * Login / Register / Reset-password as switchable tabs, for use inside a
 * single Elementor popup.
 */
.bkc-auth-tabs__nav {
	display: flex;
	gap: .5em;
	margin-bottom: 1.25em;
	border-bottom: 1px solid #e0e0e0;
}

.bkc-auth-tabs__nav-item {
	background: none;
	border: 0;
	padding: .6em 1em;
	cursor: pointer;
	font: inherit;
	border-bottom: 2px solid transparent;
	opacity: .6;
}

.bkc-auth-tabs__nav-item--active {
	opacity: 1;
	border-bottom-color: currentColor;
	font-weight: 600;
}

.bkc-auth-tabs__panel {
	display: none;
}

.bkc-auth-tabs__panel--active {
	display: block;
}
