/* ============================================
   WLC Search Integration with Algolia Admin Styles (Feature-specific)
   Depends on: assets/css/wlc-admin-boilerplate.css
   ============================================ */

/* Legacy Styles - Keep for backward compatibility */
.algolia-metabox {
	background-color: #f5f5f5;
	padding: 20px;
	border: 1px solid #ccc;
	border-radius: 5px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.algolia-metabox .btn {
	background-color: #007bff;
	color: #fff;
	padding: 10px 20px;
	border: none;
	border-radius: 5px;
	font-size: 18px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.algolia-metabox .btn:hover {
	background-color: #0056b3;
}

.button-container {
	text-align: center;
}

.post_type_index th[scope="row"], 
form.cpt th[scope="row"], 
form.autocomplete th[scope="row"] {
	display: none;
}

/**Post Types Indexing*/
.index-container {
	align-items: center;
	margin-bottom: 10px;
	max-width: 800px;
	background: #fff;
	padding: 25px;
	border-radius: 5px;
}

 .toplevel_page_wlc-algolia label {
	display: flex;
	align-items: center;
	margin-right: 10px;
}

.toplevel_page_wlc-algolia input[type="checkbox"] {
	display: none;
}

/* Wizard uses toggle switches; keep native inputs hidden like the rest of the admin UI. */
.toplevel_page_wlc-algolia .wlc-wizard-shell input[type="radio"] {
	/* Radios are styled by the preset cards. */
	opacity: 0;
	position: absolute;
	pointer-events: none;
}

.toplevel_page_wlc-algolia .slider {
	position: relative;
	cursor: pointer;
	width: 50px;
	height: 25px;
	background-color: #ccc;
	border-radius: 34px;
	transition: 0.4s;
}

.toplevel_page_wlc-algolia .slider::before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 2px;
	bottom: 2px;
	background-color: white;
	border-radius: 50%;
	transition: 0.4s;
}

.toplevel_page_wlc-algolia input[type="checkbox"]:checked + .slider {
	background-color: #db002f;
}

.toplevel_page_wlc-algolia input[type="checkbox"]:checked + .slider::before {
	transform: translateX(20px);
}

.index-post-type {
	cursor: pointer;
	padding: 10px;
	border-color: #db002f;
	background-color: #db002f;
	color: #fff;
	border-radius: 7px;
}

.progress-text {
	width: 0;
	height: 100%;
	background-color: #4CAF50;
	position: relative;
}

.post-type {
	width: 100%;
	height: 100%;
	background-color: #4CAF50;
	position: absolute;
}

.index-container th, 
.index-container tr {
	text-align: center;
}

.progress-bar-container {
	text-align: -webkit-center;
}

/* Post Types progress UI (scoped to our modern admin card) */
.toplevel_page_wlc-algolia .wlc-algolia-content-card form.post_type_index .wlc-post-type-progress {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.toplevel_page_wlc-algolia .wlc-algolia-content-card form.post_type_index .wlc-progress-bar-container {
	width: 140px;
	height: 8px;
	border-radius: 999px;
	background: #e5e7eb;
	overflow: hidden;
}

.toplevel_page_wlc-algolia .wlc-algolia-content-card form.post_type_index .wlc-progress-bar {
	height: 100%;
	width: 0%;
	background: #db002f;
	transition: width 0.2s ease;
}

.toplevel_page_wlc-algolia .wlc-algolia-content-card form.post_type_index .wlc-progress-text {
	font-size: 12px;
	line-height: 1.2;
	color: #1c1c1c;
	background: none;
	position: static;
	width: auto;
	padding: 0;
}

.index-error-message {
	display: none;
	border-left: 4px solid #f44336;
	background-color: #fff;
	padding: 10px;
	border-radius: 5px;
	text-align: center;
	max-width: 780px;
	margin-bottom: 10px;
}

.index-success-message {
	display: none;
	border-left: 4px solid #00a32a;
	background-color: #fff;
	padding: 10px;
	border-radius: 5px;
	text-align: center;
	max-width: 780px;
	margin-bottom: 10px;
}

.post-type-index-error-message {
	font-size: 16px;
	font-weight: bold;
	color: #f44336;
}

.post-type-index-success-message {
	font-size: 16px;
	font-weight: bold;
	color: #00a32a;
}

/*Sections*/
form.cpt ul.sections {
	list-style: none;
	margin: 0;
	padding: 0;
	margin-top: 25px;
	padding: 25px;
	border-radius: 5px;
}

form.cpt ul.sections li {
	display: inline;
	margin-right: 10px;
}

form.cpt ul.sections li a {
	text-decoration: none;
	padding: 5px 10px;
	border: 1px solid #db002f;
	border-radius: 5px;
	color: #db002f;
	background-color: #f0f0f0;
}

form.cpt ul.sections li a.current {
	background-color: #db002f;
	color: #fff;
}

/* Clear any floats after the list */
br.clear {
	clear: both;
}

.schema-container select option[selected="selected"] {
	background-color: #db002f;
	color: #fff;
}

.schema-container {
	background: #fff;
	padding: 15px;
}

td.index-name {
	position: relative;
}

td.index-name .question-mark {
	background: #0b2e13;
	position: absolute;
	transform: translateY(-50%);
	font-size: 8px;
	cursor: pointer;
	color: #fff;
	padding: 3px 7px;
	border-radius: 50%;
	top: 37px;
	right: -5px;
}

.tooltip {
	visibility: hidden;
	width: 250px;
	background-color: #0b2e13;
	color: #fff;
	text-align: center;
	border-radius: 5px;
	padding: 5px;
	position: absolute;
	z-index: 1;
	left: 10px;
	opacity: 0;
	transition: opacity 0.3s;
	font-size: 12px;
}

.index-name:hover .tooltip {
	visibility: visible;
	opacity: 1;
}

form.autocomplete table th {
	text-align: left;
}

form.autocomplete table td {
	text-align: left;
}

/* Post Type, CPT and Autocomplete Tables - Figma Design */
.wlc-algolia-content-card .index-container,
.wlc-algolia-content-card .container table.index-container {
	width: 100%;
	background: white;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px -1px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	margin-top: 24px;
}

/* IMPORTANT: override legacy .index-container styles when it's used as a TABLE in our new layout */
.wlc-algolia-content-card table.index-container {
	padding: 0; /* legacy adds padding:25px which breaks table layout */
	max-width: none; /* legacy max-width:800px */
	margin-bottom: 0;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
}

/* Force real table layout (some legacy rules turn rows/cells into block-like elements) */
.wlc-algolia-content-card form.post_type_index table.index-container {
	display: table !important;
}

.wlc-algolia-content-card form.post_type_index table.index-container thead {
	display: table-header-group !important;
}

.wlc-algolia-content-card form.post_type_index table.index-container tbody {
	display: table-row-group !important;
}

.wlc-algolia-content-card form.post_type_index table.index-container tr {
	display: table-row !important;
}

.wlc-algolia-content-card form.post_type_index table.index-container th,
.wlc-algolia-content-card form.post_type_index table.index-container td {
	display: table-cell !important;
}

/* Same fix for CPT table (schema-container/index-container) */
.wlc-algolia-content-card form.cpt table.schema-container,
.wlc-algolia-content-card form.cpt table.index-container.schema-container,
.wlc-algolia-content-card form.cpt table.index-container {
	display: table !important;
}

.wlc-algolia-content-card form.cpt table.schema-container thead,
.wlc-algolia-content-card form.cpt table.index-container.schema-container thead,
.wlc-algolia-content-card form.cpt table.index-container thead {
	display: table-header-group !important;
}

.wlc-algolia-content-card form.cpt table.schema-container tbody,
.wlc-algolia-content-card form.cpt table.index-container.schema-container tbody,
.wlc-algolia-content-card form.cpt table.index-container tbody {
	display: table-row-group !important;
}

.wlc-algolia-content-card form.cpt table.schema-container tr,
.wlc-algolia-content-card form.cpt table.index-container.schema-container tr,
.wlc-algolia-content-card form.cpt table.index-container tr {
	display: table-row !important;
}

.wlc-algolia-content-card form.cpt table.schema-container th,
.wlc-algolia-content-card form.cpt table.schema-container td,
.wlc-algolia-content-card form.cpt table.index-container.schema-container th,
.wlc-algolia-content-card form.cpt table.index-container.schema-container td,
.wlc-algolia-content-card form.cpt table.index-container th,
.wlc-algolia-content-card form.cpt table.index-container td {
	display: table-cell !important;
}

/* Same fix for Autocomplete table */
.wlc-algolia-content-card form.autocomplete table.index-container {
	display: table !important;
}

.wlc-algolia-content-card form.autocomplete table.index-container thead {
	display: table-header-group !important;
}

.wlc-algolia-content-card form.autocomplete table.index-container tbody {
	display: table-row-group !important;
}

.wlc-algolia-content-card form.autocomplete table.index-container tr {
	display: table-row !important;
}

.wlc-algolia-content-card form.autocomplete table.index-container th,
.wlc-algolia-content-card form.autocomplete table.index-container td {
	display: table-cell !important;
}

.wlc-algolia-content-card table.index-container tr {
	text-align: left; /* legacy centers via .index-container tr */
}

.wlc-algolia-content-card table.index-container th,
.wlc-algolia-content-card table.index-container td {
	text-align: left;
}

.wlc-algolia-content-card .index-container thead {
	background: #f9fafb;
}

.wlc-algolia-content-card .index-container thead th {
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	color: #717171;
	text-transform: uppercase;
	padding: 16px;
	text-align: left;
	border-bottom: 1px solid #e5e7eb;
}

.wlc-algolia-content-card .index-container tbody tr {
	border-bottom: 1px solid #e5e7eb;
}

.wlc-algolia-content-card .index-container tbody tr:last-child {
	border-bottom: none;
}

.wlc-algolia-content-card .index-container tbody tr:nth-child(even) {
	background: #f9fafb;
}

.wlc-algolia-content-card .index-container tbody td {
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: #1c1c1c;
	padding: 16px;
	vertical-align: middle;
}

/* (legacy widths removed) - widths are now defined per-tab below to avoid breaking other tables */

.wlc-algolia-content-card .index-container .index-button button,
.wlc-algolia-content-card .index-container .index-post-type {
	background: #000000;
	color: white;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	padding: 8px 24px;
	border: none;
	border-radius: 0;
	cursor: pointer;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.wlc-algolia-content-card .index-container .index-button button:hover,
.wlc-algolia-content-card .index-container .index-post-type:hover {
	background: #1a1a1a;
}

/* Toggle Switch Styles - Updated to match Figma */
.toplevel_page_wlc-algolia .slider {
	width: 40px;
	height: 20px;
	background-color: #c6c6c6;
	border-radius: 40px;
	transition: 0.2s;
}

.toplevel_page_wlc-algolia .slider::before {
	height: 16px;
	width: 16px;
	left: 2px;
	bottom: 2px;
	border-radius: 40px;
	transition: 0.2s;
}

.toplevel_page_wlc-algolia input[type="checkbox"]:checked + .slider {
	background-color: #db002f;
}

.toplevel_page_wlc-algolia input[type="checkbox"]:checked + .slider::before {
	transform: translateX(20px);
}

/* Post Type - Show advanced settings checkbox */
.wlc-algolia-show-advanced {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px;
}

.wlc-algolia-show-advanced label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.wlc-algolia-show-advanced > label:not(.wlc-algolia-toggle) input[type="checkbox"] {
	width: 16px;
	height: 16px;
	border: 1px solid #db002f;
	border-radius: 4px;
	background: #db002f;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	position: relative;
}

.wlc-algolia-show-advanced > label:not(.wlc-algolia-toggle) input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 10px;
	height: 10px;
	background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.33333 1L3.75 5.58333L1.66667 3.5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
}

.wlc-algolia-checkbox-label {
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: #1c1c1c;
}

/* CPT - Show/hide all post fields */
.wlc-cpt-fields-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px;
}

/* Default: show only enabled rows. Toggle adds .wlc-show-all to reveal everything.
   NOTE: CPT rows also have legacy `display: table-row !important`, so we must override with equal/higher priority. */
.wlc-algolia-content-card .wlc-cpt-fields:not(.wlc-show-all) tr.wlc-cpt-row-disabled {
	display: none !important;
	visibility: collapse; /* extra safety for table-row rendering */
}

/* Post Type: hide advanced columns unless switch is enabled */
.wlc-algolia-content-card form.post_type_index:not(.wlc-posttype-advanced) table.index-container th:nth-child(3),
.wlc-algolia-content-card form.post_type_index:not(.wlc-posttype-advanced) table.index-container td:nth-child(3),
.wlc-algolia-content-card form.post_type_index:not(.wlc-posttype-advanced) table.index-container th:nth-child(5),
.wlc-algolia-content-card form.post_type_index:not(.wlc-posttype-advanced) table.index-container td:nth-child(5) {
	display: none !important;
}

/* Post Type Table - Column widths from Figma */
.wlc-algolia-content-card form.post_type_index.wlc-posttype-advanced table.index-container thead th:nth-child(1),
.wlc-algolia-content-card form.post_type_index.wlc-posttype-advanced table.index-container tbody td:nth-child(1) {
	width: 189px;
}

.wlc-algolia-content-card form.post_type_index.wlc-posttype-advanced table.index-container thead th:nth-child(2),
.wlc-algolia-content-card form.post_type_index.wlc-posttype-advanced table.index-container tbody td:nth-child(2) {
	width: 107px;
}

.wlc-algolia-content-card form.post_type_index.wlc-posttype-advanced table.index-container thead th:nth-child(3),
.wlc-algolia-content-card form.post_type_index.wlc-posttype-advanced table.index-container tbody td:nth-child(3) {
	width: 167px;
}

.wlc-algolia-content-card form.post_type_index.wlc-posttype-advanced table.index-container thead th:nth-child(4),
.wlc-algolia-content-card form.post_type_index.wlc-posttype-advanced table.index-container tbody td:nth-child(4) {
	width: 234px;
}

.wlc-algolia-content-card form.post_type_index.wlc-posttype-advanced table.index-container thead th:nth-child(5),
.wlc-algolia-content-card form.post_type_index.wlc-posttype-advanced table.index-container tbody td:nth-child(5) {
	width: 208px;
}

.wlc-algolia-content-card form.post_type_index.wlc-posttype-advanced table.index-container thead th:nth-child(6),
.wlc-algolia-content-card form.post_type_index.wlc-posttype-advanced table.index-container tbody td:nth-child(6) {
	width: 85px;
}

.wlc-algolia-content-card form.post_type_index.wlc-posttype-advanced table.index-container thead th:nth-child(7),
.wlc-algolia-content-card form.post_type_index.wlc-posttype-advanced table.index-container tbody td:nth-child(7) {
	width: auto;
}

/* Post Type basic widths (4 columns) */
.wlc-algolia-content-card form.post_type_index:not(.wlc-posttype-advanced) table.index-container thead th:nth-child(1),
.wlc-algolia-content-card form.post_type_index:not(.wlc-posttype-advanced) table.index-container tbody td:nth-child(1) { width: 260px; }
.wlc-algolia-content-card form.post_type_index:not(.wlc-posttype-advanced) table.index-container thead th:nth-child(2),
.wlc-algolia-content-card form.post_type_index:not(.wlc-posttype-advanced) table.index-container tbody td:nth-child(2) { width: 140px; }
.wlc-algolia-content-card form.post_type_index:not(.wlc-posttype-advanced) table.index-container thead th:nth-child(4),
.wlc-algolia-content-card form.post_type_index:not(.wlc-posttype-advanced) table.index-container tbody td:nth-child(4) { width: 420px; }
.wlc-algolia-content-card form.post_type_index:not(.wlc-posttype-advanced) table.index-container thead th:nth-child(7),
.wlc-algolia-content-card form.post_type_index:not(.wlc-posttype-advanced) table.index-container tbody td:nth-child(7) { width: auto; }

/* Custom index name input */
.wlc-algolia-custom-index-input {
	width: 172px;
	background: white;
	border: 1px solid #c6c6c6;
	border-radius: 8px;
	padding: 8px 12px;
	font-family: 'Poppins', sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	color: #1c1c1c;
	height: 32px;
	box-sizing: border-box;
}

.wlc-algolia-custom-index-input:focus {
	outline: none;
	border-color: #db002f;
}

/* Toggle in table cells */
.wlc-algolia-content-card form.post_type_index table.index-container td .wlc-algolia-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 54px;
}

