.nxtfcw-admin {
	--nxtfcw-accent: #0b6a62;
	--nxtfcw-accent-dark: #07554f;
	--nxtfcw-border: #dcdcde;
	--nxtfcw-muted: #646970;
	--nxtfcw-text: #1d2327;
	max-width: 1080px;
	margin: 22px 20px 40px 0;
}

.nxtfcw-settings-header,
.nxtfcw-card-header,
.nxtfcw-settings-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nxtfcw-settings-header {
	margin-bottom: 18px;
}

.nxtfcw-settings-header h1 {
	margin: 0 0 6px;
	color: var(--nxtfcw-text);
	font-size: 24px;
	line-height: 1.25;
}

.nxtfcw-settings-header p,
.nxtfcw-card-header p {
	margin: 0;
	color: var(--nxtfcw-muted);
}

.nxtfcw-version {
	padding: 5px 10px;
	border-radius: 999px;
	background: #e8f3f1;
	color: var(--nxtfcw-accent);
	font-size: 12px;
	font-weight: 600;
}

.nxtfcw-card {
	margin-bottom: 18px;
	padding: 24px;
	border: 1px solid var(--nxtfcw-border);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.nxtfcw-card-header {
	margin: -24px -24px 22px;
	padding: 20px 24px;
	border-bottom: 1px solid #edf0f2;
}

.nxtfcw-card-header h2 {
	margin: 0 0 5px;
	font-size: 17px;
	line-height: 1.35;
}

.nxtfcw-settings-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.nxtfcw-span-2 {
	grid-column: span 2;
}

.nxtfcw-field label:not(.nxtfcw-checkbox) {
	display: block;
	margin-bottom: 7px;
	color: var(--nxtfcw-text);
	font-size: 13px;
	font-weight: 600;
}

.nxtfcw-field input[type="text"],
.nxtfcw-field input[type="tel"],
.nxtfcw-field select,
.nxtfcw-field textarea {
	width: 100%;
	min-height: 38px;
	padding: 8px 11px;
	border: 1px solid var(--nxtfcw-border);
	border-radius: 7px;
	background: #fff;
	color: var(--nxtfcw-text);
	font-size: 13px;
	line-height: 1.4;
	box-shadow: none;
	box-sizing: border-box;
}

.nxtfcw-field select {
	padding-right: 32px;
}

.nxtfcw-field textarea {
	min-height: 82px;
	resize: vertical;
}

.nxtfcw-field input:focus,
.nxtfcw-field select:focus,
.nxtfcw-field textarea:focus {
	outline: none;
	border-color: var(--nxtfcw-accent);
	box-shadow: 0 0 0 3px rgba(11, 106, 98, 0.18);
}

.nxtfcw-field > small,
.nxtfcw-checkbox small {
	display: block;
	margin-top: 6px;
	color: var(--nxtfcw-muted);
	font-size: 12px;
}

.nxtfcw-source-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 22px;
}

.nxtfcw-source-option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 15px;
	border: 1px solid var(--nxtfcw-border);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
}

.nxtfcw-source-option-wrap {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nxtfcw-source-option.is-selected {
	border-color: var(--nxtfcw-accent);
	background: #f1f8f7;
	box-shadow: 0 0 0 1px var(--nxtfcw-accent);
}

.nxtfcw-source-option.is-disabled {
	background: #f6f7f7;
	color: var(--nxtfcw-muted);
	cursor: not-allowed;
}

.nxtfcw-source-option input {
	margin-top: 3px;
}

.nxtfcw-source-option strong,
.nxtfcw-source-option small {
	display: block;
}

.nxtfcw-source-option small {
	margin-top: 4px;
	color: var(--nxtfcw-muted);
}

.nxtfcw-inline-link {
	width: fit-content;
	margin-left: 2px;
	color: var(--nxtfcw-accent);
	font-weight: 600;
}

.nxtfcw-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px;
	border: 1px solid var(--nxtfcw-border);
	border-radius: 8px;
	background: #f9fafb;
}

.nxtfcw-checkbox-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px;
	border: 1px solid var(--nxtfcw-border);
	border-radius: 8px;
	background: #f9fafb;
}

.nxtfcw-checkbox-row .nxtfcw-checkbox {
	flex: 1;
	padding: 0;
	border: 0;
	background: transparent;
}

.nxtfcw-checkbox input {
	margin-top: 3px;
}

.nxtfcw-checkbox strong,
.nxtfcw-checkbox small {
	display: block;
}

.nxtfcw-compact-checkbox {
	display: flex !important;
	align-items: flex-start;
	gap: 8px;
	margin-top: 12px;
	font-weight: 400 !important;
	cursor: pointer;
}

.nxtfcw-compact-checkbox input {
	margin-top: 2px;
}

.nxtfcw-compact-checkbox strong,
.nxtfcw-compact-checkbox small {
	display: block;
}

.nxtfcw-compact-checkbox small {
	margin-top: 3px;
	color: var(--nxtfcw-muted);
	font-weight: 400;
}

.nxtfcw-button {
	min-height: 38px;
	padding: 8px 16px;
	border: 1px solid transparent;
	border-radius: 7px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.nxtfcw-button-primary {
	background: var(--nxtfcw-accent);
	color: #fff;
}

.nxtfcw-button-light {
	border-color: var(--nxtfcw-border);
	background: #fff;
	color: var(--nxtfcw-text);
}

.nxtfcw-button-light:hover,
.nxtfcw-button-light:focus {
	border-color: var(--nxtfcw-accent);
	color: var(--nxtfcw-accent);
}

.nxtfcw-button-primary:hover,
.nxtfcw-button-primary:focus {
	background: var(--nxtfcw-accent-dark);
	color: #fff;
}

.nxtfcw-settings-actions {
	justify-content: flex-end;
}

.nxtfcw-alert,
.nxtfcw-empty-state {
	padding: 12px 14px;
	border-radius: 7px;
}

.nxtfcw-alert {
	display: flex;
	gap: 8px;
	margin-bottom: 18px;
}

.nxtfcw-alert.is-warning {
	border: 1px solid #dba617;
	background: #fff8e5;
}

.nxtfcw-empty-state {
	border: 1px dashed var(--nxtfcw-border);
	background: #f6f7f7;
	color: var(--nxtfcw-muted);
}

@media (max-width: 782px) {
	.nxtfcw-admin {
		margin-right: 10px;
	}

	.nxtfcw-settings-grid,
	.nxtfcw-source-options {
		grid-template-columns: 1fr;
	}

	.nxtfcw-span-2 {
		grid-column: span 1;
	}

	.nxtfcw-card {
		padding: 18px;
	}

	.nxtfcw-card-header {
		margin: -18px -18px 18px;
		padding: 18px;
	}

	.nxtfcw-checkbox-row {
		align-items: stretch;
		flex-direction: column;
	}
}
