.woocommerce #idenfy-settings-wrapper {
	max-width: 900px;
	margin: 20px auto;
}

.idenfy-settings-header-compact {
	background: linear-gradient(135deg, #445DEB 0%, #5B6FF0 100%);
	border-radius: 10px;
	padding: 16px 24px;
	margin-bottom: 25px;
	color: #fff;
	box-shadow: 0 2px 8px rgba(68, 93, 235, 0.2);
}

.idenfy-header-compact-content {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.idenfy-logo-container {
	flex-shrink: 0;
}

.idenfy-logo-container img {
	max-width: 120px;
}

.idenfy-logo-container .idenfy-logo-text {
	font-size: 20px;
	font-weight: 700;
	color: #fff;
}

.idenfy-header-text-compact {
	flex: 1;
	min-width: 200px;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.idenfy-header-text-compact h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #fff;
	line-height: 1.2;
}

.idenfy-header-actions-compact {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-left: auto;
}

.idenfy-header-actions-compact a {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 6px;
	color: #fff;
	text-decoration: none;
	font-weight: 500;
	font-size: 13px;
	transition: all 0.2s ease;
}

.idenfy-header-actions-compact a:hover {
	background: rgba(255, 255, 255, 0.25);
	border-color: rgba(255, 255, 255, 0.4);
}

.idenfy-settings-card {
	background: #fff;
	border-radius: 12px;
	padding: 30px;
	margin-bottom: 25px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
	border: 1px solid #e5e7eb;
	margin-left: auto;
	margin-right: auto;
}

.idenfy-settings-card:last-child {
	margin-bottom: 0;
}

.idenfy-settings-section-header {
	margin-bottom: 25px;
	padding-bottom: 18px;
	border-bottom: 2px solid #f3f4f6;
}

.idenfy-settings-section-header h3 {
	margin: 0 0 8px 0;
	font-size: 20px;
	font-weight: 700;
	color: #1f2937;
	display: flex;
	align-items: center;
	gap: 10px;
}

.idenfy-settings-section-header h3::before {
	content: '';
	width: 4px;
	height: 20px;
	background: linear-gradient(135deg, #445DEB 0%, #5B6FF0 100%);
	border-radius: 2px;
	flex-shrink: 0;
}

.idenfy-settings-section-header p {
	margin: 0;
	color: #6b7280;
	font-size: 14px;
	line-height: 1.6;
}

.idenfy-flow-selection {
	margin-bottom: 30px;
}

.idenfy-flow-label {
	display: block;
	margin-bottom: 15px;
	font-weight: 600;
	color: #374151;
	font-size: 14px;
}

.idenfy-flow-options {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
	margin-bottom: 20px;
}

.idenfy-flow-option {
	position: relative;
	background: #fff;
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	padding: 20px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	align-items: flex-start;
	gap: 15px;
	min-height: 100px;
}

.idenfy-flow-option:hover {
	border-color: #445DEB;
	box-shadow: 0 4px 12px rgba(68, 93, 235, 0.1);
	transform: translateY(-2px);
}

.idenfy-flow-option.selected {
	border-color: #445DEB;
	background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
	box-shadow: 0 4px 16px rgba(68, 93, 235, 0.15);
}

.idenfy-flow-option.selected::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #445DEB 0%, #5B6FF0 100%);
	border-radius: 10px 10px 0 0;
}

.idenfy-flow-icon {
	font-size: 32px;
	line-height: 1;
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f9fafb;
	border-radius: 10px;
}

.idenfy-flow-option.selected .idenfy-flow-icon {
	background: linear-gradient(135deg, #445DEB 0%, #5B6FF0 100%);
}

.idenfy-flow-content {
	flex: 1;
	min-width: 0;
}

.idenfy-flow-title {
	font-weight: 600;
	font-size: 15px;
	color: #1f2937;
	margin-bottom: 6px;
	line-height: 1.3;
}

.idenfy-flow-option.selected .idenfy-flow-title {
	color: #445DEB;
}

.idenfy-flow-description {
	font-size: 13px;
	color: #6b7280;
	line-height: 1.5;
}

.idenfy-flow-checkmark {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #445DEB;
	color: #fff;
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: bold;
	flex-shrink: 0;
}

.idenfy-flow-option.selected .idenfy-flow-checkmark {
	display: flex;
}

.idenfy-mode-select-hidden {
	display: none !important;
}

.idenfy-custom-flow-settings {
	margin-top: 30px;
	padding-top: 25px;
	border-top: 2px solid #f3f4f6;
}

.idenfy-force-verification-rules {
	margin-top: 25px;
	padding-top: 20px;
	border-top: 2px solid #f3f4f6;
}

.idenfy-force-rules-label {
	display: block;
	margin-bottom: 18px;
	font-weight: 600;
	color: #374151;
	font-size: 14px;
}

.idenfy-multiselect-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.idenfy-multiselect-group {
	margin-bottom: 0;
}

.idenfy-multiselect-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #374151;
	font-size: 13px;
}

.idenfy-select-wrapper {
	position: relative;
}

.idenfy-select2 + .select2-container {
	width: 100% !important;
}

.idenfy-select2 + .select2-container .select2-selection {
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	min-height: 42px;
	padding: 4px 8px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	background: #fff;
}

.idenfy-select2 + .select2-container.select2-container--focus .select2-selection,
.idenfy-select2 + .select2-container.select2-container--open .select2-selection {
	border-color: #445DEB;
	box-shadow: 0 0 0 4px rgba(68, 93, 235, 0.1), 0 2px 4px rgba(68, 93, 235, 0.1);
}

.idenfy-select2 + .select2-container .select2-selection__choice {
	background: #445DEB;
	border-color: #445DEB;
	color: #fff;
	border-radius: 6px;
	padding: 4px 8px;
	margin: 2px 4px 2px 0;
	font-size: 12px;
	line-height: 1.4;
}

.idenfy-select2 + .select2-container .select2-selection__choice__remove {
	color: #fff;
	margin-right: 6px;
	font-weight: bold;
}

.idenfy-select2 + .select2-container .select2-selection__choice__remove:hover {
	color: rgba(255, 255, 255, 0.8);
}

.idenfy-select2 + .select2-container .select2-selection__rendered {
	padding-left: 4px;
}

.idenfy-select2 + .select2-container .select2-search--inline .select2-search__field {
	margin-top: 4px;
	padding: 4px 8px;
	font-size: 13px;
}

.idenfy-select2 + .select2-container .select2-dropdown {
	border: 2px solid #445DEB;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(68, 93, 235, 0.15);
	margin-top: 4px;
}

.idenfy-select2 + .select2-container .select2-results__option {
	padding: 10px 12px;
	font-size: 13px;
}

.idenfy-select2 + .select2-container .select2-results__option--highlighted {
	background: #445DEB;
	color: #fff;
}

.idenfy-select2 + .select2-container .select2-results__option[aria-selected="true"] {
	background: #f0f4ff;
	color: #445DEB;
	font-weight: 600;
}

@media (max-width: 1200px) {
	.idenfy-multiselect-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}
}

.idenfy-custom-setting-row {
	margin-bottom: 0;
}

.idenfy-custom-setting-row label {
	display: block;
	margin-bottom: 10px;
	font-weight: 600;
	color: #374151;
	font-size: 14px;
}

.idenfy-custom-setting-input {
	display: flex;
	align-items: stretch;
	gap: 0;
	margin-bottom: 10px;
}

.idenfy-currency-symbol {
	font-weight: 600;
	color: #6b7280;
	font-size: 14px;
	padding: 12px 12px;
	background: #fff;
	border: 2px solid #e5e7eb;
	border-radius: 8px 0 0 8px;
	border-right: 2px solid #e5e7eb;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 50px;
	line-height: 1;
}

.idenfy-custom-setting-input {
	display: flex;
	align-items: stretch;
	gap: 0;
	margin-bottom: 10px;
}

.idenfy-cart-threshold-input {
	flex: 1;
	padding: 12px 16px;
	border: 2px solid #e5e7eb;
	border-radius: 0 8px 8px 0;
	border-left: none;
	font-size: 14px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	background: #fff;
	max-width: 200px;
}

.idenfy-cart-threshold-input:focus {
	outline: none;
	border-color: #445DEB;
	border-left: 2px solid #445DEB;
	box-shadow: 0 0 0 4px rgba(68, 93, 235, 0.1), 0 2px 4px rgba(68, 93, 235, 0.1);
}

.idenfy-custom-setting-input:focus-within .idenfy-currency-symbol {
	border-color: #445DEB;
	border-right-color: #445DEB;
}

.idenfy-custom-setting-row .description {
	margin-top: 8px;
	color: #6b7280;
	font-size: 13px;
	line-height: 1.6;
}

@media (max-width: 782px) {
	.idenfy-flow-options {
		grid-template-columns: 1fr;
	}
}

.idenfy-form-group {
	margin-bottom: 25px;
}

.idenfy-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #374151;
	font-size: 14px;
}

