/* Edible Sheets – image upload rows (product page + Work With Us pop-up). */
.diy-artwork {
	width: 100%;
	margin: 0 0 18px;
	padding: 16px 18px;
	border: 2px dashed #f7c5d3;
	border-radius: 12px;
	background: #fff8fa;
	box-sizing: border-box;
	text-align: left;
}

.diy-artwork__label {
	display: block;
	margin: 0 0 4px !important;
	padding: 0 !important;
	font-weight: 700;
	color: #333;
}

.diy-artwork abbr.required {
	color: #e2401c;
	text-decoration: none;
	border: 0;
}

.diy-artwork__help {
	margin: 0 0 12px !important;
	padding: 0 !important;
	color: #666;
	font-size: 13px;
	line-height: 1.5;
}

/* Rows */
.diy-artwork__rows {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.diy-artwork__row {
	position: relative;
	display: grid;
	grid-template-columns: 28px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.3fr) 28px;
	gap: 10px;
	align-items: end;
	margin: 0 0 10px !important;
	padding: 10px !important;
	border: 1px solid #f3d4df;
	border-radius: 10px;
	background: #fff;
	list-style: none !important;
}
.diy-artwork__row.is-invalid {
	border-color: #e2401c;
	box-shadow: 0 0 0 2px rgba(226, 64, 28, 0.15);
}
.diy-artwork__num {
	align-self: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #ff7aa4;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 28px;
	text-align: center;
}
.diy-artwork__cell label {
	display: block;
	margin-bottom: 4px;
	color: #333;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
}
.diy-artwork__cell small {
	font-weight: 400;
	opacity: 0.7;
}
.diy-artwork__cell input[type="text"],
.diy-artwork__cell select {
	width: 100%;
	height: 38px;
	padding: 6px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	font: inherit;
	font-size: 14px;
	box-sizing: border-box;
}
.diy-artwork__sizebox {
	display: flex;
	gap: 6px;
}
.diy-artwork__sizebox input[type="text"] {
	flex: 1 1 60px;
	min-width: 0;
}
.diy-artwork__sizebox select {
	flex: 0 0 86px;
	width: 86px;
}

.diy-artwork__input {
	display: block;
	width: 100%;
	max-width: 100%;
	font-size: 13px;
}
.diy-artwork__input::file-selector-button {
	margin-right: 10px;
	padding: 8px 14px;
	border: 0;
	border-radius: 40px;
	background: #f78da7;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}
.diy-artwork__input::file-selector-button:hover {
	background: #ef6d8b;
}

.diy-artwork__remove {
	align-self: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f3f3f3;
	color: #666;
	font-size: 20px;
	line-height: 28px;
	cursor: pointer;
}
.diy-artwork__remove:hover {
	background: #fdecec;
	color: #e2401c;
}
.diy-artwork__remove[hidden] {
	visibility: hidden;
	display: block;
}

.diy-artwork__more {
	padding: 8px 16px;
	border: 1px solid #ff7aa4;
	border-radius: 999px;
	background: #fff;
	color: #e85b8a;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.diy-artwork__more:hover {
	background: #fff5f9;
}
.diy-artwork__more[hidden] {
	display: none;
}

.diy-artwork__total {
	margin: 10px 0 0 !important;
	padding: 0 !important;
	font-size: 14px;
}
.diy-artwork__total:empty {
	display: none;
}

.diy-artwork__confirm {
	margin: 14px 0 0;
}
.diy-artwork__confirm label {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 0 0 6px;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
}
.diy-artwork__confirm input {
	flex: 0 0 auto;
	margin-top: 3px;
}

.diy-artwork__proof {
	margin: 8px 0 0 !important;
	padding: 0 !important;
	color: #666;
	font-size: 13px;
}
.diy-artwork__error {
	margin: 10px 0 0 !important;
	padding: 10px 12px !important;
	border-radius: 6px;
	background: #fdecec;
	color: #a0281a;
	font-size: 14px;
}
.diy-artwork__error[hidden] {
	display: none;
}

/* Stack each row when the block is narrow (product page column, phones). */
.diy-artwork {
	container-type: inline-size;
}
@container (max-width: 600px) {
	.diy-artwork__row {
		grid-template-columns: 28px minmax(0, 1fr) 28px;
	}
	.diy-artwork__num {
		grid-row: 1;
	}
	.diy-artwork__cell {
		grid-column: 2;
	}
	.diy-artwork__remove {
		grid-column: 3;
		grid-row: 1;
	}
}
@media (max-width: 767px) {
	.diy-artwork {
		padding: 12px;
	}
	.diy-artwork__row {
		grid-template-columns: 28px minmax(0, 1fr) 28px;
	}
	.diy-artwork__num {
		grid-row: 1;
	}
	.diy-artwork__cell {
		grid-column: 2;
	}
	.diy-artwork__remove {
		grid-column: 3;
		grid-row: 1;
	}
}

/* Full-screen "please wait" while the add to basket form uploads. */
.diy-artwork-wait {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(255, 255, 255, 0.88);
}
.diy-artwork-wait__box {
	max-width: 420px;
	padding: 28px 24px;
	text-align: center;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}
.diy-artwork-wait__box strong {
	display: block;
	font-size: 20px;
	margin-bottom: 8px;
}
.diy-artwork-wait__box p {
	margin: 0;
	padding: 0;
}
.diy-artwork-wait__spin {
	display: block;
	width: 40px;
	height: 40px;
	margin: 0 auto 14px;
	border: 4px solid #fbd3df;
	border-top-color: #ef6d8b;
	border-radius: 50%;
	animation: diy-artwork-spin 0.9s linear infinite;
}
@keyframes diy-artwork-spin {
	to {
		transform: rotate(360deg);
	}
}
