.consortia-qfr-admin {
	max-width: 1180px;
}

.consortia-qfr-hero {
	align-items: center;
	background: #ffffff;
	border: 1px solid #c9ced6;
	border-radius: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	justify-content: space-between;
	margin: 20px 0 28px;
	padding: 28px 32px;
}

.consortia-qfr-hero-copy h1 {
	font-size: 30px;
	line-height: 1.1;
	margin: 0 0 10px;
}

.consortia-qfr-hero-copy p {
	color: #57483a;
	font-size: 15px;
	margin: 0;
	max-width: 720px;
}

.consortia-qfr-hero-logo img {
	display: block;
	height: auto;
	max-width: 320px;
}

.consortia-qfr-replace-wrap {
	margin-bottom: 10px;
}

.consortia-qfr-floating-header {
	align-items: center;
	background: #f8fafc;
	border: 1px solid rgba(140, 143, 148, 0.24);
	border-radius: 8px;
	color: #2c3338;
	cursor: move;
	display: none;
	justify-content: space-between;
	margin-bottom: 10px;
	padding: 8px 10px;
	user-select: none;
}

.consortia-qfr.is-floating {
	background: rgba(255, 255, 255, 0.98);
	border: 1px solid rgba(140, 143, 148, 0.28);
	bottom: 24px;
	border-radius: 8px;
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
	box-sizing: border-box;
	color: #2c3338;
	max-height: calc(100vh - 72px);
	overflow: auto;
	padding: 12px;
	position: fixed;
	right: 24px;
	width: min(360px, calc(100vw - 48px));
	z-index: 1000000;
}

.consortia-qfr.is-floating .consortia-qfr-floating-header {
	display: flex;
}

.consortia-qfr-floating-open-row {
	display: none;
	margin: 12px 0 0;
	text-align: center;
}

.consortia-qfr.can-float:not(.is-floating) .consortia-qfr-floating-open-row {
	display: block;
}

#consortia-qfr-floating-open {
	align-items: center;
	display: inline-flex;
	gap: 4px;
	justify-content: center;
}

#consortia-qfr-floating-open .dashicons {
	font-size: 16px;
	height: 16px;
	line-height: 16px;
	width: 16px;
}

.consortia-qfr.is-floating input[type="text"] {
	border-color: rgba(140, 143, 148, 0.45);
	color: #1d2327;
}

.consortia-qfr.is-floating .button {
	border-color: rgba(140, 143, 148, 0.42);
	color: #2c3338;
}

.consortia-qfr.is-floating .button-primary {
	color: #fff;
}

.consortia-qfr-floating-actions {
	align-items: center;
	display: inline-flex;
	gap: 6px;
}

.consortia-qfr-floating-close {
	align-items: center;
	color: #646970;
	display: inline-flex;
	height: 22px;
	justify-content: center;
	text-decoration: none;
	width: 22px;
}

.consortia-qfr-floating-close:hover,
.consortia-qfr-floating-close:focus {
	color: #1d2327;
}

.consortia-qfr-replace-wrap summary {
	cursor: pointer;
	user-select: none;
}

.consortia-qfr-replace-wrap p {
	margin-top: 8px;
	margin-bottom: 0;
}

.consortia-qfr input[type="text"] {
	border-radius: 8px;
	min-height: 32px;
}

.consortia-qfr .button {
	border-radius: 8px;
}

.consortia-qfr-input-row {
	display: block;
	position: relative;
}

.consortia-qfr-input-row .widefat {
	min-width: 0;
	padding-right: 34px;
}

.consortia-qfr-clear-find,
.consortia-qfr-clear-replace {
	align-items: center;
	display: inline-flex;
	height: 28px;
	justify-content: center;
	line-height: 1;
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	width: 28px;
	color: #646970;
	text-decoration: none;
}

.consortia-qfr-clear-find .dashicons,
.consortia-qfr-clear-replace .dashicons {
	align-items: center;
	display: inline-flex;
	font-size: 16px;
	height: 16px;
	justify-content: center;
	line-height: 16px;
	width: 16px;
}