.idenfy-form-group input[type="text"],
.idenfy-form-group input[type="password"],
.idenfy-form-group select {
	width: 100%;
	max-width: 600px;
	padding: 14px 18px;
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	font-size: 14px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.idenfy-form-group input[type="text"]:focus,
.idenfy-form-group input[type="password"]:focus,
.idenfy-form-group select:focus {
	outline: none;
	border-color: #445DEB;
	box-shadow: 0 0 0 4px rgba(68, 93, 235, 0.1), 0 2px 4px rgba(68, 93, 235, 0.1);
	transform: translateY(-1px);
}

.idenfy-form-group .description {
	margin-top: 8px;
	color: #6b7280;
	font-size: 13px;
	line-height: 1.5;
}

.idenfy-form-group .description strong {
	color: #374151;
}

.idenfy-checkbox-wrapper {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.idenfy-checkbox-wrapper input[type="checkbox"] {
	width: 20px;
	height: 20px;
	margin: 0;
	cursor: pointer;
	accent-color: #445DEB;
	flex-shrink: 0;
	margin-top: 2px;
}

.idenfy-checkbox-wrapper label {
	margin: 0;
	font-weight: 600;
	color: #374151;
	cursor: pointer;
	flex: 1;
}

.idenfy-checkbox-wrapper .description {
	margin-top: 8px;
	color: #6b7280;
	font-size: 13px;
	line-height: 1.6;
}

.idenfy-form-group select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23445DEB' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 12px;
	padding-right: 40px;
	appearance: none;
	cursor: pointer;
}

.idenfy-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 24px;
	font-size: 13px;
	font-weight: 600;
	margin-left: 12px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(10px);
}

