/**
 * @package ProMart
 */

body.promart-bulk-list-open {
	overflow: hidden;
}

.promart-bulk-list-modal {
	--blm-navy: #002147;
	--blm-navy-soft: #003366;
	--blm-gold: #d39d2b;
	--blm-gold-hover: #b88725;
	--blm-border: #e5e7eb;
	--blm-surface: #f9fafb;
	--blm-muted: #717171;

	position: fixed;
	inset: 0;
	z-index: 10060;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	overflow: hidden;
}

.promart-bulk-list-modal[hidden] {
	display: none;
}

.promart-bulk-list-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 17, 38, 0.62);
	backdrop-filter: blur(2px);
}

.promart-bulk-list-modal__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 32rem;
	max-height: calc(100vh - 2rem);
	overflow: hidden;
	border: 1px solid var(--blm-border);
	border-radius: 0.85rem;
	background: #fff;
	box-shadow: 0 24px 48px rgba(0, 33, 71, 0.22);
}

.promart-bulk-list-modal__hero {
	position: relative;
	flex-shrink: 0;
	padding: 1.35rem 1.25rem 1.15rem;
	background: linear-gradient(180deg, var(--blm-navy) 0%, var(--blm-navy-soft) 100%);
	text-align: center;
}

.promart-bulk-list-modal__body {
	flex: 1;
	min-width: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 1.15rem 1.25rem 1.25rem;
	background: #fff;
}

.promart-bulk-list-modal__close {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.promart-bulk-list-modal__close:hover {
	background: rgba(255, 255, 255, 0.18);
	transform: scale(1.06);
}

.promart-bulk-list-modal__close .material-symbols-outlined {
	font-size: 1.2rem;
}

.promart-bulk-list-modal__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin-bottom: 0.65rem;
	border-radius: 999px;
	border: 1px solid rgba(211, 157, 43, 0.35);
	background: rgba(211, 157, 43, 0.14);
	color: var(--blm-gold);
}

.promart-bulk-list-modal__icon .material-symbols-outlined {
	font-size: 1.55rem;
}

.promart-bulk-list-modal__title {
	margin: 0 0 0.4rem;
	font-size: 1.05rem;
	font-weight: 800;
	color: #fff;
}

.promart-bulk-list-modal__subtitle {
	margin: 0;
	font-size: 0.76rem;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.82);
}

.promart-bulk-list-modal__honeypot {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.promart-bulk-list-modal__notice {
	margin: 0 0 0.85rem;
	padding: 0.65rem 0.75rem;
	border-radius: 0.5rem;
	font-size: 0.76rem;
	line-height: 1.7;
}

.promart-bulk-list-modal__notice.is-success {
	background: #ecfdf3;
	color: #166534;
}

.promart-bulk-list-modal__notice.is-error {
	background: #fef2f2;
	color: #b91c1c;
}

.promart-bulk-list-modal__dropzone {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	padding: 1.25rem 1rem;
	border: 2px dashed var(--blm-border);
	border-radius: 0.75rem;
	background: var(--blm-surface);
	text-align: center;
	transition: border-color 0.2s ease, background 0.2s ease;
	cursor: pointer;
}

.promart-bulk-list-modal__dropzone.is-dragover {
	border-color: var(--blm-gold);
	background: #fef9ee;
}

.promart-bulk-list-modal__dropzone.is-has-file {
	border-color: var(--blm-gold);
	border-style: solid;
	background: #fff;
}

.promart-bulk-list-modal__dropzone-icon img {
	display: block;
	margin: 0 auto;
}

.promart-bulk-list-modal__dropzone-title {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--blm-navy);
}

.promart-bulk-list-modal__dropzone-hint,
.promart-bulk-list-modal__dropzone-meta {
	margin: 0;
	font-size: 0.72rem;
	line-height: 1.7;
	color: var(--blm-muted);
}

.promart-bulk-list-modal__file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.promart-bulk-list-contact {
	--blc-navy: #002147;
	--blc-border: #d1d5db;
	--blc-surface: #f9fafb;
	--blc-muted: #717171;

	display: grid;
	gap: 0.85rem;
	margin-bottom: 0.85rem;
	width: 100%;
	text-align: right;
}

.promart-bulk-list-contact__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0.75rem;
	width: 100%;
}

.promart-bulk-list-contact__field {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.4rem;
	width: 100%;
}

