.bmw-cf7-dnd__input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.bmw-cf7-dnd {
	--bmw-dnd-ink: #212121;
	--bmw-dnd-ink-secondary: #333333;
	--bmw-dnd-ink-soft: #4f4f4f;
	--bmw-dnd-muted: #828282;
	--bmw-dnd-border: #bdbdbd;
	--bmw-dnd-surface-strong: #e0e0e0;
	--bmw-dnd-surface: #f2f2f2;
	--bmw-dnd-success: #219653;
	--bmw-dnd-danger: #eb5757;
	box-sizing: border-box;
	width: 100%;
	min-height: 180px;
	padding: 28px;
	border: 1.5px dashed var(--bmw-dnd-border);
	border-radius: 16px;
	background: var(--bmw-dnd-surface);
	color: var(--bmw-dnd-ink);
	cursor: pointer;
	font: inherit;
	transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.bmw-cf7-dnd:hover,
.bmw-cf7-dnd:focus-visible {
	border-color: var(--bmw-dnd-success);
	background: #fff;
	box-shadow: 0 0 0 4px rgb(33 150 83 / 14%);
	outline: none;
}

.bmw-cf7-dnd--dragging {
	border-color: var(--bmw-dnd-success);
	background: #fff;
	box-shadow: 0 0 0 4px rgb(33 150 83 / 18%);
	transform: translateY(-1px);
}

.bmw-cf7-dnd__input.wpcf7-not-valid + .bmw-cf7-dnd {
	border-color: var(--bmw-dnd-danger);
	box-shadow: 0 0 0 4px rgb(235 87 87 / 12%);
}

.bmw-cf7-dnd__prompt {
	display: flex;
	min-height: 120px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 7px;
	text-align: center;
}

.bmw-cf7-dnd__icon {
	position: relative;
	display: block;
	width: 42px;
	height: 32px;
	margin-bottom: 4px;
	border: 2px solid currentColor;
	border-top: 0;
	border-radius: 5px;
	color: var(--bmw-dnd-muted);
	transition: color 180ms ease, transform 180ms ease;
}

.bmw-cf7-dnd:hover .bmw-cf7-dnd__icon,
.bmw-cf7-dnd:focus-visible .bmw-cf7-dnd__icon,
.bmw-cf7-dnd--dragging .bmw-cf7-dnd__icon {
	color: var(--bmw-dnd-success);
	transform: translateY(-2px);
}

.bmw-cf7-dnd__icon::before,
.bmw-cf7-dnd__icon::after {
	position: absolute;
	left: 50%;
	content: "";
	transform: translateX(-50%);
}

.bmw-cf7-dnd__icon::before {
	top: -12px;
	width: 2px;
	height: 25px;
	background: currentColor;
}

.bmw-cf7-dnd__icon::after {
	top: -12px;
	width: 10px;
	height: 10px;
	border-top: 2px solid currentColor;
	border-left: 2px solid currentColor;
	transform: translateX(-50%) rotate(45deg);
}

.bmw-cf7-dnd__instruction {
	color: var(--bmw-dnd-ink);
	font-weight: 650;
	letter-spacing: -0.01em;
}

.bmw-cf7-dnd__or {
	font-size: 0.875em;
	color: var(--bmw-dnd-muted);
}

.bmw-cf7-dnd__button {
	padding: 7px 12px;
	border-radius: 8px;
	background: var(--bmw-dnd-ink);
	color: #fff;
	font-size: 0.9375em;
	font-weight: 650;
	transition: background-color 180ms ease, transform 180ms ease;
}

.bmw-cf7-dnd:hover .bmw-cf7-dnd__button,
.bmw-cf7-dnd:focus-visible .bmw-cf7-dnd__button,
.bmw-cf7-dnd--dragging .bmw-cf7-dnd__button {
	background: var(--bmw-dnd-success);
}

.bmw-cf7-dnd__selection {
	display: grid;
	min-height: 120px;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	align-content: center;
	gap: 12px;
}

.bmw-cf7-dnd__selection[hidden],
.bmw-cf7-dnd__prompt[hidden],
.bmw-cf7-dnd__error[hidden] {
	display: none;
}

.bmw-cf7-dnd__preview {
	display: flex;
	width: 72px;
	height: 72px;
	flex: 0 0 72px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 10px;
	background: var(--bmw-dnd-surface-strong);
}

.bmw-cf7-dnd__file-card {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border: 1px solid var(--bmw-dnd-surface-strong);
	border-radius: 12px;
	background: #fff;
	transition: border-color 180ms ease, transform 180ms ease;
}

.bmw-cf7-dnd__file-card:hover {
	border-color: var(--bmw-dnd-border);
	transform: translateY(-1px);
}

.bmw-cf7-dnd__preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bmw-cf7-dnd__preview--file::before {
	content: "FILE";
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--bmw-dnd-ink-soft);
}

.bmw-cf7-dnd__file {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
	gap: 3px;
}

.bmw-cf7-dnd__name {
	overflow: hidden;
	color: var(--bmw-dnd-ink-secondary);
	font-weight: 650;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bmw-cf7-dnd__size {
	color: var(--bmw-dnd-muted);
	padding: 0;
}
.bmw-cf7-dnd + .wpcf7-not-valid-tip{
	margin-top: 8px;
}
.bmw-cf7-dnd__remove {
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--bmw-dnd-surface);
	color: var(--bmw-dnd-danger);
	cursor: pointer;
	font: inherit;
	font-size: 0;
	transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.bmw-cf7-dnd__remove:hover,
.bmw-cf7-dnd__remove:focus-visible {
	background: var(--bmw-dnd-danger);
	color: #fff;
	outline: none;
	transform: scale(1.05);
}

.bmw-cf7-dnd__remove::before {
	content: "×";
	font-size: 24px;
	line-height: 1;
}

.bmw-cf7-dnd__add {
	display: flex;
	min-height: 72px;
	align-items: center;
	justify-content: center;
	padding: 10px;
	border: 1px dashed var(--bmw-dnd-border);
	border-radius: 12px;
	background: var(--bmw-dnd-surface);
	color: var(--bmw-dnd-ink-soft);
	font-weight: 650;
	transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.bmw-cf7-dnd__add:hover {
	border-color: var(--bmw-dnd-success);
	background: #fff;
	color: var(--bmw-dnd-success);
}

.bmw-cf7-dnd__error {
	display: block;
	margin-top: 10px;
	color: var(--bmw-dnd-danger);
	font-size: 0.875em;
	font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
	.bmw-cf7-dnd,
	.bmw-cf7-dnd__icon,
	.bmw-cf7-dnd__button,
	.bmw-cf7-dnd__file-card,
	.bmw-cf7-dnd__remove,
	.bmw-cf7-dnd__add {
		transition: none;
	}
}

@media (max-width: 480px) {
	.bmw-cf7-dnd {
		padding: 20px;
	}

	.bmw-cf7-dnd__selection {
		grid-template-columns: 1fr;
	}
}
