.rb-account-widget {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin-right: 10px;
	vertical-align: middle;
}

.rb-account-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: inherit;
	text-decoration: none;
	line-height: 1;
	padding: 4px 2px;
}

.rb-account-toggle:hover,
.rb-account-toggle:focus {
	opacity: 0.75;
}

.rb-account-icon {
	display: inline-flex;
	width: 22px;
	height: 22px;
}

.rb-account-label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.rb-account-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 180px;
	background: #111;
	color: #fff;
	border: 1px solid #333;
	z-index: 10050;
	padding: 8px 0;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.rb-account-dropdown a,
.rb-account-dropdown button {
	display: block;
	width: 100%;
	text-align: left;
	background: none;
	border: 0;
	color: #fff;
	padding: 10px 14px;
	font: inherit;
	cursor: pointer;
	text-decoration: none;
}

.rb-account-dropdown a:hover,
.rb-account-dropdown button:hover {
	background: #222;
}

.rb-account-page {
	padding: 48px 0 80px;
}

.rb-account-shell {
	max-width: 640px;
	margin: 0 auto;
	padding: 0 20px;
}

.rb-account-shell h1 {
	margin: 0 0 24px;
	font-size: 1.75rem;
}

.rb-form {
	display: grid;
	gap: 14px;
	margin-bottom: 24px;
}

.rb-form label {
	display: grid;
	gap: 6px;
	font-size: 0.95rem;
}

.rb-form input[type="text"],
.rb-form input[type="email"],
.rb-form input[type="password"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	background: #fff;
	font: inherit;
}

.rb-form button,
.rb-logout-inline button {
	justify-self: start;
	padding: 10px 18px;
	border: 0;
	background: #111;
	color: #fff;
	cursor: pointer;
	font: inherit;
}

.rb-form--danger button {
	background: #8b1a1a;
}

.rb-check {
	display: flex !important;
	align-items: flex-start;
	gap: 8px;
	grid-template-columns: none !important;
}

.rb-check input {
	margin-top: 3px;
}

.rb-hp {
	position: absolute !important;
	left: -9999px !important;
	height: 0 !important;
	overflow: hidden !important;
}

.rb-flash {
	padding: 12px 14px;
	margin-bottom: 18px;
	border-left: 3px solid #888;
	background: #f5f5f5;
}

.rb-flash--ok {
	border-color: #2d6a4f;
}

.rb-flash--error {
	border-color: #9b2226;
}

.rb-account-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin: 0 0 24px;
	border-bottom: 1px solid #ddd;
	padding-bottom: 10px;
}

.rb-account-tabs a {
	text-decoration: none;
	color: inherit;
	opacity: 0.65;
}

.rb-account-tabs a.is-active {
	opacity: 1;
	font-weight: 600;
}

.rb-comment-history {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rb-comment-history li {
	display: grid;
	gap: 4px;
	padding: 12px 0;
	border-bottom: 1px solid #eee;
}

.rb-comment-lang-note {
	font-size: 0.9rem;
	opacity: 0.8;
	margin: 0 0 14px;
}

.rb-comment-gate {
	padding: 16px 18px;
	border: 1px solid #ddd;
	background: #fafafa;
	margin: 0 0 16px;
}

.rb-turnstile-wrap {
	min-width: 300px;
	min-height: 65px;
	margin: 8px 0 12px;
	overflow: visible;
}

.rb-turnstile-wrap .cf-turnstile {
	width: 100%;
	min-height: 65px;
}

/* Comments block — directly under article */
.rb-comments.eltdf-comment-holder {
	margin: 28px 0 36px;
	padding: 18px 0 8px;
	border-top: 1px solid #e5e5e5;
	clear: both;
}

.rb-comments-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 12px;
	flex-wrap: wrap;
}

.rb-comments-title {
	margin: 0;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.rb-comments-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid #ccc;
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: 0.9rem;
	cursor: pointer;
	line-height: 1.2;
}

.rb-comments-toggle:hover,
.rb-comments-toggle:focus {
	border-color: #888;
	outline: none;
}

.rb-comments-toggle__icon {
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid currentColor;
	transition: transform 0.2s ease;
}

.rb-comments.is-expanded .rb-comments-toggle__icon {
	transform: rotate(180deg);
}

.rb-comments-toggle--footer {
	margin: 12px 0 4px;
	width: 100%;
	justify-content: center;
}

.rb-comments-thread {
	margin-top: 8px;
	padding-top: 4px;
}

.rb-comments .rb-comment-form {
	margin: 0 0 8px;
}

.rb-comments .rb-comment-form textarea {
	min-height: 96px;
}

@media (prefers-reduced-motion: reduce) {
	.rb-comments-toggle__icon {
		transition: none;
	}
}

@media (max-width: 1024px) {
	.rb-account-widget {
		margin-right: 6px;
	}
}

@media (max-width: 768px) {
	.eltdf-mobile-header .rb-account-label {
		display: none;
	}
}