.wlc-algolia-content-card form.post_type_index table.index-container td .wlc-algolia-toggle input[type="checkbox"] {
	display: none;
}

.wlc-algolia-content-card form.post_type_index table.index-container td .wlc-algolia-toggle-slider {
	width: 40px;
	height: 20px;
	background-color: #c6c6c6;
	border-radius: 40px;
	position: relative;
	cursor: pointer;
	transition: 0.2s;
}

.wlc-algolia-content-card form.post_type_index table.index-container td .wlc-algolia-toggle-slider::before {
	content: '';
	position: absolute;
	height: 16px;
	width: 16px;
	left: 2px;
	top: 2px;
	background-color: white;
	border-radius: 40px;
	transition: 0.2s;
}

.wlc-algolia-content-card form.post_type_index table.index-container td .wlc-algolia-toggle input[type="checkbox"]:checked + .wlc-algolia-toggle-slider {
	background-color: #db002f;
}

.wlc-algolia-content-card form.post_type_index table.index-container td .wlc-algolia-toggle input[type="checkbox"]:checked + .wlc-algolia-toggle-slider::before {
	transform: translateX(20px);
}

/* Autocomplete - Enable toggle */
.wlc-algolia-content-card form.autocomplete .enable-autocomplete {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px;
}

.wlc-algolia-content-card form.autocomplete .enable-autocomplete h3 {
	margin: 0;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: #1c1c1c;
}