.idenfy-status-badge.connected {
	background: #d1fae5;
	color: #065f46;
}

.idenfy-status-badge.not-connected {
	background: #fee2e2;
	color: #991b1b;
}

.idenfy-status-badge.pending {
	background: #fef3c7;
	color: #92400e;
}

.idenfy-connection-error {
	margin: 8px 0 0;
	color: #991b1b;
	font-size: 13px;
}

.idenfy-status-badge::before {
	content: '';
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.7;
	}
}

.idenfy-info-box {
	background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
	border-left: 5px solid #445DEB;
	padding: 20px 24px;
	border-radius: 12px;
	margin-top: 25px;
	box-shadow: 0 2px 8px rgba(68, 93, 235, 0.1);
	position: relative;
	overflow: hidden;
}

.idenfy-info-box::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 100%;
	background: linear-gradient(135deg, rgba(68, 93, 235, 0.05) 0%, transparent 100%);
	pointer-events: none;
}

.idenfy-info-box p {
	margin: 0;
	color: #1e40af;
	font-size: 14px;
	line-height: 1.7;
	position: relative;
	z-index: 1;
}

.idenfy-info-box a {
	color: #445DEB;
	text-decoration: none;
	font-weight: 600;
}

.idenfy-info-box a:hover {
	text-decoration: underline;
}