.consortia-qfr-clear-find:hover,
.consortia-qfr-clear-find:focus,
.consortia-qfr-clear-replace:hover,
.consortia-qfr-clear-replace:focus {
	color: #1d2327;
}

.consortia-qfr-match-row {
	align-items: center;
	display: flex;
	gap: 8px;
	justify-content: space-between;
	margin: 0 0 8px;
}

.consortia-qfr-match-summary {
	color: #1d2327;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

.consortia-qfr-match-nav {
	display: inline-flex;
	gap: 6px;
}

.consortia-qfr-match-nav .button {
	align-items: center;
	border-color: #b5bcc4;
	display: inline-flex;
	height: 30px;
	justify-content: center;
	min-width: 34px;
	padding: 0;
}

.consortia-qfr-match-nav .button:disabled {
	opacity: 0.45;
}

.consortia-qfr-match-nav .dashicons {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	height: 15px;
	line-height: 15px;
	vertical-align: middle;
	width: 15px;
}

.wp-core-ui .consortia-qfr-match-nav .button .dashicons,
.wp-core-ui .consortia-qfr-match-nav .button-primary .dashicons,
.wp-core-ui .consortia-qfr-match-nav .button-secondary .dashicons {
	line-height: 15px;
	vertical-align: middle;
}

.consortia-qfr-buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	margin-bottom: 8px;
}

.consortia-qfr-buttons .button,
.consortia-qfr-swap,
.consortia-qfr-undo-all {
	align-items: center;
	display: inline-flex;
	gap: 4px;
	justify-content: center;
	line-height: 1.4;
}

.consortia-qfr-buttons .dashicons,
.consortia-qfr-swap .dashicons,
.consortia-qfr-undo-all .dashicons {
	align-items: center;
	display: inline-flex;
	font-size: 15px;
	height: 15px;
	justify-content: center;
	line-height: 1;
	transform: translateY(1px);
	width: 15px;
}

.consortia-qfr-undo {
	grid-column: 1 / -1;
}

.consortia-qfr-pro-tools {
	border-top: 1px solid #dcdcde;
	margin: 10px 0;
	padding-top: 10px;
}

.consortia-qfr-pro-tools > summary {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-size: 13px;
	font-weight: 600;
	justify-content: space-between;
	margin: 0 0 8px;
	user-select: none;
}

.consortia-qfr-pro-tools > summary::marker {
	content: "";
}

.consortia-qfr-pro-tools > summary::-webkit-details-marker {
	display: none;
}

.consortia-qfr-pro-tools > summary .dashicons {
	font-size: 16px;
	height: 16px;
	line-height: 1;
	transition: transform 0.15s ease;
	width: 16px;
}

.consortia-qfr-pro-tools[open] > summary .dashicons {
	transform: rotate(180deg);
}

.consortia-qfr-pro-tools-content {
	padding-top: 2px;
}

.consortia-qfr-presets {
	margin-bottom: 10px;
}

.consortia-qfr-presets select {
	border-radius: 8px;
	box-sizing: border-box;
	margin-top: 4px;
	max-width: 100%;
	min-width: 0;
	width: 100%;
}

.consortia-qfr-preset-actions {
	display: grid;
	gap: 6px;
	grid-template-columns: 1fr 1fr;
	margin-top: 6px;
}

.consortia-qfr-undo-all {
	width: 100%;
}

.consortia-qfr-pro-tools .consortia-qfr-swap {
	margin-bottom: 8px;
	width: 100%;
}

.consortia-qfr-history-wrap {
	margin-top: 8px;
}

.consortia-qfr-history {
	margin: 8px 0 0 18px;
}

.consortia-qfr-toggle {
	align-items: center;
	cursor: pointer;
	display: flex;
	gap: 8px;
}

.consortia-qfr-toggle input {
	height: 1px;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.consortia-qfr-toggle-control {
	background: #a7aaad;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
	flex: 0 0 auto;
	height: 20px;
	position: relative;
	transition: background-color 0.15s ease;
	width: 36px;
}

.consortia-qfr-toggle-control::after {
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.24);
	content: "";
	height: 16px;
	left: 2px;
	position: absolute;
	top: 2px;
	transition: transform 0.15s ease;
	width: 16px;
}

