/* The "send us your file" field on a product page */
.cn-artwork {
	margin: 0 0 1.25rem;
	padding: 1rem 1.1rem 1.1rem;
	border: 1px solid #f0d6e2;
	border-radius: 0.75rem;
	background: #fff9fb;
}

.cn-artwork__label {
	display: block;
	font-weight: 600;
	color: #2a2430;
}

.cn-artwork__hint {
	margin: 0.15rem 0 0.8rem;
	color: #7a7184;
	font-size: 0.88rem;
	line-height: 1.5;
}

.cn-artwork__pick {
	display: inline-block;
	cursor: pointer;
}

/* The browser's own control cannot be styled or translated, so it stays out of sight
   while its label does the work. */
.cn-artwork__input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.cn-artwork__cta {
	display: inline-block;
	padding: 0.6rem 1.15rem;
	border-radius: 999px;
	background: #5b8fd9;
	color: #fff;
	font-size: 0.92rem;
	font-weight: 600;
	transition: background 0.2s ease;
}

.cn-artwork__pick:hover .cn-artwork__cta {
	background: #3f6fb8;
}

.cn-artwork__input:focus-visible + .cn-artwork__cta {
	outline: 2px solid #2a2430;
	outline-offset: 2px;
}

.cn-artwork.is-busy .cn-artwork__cta {
	background: #9db6d8;
	cursor: progress;
}

/* `display: flex` below would otherwise beat the browser's own rule for [hidden]. */
.cn-artwork [hidden] {
	display: none;
}

.cn-artwork__chosen {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	flex-wrap: wrap;
}

.cn-artwork__name {
	font-weight: 600;
	word-break: break-all;
}

.cn-artwork__name::before {
	content: "\2713";
	margin-right: 0.4rem;
	color: #3f8f5f;
}

.cn-artwork__remove {
	padding: 0;
	border: 0;
	background: none;
	color: #7a7184;
	font-size: 0.86rem;
	text-decoration: underline;
	cursor: pointer;
}

.cn-artwork__remove:hover {
	color: #2a2430;
}

.cn-artwork__error {
	margin: 0.7rem 0 0;
	color: #b3325a;
	font-size: 0.88rem;
}

@media (max-width: 599px) {
	.cn-artwork__cta {
		display: block;
		text-align: center;
		/* Big enough to hit with a thumb. */
		padding: 0.75rem 1.15rem;
	}
}
