/* Hereda tipografía y colores del tema; solo define estructura. */

/* Muchos temas ponen form.cart en flex (cantidad + botón en fila).
   Forzamos que el formulario de donación ocupe una fila completa. */
form.cart:has(.wcdd) {
	flex-wrap: wrap;
}
.wcdd {
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	container-type: inline-size;
	margin: 0 0 1.5em;
	display: grid;
	gap: 1.75em;
}
.wcdd-group {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}
.wcdd-legend {
	font-size: 1.1em;
	font-weight: 600;
	padding: 0;
	margin-bottom: .75em;
}

/* Botones de monto */
.wcdd-pills {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: .6em;
}
@container (min-width: 30em) {
	.wcdd-pills { grid-template-columns: repeat(4, 1fr); }
}
.wcdd-pill--other {
	grid-column: 1 / -1;
}
.wcdd-pill {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
}
.wcdd-pill > input {
	position: absolute;
	inset: 0;
	opacity: 0;
	margin: 0;
	cursor: pointer;
}
.wcdd-pill > .wcdd-pill__box {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 3.25em;
	padding: .5em;
	border: 1.5px solid rgba(127, 127, 127, .35);
	border-radius: 8px;
	background: transparent;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
	white-space: nowrap;
	transition: border-color .15s, background-color .15s, color .15s;
}
.wcdd-pill:hover > .wcdd-pill__box {
	border-color: currentColor;
}
/* Seleccionado: fondo oscuro con texto claro. Cambiá #1a1a1a por el color de tu marca. */
.wcdd-pill > input:checked + .wcdd-pill__box {
	background: #1a1a1a;
	border-color: #1a1a1a;
	color: #fff;
}
.wcdd-pill > input:focus-visible + .wcdd-pill__box {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Monto manual: se muestra solo con "Otro monto" (si hay JS) */
.wcdd-custom {
	margin: .9em 0 0;
}
.wcdd--js .wcdd-custom {
	display: none;
}
.wcdd--js.wcdd--custom .wcdd-custom {
	display: block;
}

/* Campos */
.wcdd-field {
	margin: 0 0 1em;
}
.wcdd-field label {
	display: block;
	margin-bottom: .35em;
	font-weight: 500;
}
.wcdd-field abbr.required {
	text-decoration: none;
	border: 0;
	cursor: default;
	margin-left: .15em;
}
.wcdd-field input,
.wcdd-field select,
.wcdd-field textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.wcdd-field .optional,
.wcdd-hint {
	display: inline-block;
	margin-top: .3em;
	opacity: .7;
	font-size: .875em;
}

@media (prefers-reduced-motion: reduce) {
	.wcdd-pill > .wcdd-pill__box { transition: none; }
}
