/* Savanna Vendor Membership — banner (matches Woodmart primary color where available) */

:root {
	--svm-accent: var( --wd-primary-color, #e0447b );
	--svm-accent-dark: var( --btn-accent-color-hover, #c1356a );
}

/* Hidden until JS repositions it into the content area (avoids a flash above the header). */
.svm-membership-banner.svm-unpositioned {
	display: none;
}

.svm-membership-banner {
	margin: 24px auto;
	max-width: 1220px;
	padding: 0 15px;
	box-sizing: border-box;
}

.svm-membership-inner {
	display: flex;
	align-items: center;
	gap: 14px 20px;
	flex-wrap: wrap;
	justify-content: center;
	padding: 18px 24px;
	background: linear-gradient( 0deg, rgba( 224, 68, 123, 0.06 ), rgba( 224, 68, 123, 0.06 ) ), #fff;
	border: 1px solid var( --svm-accent );
	border-radius: 12px;
	box-shadow: 0 6px 20px rgba( 0, 0, 0, 0.06 );
}

.svm-membership-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var( --svm-accent );
	color: #fff;
	font-size: 20px;
	line-height: 1;
	flex: 0 0 auto;
}

.svm-membership-msg {
	margin: 0;
	font-size: 1.02em;
	line-height: 1.5;
	color: #2b2b2b;
	flex: 1 1 260px;
}

.svm-membership-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	flex: 0 0 auto;
}

.svm-btn {
	display: inline-block;
	padding: 11px 22px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.95em;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
	border: 2px solid var( --svm-accent );
}

.svm-btn-primary {
	background: var( --svm-accent );
	color: #fff;
}

.svm-btn-primary:hover {
	background: var( --svm-accent-dark );
	border-color: var( --svm-accent-dark );
	color: #fff;
	box-shadow: 0 4px 14px rgba( 224, 68, 123, 0.35 );
}

.svm-btn-outline {
	background: transparent;
	color: var( --svm-accent );
}

.svm-btn-outline:hover {
	background: var( --svm-accent );
	color: #fff;
}

@media ( max-width: 600px ) {
	.svm-membership-inner {
		flex-direction: column;
		text-align: center;
	}
	.svm-membership-msg {
		flex: 1 1 99px;
	}
	.svm-membership-actions {
		width: 100%;
		justify-content: center;
	}
	.svm-btn {
		flex: 1 1 auto;
		text-align: center;
	}
}

/* ============================================================
   "Why register" intro above the vendor registration form
   ============================================================ */

.svm-reg-intro.svm-intro-unpositioned {
	display: none;
}

.svm-reg-intro {
	max-width: 1220px;
	margin: 0 auto 26px;
	padding: 24px 26px;
	border: 1px solid var( --svm-accent );
	border-radius: 12px;
	background: linear-gradient( 0deg, rgba( 224, 68, 123, 0.05 ), rgba( 224, 68, 123, 0.05 ) ), #fff;
	box-sizing: border-box;
}

.svm-reg-intro-title {
	margin: 0 0 8px;
	color: var( --svm-accent );
	font-size: 1.5em;
	line-height: 1.2;
}

.svm-reg-intro-sub {
	margin: 0 0 16px;
	font-size: 1.02em;
	line-height: 1.5;
	color: #444;
}

.svm-reg-benefits {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 240px, 1fr ) );
	gap: 8px 24px;
}

.svm-reg-benefits li {
	position: relative;
	padding-left: 28px;
	line-height: 1.4;
	color: #2b2b2b;
}

.svm-reg-benefits li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	width: 20px;
	height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var( --svm-accent );
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

/* ============================================================
   Step-1 trim: hide the blocks removed by onboarding.js before JS runs,
   so there is no flash of the full form. (JS removes them from the DOM.)
   ============================================================ */

#dokan-vendor-register .dokan-form-group:has( #dokan-address-fields-wrapper ),
#dokan-vendor-register p.form-row:has( #dokan-company-name ),
#dokan-vendor-register p.form-row:has( #dokan-company-id-number ),
#dokan-vendor-register p.form-row:has( #dokan-vat-number ),
#dokan-vendor-register .split-row:has( #dokan-bank-name ),
#dokan-vendor-register p.form-row:has( #seller-url ) {
	display: none !important;
}