.promart-bulk-list-contact__label {
	display: block;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--blc-navy);
	line-height: 1.5;
}

.promart-bulk-list-contact__required {
	color: #dc2626;
	margin-right: 0.15rem;
}

.promart-bulk-list-contact__optional {
	font-size: 0.7rem;
	font-weight: 500;
	color: var(--blc-muted);
	margin-right: 0.25rem;
}

.promart-bulk-list-contact__input {
	display: block;
	width: 100%;
	min-height: 2.75rem;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--blc-border);
	border-radius: 0.55rem;
	background: var(--blc-surface);
	box-sizing: border-box;
	font: inherit;
	font-size: 0.8125rem;
	color: #1f2937;
	text-align: right;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.promart-bulk-list-contact__input--phone {
	direction: ltr;
	text-align: right;
	unicode-bidi: plaintext;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
}

.promart-bulk-list-contact__input:focus {
	outline: none;
	border-color: rgba(0, 33, 71, 0.35);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(0, 33, 71, 0.08);
}

.promart-bulk-list-contact__input::placeholder {
	/* Was #9ca3af, ~2.5:1 on the input background. Darkened to meet the
	   4.5:1 AA text-contrast ratio. */
	color: #4b5563;
	opacity: 1;
}

.promart-bulk-list-contact__input--phone::placeholder {
	text-align: right;
}

.promart-bulk-list-modal__actions {
	display: grid;
	gap: 0.55rem;
	margin-top: 0.85rem;
}

.promart-bulk-list-modal__btn-select,
.promart-bulk-list-modal__btn-submit,
.promart-bulk-list-modal__btn-sample {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	width: 100%;
	min-height: 2.65rem;
	padding: 0.65rem 1rem;
	border-radius: 0.5rem;
	font-size: 0.78rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.promart-bulk-list-modal__btn-select {
	border: 1px solid rgba(0, 33, 71, 0.14);
	background: var(--blm-surface);
	color: var(--blm-navy);
}

.promart-bulk-list-modal__btn-select:hover {
	background: #fff;
	border-color: rgba(0, 33, 71, 0.24);
}

.promart-bulk-list-modal__btn-submit {
	border: 0;
	background: var(--blm-gold);
	color: var(--blm-navy);
}

.promart-bulk-list-modal__btn-submit:hover:not(:disabled) {
	background: var(--blm-gold-hover);
}

.promart-bulk-list-modal__btn-submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

.promart-bulk-list-modal__btn-sample {
	border: 1px solid var(--blm-border);
	background: #fff;
	color: var(--blm-muted);
}

.promart-bulk-list-modal__btn-sample:hover {
	border-color: var(--blm-gold);
	color: var(--blm-navy);
}

.promart-bulk-list-modal__btn-select .material-symbols-outlined,
.promart-bulk-list-modal__btn-sample .material-symbols-outlined {
	font-size: 1.1rem;
}

.promart-bulk-list-modal__btn-icon {
	width: 1.1rem;
	height: 1.1rem;
	flex-shrink: 0;
}

.promart-bulk-list-modal__call {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	width: 100%;
	margin-top: 0.75rem;
	padding: 0.65rem 1rem;
	border: 1px solid rgba(0, 33, 71, 0.14);
	border-radius: 0.5rem;
	background: var(--blm-surface);
	color: var(--blm-navy);
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.promart-bulk-list-modal__call:hover {
	background: #fff;
	border-color: rgba(0, 33, 71, 0.24);
}

.promart-bulk-list-modal__call .material-symbols-outlined {
	font-size: 1.15rem;
	color: var(--blm-gold);
}

.promart-bulk-list-modal__call-copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.1rem;
}

.promart-bulk-list-modal__call-label {
	font-size: 0.72rem;
	font-weight: 700;
}

.promart-bulk-list-modal__call-number {
	font-size: 0.86rem;
	font-weight: 800;
	direction: ltr;
	unicode-bidi: plaintext;
}

@media (max-width: 480px) {
	.promart-bulk-list-modal {
		padding: 0.75rem;
	}

	.promart-bulk-list-contact__row {
		grid-template-columns: 1fr;
	}

	.promart-bulk-list-modal__panel {
		max-height: calc(100vh - 1.5rem);
		border-radius: 0.75rem;
	}

	.promart-bulk-list-modal__hero {
		padding: 1.2rem 1rem 1rem;
	}

	.promart-bulk-list-modal__body {
		padding: 1rem;
	}
}
