/* Sandra's Creation – strawberry design picker (product page). Same look as the cake designer's
   cards (sandras-creation-cakes/assets/cakes.css, loaded with this file for the upload field). */
form.cart > fieldset.sc-straw { flex: 1 1 100%; }
fieldset.sc-straw {
	container-type: inline-size;
	min-width: 0;
	margin: 0 0 1.1em;
	padding: 0;
	border: 0;
}
fieldset.sc-straw legend.sc-straw-title {
	display: block;
	width: 100%;
	margin: 0 0 4px;
	padding: 0;
	border: 0;
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
	color: var(--sc-plum, #3e2a2f);
	text-transform: none;
}
.sc-straw-help { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--sc-muted, #6b5a5d); }

/* Cards: 2 across on phones. When the column is wide enough, the 3 photo cards share one row and
   "Custom design" becomes a full-width row under them (see the second @container block below). */
.sc-straw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@container (min-width: 470px) {
	.sc-straw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
fieldset.sc-straw label.sc-straw-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 8px 8px 10px;
	border: 1px solid var(--sc-line, #eadcd7);
	border-radius: 8px;
	background: #fff;
	color: var(--sc-text, #4d4245);
	font-size: inherit;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.35;
	text-transform: none;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.sc-straw-card:hover { border-color: #d6b3c0; background: #fffafb; }
/* The real radio stays in the page for keyboards and screen readers; the card shows its state. */
.sc-straw-card .sc-straw-radio {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}
.sc-straw-card:has(.sc-straw-radio:focus-visible) { outline: 2px solid var(--sc-focus, #a94b6c); outline-offset: 2px; }
.sc-straw-card:has(.sc-straw-radio:checked) {
	border-color: var(--sc-rose, #a94b6c);
	background: var(--sc-blush, #fbeaef);
	box-shadow: inset 0 0 0 1px var(--sc-rose, #a94b6c);
}
.sc-straw-media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 5px;
	background: var(--sc-blush, #fbeaef);
}
.sc-straw-media img.sc-straw-img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.sc-straw-icon { color: var(--sc-rose, #a94b6c); }
.sc-straw-check {
	position: absolute;
	top: 6px;
	right: 6px;
	display: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--sc-rose, #a94b6c);
	box-shadow: 0 0 0 2px #fff;
}
.sc-straw-check::after {
	content: "";
	position: absolute;
	top: 6px;
	left: 9px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.sc-straw-card:has(.sc-straw-radio:checked) .sc-straw-check { display: block; }
.sc-straw-name { font-size: 15px; font-weight: 600; color: var(--sc-plum, #3e2a2f); overflow-wrap: anywhere; }
.sc-straw-note { font-size: 12.5px; line-height: 1.4; color: var(--sc-muted, #6b5a5d); }
/* Wide column: Custom design as a full-width row (icon tile left, name and note right), so its
   2 help lines no longer stretch the photo cards. Phones keep the 2 x 2 cards above. */
@container (min-width: 470px) {
	fieldset.sc-straw label.sc-straw-card.sc-straw-card--custom {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: 64px minmax(0, 1fr);
		align-content: center;
		column-gap: 12px;
		row-gap: 2px;
		padding: 8px 44px 8px 8px;
	}
	.sc-straw-card--custom .sc-straw-media { position: static; grid-row: 1 / span 2; align-self: center; }
	.sc-straw-card--custom .sc-straw-name,
	.sc-straw-card--custom .sc-straw-note { grid-column: 2; }
	.sc-straw-card--custom .sc-straw-name { align-self: end; }
	.sc-straw-card--custom .sc-straw-note { align-self: start; }
	.sc-straw-card--custom .sc-straw-check { top: 50%; right: 12px; margin-top: -12px; }
}
/* Phones (2 x 2, column under 470px): the Custom tile is an icon, not a photo, so it gives up height to
   its 2 help lines. The Custom card is then as tall as Father's Day next to it, with no empty space
   under either card. The 3 photo cards keep their square photos. */
@container not (min-width: 470px) {
	.sc-straw-card--custom .sc-straw-media { flex: 1 1 0; min-height: 48px; aspect-ratio: auto; }
}
fieldset.sc-straw .sc-straw-error { margin: 8px 0 0; }
fieldset.sc-straw .sc-straw-error[hidden] { display: none; }

/* Custom design: description and photo, shown once "Custom design" is picked. */
.sc-straw-custom { display: none; margin-top: 14px; padding: 14px; border: 1px solid var(--sc-line, #eadcd7); border-radius: 8px; background: var(--sc-cream, #fff7f2); }
fieldset.sc-straw:has(.sc-straw-card--custom .sc-straw-radio:checked) .sc-straw-custom,
fieldset.sc-straw.is-custom .sc-straw-custom { display: block; }
.sc-straw-custom .sc-field { margin: 0 0 14px; }
.sc-straw-custom .sc-field:last-child { margin-bottom: 0; }
.sc-straw-custom .sc-field > label,
.sc-straw-custom .sc-label {
	display: block;
	margin: 0 0 5px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--sc-plum, #3e2a2f);
}
.sc-straw-custom textarea { width: 100%; max-width: none; min-height: 84px; margin: 0; padding-top: 8px; border-radius: 4px; }
.sc-straw-custom textarea[aria-invalid="true"] { border-color: var(--sc-error, #b3261e); box-shadow: 0 0 0 1px var(--sc-error, #b3261e); }

/* Quick view: the link replaces the add to cart form. */
.sc-straw-qv { margin: 0.6em 0 1em; }

@media (max-width: 549px) {
	fieldset.sc-straw label.sc-straw-card { padding: 6px 6px 9px; }
	.sc-straw-name { font-size: 14px; }
	.sc-straw-custom { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	fieldset.sc-straw label.sc-straw-card { transition: none; }
}
