/* Elementor integration */
.elementor-widget-shortcode .elementor-shortcode,
.elementor-widget-shortcode .seih-members-wrap {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
}

.seih-members-wrap {
	--seih-orange: #ff8c28;
	--seih-orange-soft: rgba(255, 140, 40, 0.14);
	--seih-dark: #0a0f1a;
	--seih-muted: #4a5568;
	--seih-bg: #f7f8fa;
	--seih-radius: 14px;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	font-family: Outfit, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--seih-dark);
}

.seih-members-wrap *,
.seih-members-wrap *::before,
.seih-members-wrap *::after {
	box-sizing: border-box;
}

.seih-members-toolbar {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 16px;
	margin-bottom: 28px;
	width: 100%;
}

.seih-members-search-label {
	display: block;
	width: 100%;
	margin: 0;
}

.seih-members-search {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 12px 16px;
	border: 1px solid rgba(10, 15, 26, 0.12);
	border-radius: 10px;
	font: inherit;
	background: #fff;
}

.seih-members-search:focus {
	outline: 2px solid var(--seih-orange);
	outline-offset: 2px;
}

.seih-members-count {
	margin: 0;
	color: var(--seih-muted);
	font-size: 0.95rem;
	white-space: nowrap;
	text-align: right;
}

.seih-members-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
	width: 100%;
}

.seih-members-empty {
	padding: 40px 24px;
	border-radius: var(--seih-radius);
	background: #fff;
	border: 1px dashed rgba(10, 15, 26, 0.12);
	text-align: center;
	color: var(--seih-muted);
}

.seih-member-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	border-radius: var(--seih-radius);
	background: #fff;
	border: 1px solid rgba(255, 140, 40, 0.18);
	box-shadow: 0 10px 30px rgba(10, 15, 26, 0.04);
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	min-width: 0;
}

.seih-member-card:hover,
.seih-member-card:focus-visible {
	transform: translateY(-3px);
	border-color: rgba(255, 140, 40, 0.45);
	box-shadow: 0 16px 36px rgba(10, 15, 26, 0.08);
	outline: none;
}

.seih-member-card.is-inactive {
	opacity: 0.72;
}

.seih-member-card__avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 1.2rem;
	color: var(--seih-dark);
	background: linear-gradient(135deg, var(--seih-orange-soft), rgba(255, 184, 77, 0.35));
	border: 2px solid rgba(255, 140, 40, 0.35);
	flex-shrink: 0;
}

.seih-member-card__name {
	margin: 0 0 4px;
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.3;
	word-break: break-word;
}

.seih-member-card__first {
	margin: 0 0 10px;
	font-size: 1rem;
	font-weight: 600;
	color: var(--seih-muted);
}

.seih-member-card__phone,
.seih-member-card__extra {
	margin: 0 0 10px;
	color: var(--seih-muted);
	font-size: 0.92rem;
}

.seih-member-card__badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
	background: var(--seih-orange-soft);
	color: #b45309;
}

.seih-member-card.is-inactive .seih-member-card__badge {
	background: rgba(10, 15, 26, 0.08);
	color: var(--seih-muted);
}

.seih-member-card__cta {
	margin-top: auto;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--seih-orange);
}

.seih-member-modal[hidden] {
	display: none !important;
}

.seih-member-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 24px;
}

.seih-member-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 15, 26, 0.55);
}

.seih-member-modal__dialog {
	position: relative;
	width: min(100%, 560px);
	max-height: calc(100vh - 48px);
	overflow: auto;
	background: #fff;
	border-radius: 18px;
	padding: 28px;
	box-shadow: 0 24px 60px rgba(10, 15, 26, 0.25);
}

.seih-member-modal__close {
	position: absolute;
	top: 12px;
	right: 14px;
	border: 0;
	background: transparent;
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
	color: var(--seih-muted);
}

.seih-member-detail__hero {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 24px;
}

.seih-member-detail__avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 1.35rem;
	background: linear-gradient(135deg, var(--seih-orange-soft), rgba(255, 184, 77, 0.35));
	border: 2px solid rgba(255, 140, 40, 0.35);
	flex: 0 0 auto;
}

.seih-member-detail__title {
	margin: 0 0 6px;
	font-size: 1.5rem;
	font-weight: 800;
}

.seih-member-detail__subtitle {
	margin: 0;
	color: var(--seih-muted);
}

.seih-member-detail__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 20px;
	margin: 0;
}

.seih-member-detail__field {
	margin: 0;
}

.seih-member-detail__field--wide {
	grid-column: 1 / -1;
}

.seih-member-detail__field dt {
	margin: 0 0 4px;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--seih-muted);
	font-weight: 600;
}

.seih-member-detail__field dd {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
}

@media (max-width: 768px) {
	.seih-members-toolbar {
		grid-template-columns: 1fr;
	}

	.seih-members-count {
		text-align: left;
	}

	.seih-members-grid {
		grid-template-columns: 1fr;
	}

	.seih-member-detail__fields {
		grid-template-columns: 1fr;
	}
}
