/*
 * Imprima Mobile: botão "Enviar arte" do YITH Uploads com a identidade do site.
 * Vale em qualquer largura (carrinho, Minha Conta e pedido recebido), por isso fica
 * fora do imprima-mobile-cart.css, que só carrega no celular. O "body" na frente
 * vence o ywau-frontend.css sem precisar de !important.
 */

body a.upload-file {
	--ima-accent: var(--e-global-color-accent, #0CB69C);
	--ima-accent-dark: var(--e-global-color-b0731d1, #0C8B78);
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	padding: 8px 14px;
	border: 1.5px solid var(--ima-accent);
	border-radius: 999px;
	background: transparent;
	color: var(--ima-accent-dark);
	font-family: "Urbanist", sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
body a.upload-file::before {
	content: "";
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V4M7 9l5-5 5 5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V4M7 9l5-5 5 5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Pendente: botão cheio. Já enviada (.modify): só o contorno. */
body a.upload-file:not(.modify) { background: var(--ima-accent); color: #fff; }
body a.upload-file:not(.modify):hover,
body a.upload-file:not(.modify):focus-visible { border-color: var(--ima-accent-dark); background: var(--ima-accent-dark); color: #fff; }
body a.upload-file.modify:hover,
body a.upload-file.modify:focus-visible { background: #E6F6F2; color: var(--ima-accent-dark); }
body a.upload-file:focus-visible { outline: 3px solid #1A5FA8; outline-offset: 2px; }

body a.upload-file.upload-errors,
body a.upload-file.upload-errors:hover { border-color: #A5483D; background: #FDECEA; color: #A5483D; }

/* No desktop o nome do produto tem 20px: o botão acompanha. */
@media (min-width: 768px) {
	body a.upload-file { gap: 8px; padding: 10px 18px; font-size: 15px; }
	body a.upload-file::before { width: 18px; height: 18px; }
}
