/* Màu lấy từ biến của theme (--f-*) nên đổi theo giao diện sáng / tối; theme khác dùng màu chữ đang có. */
.fox40-lockbox {
	border: 1px solid var(--f-border, currentColor);
	border-radius: 10px;
	padding: 1.25em 1.5em;
	margin: 1.5em 0;
	color: var(--f-text, inherit);
	background-color: var(--f-surface, transparent);
}

.fox40-lockbox__head {
	display: flex;
	gap: .75em;
	align-items: flex-start;
}

.fox40-lockbox__icon {
	flex: none;
	display: inline-flex;
	width: 2.25em;
	height: 2.25em;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--f-accent-ink, #fff);
	background: var(--f-accent, currentColor);
}

.fox40-lockbox__icon svg {
	width: 1.1em;
	height: 1.1em;
}

/* Quy tắc tô màu link trong nội dung tài liệu của theme cũng khớp nút này: giữ chữ màu nút. */
.fox40-lockbox a.wp-element-button,
.fox40-lockbox a.wp-element-button:hover,
.fox40-lockbox a.wp-element-button:focus {
	color: var(--f-accent-ink, #fff) !important;
	background: var(--f-accent, #1d2327);
	border-color: transparent;
	text-decoration: none !important;
}

.fox40-lockbox__text {
	font-weight: 600;
	margin: 0 0 .5em;
}

.fox40-lockbox__date {
	margin: 0 0 .5em;
	color: var(--f-muted, inherit);
}

.fox40-lockbox__actions {
	margin: .75em 0 0;
}

/* Chỉ hình ổ khóa theo màu chữ phụ, không nền: gọn ở cả nền sáng và tối. */
.fox40-lock {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	color: var(--f-muted, currentColor);
	font-size: .55em;
	line-height: 1;
	vertical-align: middle;
}

/* Trong liên kết danh sách: chữ nhỏ nên biểu tượng lớn hơn tỉ lệ tiêu đề. */
a .fox40-lock,
.fox40-lock--list {
	font-size: .8em;
}

/* Một số danh sách (cây BetterDocs) ẩn mọi svg trong liên kết: giữ hình biểu tượng luôn hiện. */
.fox40-lock svg {
	display: block !important;
	width: 1em !important;
	height: 1em !important;
	color: currentColor;
}

.fox40-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Ổ khóa mở: người xem đã có quyền đọc */
.fox40-lock--open {
	color: var(--f-ok, #15803d);
}
