/**
 * Styles for Lead Collector public components.
 */

.lead-collector-entries {
	margin: 2rem 0;
}

.lead-collector-table {
	width: 100%;
	border-collapse: collapse;
}

.lead-collector-table th,
.lead-collector-table td {
	border: 1px solid #ddd;
	padding: 12px;
	vertical-align: top;
	font-family: "yekan bakh";
}

.lead-collector-notice {
	font-family: "yekan bakh";
}

.lead-collector-table th {
	background: #f7f7f7;
	text-align: left;
}

.lead-collector-table ul {
	margin: 0;
	padding-left: 18px;
}

.lead-collector-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.lead-collector-actions-cell {
	min-width: 220px;
}

.lead-collector-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 10px;
	border: 1px solid #cbd5f5;
	background: #f1f5ff;
	color: #1d3a8a;
	border-radius: 4px;
	font-size: 13px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.lead-collector-btn:hover {
	background: #dbe4ff;
	color: #0b1c5c;
}

.lead-collector-btn-primary {
	background: #2563eb;
	border-color: #1d4ed8;
	color: #fff;
}

.lead-collector-btn-primary:hover {
	background: #1d4ed8;
}

.lead-collector-btn-light {
	background: #fff;
	border-color: #d1d5db;
	color: #374151;
}

.lead-collector-btn-light:hover {
	background: #f3f4f6;
}

.lead-collector-btn.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.lead-collector-label-select {
	min-width: 180px;
	padding: 4px 8px;
	border-radius: 4px;
	border: 1px solid #d1d5db;
	font-size: 13px;
}

.lead-collector-labels-missing {
	font-size: 12px;
	color: #6b7280;
	margin: 0;
}

.lead-collector-login-form {
	margin-top: 1rem;
}

.lead-collector-login-form input:not(.button, #rememberme) {
	padding: 8px 5px;
	border-radius: 10px !important;
	width: 100%;
	border-radius: 1px;
}

.lead-collector-login-form .login-submit {
	justify-content: center;
	display: flex;
}

.lead-collector-login-form .button {
	padding: 10px 18px;
	border-radius: 10px;
	width: 50%;
	background-color: rgba(28, 57, 142, 1);
	color: white;
	border: none;
}

.lead-collector-feedback {
	position: fixed;
	top: 110px;
	left: 20px;
	min-width: 240px;
	max-width: 320px;
	padding: 14px 26px;
	border-radius: 10px;
	box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
	background: #0f172a;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	opacity: 0;
	transform: translateY(-10px);
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 10001;
}

.lead-collector-feedback.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.lead-collector-feedback.is-success {
	background: #059669;
}

.lead-collector-feedback.is-error {
	background: #dc2626;
}

.lead-collector-notice {
	padding: 15px;
	margin: 1rem 0;
	border-radius: 4px;
}
.lead-collector-notice {
	padding: 15px;
	margin: 1rem 0;
	border-radius: 4px;
	justify-content: center;
	display: flex;
}

.lead-collector-notice-error {
	/* background: #fef3f2;
	border: 1px solid #f3c5c5;
	color: #8a1f1f; */
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1d4ed8;
}

.lead-collector-notice-info {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1d4ed8;
}

.lead-collector-modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 10000;
}

.lead-collector-modal.is-open {
	display: flex;
}

.lead-collector-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.6);
}

.lead-collector-modal__dialog {
	position: relative;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
	max-width: 640px;
	width: 90%;
	max-height: 85vh;
	overflow-y: auto;
	padding: 24px;
	z-index: 1;
}

.lead-collector-modal__close {
	position: absolute;
	top: 10px;
	left: 12px;
	background: transparent;
	border: 0;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #6b7280;
}

.lead-collector-modal__title {
	margin-top: 0;
	margin-bottom: 1rem;
}

.lead-collector-notes {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid #e5e7eb;
}

.lead-collector-notes__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.lead-collector-notes__item {
	padding: 0.75rem;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background: #f9fafb;
}

.lead-collector-notes__meta {
	font-size: 12px;
	color: #4b5563;
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.35rem;
}

.lead-collector-modal__actions {
	margin-top: 1rem;
	display: flex;
	gap: 0.75rem;
}

.lead-collector-note-field {
	width: 100%;
	padding: 8px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	font-size: 14px;
}

.lead-collector-modal-open {
	overflow: hidden;
}
