/* Ao Gosto — Sorteio Dia a Dia (loja)
   Tokens espelhados de aogosto-brand/assets/tokens.css (v0.3).
   Tudo roda dentro de Shadow DOM (<aogs-sorteio>): o CSS do tema não alcança. :host zera o que vem herdado de fora. */

:host { all: initial; display: block; }
:host([data-aogs-ui]) { display: contents; }

.aogs-scope {
	--ag-orange: #FA4916;
	--ag-orange-hover: #E03D0E;
	--ag-orange-ink: #C43A0D;
	--ag-orange-soft: #FFF5EF;
	--ag-orange-line: #FBD3C2;
	--ag-navy: #0E172A;
	--ag-base: #FFFFFF;
	--ag-base-alt: #F9FAFC;
	--ag-border: #EBEBEE;
	--ag-text: #0E172A;
	--ag-text-2: #64758B;
	--ag-text-3: #8C9AAB;
	--ag-success: #1E8E5A;
	--ag-font-display: "Archivo Condensed", "Barlow Condensed", Impact, sans-serif;
	--ag-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ag-radius-sm: 8px;
	--ag-radius-md: 12px;
	--ag-radius-lg: 16px;
	--ag-radius-full: 999px;
	--ag-shadow-sm: 0 1px 2px rgba(14, 23, 42, .06);
	--ag-shadow-md: 0 4px 16px rgba(14, 23, 42, .08);
	--ag-shadow-lg: 0 12px 32px rgba(14, 23, 42, .10);
	--aogs-bg: #FFFFFF; /* cor do fundo da página, para os recortes do ticket */

	font-family: var(--ag-font-body);
	font-size: 16px;
	font-weight: 400;
	font-style: normal;
	color: var(--ag-text);
	line-height: 1.5;
	letter-spacing: normal;
	word-spacing: normal;
	text-align: left;
	text-transform: none;
	text-indent: 0;
	white-space: normal;
	-webkit-font-smoothing: antialiased;
}

.aogs-scope *,
.aogs-scope *::before,
.aogs-scope *::after { box-sizing: border-box; }

.aogs-scope p,
.aogs-scope h2,
.aogs-scope h3,
.aogs-scope ol,
.aogs-scope ul,
.aogs-scope li { margin: 0; padding: 0; }

.aogs-scope svg { display: block; }

.aogs-scope .aogs-sr {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ------------------------------------------------------------ container */

.aogs { container-type: inline-size; margin: 0 0 24px; }
.aogs:empty { display: none; }
.wc-block-cart + .aogs,
.wp-block-woocommerce-cart + .aogs { margin-top: 24px; }

/* ------------------------------------------------------------ cabeçalho: kicker + título bicolor */

.aogs-head { display: grid; gap: 8px; }

.aogs-scope .aogs-kicker {
	display: flex; align-items: center; gap: 12px;
	font: 700 12px/1.2 var(--ag-font-body);
	letter-spacing: .14em; text-transform: uppercase;
	color: var(--ag-orange-ink);
}
.aogs-scope .aogs-kicker__rule { width: 28px; height: 3px; background: var(--ag-orange); flex: none; }

.aogs-scope .aogs-title {
	font-family: var(--ag-font-display); font-weight: 900;
	font-size: clamp(30px, 6.5cqi, 44px); line-height: .92; letter-spacing: -.01em;
	text-transform: uppercase; color: var(--ag-navy);
}
.aogs-scope .aogs-title em { font-style: normal; color: var(--ag-orange); }

/* No bloco laranja: título branco (texto grande), destaque e textos pequenos em navy (contraste ≥ 4.5:1). */
.aogs-scope .aogs-kicker--light { color: var(--ag-navy); }
.aogs-scope .aogs-kicker--light .aogs-kicker__rule { background: var(--ag-navy); }
.aogs-scope .aogs-title--light { color: #fff; }
.aogs-scope .aogs-title--light em { color: var(--ag-navy); }

.aogs-scope .aogs-sub { color: var(--ag-text-2); font-size: 15px; line-height: 1.55; max-width: 60ch; }

/* ------------------------------------------------------------ card de progresso */

.aogs-card {
	display: grid; gap: 24px;
	padding: 24px;
	background: var(--ag-base);
	border: 1px solid var(--ag-border);
	border-radius: var(--ag-radius-lg);
	box-shadow: var(--ag-shadow-sm);
}
.aogs-body { display: grid; gap: 16px; align-content: start; }

.aogs-meter { display: flex; align-items: center; gap: 16px; }

.aogs-scope .aogs-count { display: flex; align-items: baseline; flex: none; font-variant-numeric: tabular-nums; }
.aogs-count strong { font: 900 52px/.85 var(--ag-font-display); color: var(--ag-orange); }
.aogs-count > span { font: 800 26px/1 var(--ag-font-display); color: var(--ag-text-3); margin-left: 2px; }
.aogs-count small { margin-left: 12px; max-width: 9ch; font-size: 12px; line-height: 1.3; font-weight: 600; color: var(--ag-text-2); }

.aogs-scope .aogs-slots {
	list-style: none; flex: 1; min-width: 0;
	display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 64px)); gap: 8px;
}
.aogs-scope .aogs-slots li {
	display: grid; place-items: center; aspect-ratio: 4 / 3;
	border: 1.5px dashed var(--ag-orange-line); border-radius: var(--ag-radius-sm);
	background: var(--ag-orange-soft); color: var(--ag-orange-line);
	transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.aogs-slots li svg { width: 62%; height: auto; }
.aogs-scope .aogs-slots li.is-on { background: var(--ag-orange); border: 1.5px solid var(--ag-orange); color: #fff; }
.aogs-slots li.is-new { animation: aogs-pop .5s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }

.aogs-value p { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 13px; color: var(--ag-text-2); }
.aogs-value b { color: var(--ag-navy); font-weight: 700; font-variant-numeric: tabular-nums; }

.aogs-bar { height: 8px; border-radius: var(--ag-radius-full); background: var(--ag-orange-soft); overflow: hidden; }
.aogs-meter .aogs-bar { flex: 1; }
.aogs-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ag-orange); transition: width .7s cubic-bezier(.2, .8, .2, 1); }