/* Autocomplete - Max suggestions input */
.wlc-algolia-content-card form.autocomplete .index-container td input[type="number"] {
	width: 172px;
	background: white;
	border: 1px solid #c6c6c6;
	border-radius: 8px;
	padding: 8px 12px;
	font-family: 'Poppins', sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	color: #1c1c1c;
	height: 32px;
	box-sizing: border-box;
}

/* Autocomplete - Custom heading input */
.wlc-algolia-content-card form.autocomplete .index-container td input[type="text"] {
	width: 100%;
	max-width: 248px;
	background: white;
	border: 1px solid #c6c6c6;
	border-radius: 8px;
	padding: 8px 12px;
	font-family: 'Poppins', sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	color: #1c1c1c;
	height: 32px;
	box-sizing: border-box;
}

/* Autocomplete - column widths (give the last column more breathing room) */
.wlc-algolia-content-card form.autocomplete table.index-container thead th:nth-child(1),
.wlc-algolia-content-card form.autocomplete table.index-container tbody td:nth-child(1) { width: 220px; }
.wlc-algolia-content-card form.autocomplete table.index-container thead th:nth-child(2),
.wlc-algolia-content-card form.autocomplete table.index-container tbody td:nth-child(2) { width: 120px; }
.wlc-algolia-content-card form.autocomplete table.index-container thead th:nth-child(3),
.wlc-algolia-content-card form.autocomplete table.index-container tbody td:nth-child(3) { width: 260px; }
.wlc-algolia-content-card form.autocomplete table.index-container thead th:nth-child(4),
.wlc-algolia-content-card form.autocomplete table.index-container tbody td:nth-child(4) { width: 200px; }
.wlc-algolia-content-card form.autocomplete table.index-container thead th:nth-child(5),
.wlc-algolia-content-card form.autocomplete table.index-container tbody td:nth-child(5) { width: 320px; }

