/**
 * Editorial disclosure pill (homepage + template pages).
 */

.wpl-disc-wrap {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 10px;
	position: relative;
}

.wpl-disc-trigger {
	display: inline-flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 5px 11px;
	background: #f5f6fa;
	border: 1px solid #e0e3ef;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	color: #5a6080;
	cursor: pointer;
	user-select: none;
	position: relative;
	white-space: nowrap;
	line-height: 1.2;
	max-width: 100%;
}

.wpl-disc-trigger:hover {
	background: #eef1fb;
	color: #0f1f4d;
}

.wpl-disc-trigger br {
	display: none !important;
}

.wpl-disc-icon {
	width: 14px;
	height: 14px;
	min-width: 14px;
	border-radius: 50%;
	background: #0f1f4d;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 1;
}

.wpl-disc-label {
	display: inline-block;
	white-space: nowrap;
	line-height: 1.2;
	flex-shrink: 0;
}

.wpl-disc-popup {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	inset-inline-end: 0;
	width: min(280px, calc(100vw - 32px));
	background: #fff;
	border: 1px solid #e0e3ef;
	border-radius: 10px;
	padding: 14px 16px;
	box-shadow: 0 8px 24px rgb(15 31 77 / 10%);
	z-index: 9999;
	white-space: normal;
}

.wpl-disc-wrap[dir="rtl"] .wpl-disc-popup {
	inset-inline-end: 0;
	inset-inline-start: auto;
}

.wpl-disc-trigger:hover .wpl-disc-popup,
.wpl-disc-trigger:focus .wpl-disc-popup,
.wpl-disc-trigger.active .wpl-disc-popup {
	display: block;
}

.wpl-disc-popup p {
	font-size: 11.5px;
	color: #5a6080;
	line-height: 1.65;
	margin: 0;
}

.wpl-disc-popup p + p {
	margin-top: 6px;
}

/* Template editorial note buttons */
.ac-editorial-note__button,
.ac-top10-editorial-note__button {
	flex-wrap: nowrap !important;
	white-space: nowrap !important;
	max-width: 100%;
}

.ac-editorial-note__button span:not(.ac-editorial-note__icon),
.ac-top10-editorial-note__button span:not(.ac-top10-editorial-note__icon) {
	white-space: nowrap !important;
	flex-shrink: 0;
}

.ac-editorial-note__icon,
.ac-top10-editorial-note__icon {
	flex-shrink: 0 !important;
}

@media (max-width: 767px) {
	.wpl-disc-trigger {
		font-size: 10px;
		padding: 5px 10px;
		gap: 5px;
	}

	.wpl-disc-icon {
		width: 13px;
		height: 13px;
		min-width: 13px;
		font-size: 8px;
	}

	.ac-editorial-note__button,
	.ac-top10-editorial-note__button {
		padding: 8px 12px !important;
		gap: 6px !important;
	}
}
