/**
 * RL Membership styles
 */

[hidden] {
	display: none !important;
}

.rl-form {
	max-width: 450px !important;
	margin-left: auto;
	margin-right: auto;
}

.rl-form-head {
	margin-bottom: 20px;
}

.rl-form-title {
	margin: 0 0 4px;
	font-size: 24px;
	line-height: 1.3;
}

.rl-form-desc {
	margin: 0;
	font-size: 14px;
	color: #64748b;
}

.rl-field {
	margin-bottom: 16px;
}

.rl-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
}

.rl-required {
	color: #dc2626;
}

.rl-field input[type="text"],
.rl-field input[type="email"],
.rl-field input[type="password"],
.rl-field input[type="number"],
.rl-field input[type="search"] {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 15px;
	line-height: 1.4;
	background: #fff;
	color: #0f172a;
	transition: border-color .15s, box-shadow .15s;
}

.rl-field input:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 3px rgba(34, 113, 177, .18);
}

.rl-field.rl-invalid input {
	border-color: #dc2626;
}

.rl-field-error {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: #dc2626;
}

.rl-field-hint {
	margin: 4px 0 0;
	font-size: 13px;
	color: #64748b;
	margin-bottom: 0 !important;
}

.rl-password-wrap {
	position: relative;
	display: block;
}

.rl-password-wrap input {
	padding-right: 44px;
}

.rl-toggle-password {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #64748b;
	cursor: pointer;
}

.rl-toggle-password:hover, .rl-toggle-password:focus {
	background: #FFF;
}

.rl-row {
	display: flex;
	gap: 12px;
}

.rl-row-between {
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.rl-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #334155;
}

.rl-check input {
	width: auto;
}

.rl-link {
	font-size: 14px;
}

.rl-form-actions {
	margin-top: 20px;
}

.rl-btn {
	display: inline-block;
	padding: 10px 22px;
	border: 0;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s, opacity .15s;
}

.rl-btn-primary {
	background: #2271b1;
	color: #fff;
}

.rl-btn-primary:hover {
	background: #1a5b92;
	color: #fff;
}

.rl-btn-secondary {
	background: #e2e8f0;
	color: #1e293b;
}

.rl-btn-secondary:hover {
	background: #cbd5e1;
	color: #1e293b;
}

.rl-btn-small {
	padding: 4px 8px;
	border: solid 1px #fff;
	border-radius: 6px;
	font-size: 13px;
	color: #FFF;
}
.rl-btn:disabled {
	opacity: .6;
	cursor: not-allowed;
}

.rl-form-alt {
	margin: 20px 0 0;
	font-size: 14px;
	color: #475569;
}

.rl-form-alt a {
	font-weight: 600;
}

.rl-msg {
	display: none;
	margin-bottom: 16px;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.5;
}

.rl-msg.rl-msg-show {
	display: block;
}

.rl-msg-success {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}

.rl-msg-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.rl-msg-info {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1e40af;
}

.rl-note {
	margin-bottom: 20px;
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 15px;
	line-height: 1.5;
}

.rl-note-info {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1e40af;
}

.rl-note-success {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}

.rl-note-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.rl-register-success {
	margin: 40px auto;
	max-width: 600px !important;
	padding: 40px 24px;
	text-align: center;
	border: 1px solid #a7f3d0;
	border-radius: 10px;
	background: #ecfdf5;
}

.rl-register-success-msg {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.7;
	color: #065f46;
}

.rl-register-success-link {
	color: #2271b1;
	font-weight: 600;
	text-decoration: none;
}

.rl-register-success-link:hover {
	text-decoration: underline;
}

.rl-register-success-action {
	margin: 0;
}

/* Honeypot (hidden from humans). */
.rl-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

/* Turnstile container spacing. */
.rl-turnstile {
	margin: 4px 0 16px;
	min-height: 65px;
}

/* ---------------------------------------------------------------------
 * Country combobox
 * ------------------------------------------------------------------- */

.rl-field-country {
	position: relative;
}

.rl-native-select {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

.rl-country-select {
	position: relative;
}

.rl-country-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	font-size: 15px;
	text-align: left;
	color: #0f172a;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}

.rl-country-trigger:hover {
	border-color: #94a3b8;
}

.rl-field-country.is-open .rl-country-trigger {
	border-color: #2271b1;
	box-shadow: 0 0 0 3px rgba(34, 113, 177, .18);
}

.rl-country-trigger .rl-country-label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rl-country-trigger svg {
	flex: none;
	margin-left: 8px;
	fill: none;
	stroke: #64748b;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .15s;
}

.rl-field-country.is-open .rl-country-trigger svg {
	transform: rotate(180deg);
}

.rl-country-panel {
	position: absolute;
	z-index: 30;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	display: none;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}

.rl-field-country.is-open .rl-country-panel {
	display: block;
}

.rl-country-panel input.rl-country-search[type="search"] {
	width: calc(100% - 20px);
	margin: 8px 10px;
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 14px;
}

.rl-country-list {
	margin: 0;
	padding: 0 0 6px;
	max-height: 220px;
	overflow-y: auto;
	list-style: none;
}

.rl-country-option {
	padding: 8px 14px;
	font-size: 14px;
	cursor: pointer;
}

.rl-country-option:hover,
.rl-country-option.selected {
	background: #eff6ff;
	color: #1e40af;
}

.rl-country-option.empty {
	color: #94a3b8;
	cursor: default;
}

/* ---------------------------------------------------------------------
 * Account
 * ------------------------------------------------------------------- */

.rl-account {
	max-width: 640px;
}

.rl-account-section {
	margin: 8px 0 20px;
}

.rl-account-sub {
	margin: 0 0 14px;
	font-size: 17px;
}

.rl-account-logout {
	margin: 0;
}

.rl-divider {
	margin: 28px 0;
	border: 0;
	border-top: 1px solid #e2e8f0;
}

.rl-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 20px;
}