.consortia-qfr-toggle input:checked + .consortia-qfr-toggle-control {
	background: #2271b1;
}

.consortia-qfr-toggle input:checked + .consortia-qfr-toggle-control::after {
	transform: translateX(16px);
}

.consortia-qfr-toggle input:focus + .consortia-qfr-toggle-control {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2271b1;
}

.consortia-qfr-toggle-text {
	line-height: 1.35;
}

.consortia-qfr-settings-toggle {
	margin: 0 0 12px;
	max-width: 520px;
}

.consortia-qfr-settings-toggle input:disabled + .consortia-qfr-toggle-control {
	background: #dcdcde;
	cursor: not-allowed;
}

.consortia-qfr-settings-toggle input:disabled ~ .consortia-qfr-toggle-text {
	color: #646970;
	cursor: not-allowed;
}

.consortia-qfr-settings-tabs .nav-tab {
	align-items: center;
	display: inline-flex;
	gap: 5px;
}

.consortia-qfr-settings-tabs .nav-tab .dashicons {
	color: #2271b1;
	font-size: 16px;
	height: 16px;
	line-height: 1;
	width: 16px;
}

.consortia-qfr-pro-list {
	list-style: disc;
	margin: 12px 0 16px 20px;
}

.consortia-qfr-usage-list {
	margin: 10px 0 16px 20px;
}

.consortia-qfr-usage-list li {
	margin-bottom: 7px;
}

.consortia-qfr-pro-list li {
	margin-bottom: 7px;
}

.consortia-qfr-welcome-notice .button {
	margin-top: 4px;
}

.consortia-qfr-preset-list {
	margin: 0 0 12px;
	max-width: 640px;
}

.consortia-qfr-preset-list li {
	align-items: center;
	border-bottom: 1px solid #dcdcde;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin: 0;
	padding: 9px 0;
}

.consortia-qfr-preset-title {
	font-weight: 600;
}

.consortia-qfr-activity-log {
	margin: 10px 0 12px;
}

.consortia-qfr-activity-log td,
.consortia-qfr-activity-log th {
	vertical-align: top;
}

.consortia-qfr-clear-log-form {
	margin: 0 0 8px;
}

.consortia-qfr-color-field {
	align-items: center;
	display: flex;
	gap: 10px;
	margin: 0 0 12px;
	max-width: 520px;
}

.consortia-qfr-color-field span {
	min-width: 180px;
}

.consortia-qfr-color-field input[type="color"] {
	height: 32px;
	padding: 2px;
	width: 48px;
}

.consortia-qfr-color-field input:disabled {
	cursor: not-allowed;
	opacity: 0.65;
}

.consortia-qfr-reset-colors {
	margin-top: 2px;
}

.consortia-qfr-status {
	margin: 0;
	color: #50575e;
}

.consortia-qfr-status.is-error {
	color: #b32d2e;
}

.consortia-qfr-help {
	margin-top: 8px;
	color: #646970;
	font-size: 12px;
}

.consortia-qfr-highlight-source {
	position: relative;
	z-index: 2;
	background-color: transparent !important;
}

.consortia-qfr-highlight-overlay {
	position: absolute;
	z-index: 1;
	box-sizing: border-box;
	border-color: transparent;
	color: transparent;
	pointer-events: none;
	overflow: hidden;
	white-space: pre-wrap;
	word-wrap: break-word;
}

.consortia-qfr-highlight-overlay.is-input {
	white-space: pre;
}

.consortia-qfr-highlight {
	background-color: var(--consortia-qfr-match-color, rgba(255, 224, 102, 0.45));
	color: transparent;
}

.consortia-qfr-highlight.is-active {
	background-color: var(--consortia-qfr-active-match-color, rgba(255, 193, 7, 0.78));
}

::highlight(consortia-qfr-match) {
	background-color: rgba(255, 224, 102, 0.45);
}

::highlight(consortia-qfr-active-match) {
	background-color: rgba(255, 193, 7, 0.78);
}