.idenfy-save-button {
	background: linear-gradient(135deg, #445DEB 0%, #5B6FF0 100%);
	color: #fff;
	border: none;
	padding: 14px 32px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(68, 93, 235, 0.3);
	margin-top: 20px;
}

.idenfy-save-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(68, 93, 235, 0.4);
}

.idenfy-save-button:active {
	transform: translateY(0);
}

@media (max-width: 782px) {
	.idenfy-settings-header-compact {
		padding: 14px 18px;
	}

	.idenfy-header-compact-content {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.idenfy-header-text-compact {
		width: 100%;
	}

	.idenfy-header-actions-compact {
		margin-left: 0;
		width: 100%;
	}

	.idenfy-settings-main-container {
		padding: 20px;
	}

	.idenfy-form-group input[type="text"],
	.idenfy-form-group input[type="password"],
	.idenfy-form-group select {
		max-width: 100%;
	}
}

.woocommerce #idenfy-settings-wrapper table.form-table {
	margin-top: 0;
	border: none;
	background: transparent;
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.woocommerce #idenfy-settings-wrapper table.form-table th {
	padding: 12px 20px 12px 0;
	width: 180px;
	min-width: 160px;
	font-weight: 600 !important;
	color: #1f2937;
	vertical-align: top;
	text-align: left;
	font-size: 13px;
}

.woocommerce #idenfy-settings-wrapper table.form-table td {
	padding: 12px 0;
	vertical-align: top;
	width: auto;
}

.woocommerce #idenfy-settings-wrapper table.form-table tbody tr {
	display: table-row;
}

.woocommerce #idenfy-settings-wrapper table.form-table tbody tr th,
.woocommerce #idenfy-settings-wrapper table.form-table tbody tr td {
	display: table-cell;
}

.woocommerce #idenfy-settings-wrapper table.form-table input[type="text"],
.woocommerce #idenfy-settings-wrapper table.form-table input[type="password"],
.woocommerce #idenfy-settings-wrapper table.form-table select {
	width: 100%;
	max-width: 500px;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 400;
	transition: all 0.2s ease;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
	color: #1f2937;
}

.woocommerce #idenfy-settings-wrapper table.form-table input[type="text"]:focus,
.woocommerce #idenfy-settings-wrapper table.form-table input[type="password"]:focus,
.woocommerce #idenfy-settings-wrapper table.form-table select:focus {
	outline: none;
	border-color: #445DEB;
	box-shadow: 0 0 0 3px rgba(68, 93, 235, 0.1);
	background: #fff;
}

.woocommerce #idenfy-settings-wrapper table.form-table input[type="text"]::placeholder,
.woocommerce #idenfy-settings-wrapper table.form-table input[type="password"]::placeholder {
	color: #9ca3af;
	font-weight: 400;
}

.woocommerce #idenfy-settings-wrapper table.form-table .description {
	margin-top: 6px;
	color: #6b7280;
	font-size: 12px !important;
	font-style: italic !important;
	line-height: 1.5;
	display: block;
	clear: both;
}

.woocommerce #idenfy-settings-wrapper table.form-table .description strong {
	color: #4b5563;
	font-weight: 600;
	font-style: normal;
}

.woocommerce #idenfy-settings-wrapper table.form-table td label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #374151;
	font-size: 14px;
	cursor: pointer;
	line-height: 1.5;
}

.woocommerce #idenfy-settings-wrapper table.form-table th label {
	margin-bottom: 0;
	display: block;
	font-weight: 600;
	color: #374151;
	font-size: 14px;
}

