/* ==========================================================================
   WC User Verification & Custom Fields — Estilos
   Paleta neutra por padrão. Ajuste as variáveis abaixo para casar com o
   design system de cada projeto (ex.: Mesa Raiz usa ink/cream/gold).
   ========================================================================== */

:root {
	--wcuv-color-primary: #1d4ed8;
	--wcuv-color-success: #15803d;
	--wcuv-color-success-bg: #ecfdf3;
	--wcuv-color-warning: #b45309;
	--wcuv-color-warning-bg: #fff7ed;
	--wcuv-color-danger: #b91c1c;
	--wcuv-color-danger-bg: #fef2f2;
	--wcuv-color-neutral: #475569;
	--wcuv-color-neutral-bg: #f1f5f9;
	--wcuv-border-radius: 6px;
}

/* ---------- Campos (registro + minha conta) ---------- */

.wcuv-fields-wrapper {
	margin: 1.5em 0;
}

.wcuv-section-title {
	margin-top: 1.5em;
	margin-bottom: 0.25em;
	font-size: 1.1em;
}

.wcuv-section-intro {
	font-size: 0.9em;
	color: var(--wcuv-color-neutral);
	margin-bottom: 1em;
}

.wcuv-field {
	margin-bottom: 1em;
}

.wcuv-field-description {
	display: block;
	color: var(--wcuv-color-neutral);
	font-size: 0.82em;
	margin-top: 4px;
}

.wcuv-doc-field input[type="file"] {
	display: block;
	margin-top: 4px;
}

.wcuv-doc-current {
	display: block;
	font-size: 0.82em;
	color: var(--wcuv-color-success);
	margin-bottom: 4px;
}

/* ---------- Status pill (badge de status) ---------- */

.wcuv-status-pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 0.78em;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.wcuv-status-pill-pending {
	background: var(--wcuv-color-warning-bg);
	color: var(--wcuv-color-warning);
}

.wcuv-status-pill-approved {
	background: var(--wcuv-color-success-bg);
	color: var(--wcuv-color-success);
}

.wcuv-status-pill-rejected {
	background: var(--wcuv-color-danger-bg);
	color: var(--wcuv-color-danger);
}

.wcuv-status-pill-none {
	background: var(--wcuv-color-neutral-bg);
	color: var(--wcuv-color-neutral);
}

/* ---------- Banner de status (Minha Conta) ---------- */

.wcuv-status-banner {
	border: 1px solid #e2e8f0;
	border-radius: var(--wcuv-border-radius);
	padding: 14px 18px;
	margin-bottom: 1.5em;
	background: #fff;
}

.wcuv-status-banner .wcuv-status-pill {
	margin-left: 8px;
}

.wcuv-rejection-note {
	margin-top: 8px;
	margin-bottom: 0;
	color: var(--wcuv-color-danger);
}

.wcuv-dashboard-notice a {
	font-weight: 600;
	text-decoration: underline;
}

/* ---------- Painel admin ---------- */

.wcuv-admin-wrap .wcuv-status-tabs {
	margin-bottom: 1em;
}

.wcuv-doc-preview-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 1em 0 2em;
}

.wcuv-doc-preview-card {
	border: 1px solid #e2e8f0;
	border-radius: var(--wcuv-border-radius);
	padding: 12px;
	width: 220px;
	background: #fff;
}

.wcuv-doc-preview-card h4 {
	margin-top: 0;
	font-size: 0.9em;
}

.wcuv-doc-thumb {
	max-width: 100%;
	border-radius: 4px;
	display: block;
}

/* ---------- Selo de vendedor verificado (WCFM) ---------- */

.wcuv-verified-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--wcuv-color-success-bg);
	color: var(--wcuv-color-success);
	border-radius: 999px;
	padding: 2px 10px;
	font-size: 0.78em;
	font-weight: 600;
	margin-left: 6px;
	vertical-align: middle;
}

.wcuv-verified-badge .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	line-height: 14px;
}

/* ---------- Tela "Configurar Campos" ---------- */

.wcuv-fields-admin-layout {
	display: flex;
	gap: 32px;
	margin-top: 1.5em;
	align-items: flex-start;
}

.wcuv-fields-list-col {
	flex: 1 1 55%;
}

.wcuv-fields-form-col {
	flex: 1 1 40%;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: var(--wcuv-border-radius);
	padding: 16px 20px;
}

.wcuv-sortable-fields {
	list-style: none;
	margin: 0;
	padding: 0;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: var(--wcuv-border-radius);
}

.wcuv-sortable-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-bottom: 1px solid #f1f5f9;
	background: #fff;
}

.wcuv-sortable-item:last-child {
	border-bottom: none;
}

.wcuv-drag-handle {
	cursor: move;
	color: #94a3b8;
}

.wcuv-field-label {
	font-weight: 600;
	flex: 1 1 auto;
}

.wcuv-field-type-badge {
	font-size: 0.78em;
	background: var(--wcuv-color-neutral-bg);
	color: var(--wcuv-color-neutral);
	padding: 2px 8px;
	border-radius: 4px;
}

.wcuv-field-required-badge {
	font-size: 0.78em;
	background: var(--wcuv-color-warning-bg);
	color: var(--wcuv-color-warning);
	padding: 2px 8px;
	border-radius: 4px;
}

.wcuv-field-actions {
	font-size: 0.85em;
	white-space: nowrap;
}

.wcuv-delete-link {
	color: var(--wcuv-color-danger);
}

.wcuv-sortable-item.ui-sortable-helper {
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
