/* Ao Gosto — Portão · barra de horário
   Tokens da marca (escopados para não colidir com o tema). */
.agp-root,
.agp-status,
.agp-wrap {
	--ag-orange: #FA4916;
	--ag-orange-hover: #E03D0E;
	--ag-orange-active: #C63409;
	--ag-orange-ink: #C43A0D;
	--ag-orange-soft: #FFF5EF;
	--ag-orange-line: #FBD3C2;
	--ag-navy: #0E172A;
	--ag-navy-700: #1E3455;
	--ag-base: #FFFFFF;
	--ag-base-alt: #F9FAFC;
	--ag-border: #EBEBEE;
	--ag-text-2: #64758B;
	--ag-text-3: #8C9AAB;
	--ag-success: #1E8E5A;
	--ag-danger: #C62F2F;
	--ag-shadow-sm: 0 1px 2px rgba(14, 23, 42, .06);
	--ag-font-display: "Archivo Condensed", "Archivo", "Barlow Condensed", Impact, sans-serif;
	--ag-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ag-radius-md: 12px;
	--ag-radius-full: 999px;
}

.agp-root:empty { display: none; }

/* ---------- a porta de aço ---------- */

.agp-bar {
	position: relative;
	z-index: 99990;
	color: #fff;
	font-family: var(--ag-font-body);
	background-color: var(--ag-orange);
	/* lâminas: sulco escuro + brilho fino, a cada 12px */
	background-image: repeating-linear-gradient(
		to bottom,
		transparent 0 10px,
		rgba(14, 23, 42, .075) 10px 11px,
		rgba(255, 255, 255, .07) 11px 12px
	);
	border-bottom: 4px solid var(--ag-orange-active);
	-webkit-font-smoothing: antialiased;
}

.agp-bar *,
.agp-bar *::before,
.agp-bar *::after { box-sizing: border-box; }

.agp-bar p { margin: 0; padding: 0; }

.agp-bar__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 12px 24px;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 16px;
}

/* ícone do portão */
.agp-bar__icon {
	width: 48px;
	height: 48px;
	border-radius: var(--ag-radius-md);
	background: var(--ag-orange-active);
	display: grid;
	place-items: center;
	flex: none;
}
.agp-bar__icon svg { width: 36px; height: 36px; fill: none; stroke: #fff; stroke-linecap: round; }
.agp-bar__icon .agp-i-roll { fill: #fff; stroke: none; }
.agp-bar__icon .agp-i-rail { stroke-width: 2; opacity: .55; }
.agp-bar__icon .agp-i-slats { stroke-width: 2.25; }
.agp-bar__icon .agp-i-handle { stroke-width: 3; stroke: var(--ag-navy); }

/* texto */
.agp-bar__title {
	font-family: var(--ag-font-display);
	font-stretch: 72%;
	font-weight: 900;
	font-size: 22px;
	line-height: 1.05;
	letter-spacing: .01em;
	word-spacing: .12em;
	text-transform: uppercase;
	color: #fff;
}
.agp-bar__title em { font-style: normal; color: var(--ag-navy); }

.agp-bar__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-right: 8px;
	padding: 4px 10px 4px 8px;
	border-radius: var(--ag-radius-full);
	background: var(--ag-navy);
	color: #fff;
	font-family: var(--ag-font-body);
	font-stretch: 100%;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	line-height: 1.4;
	vertical-align: 3px;
}
.agp-bar__chip::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ag-orange);
	box-shadow: 0 0 0 2px rgba(250, 73, 22, .35);
}
.agp-bar--lastcall .agp-bar__chip,
.agp-bar--holiday .agp-bar__chip { background: #fff; color: var(--ag-orange-ink); }

.agp-bar__sub {
	margin-top: 4px !important;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	color: #fff;
	max-width: 80ch;
}

/* ações */
.agp-bar__actions { display: flex; align-items: center; gap: 12px; }

.agp-bar__timer {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 16px 8px 12px;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: var(--ag-radius-full);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}
.agp-bar__timer svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.agp-bar__timer b {
	font-family: var(--ag-font-display);
	font-stretch: 72%;
	font-weight: 900;
	font-size: 18px;
	letter-spacing: .01em;
	font-variant-numeric: tabular-nums;
	word-spacing: .15em;
	margin-left: 2px;
}

.agp-bar__cta,
.agp-bar__cta:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 12px 20px;
	border-radius: var(--ag-radius-md);
	background: var(--ag-navy);
	color: #fff !important;
	font-family: var(--ag-font-body);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background-color .18s ease;
}
.agp-bar__cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.agp-bar__cta:hover { background: var(--ag-navy-700); }
.agp-bar__cta:focus-visible,
.agp-bar__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.agp-bar__close {
	width: 36px;
	height: 36px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: var(--ag-radius-full);
	background: transparent;
	color: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: background-color .18s ease;
}
.agp-bar__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; }
.agp-bar__close:hover { background: rgba(14, 23, 42, .14); }