/* CPT - Select inputs */
.wlc-algolia-content-card form.cpt .index-container td select,
.wlc-algolia-content-card .schema-container td select {
	width: 171px;
	background: white;
	border: 1px solid #c6c6c6;
	border-radius: 8px;
	padding: 6px 12px;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	color: #1c1c1c;
	height: 32px;
	box-sizing: border-box;
}

/* Schema container styling */
.wlc-algolia-content-card .schema-container {
	width: 100%;
	background: white;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.1), 0px 1px 2px -1px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	margin-top: 24px;
}

.wlc-algolia-content-card .schema-container thead {
	background: #f9fafb;
}

.wlc-algolia-content-card .schema-container thead th {
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	color: #717171;
	text-transform: uppercase;
	padding: 16px;
	text-align: left;
	border-bottom: 1px solid #e5e7eb;
}

.wlc-algolia-content-card .schema-container tbody tr {
	border-bottom: 1px solid #e5e7eb;
}

.wlc-algolia-content-card .schema-container tbody tr:last-child {
	border-bottom: none;
}

.wlc-algolia-content-card .schema-container tbody tr:nth-child(even) {
	background: #f9fafb;
}

.wlc-algolia-content-card .schema-container tbody td {
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: #1c1c1c;
	padding: 16px;
	vertical-align: middle;
}

