/*
 * BP MVX custom dashboard stylesheet.
 * Keep selectors defensive to survive MVX updates.
 */

#multivendorx-vendor-dashboard.admin-main-wrapper {
	--bp-mvx-brand-accent: #1e7f5c;
}

/* ---- Ansprechpersonen Dashboard ------------------------------------------ */
/* Note: #bp-asp-overlay positioning is set inline via JS (cssText).
   The .bp-asp-* rules below are reference copies — active styles live in
   MVX Settings → Custom CSS (dashboard-customizations.css is not loaded
   on the vendor dashboard page). */

.bp-asp-wrap {
	padding: 24px;
}

.bp-asp-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.bp-asp-header h2 {
	margin: 0;
	font-size: 1.25rem;
}

.bp-asp-empty,
.bp-asp-loading,
.bp-asp-error {
	color: var(--subTextColor, #666);
	margin-top: 16px;
}

.bp-asp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

.bp-asp-card {
	background: var(--backgroundWhite, #fff);
	border: 1px solid var(--borderColor, #dbdbdb);
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.bp-asp-card-foto {
	width: 100%;
	height: 140px;
	object-fit: cover;
}

.bp-asp-foto-placeholder {
	height: 140px;
	background: var(--backgroundColor, #f5f5f5);
}

.bp-asp-card-body {
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.bp-asp-card-name {
	font-size: 1rem;
	margin-bottom: 4px;
}

.bp-asp-card-detail {
	font-size: 0.85rem;
	color: var(--subTextColor, #666);
}

.bp-asp-card-actions {
	display: flex;
	gap: 8px;
	margin-top: 10px;
}

.bp-asp-form {
	background: var(--backgroundWhite, #fff);
	border: 1px solid var(--borderColor, #dbdbdb);
	border-radius: 6px;
	padding: 24px;
	margin-top: 16px;
	max-width: 560px;
}

.bp-asp-form h3 {
	margin: 0 0 20px;
	font-size: 1.1rem;
}

.bp-asp-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
}

.bp-asp-field label {
	font-weight: 500;
	font-size: 0.9rem;
}

.bp-asp-field input[type="text"],
.bp-asp-field input[type="email"],
.bp-asp-field input[type="tel"],
.bp-asp-field input[type="date"],
.bp-asp-field textarea {
	border: 1px solid var(--borderColor, #dbdbdb);
	border-radius: 4px;
	padding: 8px 10px;
	font-size: 0.9rem;
	width: 100%;
	box-sizing: border-box;
	background: var(--backgroundWhite, #fff);
	color: var(--textColor, #333);
}

.bp-asp-field textarea {
	resize: vertical;
}

.bp-asp-check label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	cursor: pointer;
}

.bp-asp-form-actions {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

/* ---- Gast-Login-Ansicht des Dashboards ----------------------------------- */
/* Wrapper .multivendorx-registration.woocommerce wird von MultiVendorX selbst
   ausgegeben (Core-Plugin dc-woocommerce-multi-vendor,
   Shortcode.php::display_store_dashboard()), wenn ein nicht eingeloggter
   Nutzer die Dashboard-Seite oeffnet. Anders als der .bp-asp-*-Abschnitt oben
   (React-Shell nach Login, eigene MVX-Theme-Vars) ist dies eine normal
   gerenderte WordPress-Seite im selben Page-Load wie jede andere Seite —
   das Enqueue hier ist nicht vom "not loaded"-Problem oben betroffen und
   erbt die echten Elementor-Kit-Tokens (--space-*, --blk-*, --font-family). */

.multivendorx-registration.woocommerce {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: var(--space-md);
	padding-block: var(--space-2xl);
}

.multivendorx-registration.woocommerce h2 {
	font-family: var(--font-family);
	font-size: var(--font-size-xl);
	font-weight: 500;
	margin-block-end: var(--space-lg);
}

.multivendorx-registration.woocommerce .woocommerce-form-login {
	max-width: 480px;
	background: var(--blk-white);
	border: 1px solid var(--blk-gray-light);
	border-radius: var(--radius-default);
	padding: var(--space-lg);
}

.multivendorx-registration.woocommerce .woocommerce-form-row {
	margin-block-end: var(--space-md);
}

.multivendorx-registration.woocommerce .woocommerce-form-row label {
	display: block;
	font-family: var(--font-family);
	font-size: var(--font-size-base);
	font-weight: 500;
	margin-block-end: var(--space-xs);
}

.multivendorx-registration.woocommerce .woocommerce-Input {
	width: 100%;
	box-sizing: border-box;
	min-height: 44px;
	border: 1px solid var(--blk-gray);
	border-radius: var(--radius-default);
	padding: var(--space-sm) var(--space-md);
	font-family: var(--font-family);
	font-size: var(--font-size-base);
}

.multivendorx-registration.woocommerce .woocommerce-Input:focus {
	outline: 2px solid var(--blk-light-blue);
	outline-offset: 2px;
}

.multivendorx-registration.woocommerce .password-input {
	position: relative;
	display: block;
}

.multivendorx-registration.woocommerce .password-input .woocommerce-Input {
	padding-inline-end: var(--space-xl);
}

.multivendorx-registration.woocommerce .show-password-input {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: var(--space-sm);
	transform: translateY(-50%);
	border: none;
	background: transparent;
	cursor: pointer;
}

.multivendorx-registration.woocommerce .woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs);
	font-family: var(--font-family);
	font-size: var(--font-size-base);
	margin-block-end: var(--space-md);
}

.multivendorx-registration.woocommerce .woocommerce-form-login__submit {
	display: inline-block;
	min-height: 44px;
	padding: 0 var(--space-lg);
	background: var(--blk-gray-dark);
	color: var(--blk-white);
	border: none;
	border-radius: var(--radius-default);
	font-family: var(--font-family);
	font-size: var(--font-size-base);
	font-weight: 500;
	cursor: pointer;
}

.multivendorx-registration.woocommerce .woocommerce-form-login__submit:hover {
	background: var(--blk-gray-medium);
}

.multivendorx-registration.woocommerce .woocommerce-LostPassword {
	margin-block-start: var(--space-md);
}

.multivendorx-registration.woocommerce .woocommerce-LostPassword a {
	color: var(--blk-light-blue);
}

.multivendorx-registration.woocommerce .bp-vendor-register-hint {
	max-width: 480px;
	margin-block-start: var(--space-lg);
	padding: var(--space-md) var(--space-lg);
	background: var(--blk-gray-lighter);
	border-radius: var(--radius-default);
	font-family: var(--font-family);
	font-size: var(--font-size-base);
}

.multivendorx-registration.woocommerce .bp-vendor-register-hint a {
	color: var(--blk-light-blue);
	font-weight: 500;
}