.aogs-scope .aogs-msg { font-size: 15px; line-height: 1.5; color: var(--ag-text); }
.aogs-msg b { font-weight: 700; }

.aogs-foot { display: flex; flex-wrap: wrap; gap: 12px; }

@container (min-width: 720px) {
	.aogs-card { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 48px; align-items: center; padding: 32px; }
	.aogs-card .aogs-title { font-size: clamp(36px, 4.4cqi, 52px); }
}

/* ------------------------------------------------------------ contador por valor: o cupom que enche */

.aogs-cash { display: grid; gap: 12px; }
.aogs-scope .aogs-cash__num { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.aogs-cash__num strong {
	font: 900 56px/.85 var(--ag-font-display); letter-spacing: -.01em;
	color: var(--ag-orange); font-variant-numeric: tabular-nums;
}
.aogs-cash__num span { font-size: 14px; font-weight: 600; color: var(--ag-text-2); }

.aogs-tk { position: relative; display: flex; height: 56px; overflow: hidden; }
.aogs-tk__main {
	position: relative; flex: 1; overflow: hidden;
	background: var(--ag-orange-soft);
	border: 1.5px solid var(--ag-orange-line); border-right: 0;
	border-radius: var(--ag-radius-md) 0 0 var(--ag-radius-md);
}
.aogs-tk__main i {
	position: absolute; top: 0; bottom: 0; left: 0; width: 0;
	background: var(--ag-orange);
	transition: width .8s cubic-bezier(.2, .8, .2, 1);
}
.aogs-tk__main b { position: absolute; top: 16px; bottom: 16px; width: 2px; margin-left: -1px; border-radius: 2px; background: rgba(14, 23, 42, .12); }
.aogs-tk__stub {
	position: relative; flex: none; width: 72px;
	display: grid; place-items: center;
	background: var(--ag-orange-soft); color: var(--ag-orange-ink);
	border: 1.5px solid var(--ag-orange-line); border-left: 2px dashed var(--ag-orange-line);
	border-radius: 0 var(--ag-radius-md) var(--ag-radius-md) 0;
	transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.aogs-tk__stub svg { width: 28px; height: 28px; }
.aogs-tk__stub::before,
.aogs-tk__stub::after {
	content: ""; position: absolute; left: -10px; width: 18px; height: 18px; border-radius: 50%;
	background: var(--aogs-bg); border: 1.5px solid var(--ag-orange-line);
}
.aogs-tk__stub::before { top: -10px; }
.aogs-tk__stub::after { bottom: -10px; }
.aogs-cash.is-full .aogs-tk__main { border-color: var(--ag-orange); }
.aogs-cash.is-full .aogs-tk__stub { background: var(--ag-orange); border-color: var(--ag-orange); border-left-color: #fff; color: #fff; }
.aogs.is-celebrate .aogs-cash.is-full .aogs-tk__stub { animation: aogs-destaca .7s .5s cubic-bezier(.2, 1.3, .3, 1) both; }

/* ------------------------------------------------------------ pra fechar o cupom */

.aogs-sug { display: grid; gap: 8px; }
.aogs-scope .aogs-sug__t { font: 700 12px/1.2 var(--ag-font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ag-text-2); }
.aogs-scope .aogs-sug ul { list-style: none; display: grid; gap: 8px; }
.aogs-scope .aogs-sug__item {
	display: flex; align-items: center; gap: 12px;
	padding: 8px; border: 1px solid var(--ag-border); border-radius: var(--ag-radius-md); background: var(--ag-base);
}
.aogs-sug__item img { flex: none; width: 56px; height: 56px; object-fit: contain; border-radius: var(--ag-radius-sm); background: var(--ag-base-alt); }
.aogs-sug__txt { display: grid; gap: 4px; flex: 1; min-width: 0; justify-items: start; }
.aogs-scope .aogs-sug__txt a {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ag-navy); text-decoration: none;
}
.aogs-sug__txt a:hover { text-decoration: underline; }
.aogs-sug__txt b { font-size: 15px; font-weight: 700; color: var(--ag-orange); font-variant-numeric: tabular-nums; }
.aogs-sug__txt em {
	padding: 2px 8px; border: 1px solid var(--ag-orange-line); border-radius: var(--ag-radius-full);
	background: var(--ag-orange-soft); color: var(--ag-orange-ink);
	font-size: 10px; font-style: normal; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.aogs-scope .aogs-sug__add {
	flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
	border: 1px solid var(--ag-border); border-radius: var(--ag-radius-md); background: #fff;
	color: var(--ag-navy); font: 400 24px/1 var(--ag-font-body); cursor: pointer;
	transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}
.aogs-sug__add:hover { border-color: var(--ag-orange); color: var(--ag-orange); }
.aogs-sug__add:focus-visible { outline: 2px solid var(--ag-orange); outline-offset: 2px; }
.aogs-sug__add.is-busy { opacity: .5; cursor: progress; }
.aogs-scope .aogs-sug__add.is-done { background: var(--ag-success); border-color: var(--ag-success); color: #fff; }
.aogs-sug__add svg { width: 20px; height: 20px; }

@container (min-width: 1000px) {
	.aogs-scope .aogs-sug ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.aogs-scope .aogs-sug__item { flex-direction: column; align-items: stretch; position: relative; padding: 12px; }
	.aogs-sug__item img { width: 100%; height: 88px; }
	.aogs-scope .aogs-sug__add { position: absolute; top: 16px; right: 16px; }
}

/* ------------------------------------------------------------ botões */

.aogs-scope .aogs-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 12px 24px;
	border: 1px solid transparent; border-radius: var(--ag-radius-md);
	font: 700 15px/1.2 var(--ag-font-body); text-decoration: none; cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.aogs-scope .aogs-btn--primary { background: var(--ag-orange); color: #fff; }
.aogs-scope .aogs-btn--primary:hover { background: var(--ag-orange-hover); color: #fff; }
.aogs-scope .aogs-btn--primary:disabled { opacity: .6; cursor: progress; }
.aogs-scope .aogs-btn--ghost { background: transparent; color: var(--ag-navy); border-color: var(--ag-navy); }
.aogs-scope .aogs-btn--ghost:hover { background: var(--ag-navy); color: #fff; }
.aogs-scope .aogs-btn:focus-visible { outline: 2px solid var(--ag-orange); outline-offset: 2px; }

/* ------------------------------------------------------------ ticket (cupom garantido) */

.aogs-ticket {
	display: grid; overflow: hidden;
	background: var(--ag-base);
	border: 1px solid var(--ag-border); border-radius: var(--ag-radius-lg);
	box-shadow: var(--ag-shadow-md);
}
.aogs-ticket__band {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: end;
	align-content: center;
	padding: 24px; background: var(--ag-orange);
}
.aogs-ticket__band .aogs-head { grid-column: 1; }
.aogs-scope .aogs-ticket__sub { grid-column: 1; color: var(--ag-navy); font-size: 15px; font-weight: 500; line-height: 1.45; }
.aogs-stub { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: center; color: var(--ag-navy); }
.aogs-stub strong {
	display: block; font: 900 80px/.85 var(--ag-font-display);
	color: transparent; -webkit-text-stroke: 2.5px #fff;
	font-variant-numeric: tabular-nums;
}
.aogs-stub span { display: block; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; }

.aogs-ticket__body {
	position: relative; display: grid; gap: 16px; align-content: center;
	padding: 24px; border-top: 2px dashed var(--ag-orange-line);
}
.aogs-ticket__body::before,
.aogs-ticket__body::after {
	content: ""; position: absolute; top: -12px; width: 22px; height: 22px;
	border-radius: 50%; background: var(--aogs-bg); border: 1px solid var(--ag-border);
}
.aogs-ticket__body::before { left: -12px; }
.aogs-ticket__body::after { right: -12px; }

@container (min-width: 720px) {
	.aogs-ticket { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
	.aogs-ticket__band { padding: 32px; }
	.aogs-ticket__body { padding: 32px 40px; border-top: 0; border-left: 2px dashed var(--ag-orange-line); }
	.aogs-ticket__body::before { top: -12px; left: -12px; }
	.aogs-ticket__body::after { top: auto; bottom: -12px; left: -12px; right: auto; }
}

.aogs-scope .aogs-note { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ag-text-2); }
.aogs-note svg { width: 20px; height: 20px; flex: none; color: var(--ag-success); }
.aogs-note a { color: var(--ag-navy); font-weight: 600; }
.aogs-next { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--ag-border); }
.aogs-done { display: grid; gap: 12px; }

.aogs-scope .aogs-nums { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.aogs-scope .aogs-nums li {
	padding: 8px 16px; border: 1.5px dashed var(--ag-orange-line); border-radius: var(--ag-radius-full);
	background: var(--ag-orange-soft); color: var(--ag-navy);
	font: 800 26px/1 var(--ag-font-display); letter-spacing: .04em; font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------ participação (checkout / obrigado) */

.aogs-igbox { display: grid; gap: 8px; }
.aogs-scope .aogs-label { font-size: 14px; font-weight: 600; color: var(--ag-navy); }
.aogs-label span { font-weight: 400; color: var(--ag-text-2); }

.aogs-ig { position: relative; width: 100%; max-width: 360px; }
.aogs-ig > span {
	position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
	color: var(--ag-text-3); font-weight: 600; pointer-events: none;
}
.aogs-scope .aogs-input {
	display: block; width: 100%; min-height: 48px; margin: 0;
	padding: 12px 16px 12px 36px;
	border: 1px solid var(--ag-border); border-radius: var(--ag-radius-full);
	background: var(--ag-base-alt); box-shadow: none;
	font: 400 16px/1.2 var(--ag-font-body); color: var(--ag-text);
}
.aogs-scope .aogs-input::placeholder { color: var(--ag-text-3); }
.aogs-scope .aogs-input:focus { outline: 2px solid var(--ag-orange); outline-offset: 2px; border-color: var(--ag-orange); background: #fff; }

.aogs-scope .aogs-ig__st { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 600; line-height: 1.45; }
.aogs-ig__st:empty { display: none; }
.aogs-ig__st svg { width: 20px; height: 20px; flex: none; }
.aogs-ig__st.is-ok { color: var(--ag-success); }
.aogs-ig__st.is-warn { color: var(--ag-orange-ink); }

.aogs-igbox--mini { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ag-border); }
.aogs-igbox--mini .aogs-input { min-height: 44px; }

/* "Saiba mais": texto curto + modal com o passo a passo */
.aogs-scope .aogs-mais {
	display: inline; margin: 0; padding: 0; border: 0; background: none; box-shadow: none;
	font: inherit; font-weight: 600; color: var(--ag-navy);
	text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.aogs-scope .aogs-mais:hover { color: var(--ag-orange-ink); }
.aogs-scope .aogs-mais:focus-visible { outline: 2px solid var(--ag-orange); outline-offset: 2px; border-radius: 4px; }
.aogs-foot .aogs-mais { align-self: center; font-size: 14px; }

.aogs-scope .aogs-legal { font-size: 12px; line-height: 1.5; color: var(--ag-text-2); }
.aogs-legal a { color: var(--ag-navy); text-decoration: underline; }

.aogs-late { display: grid; gap: 12px; }
.aogs-late__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.aogs-late__row .aogs-ig { flex: 1 1 220px; }
.aogs-scope .aogs-late__msg { font-size: 14px; font-weight: 600; color: var(--ag-orange-ink); }
.aogs-late__msg:empty { display: none; }

/* ------------------------------------------------------------ dias discretos (foco no churrasco) */

.aogs-quiet {
	display: grid; gap: 8px;
	padding: 12px 16px; border-radius: var(--ag-radius-md);
	background: var(--ag-base); border: 1px solid var(--ag-border);
	font-size: 14px; line-height: 1.5; color: var(--ag-text-2);
}
.aogs-quiet p { display: flex; gap: 8px; align-items: flex-start; }
.aogs-quiet b { color: var(--ag-navy); }
.aogs-quiet svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--ag-success); }
.aogs-cash--mini .aogs-tk { height: 20px; }
.aogs-cash--mini .aogs-tk__main b { display: none; }
.aogs-cash--mini .aogs-tk__stub { width: 32px; }
.aogs-cash--mini .aogs-tk__stub svg { width: 14px; height: 14px; margin: 0; color: inherit; }
.aogs-cash--mini .aogs-tk__stub::before,
.aogs-cash--mini .aogs-tk__stub::after { width: 10px; height: 10px; left: -6px; }
.aogs-cash--mini .aogs-tk__stub::before { top: -6px; }
.aogs-cash--mini .aogs-tk__stub::after { bottom: -6px; }

/* ------------------------------------------------------------ dia sem promoção */

.aogs-strip {
	display: flex; align-items: center; gap: 12px;
	padding: 12px 16px; border-radius: var(--ag-radius-md);
	background: var(--ag-base-alt); border: 1px solid var(--ag-border);
	font-size: 14px; color: var(--ag-text-2);
}
.aogs-strip svg { width: 24px; height: 24px; flex: none; color: var(--ag-text-3); }
.aogs-strip strong { color: var(--ag-navy); }

/* ------------------------------------------------------------ selo no produto */

.aogs-selo {
	display: flex; align-items: flex-start; gap: 12px;
	max-width: 520px; margin: 16px 0; padding: 12px 16px;
	border: 1px solid var(--ag-orange-line); border-radius: var(--ag-radius-md);
	background: var(--ag-orange-soft);
}
.aogs-selo svg { width: 24px; height: 24px; flex: none; margin-top: 2px; color: var(--ag-orange-ink); }
.aogs-scope.aogs-selo p { display: grid; gap: 2px; font-size: 14px; line-height: 1.45; color: var(--ag-text-2); }
.aogs-selo strong { font-size: 15px; color: var(--ag-navy); }
.aogs-selo .aogs-mais { font-size: 14px; }

/* ------------------------------------------------------------ modal "Como funciona" */

.aogs-modal {
	width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
	margin: auto; padding: 0; border: 0; border-radius: var(--ag-radius-lg);
	background: var(--ag-base); color: var(--ag-text); box-shadow: var(--ag-shadow-lg);
	overflow: auto;
}
.aogs-modal[open] { animation: aogs-modal-in .22s cubic-bezier(.2, .8, .2, 1) both; }
.aogs-modal.is-out { animation: aogs-modal-out .16s ease both; }
.aogs-modal::backdrop { background: rgba(14, 23, 42, .55); backdrop-filter: blur(2px); }
.aogs-modal__box { position: relative; display: grid; gap: 16px; padding: 32px; }
.aogs-scope .aogs-modal__x {
	position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; padding: 0;
	border: 0; border-radius: 50%; background: transparent; cursor: pointer;
	font: 400 26px/1 var(--ag-font-body); color: var(--ag-text-3);
}
.aogs-modal__x:hover { background: var(--ag-base-alt); color: var(--ag-navy); }
.aogs-modal .aogs-title { font-size: 40px; }

.aogs-scope .aogs-passos { list-style: none; display: grid; gap: 16px; counter-reset: passo; margin: 8px 0 0; }
.aogs-scope .aogs-passos li { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; row-gap: 2px; counter-increment: passo; }
.aogs-passos li::before {
	content: counter(passo); grid-row: 1 / span 2;
	display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
	background: var(--ag-orange-soft); border: 1px solid var(--ag-orange-line); color: var(--ag-orange-ink);
	font: 800 17px/1 var(--ag-font-display);
}
.aogs-passos strong { font-size: 15px; font-weight: 700; color: var(--ag-navy); line-height: 1.35; padding-top: 5px; }
.aogs-passos span { font-size: 14px; line-height: 1.5; color: var(--ag-text-2); }
.aogs-passos a { color: var(--ag-navy); font-weight: 600; }
.aogs-scope .aogs-modal__letras { padding-top: 16px; border-top: 1px solid var(--ag-border); font-size: 12px; line-height: 1.5; color: var(--ag-text-2); }
.aogs-modal__pe { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.aogs-scope .aogs-modal__link { font-size: 14px; font-weight: 600; color: var(--ag-navy); text-decoration: underline; text-underline-offset: 2px; }

@keyframes aogs-modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes aogs-modal-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ------------------------------------------------------------ banner da campanha: pop-up com cara do site */

html.aogs-travado { overflow: hidden; }

.aogs-story {
	position: fixed; max-width: none; max-height: none; margin: auto; padding: 0; border: 0;
	background: transparent; color: var(--ag-text); overflow: visible;
}
.aogs-story::backdrop { background: rgba(14, 23, 42, .6); backdrop-filter: blur(2px); }
.aogs-story[open] { animation: aogs-banner-in .3s cubic-bezier(.2, .8, .2, 1) both; }
.aogs-story.is-out { animation: aogs-banner-out .2s ease both; }

.aogs-story__box {
	position: relative; outline: none; overflow: hidden;
	background: var(--ag-base); border-radius: var(--ag-radius-lg);
	box-shadow: 0 24px 64px rgba(14, 23, 42, .3);
}
.aogs-scope .aogs-story__x {
	position: absolute; z-index: 2; top: 12px; right: 12px;
	display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
	border: 0; border-radius: 50%; background: #fff; color: var(--ag-navy);
	font: 400 24px/1 var(--ag-font-body); cursor: pointer; box-shadow: var(--ag-shadow-md);
}
.aogs-story__x:hover { background: var(--ag-base-alt); }
.aogs-story__x:focus-visible { outline: 2px solid var(--ag-orange); outline-offset: 2px; }
.aogs-story__media { background: var(--ag-navy); }
.aogs-story__media img { display: block; width: 100%; height: auto; }

.aogs-story__info { display: grid; gap: 16px; padding: 16px 20px 20px; }
.aogs-scope .aogs-story__txt { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.45; color: var(--ag-text-2); }
.aogs-story__txt b { color: var(--ag-navy); }
.aogs-story__txt svg { width: 24px; height: 24px; flex: none; margin-top: 1px; color: var(--ag-orange-ink); }
.aogs-story__txt .aogs-mais { font-size: 14px; white-space: nowrap; }
.aogs-story__cta { display: flex; align-items: center; justify-content: flex-end; gap: 12px 16px; }
.aogs-scope .aogs-story__nao {
	min-height: 44px; padding: 12px 16px; border: 0; border-radius: var(--ag-radius-md);
	background: none; color: var(--ag-text-2); font: 600 15px/1.2 var(--ag-font-body); cursor: pointer;
}
.aogs-story__nao:hover { background: var(--ag-base-alt); color: var(--ag-navy); }

/* computador: arte horizontal */
.aogs-story--h .aogs-story__box { width: min(880px, calc(100vw - 48px)); }
.aogs-story--h .aogs-story__media { aspect-ratio: 16 / 9; }
.aogs-story--h .aogs-story__media img { height: 100%; object-fit: cover; }
.aogs-story--h .aogs-story__info { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 16px 24px; }

/* celular: arte vertical num cartão, com o site aparecendo em volta */
.aogs-story--m .aogs-story__box { width: auto; min-width: min(300px, calc(100vw - 32px)); max-width: min(380px, calc(100vw - 32px)); }
.aogs-story--m .aogs-story__media { position: relative; display: grid; place-items: center; overflow: hidden; }
.aogs-story--m .aogs-story__media::before {
	content: ""; position: absolute; inset: -24px;
	background: var(--bg) center / cover no-repeat; filter: blur(18px) brightness(.55);
}
.aogs-story--m .aogs-story__media img { position: relative; width: auto; max-width: 100%; max-height: calc(100dvh - 300px); }
.aogs-story--m .aogs-story__txt { font-size: 14px; }
.aogs-story--m .aogs-story__cta { flex-direction: column-reverse; align-items: stretch; gap: 4px; }
.aogs-story--m .aogs-story__cta .aogs-btn { width: 100%; min-height: 48px; }

@keyframes aogs-banner-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes aogs-banner-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ------------------------------------------------------------ pílula flutuante */

@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }

.aogs-float {
	position: fixed; z-index: 9990;
	left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	display: flex; align-items: center; gap: 4px;
	max-width: min(380px, calc(100vw - 32px));
	padding: 8px 4px 8px 8px;
	background: var(--ag-base); border: 1px solid var(--ag-border);
	border-radius: var(--ag-radius-full); box-shadow: var(--ag-shadow-lg);
}
.aogs-float[hidden] { display: none; }
.aogs-float.is-enter { animation: aogs-up .45s cubic-bezier(.2, .8, .2, 1) both; }
.aogs-scope .aogs-float__link { display: flex; align-items: center; gap: 12px; min-width: 0; padding-right: 4px; color: var(--ag-navy); text-decoration: none; }
.aogs-ring {
	--p: 0;
	display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%;
	background: conic-gradient(var(--ag-orange) calc(var(--p) * 1%), var(--ag-orange-soft) 0);
	transition: --p .7s cubic-bezier(.2, .8, .2, 1);
}
.aogs-ring b {
	display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
	background: #fff; color: var(--ag-navy);
	font: 800 15px/1 var(--ag-font-display); font-variant-numeric: tabular-nums;
}
.aogs-ring svg { width: 20px; height: 20px; }
.aogs-float__txt { display: grid; min-width: 0; }
.aogs-float__txt strong { font-size: 14px; font-weight: 700; line-height: 1.25; }
.aogs-float__txt strong b { font-weight: 700; }
.aogs-float__txt small { overflow: hidden; font-size: 12px; line-height: 1.35; color: var(--ag-text-2); white-space: nowrap; text-overflow: ellipsis; }
.aogs-scope .aogs-float__x {
	flex: none; width: 36px; height: 36px; padding: 0;
	border: 0; border-radius: 50%; background: transparent;
	color: var(--ag-text-3); font-size: 22px; line-height: 1; cursor: pointer;
}
.aogs-float__x:hover { color: var(--ag-navy); background: var(--ag-base-alt); }
.aogs-float.is-ok { background: var(--ag-orange); border-color: var(--ag-orange); }
.aogs-float.is-ok .aogs-float__txt small,
.aogs-float.is-ok .aogs-float__x { color: var(--ag-navy); }
.aogs-float.is-ok .aogs-ring { background: #fff; }
.aogs-float.is-ok .aogs-float__x:hover { background: rgba(255, 255, 255, .25); }

/* ------------------------------------------------------------ movimento */

.aogs.is-celebrate .aogs-ticket { animation: aogs-stamp .6s cubic-bezier(.2, 1.25, .3, 1) both; }
.aogs.is-celebrate .aogs-stub strong { animation: aogs-pop .6s .25s cubic-bezier(.2, 1.5, .4, 1) both; }

@keyframes aogs-pop { from { transform: scale(.55); } to { transform: none; } }
@keyframes aogs-stamp { from { transform: scale(.94) rotate(-1.2deg); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes aogs-destaca { 0% { transform: none; } 45% { transform: translate(6px, -3px) rotate(4deg); } 100% { transform: none; } }
@keyframes aogs-up { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
	.aogs-scope,
	.aogs-scope * { animation: none !important; transition: none !important; }
}

@container (max-width: 460px) {
	.aogs-meter { flex-wrap: wrap; gap: 12px; }
	.aogs-scope .aogs-slots { flex-basis: 100%; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); }
	.aogs-ticket__band { grid-template-columns: minmax(0, 1fr); }
	.aogs-stub { grid-column: 1; grid-row: auto; display: flex; align-items: baseline; gap: 8px; text-align: left; }
	.aogs-stub span { margin: 0; }
}

@media (max-width: 480px) {
	.aogs-card, .aogs-ticket__band, .aogs-ticket__body { padding: 16px; }
	.aogs-count strong, .aogs-cash__num strong { font-size: 44px; }
	.aogs-stub strong { font-size: 64px; }
	.aogs-float { left: 12px; right: 12px; max-width: none; }
	.aogs-modal__box { padding: 24px; }
	.aogs-modal .aogs-title { font-size: 34px; }
}
