/*
 * Weber Upload – Styles.
 * Design: Figma nodes 2017:1430 (default) + 2017:1573 (with documents)
 * Scoped to #team_form for specificity over Elementor defaults.
 */

#team_form .weber-upload-zone {
	width: 100%;
}

/* ── Drop zone ──────────────────────────────────────────────────────────────── */

#team_form .weber-upload-dropzone {
	background: rgba(16, 161, 58, 0.05);
	border: 1px solid rgba(4, 36, 13, 0.3);
	border-radius: 15px;
	padding: 16px 24px;
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s;
}

#team_form .weber-upload-dropzone:hover,
#team_form .weber-upload-dragover {
	border-color: rgba(4, 36, 13, 0.5);
	background-color: rgba(16, 161, 58, 0.1);
}

/* ── Prompt (icon + text, horizontal) ───────────────────────────────────────── */

#team_form .weber-upload-prompt {
	display: flex;
	align-items: center;
	gap: 12px;
	pointer-events: none;
}

#team_form .weber-upload-prompt .weber-upload-browse,
#team_form .weber-upload-prompt .weber-upload-dropzone {
	pointer-events: auto;
}

#team_form .weber-upload-icon-svg {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

#team_form .weber-upload-txt {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

#team_form .weber-upload-title {
	margin: 0;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.1;
	color: #04240D;
}

#team_form .weber-upload-hint {
	margin: 0;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	letter-spacing: -0.1px;
	color: rgba(4, 36, 13, 0.3);
}

/* ── File list (below the dropzone) ─────────────────────────────────────────── */

#team_form .weber-upload-list {
	margin: 0;
}

#team_form .weber-upload-list:not(:empty) {
	margin-top: 12px;
	text-align: left;
}

/* ── Uploaded file item ─────────────────────────────────────────────────────── */

#team_form .weber-upload-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 16px;
	background: rgba(16, 161, 58, 0.05);
	border: none;
	border-radius: 12px;
	margin-bottom: 4px;
	cursor: default;
	overflow: hidden;
	transition: opacity 0.2s;
}

#team_form .weber-upload-item:last-child {
	margin-bottom: 0;
}

/* File icon – white box with file SVG */
#team_form .weber-upload-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: #FFFFFF;
	border-radius: 4px;
	flex-shrink: 0;
	padding: 8px;
	box-sizing: border-box;
}

#team_form .weber-upload-icon svg {
	width: 16px;
	height: 16px;
}

/* Image preview (for image uploads) */
#team_form .weber-upload-preview {
	width: 32px;
	height: 32px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
}

/* File info: name + size stacked */
#team_form .weber-upload-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	line-height: 20px;
	letter-spacing: -0.1px;
	overflow: hidden;
	min-width: 0;
}

#team_form .weber-upload-info-name {
	color: #04240D;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#team_form .weber-upload-info-size {
	color: rgba(4, 36, 13, 0.3);
	white-space: nowrap;
}

/* Upload progress */
#team_form .weber-upload-status {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	line-height: 20px;
	color: rgba(4, 36, 13, 0.3);
	flex-shrink: 0;
}

#team_form .weber-upload-loading .weber-upload-status {
	color: #10A13A;
}

#team_form .weber-upload-error {
	background: rgba(254, 242, 242, 0.9);
}

#team_form .weber-upload-error .weber-upload-status {
	color: #dc3545;
}

#team_form .weber-upload-success {
	background: rgba(16, 161, 58, 0.05);
}

/* ── Remove button (× cross, top-right) ─────────────────────────────────────── */

#team_form .weber-upload-remove {
	position: absolute;
	top: 16px;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 7px;
	background: none;
	border: none;
	border-radius: 24px;
	cursor: pointer;
	transition: background-color 0.15s;
	box-sizing: border-box;
}

#team_form .weber-upload-remove svg {
	width: 16px;
	height: 16px;
}

#team_form .weber-upload-remove:hover {
	background: rgba(4, 36, 13, 0.08);
}

/* ── Notices ─────────────────────────────────────────────────────────────────── */

#team_form .weber-upload-notice {
	padding: 6px 12px;
	background: rgba(16, 161, 58, 0.05);
	border: 1px solid rgba(4, 36, 13, 0.2);
	border-radius: 10px;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	color: #04240D;
	margin-bottom: 4px;
	text-align: left;
	animation: weber-fade-in 0.2s ease;
}

@keyframes weber-fade-in {
	from { opacity: 0; transform: translateY( -4px ); }
	to   { opacity: 1; transform: translateY( 0 ); }
}
