/* WT3D Shop Setup: forms, colour swatches and category tiles. Works with any theme;
   the WT3D theme adds the sticker look on top. */

/* ---------- Forms ---------- */
.wt3d-form-wrap {
	background: #fff;
	border: 3px solid #1d1442;
	border-radius: 18px;
	box-shadow: 6px 6px 0 #1d1442;
	padding: clamp(1rem, 4vw, 2rem);
	margin-block: 1.5rem;
}

.wt3d-form .wt3d-form-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 0 1.25rem;
}

.wt3d-form .wt3d-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0 0 1rem;
}

.wt3d-form label {
	font-weight: 700;
}

.wt3d-form .req {
	color: #c2185b;
}

.wt3d-form .wt3d-help {
	font-size: 0.9rem;
	opacity: 0.85;
}

.wt3d-form input[type="text"],
.wt3d-form input[type="email"],
.wt3d-form select,
.wt3d-form textarea {
	width: 100%;
	box-sizing: border-box;
	border: 3px solid #1d1442;
	border-radius: 12px;
	padding: 0.7rem 0.9rem;
	font: inherit;
	background: #fff;
	color: #1d1442;
}

.wt3d-form .wt3d-check {
	flex-direction: row;
	align-items: flex-start;
	gap: 0.6rem;
}

.wt3d-form .wt3d-check input {
	width: 1.4rem;
	height: 1.4rem;
	margin-top: 0.15rem;
	flex: 0 0 auto;
	accent-color: #6a2bd8;
}

.wt3d-form .wt3d-check label {
	font-weight: 600;
}

.wt3d-form .wt3d-privacy {
	font-size: 0.9rem;
}

.wt3d-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.wt3d-form-notice {
	border: 3px solid #1d1442;
	border-radius: 14px;
	padding: 0.9rem 1.1rem;
	margin-bottom: 1.25rem;
	font-weight: 600;
}

.wt3d-form-notice.is-success {
	background: #e3fbef;
}

.wt3d-form-notice.is-error {
	background: #ffe3ee;
}

/* ---------- Colour swatches ---------- */
.wt3d-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0.5rem 0 0.25rem;
}

.wt3d-has-swatches select.wt3d-swatch-select {
	position: absolute !important;
	width: 1px !important;
	min-width: 0 !important;
	height: 1px !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden;
	clip-path: inset(50%);
	opacity: 0 !important;
	pointer-events: none;
}

.wt3d-swatch {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.3rem 0.8rem 0.3rem 0.3rem;
	border: 2px solid #1d1442;
	border-radius: 999px;
	background: #fff;
	color: #1d1442;
	font: inherit;
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wt3d-swatch:hover {
	transform: translateY(-2px);
	box-shadow: 3px 3px 0 #1d1442;
}

.wt3d-swatch-dot {
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 50%;
	border: 2px solid #1d1442;
	box-shadow: inset 0 0 0 2px #fff;
}

.wt3d-swatch.is-selected {
	background: #ffd23f;
	box-shadow: 3px 3px 0 #1d1442;
}

.wt3d-swatch.is-selected .wt3d-swatch-name::after {
	content: " ✓";
}

.wt3d-swatch.is-unavailable {
	opacity: 0.4;
	text-decoration: line-through;
	cursor: not-allowed;
}

/* ---------- Category tiles (fallback look; the WT3D theme styles .tile fully) ---------- */
.wt3d-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
	gap: 1.25rem;
}

.wt3d-tiles .tile-photo {
	width: 88px;
	height: 88px;
	object-fit: cover;
	border-radius: 50%;
	border: 3px solid #1d1442;
}