.wlc-algolia-content-card .schema-container .index-button button {
	background: #000000;
	color: white;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	padding: 8px 24px;
	border: none;
	border-radius: 0;
	cursor: pointer;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.wlc-algolia-content-card .schema-container .index-button button:hover {
	background: #1a1a1a;
}

h3.enable-autocomplete {
	display: inline-flex;
}

.enable-autocomplete-label {
	margin-left: 12px;
}

/* ============================================
   Setup Wizard (guided onboarding)
   ============================================ */
.wlc-wizard-shell {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.wlc-wizard-hero {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 16px;
	border-radius: 14px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.08);
}
.wlc-wizard-kicker {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(0,0,0,0.55);
}
.wlc-wizard-title {
	font-size: 22px;
	font-weight: 800;
	line-height: 1.1;
	margin-top: 4px;
}
.wlc-wizard-subtitle {
	margin-top: 6px;
	color: rgba(0,0,0,0.7);
	max-width: 56ch;
}
.wlc-wizard-hero-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	min-width: 220px;
}

.wlc-wizard-progress-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 12px;
	color: rgba(0,0,0,0.65);
}
.wlc-wizard-progress-pct {
	font-weight: 800;
	color: #111;
}
.wlc-wizard-progress-bar {
	margin-top: 6px;
	width: 220px;
	height: 8px;
	border-radius: 999px;
	background: rgba(0,0,0,0.08);
	overflow: hidden;
}
.wlc-wizard-progress-bar-fill {
	height: 100%;
	background: #db002f;
	border-radius: 999px;
}
.wlc-wizard-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 10px;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.wlc-wizard-layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 14px;
}
@media (max-width: 1100px) {
	.wlc-wizard-layout {
		grid-template-columns: 1fr;
	}
	.wlc-wizard-hero-right {
		align-items: flex-start;
	}
}

