/* Formulário de gift card na página do produto. Personalize pelas variáveis no tema. */
.agc-form {
	--agc-accent: #1f4a52;
	--agc-accent-soft: rgba(31, 74, 82, .06);
	--agc-border: #d6dadf;
	--agc-muted: #6b7280;
	--agc-radius: 8px;
	margin: 1.25em 0 1.5em;
	font-size: 15px;
	line-height: 1.45;
}

.agc-form *,
.agc-form *::before,
.agc-form *::after { box-sizing: border-box; }

.agc-form [hidden] { display: none !important; }

.agc-question { border: 0; margin: 0; padding: 0; min-width: 0; }

.agc-question__title {
	font-weight: 600;
	font-size: 1.05em;
	margin: 0 0 .6em;
	padding: 0;
}

.agc-choices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.agc-choice { position: relative; display: block; margin: 0; cursor: pointer; }

.agc-choice input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}

.agc-choice__box {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--agc-border);
	border-radius: var(--agc-radius);
	background: #fff;
	transition: border-color .15s, background-color .15s, box-shadow .15s;
}

.agc-choice:hover .agc-choice__box { border-color: var(--agc-accent); }

.agc-choice input:checked + .agc-choice__box {
	border-color: var(--agc-accent);
	background: var(--agc-accent-soft);
	box-shadow: inset 0 0 0 1px var(--agc-accent);
}

.agc-choice input:focus-visible + .agc-choice__box {
	outline: 2px solid var(--agc-accent);
	outline-offset: 2px;
}

.agc-choice__icon {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: var(--agc-accent);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.agc-choice__text { display: flex; flex-direction: column; min-width: 0; }
.agc-choice__text strong { font-weight: 600; }
.agc-choice__text small { color: var(--agc-muted); font-size: .85em; }

.agc-panel {
	margin-top: 12px;
	padding: 16px;
	border: 1px solid var(--agc-border);
	border-radius: var(--agc-radius);
	background: #fafafa;
}

.agc-panel p { margin: 0; }
.agc-panel--self { padding: 12px 16px; }

.agc-panel__title {
	font-weight: 600;
	margin: 0 0 12px !important;
}

.agc-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 16px;
}

.agc-field { display: flex; flex-direction: column; gap: 5px; margin: 0; position: relative; }
.agc-field--full { grid-column: 1 / -1; }

.agc-field label {
	font-size: .9em;
	font-weight: 500;
	margin: 0;
}

.agc-req { color: #b42318; }
.agc-optional { color: var(--agc-muted); font-weight: 400; }

.agc-form .agc-field input,
.agc-form .agc-field textarea {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--agc-border);
	border-radius: 6px;
	background: #fff;
	color: inherit;
	font: inherit;
	box-shadow: none;
	transition: border-color .15s, box-shadow .15s;
}

.agc-form .agc-field textarea { min-height: 88px; resize: vertical; }

.agc-form .agc-field input:focus,
.agc-form .agc-field textarea:focus {
	outline: none;
	border-color: var(--agc-accent);
	box-shadow: 0 0 0 3px var(--agc-accent-soft);
}

.agc-counter {
	align-self: flex-end;
	color: var(--agc-muted);
	font-size: .8em;
}

.agc-notes {
	margin: 14px 0 0;
	padding: 12px 0 0 1.1em;
	border-top: 1px solid var(--agc-border);
	color: var(--agc-muted);
	font-size: .85em;
}

.agc-notes li { margin: 0 0 4px; }

@media (max-width: 600px) {
	.agc-choices,
	.agc-grid { grid-template-columns: 1fr; }
}