/* ============================================================
   Vendor registration form polish (scoped to #dokan-vendor-register)
   ============================================================ */

#dokan-vendor-register .dokan-form-group,
#dokan-vendor-register p.form-row {
	margin-bottom: 18px;
}

#dokan-vendor-register label {
	font-weight: 600;
	margin-bottom: 6px;
	display: inline-block;
	color: #2b2b2b;
}

#dokan-vendor-register input[type="text"],
#dokan-vendor-register input[type="email"],
#dokan-vendor-register input[type="password"],
#dokan-vendor-register input[type="tel"],
#dokan-vendor-register input[type="url"],
#dokan-vendor-register input[type="number"],
#dokan-vendor-register select,
#dokan-vendor-register textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid #d9d9e0;
	border-radius: 10px;
	background: #fff;
	font-size: 15px;
	line-height: 1.4;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#dokan-vendor-register input:focus,
#dokan-vendor-register select:focus,
#dokan-vendor-register textarea:focus {
	border-color: var( --svm-accent );
	box-shadow: 0 0 0 3px rgba( 224, 68, 123, 0.15 );
	outline: none;
}

#dokan-vendor-register .dokan-form-note,
#dokan-vendor-register small {
	color: #888;
}

/* Submit button */
#dokan-vendor-register button[type="submit"],
#dokan-vendor-register .dokan-btn-theme {
	background: var( --svm-accent );
	border: none;
	color: #fff;
	padding: 13px 28px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

#dokan-vendor-register button[type="submit"]:hover,
#dokan-vendor-register .dokan-btn-theme:hover {
	background: var( --svm-accent-dark );
	box-shadow: 0 6px 18px rgba( 224, 68, 123, 0.35 );
	color: #fff;
}

/* Pretty file-upload drop zone */
.svm-reg-doc .svm-reg-doc-label {
	display: block;
}

.svm-upload {
	display: block;
	margin-top: 4px;
	position: relative;
}

.svm-upload-label {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	border: 2px dashed var( --svm-accent );
	border-radius: 12px;
	background: rgba( 224, 68, 123, 0.04 );
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
	margin: 0;
}

.svm-upload-label:hover {
	background: rgba( 224, 68, 123, 0.09 );
}

.svm-upload.has-file .svm-upload-label {
	border-style: solid;
	border-color: #2ea043;
	background: rgba( 46, 160, 67, 0.06 );
}

.svm-upload-icon {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var( --svm-accent );
	color: #fff;
	font-size: 22px;
	line-height: 1;
}

.svm-upload.has-file .svm-upload-icon {
	background: #2ea043;
}

.svm-upload-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.svm-upload-title {
	font-size: 15px;
	font-weight: 600;
	color: #2b2b2b;
}

.svm-upload-text small {
	color: #888;
}

/* Visually hide the native input but keep it functional/clickable via the label */
.svm-upload-input {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect( 0 0 0 0 );
	border: 0;
}

.svm-upload-filename {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #2ea043;
}

@media ( max-width: 480px ) {
	.svm-upload-label {
		padding: 16px;
		gap: 12px;
	}
	.svm-upload-icon {
		width: 40px;
		height: 40px;
		font-size: 18px;
	}
}

/* ============================================================
   Dokan vendor dashboard cards (membership + document)
   ============================================================ */

.svm-dash-card {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding: 18px 22px;
	margin-bottom: 20px;
	border: 1px solid var( --svm-accent );
	border-radius: 12px;
	background: linear-gradient( 0deg, rgba( 224, 68, 123, 0.05 ), rgba( 224, 68, 123, 0.05 ) ), #fff;
	box-shadow: 0 4px 16px rgba( 0, 0, 0, 0.06 );
	box-sizing: border-box;
}

.svm-dash-doc {
	display: block;
}

.svm-dash-badge {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var( --svm-accent );
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
}

.svm-dash-info {
	flex: 1 1 240px;
	min-width: 0;
}

.svm-dash-eyebrow {
	font-size: 0.78em;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	opacity: 0.7;
}

.svm-dash-tier {
	font-size: 1.4em;
	font-weight: 700;
	line-height: 1.2;
	color: var( --svm-accent );
}

.svm-dash-meta {
	opacity: 0.8;
	margin-top: 2px;
}

.svm-dash-doc-head {
	width: 100%;
	font-weight: 600;
	margin-bottom: 12px;
}

