/* LP Login Dropdown ------------------------------------------------------- */

.olpd-wrap {
	position: relative;
	display: inline-block;
}

/* The panel is fixed-positioned and JS moves it to <body>, so it can never be
   clipped by an ancestor with overflow:hidden or its own stacking context.
   Coordinates are set inline by login-dropdown.js. */
.olpd-panel {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100000;
	box-sizing: border-box;
	width: max-content;
	max-width: min(360px, calc(100vw - 20px));
	max-height: calc(100vh - 20px);
	overflow-y: auto;
	padding: 20px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
	color: #333;
	font-size: 14px;
	line-height: 1.5;
}

.olpd-panel[hidden] {
	display: none;
}

.olpd-panel__close {
	position: absolute;
	top: 6px;
	right: 10px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 22px;
	line-height: 1;
	color: #999;
	cursor: pointer;
}

.olpd-panel__close:hover {
	color: #333;
}

.olpd-panel form {
	margin: 0;
}

.olpd-panel p {
	margin: 0 0 12px;
}

.olpd-panel label {
	display: block;
	font-size: 13px;
	margin-bottom: 4px;
}

.olpd-panel input[type="text"],
.olpd-panel input[type="email"],
.olpd-panel input[type="password"] {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
}

.olpd-panel .login-remember {
	font-size: 13px;
}

.olpd-panel .login-remember label {
	display: inline;
	margin: 0;
}

.olpd-panel .login-submit input[type="submit"],
.olpd-panel button[type="submit"] {
	width: 100%;
	padding: 9px 14px;
	border: 0;
	border-radius: 6px;
	background: #2271b1;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
}

.olpd-panel .login-submit input[type="submit"]:hover,
.olpd-panel button[type="submit"]:hover {
	background: #185a8d;
}

.olpd-panel__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin-top: 12px;
	font-size: 13px;
}

.olpd-panel__links a {
	color: #2271b1;
	text-decoration: none;
}

.olpd-panel__links a:hover {
	text-decoration: underline;
}

.olpd-panel__social {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid #eee;
}
