/* Astro Obser gift card product form. Brand tokens from the live site (Astra globals). */
.aogc-form {
	--aogc-violet: #534f97;
	--aogc-lavender: #ababd5;
	--aogc-lilac: #c7c6de;
	--aogc-ink: #141a0f;
	--aogc-grey: #4d4f48;
	width: 100%;
	margin: 0 0 1.25rem;
	font-family: 'DM Sans', sans-serif;
	color: var(--aogc-ink);
}

/* The variation select stays in the DOM for WooCommerce; pills replace it visually. */
form.aogc-variations table.variations { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
form.aogc-variations .reset_variations,
form.aogc-variations .woocommerce-variation-price { display: none !important; }

.aogc-label,
.aogc-form legend {
	display: block;
	margin: 0 0 .5rem;
	padding: 0;
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--aogc-violet);
}

.aogc-amounts { margin-bottom: 1.25rem; }
.aogc-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.aogc-pill {
	min-width: 4.5rem;
	min-height: 44px;
	padding: .55rem 1rem;
	border: 1px solid var(--aogc-lilac);
	border-radius: 4px;
	background: #fff;
	color: var(--aogc-ink);
	font-family: 'DM Sans', sans-serif;
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1;
	text-transform: none;
	cursor: pointer;
	transition: border-color .15s, background-color .15s, color .15s;
}
.aogc-pill:hover { border-color: var(--aogc-violet); }
.aogc-pill[aria-checked="true"] { background: var(--aogc-violet); border-color: var(--aogc-violet); color: #fff; }
.aogc-pill:focus-visible { outline: 2px solid var(--aogc-violet); outline-offset: 2px; }

.aogc-delivery { margin: 0 0 1rem; padding: 0; border: 0; }
.aogc-choice {
	display: flex;
	align-items: center;
	gap: .6rem;
	min-height: 44px;
	padding: .35rem .75rem;
	margin: 0 0 .4rem;
	border: 1px solid var(--aogc-lilac);
	border-radius: 4px;
	cursor: pointer;
	font-size: .95rem;
}
.aogc-choice:has(input:checked) { border-color: var(--aogc-violet); background: #f6f6fb; }
.aogc-choice input { accent-color: var(--aogc-violet); width: 1.05rem; height: 1.05rem; margin: 0; }

.aogc-field { margin: 0 0 .9rem; }
.aogc-field[hidden] { display: none; }
.aogc-field label { display: block; margin-bottom: .3rem; font-size: .9rem; font-weight: 500; color: var(--aogc-grey); }
.aogc-field input,
.aogc-field textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.aogc-field textarea { min-height: 6.5rem; resize: vertical; }
.aogc-hint { display: block; margin-top: .3rem; font-size: .8rem; color: #76786f; }

.aogc-validity {
	margin: .25rem 0 0;
	padding: .6rem .8rem;
	border-left: 2px solid var(--aogc-lavender);
	background: #f6f6fb;
	font-size: .85rem;
	color: var(--aogc-grey);
}

@media (max-width: 544px) {
	.aogc-pill { flex: 1 1 calc(33.333% - .5rem); min-width: 0; }
}

/* Hints, counter, errors, focus (QA pass 2026-12-02) */
.aogc-hint--split { display: flex; justify-content: space-between; gap: 1rem; }
.aogc-count { flex: 0 0 auto; font-variant-numeric: tabular-nums; color: #76786f; }
.aogc-count.is-full { color: #b32d2e; font-weight: 500; }
.aogc-error { display: block; margin-top: .3rem; font-size: .85rem; font-weight: 500; color: #b32d2e; }
.aogc-error[hidden] { display: none; }
.aogc-field.has-error input { border-color: #b32d2e; }
/* No browser/theme "invalid" styling while typing; the error shows only after "Add to basket". */
.aogc-field input:invalid { box-shadow: none; }
.aogc-field input:-moz-ui-invalid { box-shadow: none; }
.aogc-field input:focus-visible,
.aogc-field textarea:focus-visible { outline: 2px solid var(--aogc-violet); outline-offset: 1px; border-color: var(--aogc-violet); }
.aogc-choice:has(input:focus-visible) { outline: 2px solid var(--aogc-violet); outline-offset: 2px; }
.aogc-field--email { margin-top: -.25rem; }
/* Entered text in the theme's default input colour looked like placeholder text. */
.aogc-field input,
.aogc-field textarea { color: var(--aogc-ink); }
.aogc-field input::placeholder,
.aogc-field textarea::placeholder { color: #9a9b94; }
