/* File upload pill — matches Elementor form text fields (#103B7A, radius 100px) */

.elementor-field-type-upload.maxtherm-file-upload-ready .elementor-field-label {
	display: block;
	margin-bottom: 10px;
}

.elementor-field-type-upload .maxtherm-file-upload {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 52px;
	width: 100%;
	margin: 0;
	padding: 0 52px 0 24px;
	box-sizing: border-box;
	background: #ffffff;
	border: 1px solid rgba(16, 59, 122, 0.8);
	border-radius: 999px;
	cursor: pointer;
	overflow: hidden;
}

/* Field custom ID from Elementor Advanced tab (e.g. custome) */
.elementor-field-group-custome .maxtherm-file-upload {
	border-color: rgba(16, 59, 122, 0.8);
}

.elementor-field-type-upload .maxtherm-file-upload::before {
	content: attr(data-placeholder);
	font-family: "Neue Montreal", sans-serif;
	font-size: 15px;
	font-style: italic;
	font-weight: 400;
	color: rgba(16, 59, 122, 0.55);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
}

.elementor-field-type-upload .maxtherm-file-upload.has-file::before {
	content: attr(data-filename);
	font-style: normal;
	color: #103b7a;
}

.elementor-field-type-upload .maxtherm-file-upload::after {
	content: "";
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	background: no-repeat center / contain
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23103B7A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.44 11.05l-9.19 9.19a6 6 0 01-8.49-8.49l9.19-9.19a4 4 0 015.66 5.66l-9.2 9.19a2 2 0 01-2.83-2.83l8.49-8.48'/%3E%3C/svg%3E");
	pointer-events: none;
	z-index: 1;
}

.elementor-field-type-upload input.elementor-upload-field {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
	font-size: 0;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
}

.elementor-field-type-upload input.elementor-upload-field::file-selector-button {
	visibility: hidden;
	width: 0;
	height: 0;
	padding: 0;
	margin: 0;
	border: 0;
}