.wlc-wizard-nav {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.wlc-wizard-nav-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	border-radius: 12px;
	text-decoration: none;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: #fff;
	color: #111;
}
.wlc-wizard-nav-item.is-active {
	border-color: rgba(0,0,0,0.2);
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.08);
}
.wlc-wizard-nav-item.is-done .wlc-wizard-nav-index {
	background: #111;
	color: #fff;
}
.wlc-wizard-nav-index {
	width: 26px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #f5f5f5;
	font-size: 12px;
	font-weight: 800;
}
.wlc-wizard-nav-label {
	font-size: 13px;
	font-weight: 700;
}

.wlc-wizard-notice {
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.4;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: #f5f5f5;
}
.wlc-wizard-notice.is-success {
	border-color: rgba(34, 197, 94, 0.25);
}
.wlc-wizard-notice.is-error {
	border-color: rgba(220, 38, 38, 0.25);
}

.wlc-wizard-panel {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	padding: 16px;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.08);
}

.wlc-wizard-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px;
	border-radius: 12px;
	border: 1px solid rgba(0,0,0,0.08);
	background: #f5f5f5;
	margin-bottom: 14px;
}
.wlc-wizard-banner-sub {
	font-size: 12px;
	color: rgba(0,0,0,0.65);
	margin-top: 4px;
}

.wlc-wizard-section {
	margin-bottom: 14px;
}
.wlc-wizard-section-title {
	font-size: 14px;
	font-weight: 800;
	margin-bottom: 2px;
}
.wlc-wizard-section-sub {
	font-size: 12px;
	color: rgba(0,0,0,0.65);
}