.woocommerce #idenfy-settings-wrapper table.form-table td input[type="text"],
.woocommerce #idenfy-settings-wrapper table.form-table td input[type="password"],
.woocommerce #idenfy-settings-wrapper table.form-table td select {
	margin-top: 0;
	display: block;
}

.woocommerce #idenfy-settings-wrapper table.form-table input[type="checkbox"] {
	width: 20px;
	height: 20px;
	accent-color: #445DEB;
	cursor: pointer;
	margin: 0;
	vertical-align: middle;
}

.woocommerce #idenfy-settings-wrapper table.form-table tr.checkbox-row th,
.woocommerce #idenfy-settings-wrapper table.form-table tr.checkbox-row td {
	padding-top: 20px;
	padding-bottom: 20px;
}

.woocommerce #idenfy-settings-wrapper table.form-table tr.checkbox-row td {
	padding-left: 0;
}

.woocommerce #idenfy-settings-wrapper table.form-table tr.checkbox-row label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 0;
	cursor: pointer;
	font-weight: 700 !important;
	color: #1f2937;
	font-size: 15px;
}

.woocommerce #idenfy-settings-wrapper table.form-table tr.checkbox-row .description,
.woocommerce #idenfy-settings-wrapper table.form-table tr.idenfy-checkbox-wrapper .description {
	margin-top: 6px;
	margin-left: 0;
	display: block;
	font-style: italic;
	color: #6b7280;
	font-size: 12px;
	line-height: 1.5;
}

.woocommerce #idenfy-settings-wrapper table.form-table tr.idenfy-checkbox-wrapper td label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 0;
	cursor: pointer;
}

.woocommerce #idenfy-settings-wrapper table.form-table td input[type="checkbox"] + label,
.woocommerce #idenfy-settings-wrapper table.form-table td label:has(+ input[type="checkbox"]) {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 0;
	cursor: pointer;
}

.woocommerce #idenfy-settings-wrapper + h2,
.woocommerce #idenfy-settings-wrapper h2.woocommerce-settings-title {
	display: none;
}

.woocommerce #idenfy-settings-wrapper table.form-table tr.title th,
.woocommerce #idenfy-settings-wrapper table.form-table tr.title td {
	padding: 25px 0 15px 0;
	border: none;
}

.woocommerce #idenfy-settings-wrapper table.form-table tr.title th h3,
.woocommerce #idenfy-settings-wrapper table.form-table tr.title td h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #1f2937;
	padding-bottom: 12px;
	border-bottom: 2px solid #f3f4f6;
	margin-bottom: 0;
}

.woocommerce #idenfy-settings-wrapper table.form-table tr.title td p {
	margin: 10px 0 0 0;
	color: #6b7280;
	font-size: 14px;
	line-height: 1.6;
}

.woocommerce #idenfy-settings-wrapper ~ p.submit,
.woocommerce #idenfy-settings-wrapper .submit {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 2px solid #f3f4f6;
}

.woocommerce #idenfy-settings-wrapper ~ p.submit .button-primary,
.woocommerce #idenfy-settings-wrapper .submit .button-primary,
.woocommerce #idenfy-settings-wrapper .button-primary {
	background: linear-gradient(135deg, #445DEB 0%, #5B6FF0 100%) !important;
	color: #fff !important;
	border: none !important;
	padding: 14px 32px !important;
	border-radius: 8px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	box-shadow: 0 4px 12px rgba(68, 93, 235, 0.3) !important;
	text-shadow: none !important;
	height: auto !important;
	line-height: 1.5 !important;
}

.woocommerce #idenfy-settings-wrapper ~ p.submit .button-primary:hover,
.woocommerce #idenfy-settings-wrapper .submit .button-primary:hover,
.woocommerce #idenfy-settings-wrapper .button-primary:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 20px rgba(68, 93, 235, 0.4) !important;
	background: linear-gradient(135deg, #5B6FF0 0%, #6B7FF5 100%) !important;
}