.svm-dash-btn {
	flex: 0 0 auto;
	display: inline-block;
	padding: 11px 22px;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	background: var( --svm-accent );
	color: #fff;
	border: 2px solid var( --svm-accent );
	transition: background-color 0.15s ease, color 0.15s ease;
}

.svm-dash-btn:hover {
	background: var( --svm-accent-dark );
	border-color: var( --svm-accent-dark );
	color: #fff;
}

.svm-dash-btn-outline {
	background: transparent;
	color: var( --svm-accent );
}

.svm-dash-btn-outline:hover {
	background: var( --svm-accent );
	color: #fff;
}

@media ( max-width: 600px ) {
	.svm-dash-card {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}
	.svm-dash-info {
		flex: 1 1 99px;
	}
	.svm-dash-btn {
		width: 100%;
		text-align: center;
		box-sizing: border-box;
	}
}

/* ============================================================
   Step-2 "complete your profile" checklist
   ============================================================ */

.svm-checklist {
	display: block;
	padding: 22px 26px;
}

.svm-checklist-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
}

/* Progress bar */
.svm-progress {
	height: 8px;
	border-radius: 999px;
	background: rgba( 224, 68, 123, 0.15 );
	overflow: hidden;
	margin-bottom: 4px;
}

.svm-progress-fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var( --svm-accent );
	transition: width 0.4s ease;
}

/* Uniform surface — rows are transparent and separated by hairline dividers
   (no boxes-on-a-panel), so the card reads as one continuous background. */
.svm-checklist-items {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
}

.svm-checklist-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 4px;
	background: transparent;
	border-top: 1px solid rgba( 224, 68, 123, 0.14 );
	transition: background-color 0.15s ease;
}

.svm-checklist-item:first-child {
	border-top: none;
}

.svm-checklist-item.is-todo:hover {
	background: rgba( 224, 68, 123, 0.05 );
	border-radius: 8px;
}

.svm-check-mark {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	background: #fff;
	border: 2px solid var( --svm-accent );
	color: var( --svm-accent );
}

.svm-checklist-item.is-done .svm-check-mark {
	background: #2ea043;
	border-color: #2ea043;
	color: #fff;
}

.svm-check-body {
	flex: 1 1 200px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.svm-check-label {
	font-weight: 600;
	color: #2b2b2b;
}

.svm-checklist-item.is-done .svm-check-label {
	color: #5a5a5a;
}

.svm-check-desc {
	font-size: 0.88em;
	color: #7a7a7a;
	line-height: 1.45;
}

.svm-check-cta {
	flex: 0 0 auto;
	padding: 9px 18px;
	font-size: 0.9em;
	white-space: nowrap;
}

.svm-check-status {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	color: #2ea043;
	font-size: 0.9em;
}

.svm-check-status::before {
	content: "\2713";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #2ea043;
	color: #fff;
	font-size: 11px;
}

/* ============================================================
   Dashboard document panel: upload form + flash notices
   ============================================================ */

.svm-doc-intro {
	margin: 0 0 14px;
	color: #555;
}

.svm-doc-form {
	width: 100%;
	margin-top: 14px;
}

.svm-doc-form .svm-upload {
	margin-bottom: 14px;
}

.svm-doc-form .svm-dash-btn {
	cursor: pointer;
	border: none;
}

.svm-doc-replace {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px dashed #e0e0e8;
}

.svm-dash-flash {
	margin-bottom: 20px;
	padding: 14px 18px;
	border-radius: 10px;
	font-weight: 600;
}

.svm-dash-flash-ok {
	background: rgba( 46, 160, 67, 0.1 );
	border: 1px solid rgba( 46, 160, 67, 0.5 );
	color: #1a7f37;
}

.svm-dash-flash-err {
	background: rgba( 209, 36, 47, 0.08 );
	border: 1px solid rgba( 209, 36, 47, 0.45 );
	color: #b3261e;
}

@media ( max-width: 600px ) {
	.svm-checklist {
		padding: 20px 18px;
	}
	.svm-checklist-item {
		flex-wrap: wrap;
	}
	.svm-check-body {
		flex: 1 1 140px;
	}
	.svm-check-cta,
	.svm-check-status {
		width: 100%;
		text-align: center;
		box-sizing: border-box;
		justify-content: center;
	}
}
