/* HA Magnet Maker — front-end uploader styles */

.hmm-uploader {
	margin: 1.25em 0 1.5em;
	padding: 1.5em 1.6em 1.6em;
	border: 1px solid #e6e8ec;
	border-radius: 14px;
	background: #fff;
}

.hmm-uploader__title {
	display: block;
	font-weight: 700;
	font-size: 1.2em;
	color: #2c3e50;
	margin: 0 0 1em;
}

.hmm-uploader__req {
	color: #d9662a;
	margin-left: 2px;
}

.hmm-dropzone {
	position: relative;
	border: 2px dashed #cbd3da;
	border-radius: 12px;
	background: #f5f6f8;
	padding: 2.5em 1.5em;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.hmm-dropzone:hover,
.hmm-dropzone:focus {
	border-color: #d9662a;
	background: #fbf6f1;
	outline: none;
}

.hmm-dropzone.is-dragover {
	border-color: #d9662a;
	background: #fdefe2;
}

.hmm-dropzone .hmm-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.hmm-dropzone__icon {
	display: block;
	color: #8a929b;
	margin-bottom: 0.55em;
}

.hmm-dropzone__icon svg {
	display: inline-block;
	vertical-align: middle;
}

.hmm-dropzone__primary {
	font-weight: 700;
	font-size: 1.2em;
	color: #2c3e50;
	margin-bottom: 0.4em;
}

.hmm-dropzone__hint {
	color: #8a929b;
	font-size: 0.95em;
}

.hmm-file-list {
	list-style: none;
	margin: 0.85em 0 0;
	padding: 0;
}

.hmm-file {
	display: flex;
	align-items: center;
	gap: 0.75em;
	padding: 0.55em 0.75em;
	background: #fff;
	border: 1px solid #e3e7eb;
	border-radius: 8px;
	margin-bottom: 0.5em;
}

.hmm-file.is-uploading {
	opacity: 0.7;
}

.hmm-file.is-error {
	border-color: #e0b4b4;
	background: #fdf3f3;
}

.hmm-file__name {
	flex: 1 1 auto;
	font-weight: 600;
	color: #2c3e50;
	word-break: break-word;
}

.hmm-file__status {
	flex: 0 0 auto;
	color: #8a929b;
	font-size: 0.88em;
}

.hmm-file.is-error .hmm-file__status {
	color: #b34747;
}

.hmm-file__remove {
	flex: 0 0 auto;
	appearance: none;
	border: none;
	background: transparent;
	color: #9aa2ab;
	font-size: 1.35em;
	line-height: 1;
	cursor: pointer;
	padding: 0 0.15em;
}

.hmm-file__remove:hover {
	color: #b34747;
}

.hmm-uploader__error {
	margin: 0.6em 0 0;
	color: #b34747;
	font-size: 0.92em;
}

/* ---------------------------------------------------------------------- *
 * Bundle quantity selector
 * ---------------------------------------------------------------------- */

.hmm-qty-select-wrap {
	display: flex;
	flex-direction: column;
	gap: 0.35em;
	margin: 0 0 1em;
}

.hmm-qty-select__label {
	font-weight: 600;
	font-size: 0.95em;
}

.hmm-qty-select {
	appearance: auto;
	padding: 0.55em 0.7em;
	font-size: 1em;
	border: 1px solid #c7ccd1;
	border-radius: 6px;
	background: #fff;
	max-width: 100%;
}

/* Hide the theme's native numeric quantity input; our <select> writes to the
   same `quantity` field. */
.hmm-qty-native {
	display: none !important;
}
