/* ── Smart COD Setup Wizard ─────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.wcsf-wizard-body {
	background: #f0f2f5;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #1a1a2e;
	min-height: 100vh;
}

.wcsf-wizard-wrap {
	max-width: 720px;
	margin: 0 auto;
	padding: 32px 16px 64px;
}

/* ── Header ── */
.wcsf-wizard-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 32px;
}
.wcsf-wizard-brand strong {
	font-size: 17px;
	font-weight: 700;
	color: #1a1a2e;
}
.wcsf-wizard-brand span {
	font-size: 12px;
	color: #888;
	margin-left: 6px;
}
.wcsf-skip {
	font-size: 13px;
	color: #888;
	text-decoration: none;
}
.wcsf-skip:hover { color: #555; }

/* ── Steps indicator ── */
.wcsf-steps {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin-bottom: 32px;
}
.wcsf-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}
.wcsf-step-num {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #e0e0e0;
	color: #999;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	transition: background .25s, color .25s;
}
.wcsf-step.active .wcsf-step-num,
.wcsf-step.done .wcsf-step-num {
	background: #2563eb;
	color: #fff;
}
.wcsf-step.done .wcsf-step-num { background: #16a34a; }
.wcsf-step-label {
	font-size: 12px;
	color: #999;
	white-space: nowrap;
}
.wcsf-step.active .wcsf-step-label { color: #2563eb; font-weight: 600; }
.wcsf-step.done .wcsf-step-label  { color: #16a34a; }
.wcsf-step-line {
	flex: 1;
	height: 2px;
	background: #e0e0e0;
	min-width: 60px;
	max-width: 120px;
	margin-bottom: 18px;
	transition: background .25s;
}
.wcsf-step-line.done { background: #16a34a; }

/* ── Panel ── */
.wcsf-panel {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 16px rgba(0,0,0,.08);
	overflow: hidden;
}
.wcsf-panel-inner {
	padding: 40px 48px;
}
.wcsf-panel-inner h1 {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 10px;
	color: #1a1a2e;
}
.wcsf-lead {
	font-size: 15px;
	color: #555;
	line-height: 1.6;
	margin-bottom: 28px;
}

/* ── COD status card ── */
.wcsf-check-card {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 16px 20px;
	border-radius: 8px;
	margin-bottom: 28px;
	border: 1.5px solid;
}
.wcsf-check-card.success {
	background: #f0fdf4;
	border-color: #bbf7d0;
}
.wcsf-check-card.warning {
	background: #fffbeb;
	border-color: #fde68a;
}
.wcsf-check-icon {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	flex-shrink: 0;
}
.wcsf-check-card.success .wcsf-check-icon { color: #16a34a; }
.wcsf-check-card.warning .wcsf-check-icon { color: #d97706; }
.wcsf-check-card strong { display: block; font-size: 14px; margin-bottom: 4px; }
.wcsf-check-card p { font-size: 13px; color: #666; margin: 0; line-height: 1.5; }
.wcsf-check-card a { color: #2563eb; }

/* ── Feature list ── */
.wcsf-feature-list {
	list-style: none;
	margin-bottom: 32px;
}
.wcsf-feature-list li {
	font-size: 14px;
	color: #444;
	padding: 6px 0;
	border-bottom: 1px solid #f5f5f5;
}
.wcsf-feature-list li:last-child { border-bottom: none; }

/* ── Field grid ── */
.wcsf-field-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 32px;
}
.wcsf-field-full { grid-column: 1 / -1; }
.wcsf-field label:not(.wcsf-toggle-label) {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	color: #333;
}
.wcsf-field-desc {
	font-size: 12px;
	color: #888;
	margin-top: 5px;
}

/* ── Input with prefix ── */
.wcsf-input-prefix {
	display: flex;
	align-items: center;
	border: 1.5px solid #d1d5db;
	border-radius: 6px;
	overflow: hidden;
}
.wcsf-input-prefix span {
	padding: 0 10px;
	background: #f9fafb;
	font-size: 14px;
	color: #555;
	border-right: 1.5px solid #d1d5db;
	height: 38px;
	display: flex;
	align-items: center;
}
.wcsf-input-prefix input {
	border: none !important;
	box-shadow: none !important;
	padding: 0 10px;
	height: 38px;
	font-size: 14px;
	width: 100%;
	outline: none;
}

/* ── Toggle switch ── */
.wcsf-toggle-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: #333;
}
.wcsf-toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.wcsf-toggle input { opacity: 0; width: 0; height: 0; }
.wcsf-toggle-slider {
	position: absolute;
	inset: 0;
	background: #d1d5db;
	border-radius: 24px;
	transition: background .2s;
	cursor: pointer;
}
.wcsf-toggle-slider::before {
	content: '';
	position: absolute;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	top: 3px;
	left: 3px;
	transition: transform .2s;
	box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.wcsf-toggle input:checked + .wcsf-toggle-slider { background: #2563eb; }
.wcsf-toggle input:checked + .wcsf-toggle-slider::before { transform: translateX(20px); }

/* ── Buttons ── */
.wcsf-panel-footer {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	padding-top: 24px;
	border-top: 1px solid #f0f0f0;
}
.wcsf-panel-footer-center { justify-content: center; }

.wcsf-btn-primary,
.wcsf-btn-secondary {
	padding: 10px 24px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	text-decoration: none;
	display: inline-block;
	transition: opacity .15s;
}
.wcsf-btn-primary { background: #2563eb; color: #fff; }
.wcsf-btn-primary:hover { background: #1d4ed8; color: #fff; }
.wcsf-btn-secondary { background: #f3f4f6; color: #444; border: 1.5px solid #e5e7eb; }
.wcsf-btn-secondary:hover { background: #e5e7eb; }
.wcsf-btn-primary:disabled { opacity: .6; cursor: not-allowed; }

/* ── Done panel ── */
.wcsf-done-panel { text-align: center; }
.wcsf-done-icon { font-size: 56px; margin-bottom: 16px; }
.wcsf-done-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin: 32px 0;
	text-align: left;
}
.wcsf-done-card {
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 16px;
}
.wcsf-done-card strong { display: block; font-size: 13px; margin-bottom: 6px; color: #1a1a2e; }
.wcsf-done-card p { font-size: 12px; color: #666; line-height: 1.5; margin: 0; }

@media (max-width: 600px) {
	.wcsf-panel-inner { padding: 28px 20px; }
	.wcsf-field-grid  { grid-template-columns: 1fr; }
	.wcsf-done-cards  { grid-template-columns: 1fr; }
}