.wlc-wizard-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.wlc-wizard-presets {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-top: 10px;
}
@media (max-width: 960px) {
	.wlc-wizard-presets {
		grid-template-columns: 1fr;
	}
}
.wlc-wizard-preset {
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 14px;
	padding: 14px;
	background: #fff;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 4px;
	position: relative;
}
.wlc-wizard-preset input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.wlc-wizard-preset:hover {
	border-color: rgba(0,0,0,0.18);
	box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.wlc-wizard-preset:has(input:checked) {
	border-color: rgba(219, 0, 47, 0.5);
	box-shadow: 0 1px 2px rgba(219,0,47,0.15);
}
.wlc-wizard-preset-title {
	font-weight: 800;
}
.wlc-wizard-preset-sub {
	font-size: 12px;
	color: rgba(0,0,0,0.65);
}

.wlc-wizard-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
@media (max-width: 960px) {
	.wlc-wizard-grid {
		grid-template-columns: 1fr;
	}
}

.wlc-wizard-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.wlc-wizard-field-label {
	font-size: 12px;
	font-weight: 600;
	color: #111;
}
.wlc-wizard-field-help {
	font-size: 12px;
	color: #666;
}

.wlc-wizard-conn {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
	flex-wrap: wrap;
}
.wlc-wizard-conn-status {
	font-size: 12px;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid rgba(0,0,0,0.08);
	background: #fff;
	color: rgba(0,0,0,0.75);
}
.wlc-wizard-conn-status.is-loading {
	opacity: 0.8;
}
.wlc-wizard-conn-status.is-success {
	border-color: rgba(34, 197, 94, 0.35);
	color: rgba(22, 101, 52, 1);
}
.wlc-wizard-conn-status.is-error {
	border-color: rgba(220, 38, 38, 0.35);
	color: rgba(153, 27, 27, 1);
}

.wlc-wizard-checklist {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 12px;
	margin-top: 10px;
}
@media (max-width: 960px) {
	.wlc-wizard-checklist {
		grid-template-columns: 1fr;
	}
}
.wlc-wizard-check {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	background: #fff;
}
.wlc-wizard-check-title {
	font-weight: 600;
	font-size: 13px;
}
.wlc-wizard-check-sub {
	color: #666;
	font-size: 12px;
	margin-left: auto;
}

.wlc-wizard-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(0,0,0,0.06);
	color: rgba(0,0,0,0.75);
	font-size: 11px;
	font-weight: 700;
	margin-left: 8px;
}
.wlc-wizard-badge.is-accent {
	background: rgba(219, 0, 47, 0.12);
	color: #db002f;
}

/* Wizard row lists (switches) */
.wlc-wizard-rows {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 10px;
}
.wlc-wizard-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px;
	border-radius: 12px;
	border: 1px solid rgba(0,0,0,0.08);
	background: #fff;
}
.wlc-wizard-row-meta {
	min-width: 0;
}
.wlc-wizard-row-title {
	font-weight: 800;
}
.wlc-wizard-row-sub {
	font-size: 12px;
	color: rgba(0,0,0,0.65);
	margin-top: 3px;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}
.wlc-wizard-row-actions {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Step 3: field list (Field / Index / Facet) */
.wlc-wizard-fieldlist {
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	margin-top: 10px;
}
.wlc-wizard-fieldlist-head {
	display: grid;
	grid-template-columns: 1fr 90px 90px;
	gap: 10px;
	align-items: center;
	padding: 10px 12px;
	background: #f5f5f5;
	font-size: 12px;
	font-weight: 800;
	color: rgba(0,0,0,0.7);
}
.wlc-wizard-fieldrow {
	display: grid;
	grid-template-columns: 1fr 90px 90px;
	gap: 10px;
	align-items: center;
	padding: 12px;
	border-top: 1px solid rgba(0,0,0,0.06);
}
.wlc-wizard-fieldrow-meta {
	min-width: 0;
}
.wlc-wizard-fieldrow-title {
	font-weight: 800;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.wlc-wizard-fieldrow-sub {
	font-size: 12px;
	color: rgba(0,0,0,0.65);
	margin-top: 4px;
}
.wlc-wizard-fieldrow-toggle {
	display: flex;
	justify-content: flex-end;
}

@media (max-width: 960px) {
	.wlc-wizard-fieldlist-head {
		display: none;
	}
	.wlc-wizard-fieldrow {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	.wlc-wizard-fieldrow-toggle {
		justify-content: flex-start;
	}
}

.wlc-wizard-index {
	margin-top: 10px;
}
.wlc-wizard-index-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 10px;
}
.wlc-wizard-index-row {
	display: grid;
	grid-template-columns: 1.2fr 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 12px;
	border-radius: 12px;
	border: 1px solid rgba(0,0,0,0.08);
	background: #fff;
}
@media (max-width: 960px) {
	.wlc-wizard-index-row {
		grid-template-columns: 1fr;
	}
}
.wlc-wizard-index-title {
	font-weight: 800;
}
.wlc-wizard-index-sub {
	font-size: 12px;
	color: rgba(0,0,0,0.65);
	margin-top: 2px;
	word-break: break-all;
}

.wlc-wizard-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 10px;
}
@media (max-width: 960px) {
	.wlc-wizard-split {
		grid-template-columns: 1fr;
	}
}
.wlc-wizard-subtitle {
	margin: 0 0 6px 0;
	font-size: 13px;
}

.wlc-wizard-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 14px;
}

.wlc-wizard-card {
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	padding: 12px;
	background: #f5f5f5;
}
