/* Account icon trigger */
.custom-account-widget {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.custom-account-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #222;
	text-decoration: none;
	transition: color 0.2s ease;
}

.custom-account-icon:hover,
.custom-account-widget.is-open .custom-account-icon {
	color: #f0603f;
}

/* Dropdown popup - anchored directly under the icon */
.custom-account-popup {
	display: none;
	position: absolute;
	top: calc(100% + 14px);
	right: 0;
	top: 30px;
	background: #fff;
	width: 340px;
	max-width: 90vw;
	border-radius: 10px;
	border-top: 4px solid #f0603f;
	padding: 24px 24px 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	z-index: 9999;
	animation: customAccountFadeIn 0.18s ease;
}

.custom-account-widget.is-open .custom-account-popup {
	display: block;
}



@keyframes customAccountFadeIn {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Tabs: Sign in / Create an Account */
.custom-account-tabs {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #eee;
	padding-bottom: 14px;
	margin-bottom: 20px;
}

.custom-account-tabs .active {
	font-size: 20px;
	font-weight: 600;
	color: #222;
}

.custom-account-tabs a {
	font-size: 14px;
	color: #999;
	text-decoration: none;
}

.custom-account-tabs a:hover {
	color: #f0603f;
}

/* Form fields */
.custom-field {
	margin-bottom: 18px;
}

.custom-field label {
	display: block;
	font-size: 14px;
	color: #333;
	margin-bottom: 6px;
}

.custom-field .required {
	color: #f0603f;
}

.custom-field input[type="text"],
.custom-field input[type="password"] {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #ddd;
	border-radius: 24px;
	font-size: 14px;
	box-sizing: border-box;
}

.custom-field input:focus {
	outline: none;
	border-color: #f0603f;
}

/* Login button */
.custom-login-btn {
	width: 100%;
	background: #f0603f;
	color: #fff;
	border: none;
	border-radius: 24px;
	padding: 14px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.custom-login-btn:hover {
	background: #e04e2c;
}

.custom-login-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.lost-password {
	text-align: right;
	margin-top: 14px;
}

.lost-password a {
	font-size: 13px;
	color: #666;
	text-decoration: underline;
}

.custom-login-message {
	margin-top: 14px;
	font-size: 13px;
}

.custom-login-message.error {
	color: #d63638;
}

.custom-login-message.success {
	color: #2a8f4f;
}

/* Logged-in: account menu */
.custom-account-user {
	display: flex;
	align-items: center;
	gap: 12px;
	border-bottom: 1px solid #eee;
	padding-bottom: 16px;
	margin-bottom: 12px;
}

.custom-account-user img {
	border-radius: 50%;
}

.custom-account-user p {
	margin: 0;
	font-size: 15px;
}

.custom-account-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.custom-account-menu li {
	border-bottom: 1px solid #f2f2f2;
}

.custom-account-menu li:last-child {
	border-bottom: none;
}

.custom-account-menu a {
	display: block;
	padding: 12px 4px;
	font-size: 14px;
	color: #333;
	text-decoration: none;
	transition: color 0.2s ease;
}

.custom-account-menu a:hover {
	color: #f0603f;
}

.custom-account-menu .custom-logout a {
	color: #f0603f;
	font-weight: 600;
}
.custom-account-widget.is-open .custom-account-popup {
        
        display: block !important;
}
#custom-account-popup-overlay {
    position: relative;
}
/* Mobile */
@media (max-width: 480px) {
	.custom-account-popup {
		width: 300px;
		right: -10px;
		padding: 20px 18px 16px;
	}
}