/* ---------- o momento: a porta desce ---------- */

@keyframes agp-shutter-down {
	from { clip-path: inset(0 0 100% 0); background-position: 0 -120px; }
	to   { clip-path: inset(0 0 0 0);    background-position: 0 0; }
}
@keyframes agp-shutter-up {
	from { clip-path: inset(0 0 0 0); }
	to   { clip-path: inset(0 0 100% 0); }
}
@keyframes agp-content-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes agp-slats-drop {
	from { transform: translateY(-14px); opacity: 0; }
	to   { transform: none; opacity: 1; }
}

.agp-bar.is-entering { animation: agp-shutter-down .7s cubic-bezier(.22, .9, .25, 1) both; }
.agp-bar.is-entering .agp-bar__inner > * { animation: agp-content-in .35s .45s ease both; }
.agp-bar.is-entering .agp-i-slats { animation: agp-slats-drop .6s .35s cubic-bezier(.3, 1.4, .5, 1) both; }
.agp-bar.is-leaving { animation: agp-shutter-up .5s cubic-bezier(.6, 0, .8, .4) both; }

@media (prefers-reduced-motion: reduce) {
	.agp-bar.is-entering,
	.agp-bar.is-entering .agp-bar__inner > *,
	.agp-bar.is-entering .agp-i-slats,
	.agp-bar.is-leaving { animation: none; }
}

/* ---------- responsivo ---------- */

@media (max-width: 960px) {
	.agp-bar__inner {
		grid-template-columns: auto minmax(0, 1fr) auto;
		gap: 12px 12px;
		padding: 12px 16px 14px;
	}
	.agp-bar__actions { grid-column: 1 / -1; grid-row: 2; }
	.agp-bar__close { grid-column: 3; grid-row: 1; align-self: start; }
	.agp-bar__cta { flex: 1; }
}

@media (max-width: 600px) {
	.agp-bar__inner { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 16px 14px; }
	.agp-bar__icon { display: none; }
	.agp-bar__close { grid-column: 2; margin: -4px -8px 0 0; }
	.agp-bar__title { font-size: 19px; }
	.agp-bar__chip { display: flex; width: max-content; margin: 0 0 8px; vertical-align: 0; }
	.agp-bar__sub { font-size: 13px; }
	.agp-bar__actions { gap: 8px; flex-wrap: wrap; }
	.agp-bar__timer { padding: 8px 12px; font-size: 12px; gap: 6px; }
	.agp-bar__timer svg { display: none; }
	.agp-bar__timer b { font-size: 16px; }
	.agp-bar__cta { flex: 1 1 auto; min-width: 0; padding: 12px 14px; }
}

/* ---------- [portao_status] ---------- */

.agp-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px 6px 10px;
	border-radius: var(--ag-radius-full);
	background: rgba(255, 255, 255, .16);
	font-family: var(--ag-font-body);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: inherit;
	white-space: nowrap;
}
.agp-status__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	opacity: .6;
	flex: none;
}
.agp-status.is-open .agp-status__dot {
	background: var(--ag-success);
	opacity: 1;
	box-shadow: 0 0 0 3px rgba(30, 142, 90, .25);
}
