/**
 * Product-page logo upload — styled dropzone trigger + polished selected-file preview.
 * Cart/checkout thumbnail stays in sync (see workstyle-wau-cart-thumbnail.php, 80×80 cover).
 */

.wau_wrapper_div {
	max-width: 420px;
}

/* Hide the raw native input; the styled <label for="wau_file_addon"> (see
   rjw-wau-woodmart-ajax.js enhanceDropzone) is the real click target and stays
   fully keyboard/screen-reader accessible via its `for` association. */
.wau_wrapper_div input#wau_file_addon {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wau_wrapper_div label.wau-dropzone {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: #faf9fa;
	border: 1.5px dashed #d9d3db;
	border-radius: 10px;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.wau_wrapper_div label.wau-dropzone:hover {
	border-color: #6b3f5c;
	background: #f5f1f3;
}

.wau_wrapper_div input#wau_file_addon:focus-visible ~ label.wau-dropzone,
.wau_wrapper_div:focus-within label.wau-dropzone {
	border-color: #6b3f5c;
	background: #f5f1f3;
	box-shadow: 0 0 0 3px rgba(107, 63, 92, 0.12);
}

.wau_wrapper_div label.wau-dropzone .wau-dropzone__icon {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background-color: #f0e9ee;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b3f5c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4'/%3E%3Cpath d='M6 10l6-6 6 6'/%3E%3Cpath d='M4 18v1a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-1'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 16px;
}

.wau_wrapper_div label.wau-dropzone .wau-dropzone__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.wau_wrapper_div label.wau-dropzone .wau-dropzone__title {
	font-size: 13.5px;
	font-weight: 600;
	color: #1f2641;
}

.wau_wrapper_div label.wau-dropzone .wau-dropzone__hint {
	font-size: 11.5px;
	color: #8a8fa3;
}

/* Once a file is chosen, the dropzone is fully replaced by the preview card below —
   not shown folded/alongside it. */
.wau_wrapper_div.has-preview label.wau-dropzone {
	display: none;
}

/* Selected-file preview card */
.wau_wrapper_div .wau-pdp-preview {
	display: none;
	align-items: center;
	gap: 12px;
	margin-top: 0;
	padding: 10px;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 10px;
}

.wau_wrapper_div .wau-pdp-preview.is-visible {
	display: flex;
}

.wau_wrapper_div .wau-pdp-preview__label {
	display: none;
}

.wau_wrapper_div .wau-pdp-preview .wau-upload-img {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	object-fit: cover;
	display: block;
	border-radius: 8px;
	border: 1px solid #e7e4e8;
	background: #f3f3f3;
}

.wau_wrapper_div .wau-pdp-preview__body {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.wau_wrapper_div .wau-pdp-preview__name {
	display: block;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	color: #1f2641;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wau_wrapper_div button.wau-pdp-preview__change {
	align-self: flex-start;
	margin-top: 4px !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: #6b3f5c !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	text-decoration: underline;
	text-transform: none !important;
	box-shadow: none !important;
	cursor: pointer;
}

.wau_wrapper_div button.wau-pdp-preview__change:hover {
	color: #4a2f42 !important;
}

.wau_wrapper_div button.wau-pdp-preview__clear {
	flex: 0 0 auto;
	display: block !important;
	box-sizing: border-box !important;
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	min-height: 28px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid #ececec !important;
	border-radius: 50% !important;
	background-color: #faf9fa !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8fa3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='M6 6l12 12'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 12px 12px !important;
	color: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
	text-indent: -9999px;
	overflow: hidden;
	text-transform: none !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.wau_wrapper_div button.wau-pdp-preview__clear:hover {
	border-color: #f0c9c3 !important;
	background-color: #fdf3f2 !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0392b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='M6 6l12 12'/%3E%3C/svg%3E") !important;
}