@media (max-width: 600px) {
	.rl-grid-2 {
		grid-template-columns: 1fr;
	}
}

.rl-avatar-row {
	display: flex;
	align-items: center;
	gap: 20px;
}

.rl-avatar-preview-img {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid #e2e8f0;
}

.rl-avatar-input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.rl-avatar-dropzone {
	display: block;
	padding: 16px 6px;
	text-align: center;
	border: 2px dashed #cbd5e1;
	border-radius: 8px;
	background: #f8fafc;
	cursor: pointer;
	transition: border-color .15s, background .15s, opacity .15s;
}

.rl-avatar-dropzone:hover,
.rl-avatar-dropzone.rl-avatar-dragover {
	border-color: #2271b1;
	background: #eff6ff;
}

.rl-avatar-dropzone.rl-avatar-busy {
	opacity: .6;
	pointer-events: none;
}

.rl-avatar-dropzone-text {
	display: inline-block;
	font-size: 14px;
	color: #334155;
}

.rl-avatar-controls input[type="file"] {
	display: block;
	margin-bottom: 10px;
	font-size: 14px;
}

.rl-radio {
	display: block;
	margin-bottom: 8px;
	font-size: 15px;
}

.rl-radio input {
	width: auto;
	margin-right: 8px;
}

/* ---------------------------------------------------------------------
 * Profile
 * ------------------------------------------------------------------- */

.rl-profile {
	max-width: 640px;
}

.rl-profile-card {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-bottom: 24px;
}

.rl-profile-avatar img {
	width: 128px;
	height: 128px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid #e2e8f0;
}

.rl-profile-name {
	margin: 0 0 6px;
	font-size: 26px;
}

.rl-profile-tagline {
	margin: 0;
	font-size: 15px;
	color: #64748b;
}

.rl-profile-meta {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	margin: 0 0 20px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
}

.rl-profile-row {
	display: flex;
	align-items: baseline;
	padding: 12px 18px;
	border-bottom: 1px solid #eef1f5;
}

.rl-profile-row:last-child {
	border-bottom: 0;
}

.rl-profile-row dt {
	width: 180px;
	flex: none;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: #64748b;
}

.rl-profile-row dd {
	margin: 0;
	font-size: 15px;
	color: #0f172a;
}

.rl-profile-actions {
	margin: 0;
}

/* ---------------------------------------------------------------------
 * Header auth widget
 * ------------------------------------------------------------------- */

.rl-auth {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: 16px;
	white-space: nowrap;
}

.rl-auth-login {
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	color: #fff;
}

.rl-auth-register {
	margin-left: 2px;
}

.rl-auth-trigger,
.rl-auth-name {
	color: #fff;
}

.rl-auth-login:hover,
.rl-auth-register:hover {
	background: #FFF;
	color: #16288C;
}
.rl-auth-trigger:hover {
	background: transparent;
	color: #fff;
}

.rl-auth-logged-in {
	position: relative;
}

.rl-auth-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 2px 6px;
	border: 0;
	background: transparent;
	font: inherit;
	color: inherit;
	cursor: pointer;
}

.rl-auth-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid #e2e8f0;
}

.rl-auth-name {
	display: none;
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}

.rl-auth-caret {
	display: inline;
	visibility: visible;
	opacity: 1;
	fill: none;
	stroke: #fff;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: none;
}

.rl-auth-logged-in.rl-auth-open .rl-auth-caret {
	transform: none;
}

.rl-auth-menu {
	position: absolute;
	z-index: 999;
	top: calc(100% + 10px);
	right: 0;
	min-width: 120px;
	display: none;
	padding: 6px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(15, 23, 42, .14);
}

.rl-auth-logged-in.rl-auth-open .rl-auth-menu {
	display: block;
}

.rl-auth-menu a {
	display: block;
	padding: 9px 12px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	line-height: 2;
	text-decoration: none;
	color: #334155;
}

.rl-auth-menu a:hover {
	background: #f1f5f9;
	color: #0f172a;
}

/* Mobile header: place auth widget left of the hamburger trigger. */
.ast-builder-layout-element .rl-auth-mobile,
.rl-auth-mobile {
	margin-left: 0;
	margin-right: 8px;
	order: -1;
}

.rl-auth-mobile .rl-auth-name {
	display: none;
}

.rl-auth-mobile.rl-auth-guest .rl-auth-login {
	font-size: 13px;
}

@media (max-width: 544px) {
	.rl-auth-guest .rl-auth-register {
		display: none;
	}
}
