/*
 * IBEC Horizon — App (PWA): convite para instalar + puxar para atualizar. v7A.9.21.382.
 * A tela de abertura fica no <head> (Modules\Pwa\Pwa::print_splash_css), porque
 * precisa aparecer antes deste arquivo carregar.
 */

/* ----------------------------------------------------------- convite */
.ibec-app-install {
	--ibec-app-accent: #0B1F4D;
	--ibec-app-on-accent: #fff;
	--ibec-app-ink: #13213f;
	--ibec-app-muted: #52607d;
	--ibec-app-line: #e3e8f1;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2147483500;
	display: flex;
	justify-content: center;
	padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
	pointer-events: none;
	font-family: inherit;
}
.ibec-app-install__card {
	pointer-events: auto;
	width: 100%;
	max-width: 440px;
	box-sizing: border-box;
	background: #fff;
	color: var(--ibec-app-ink);
	border: 1px solid var(--ibec-app-line);
	border-radius: 16px;
	box-shadow: 0 18px 50px rgba(9, 22, 52, .28);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transform: translateY(calc(100% + 24px));
	opacity: 0;
	transition: transform .26s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
}
.ibec-app-install.is-open .ibec-app-install__card {
	transform: none;
	opacity: 1;
}
.ibec-app-install__head {
	display: flex;
	align-items: center;
	gap: 12px;
}
.ibec-app-install__logo {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	border-radius: 12px;
	object-fit: cover;
	box-shadow: 0 0 0 1px var(--ibec-app-line);
}
.ibec-app-install__logo.is-blank {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ibec-app-accent);
	color: var(--ibec-app-on-accent);
}
.ibec-app-install__logo.is-blank svg { width: 26px; height: 26px; }
.ibec-app-install__titles {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1;
}
.ibec-app-install__titles strong {
	font-size: 16px;
	line-height: 1.25;
	color: var(--ibec-app-ink);
}
.ibec-app-install__titles span {
	font-size: 13px;
	color: var(--ibec-app-muted);
}
.ibec-app-install__x {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--ibec-app-muted);
	cursor: pointer;
	padding: 0;
}
.ibec-app-install__x svg { width: 20px; height: 20px; }
.ibec-app-install__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ibec-app-ink);
}
.ibec-app-install__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ibec-app-install__steps li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
	color: var(--ibec-app-ink);
}
.ibec-app-install__ico {
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: #eef2f9;
	color: var(--ibec-app-accent);
}
.ibec-app-install__ico svg { width: 19px; height: 19px; }
.ibec-app-install__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ibec-app-install__btn {
	flex: 1 1 140px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	border-radius: var(--r-btn, 8px);
	background: var(--ibec-app-accent);
	color: var(--ibec-app-on-accent);
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	padding: 10px 16px;
}
.ibec-app-install__btn svg { width: 18px; height: 18px; }
.ibec-app-install__btn.is-ghost {
	background: #eef2f9;
	color: var(--ibec-app-ink);
}
.ibec-app-install__btn:focus-visible,
.ibec-app-install__x:focus-visible {
	outline: 3px solid #2b58b8;
	outline-offset: 2px;
}

/* botão do shortcode [ibec_instalar_app] */
.ibec-app-install-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 18px;
	border: 0;
	border-radius: var(--r-btn, 8px);
	background: #0B1F4D;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
html.ibec-app .ibec-app-install-trigger { display: none; }

@media (prefers-reduced-motion: reduce) {
	.ibec-app-install__card { transition: none; }
}

/* ----------------------------------------------------------- puxar para atualizar */
html.ibec-app-ptr,
html.ibec-app-ptr body {
	overscroll-behavior-y: none;
}
.ibec-app-ptr__ind {
	position: fixed;
	left: 50%;
	top: env(safe-area-inset-top, 0px);
	z-index: 2147483400;
	width: 40px;
	height: 40px;
	margin-top: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #fff;
	color: #0B1F4D;
	box-shadow: 0 4px 16px rgba(9, 22, 52, .22);
	transform: translate(-50%, -52px);
	opacity: 0;
	pointer-events: none;
}
.ibec-app-ptr__ind svg { width: 20px; height: 20px; }
.ibec-app-ptr__ind.is-ready { color: #fff; background: #0B1F4D; }
.ibec-app-ptr__ind.is-back { transition: transform .2s ease, opacity .2s ease; }
.ibec-app-ptr__ind.is-loading svg { animation: ibecAppSpin .8s linear infinite; }
@keyframes ibecAppSpin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------- avisos do app (v7A.9.21.382) */
.ibec-app-bell {
	--ibec-app-red: #E11D2E;
	position: relative;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--hz-navy, #0B1F4D);
	cursor: pointer;
	padding: 0;
}
.ibec-app-bell:hover { background: rgba(14, 59, 126, .06); }
.ibec-app-bell svg { width: 23px; height: 23px; }
.ibec-app-bell.is-floating {
	position: fixed;
	top: calc(env(safe-area-inset-top, 0px) + 12px);
	right: 12px;
	z-index: 9400;
	background: #fff;
	box-shadow: 0 6px 18px rgba(9, 22, 52, .18);
}
.ibec-app-bell__count {
	position: absolute;
	top: 2px;
	right: 0;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	box-sizing: border-box;
	border-radius: 999px;
	background: var(--ibec-app-red);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 19px;
	text-align: center;
	box-shadow: 0 0 0 2px #fff;
	font-variant-numeric: tabular-nums;
}
.hz-header--style-solid-navy .ibec-app-bell,
.hz-header--style-transparent:not(.is-scrolled) .ibec-app-bell { color: #fff; }

.ibec-app-notes {
	position: fixed;
	inset: 0;
	z-index: 9500;
	font-family: inherit;
}
.ibec-app-notes__backdrop { position: absolute; inset: 0; background: rgba(9, 22, 52, .18); opacity: 0; transition: opacity .2s ease; }
.ibec-app-notes.is-open .ibec-app-notes__backdrop { opacity: 1; }
.ibec-app-notes__card {
	position: absolute;
	top: calc(env(safe-area-inset-top, 0px) + 70px);
	right: 12px;
	width: min(400px, calc(100vw - 24px));
	max-height: min(72vh, 620px);
	display: flex;
	flex-direction: column;
	background: #fff;
	color: #13213f;
	border: 1px solid #e3e8f1;
	border-radius: 16px;
	box-shadow: 0 22px 60px rgba(9, 22, 52, .3);
	overflow: hidden;
	transform: translateY(-8px);
	opacity: 0;
	transition: transform .2s ease, opacity .2s ease;
}
.ibec-app-notes.is-open .ibec-app-notes__card { transform: none; opacity: 1; }
.ibec-app-notes__head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 10px 12px 16px;
	border-bottom: 1px solid #e3e8f1;
}
.ibec-app-notes__head strong { flex: 1; font-size: 16px; color: #13213f; }
.ibec-app-notes__all {
	border: 0;
	background: transparent;
	color: #1d4eaa;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	padding: 8px;
	border-radius: 8px;
}
.ibec-app-notes__pushslot:empty { display: none; }
.ibec-app-notes__push {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 10px 12px 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: #eef2f9;
	font-size: 13px;
	line-height: 1.4;
	color: #13213f;
}
.ibec-app-notes__push svg { width: 20px; height: 20px; flex-shrink: 0; color: #1d4eaa; }
.ibec-app-notes__push span { flex: 1; }
.ibec-app-notes__push button {
	border: 0;
	border-radius: 8px;
	background: #0B1F4D;
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	padding: 8px 12px;
	cursor: pointer;
}
.ibec-app-notes__hint { margin: 10px 14px 0; font-size: 12.5px; line-height: 1.45; color: #52607d; }
.ibec-app-notes__list {
	list-style: none;
	margin: 0;
	padding: 6px 0;
	overflow-y: auto;
	overscroll-behavior: contain;
}
.ibec-app-notes__item { margin: 0; }
.ibec-app-notes__item button {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 3px;
	text-align: left;
	border: 0;
	background: transparent;
	font: inherit;
	color: #13213f;
	padding: 11px 16px 11px 30px;
	cursor: pointer;
	position: relative;
}
.ibec-app-notes__item button:hover { background: #f5f7fb; }
.ibec-app-notes__item.is-new button::before {
	content: "";
	position: absolute;
	left: 13px;
	top: 17px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #E11D2E;
}
.ibec-app-notes__item strong { font-size: 14px; line-height: 1.35; }
.ibec-app-notes__item span { font-size: 13px; line-height: 1.45; color: #52607d; }
.ibec-app-notes__item small { font-size: 12px; color: #7a869f; }
.ibec-app-notes__item:not(.is-new) strong { font-weight: 600; }
.ibec-app-notes__empty {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 28px 16px;
	color: #52607d;
	font-size: 14px;
	margin: 0;
}
.ibec-app-notes__empty svg { width: 18px; height: 18px; color: #0f7a4a; }

.ibec-app-toasts {
	position: fixed;
	top: calc(env(safe-area-inset-top, 0px) + 12px);
	right: 12px;
	left: 12px;
	z-index: 9600;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	pointer-events: none;
	font-family: inherit;
}
.ibec-app-toast {
	pointer-events: auto;
	width: min(380px, 100%);
	box-sizing: border-box;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	text-align: left;
	border: 1px solid #e3e8f1;
	border-left: 4px solid #E11D2E;
	border-radius: 12px;
	background: #fff;
	color: #13213f;
	box-shadow: 0 14px 36px rgba(9, 22, 52, .22);
	padding: 12px 14px;
	font: inherit;
	cursor: pointer;
	transform: translateY(-14px);
	opacity: 0;
	transition: transform .24s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
}
.ibec-app-toast.is-in { transform: none; opacity: 1; }
.ibec-app-toast__ico {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #fdecee;
	color: #E11D2E;
}
.ibec-app-toast__ico svg { width: 18px; height: 18px; }
.ibec-app-toast__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ibec-app-toast__txt strong { font-size: 14px; line-height: 1.35; }
.ibec-app-toast__txt span { font-size: 13px; line-height: 1.4; color: #52607d; }
.ibec-app-toast.is-ask { cursor: default; flex-wrap: wrap; border-left-color: #1d4eaa; }
.ibec-app-toast.is-ask .ibec-app-toast__ico { background: #eaf0fb; color: #1d4eaa; }
.ibec-app-toast__acts { display: flex; gap: 8px; width: 100%; padding-left: 42px; box-sizing: border-box; }
.ibec-app-toast__acts button {
	flex: 1;
	border: 0;
	border-radius: 8px;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	padding: 9px 10px;
	cursor: pointer;
	background: #eef2f9;
	color: #13213f;
}
.ibec-app-toast__acts button[data-act="yes"] { background: #0B1F4D; color: #fff; }
@media (prefers-reduced-motion: reduce) {
	.ibec-app-toast, .ibec-app-notes__card, .ibec-app-notes__backdrop { transition: none; }
}

/* ----------------------------------------------------------- v7A.9.21.383 */
.ibec-app-install__more {
	flex: 1 1 100%;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	color: #1D4EAA;
	padding: 6px 0 2px;
}

/* Barra de acesso: o app abre na inicial e ela leva cada um à sua área. */
.ibec-app-access {
	display: none;
	position: fixed;
	left: 10px;
	right: 10px;
	bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	z-index: 8000;
	box-sizing: border-box;
	max-width: 520px;
	margin: 0 auto;
	padding: 10px 10px 10px 12px;
	border-radius: 16px;
	background: #0B1F4D;
	box-shadow: 0 16px 40px rgba(11, 31, 77, .35);
	align-items: center;
	gap: 12px;
	font-family: inherit;
}
html.ibec-app .ibec-app-access { display: flex; }
@media (max-width: 782px) {
	.ibec-app-access.is-mobile { display: flex; }
	body.ibec-has-access.ibec-access-mobile { padding-bottom: 96px; }
}
html.ibec-app body.ibec-has-access { padding-bottom: 96px; }
body.hz-menu-open .ibec-app-access { display: none !important; }
.ibec-app-access__avatar {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 50%;
	background: #F2B705;
	color: #0B1F4D;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 14px;
}
.ibec-app-access__avatar.is-guest { background: rgba(255, 255, 255, .12); color: #FFFFFF; }
.ibec-app-access__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ibec-app-access__txt strong { color: #FFFFFF; font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibec-app-access__txt span { color: #B9C5DD; font-size: 12.5px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibec-app-access__btn {
	flex-shrink: 0;
	min-height: 44px;
	padding: 0 16px;
	border-radius: var(--r-btn, 10px);
	background: #F2B705;
	color: #0B1F4D !important;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}
.ibec-app-access__btn:hover { background: #FFC72C; }
.ibec-app-access__btn:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }

/* Guia visual do iPhone */
.ibec-ios-guide { position: fixed; inset: 0; z-index: 2147483550; font-family: inherit; }
.ibec-ios-guide__backdrop { position: absolute; inset: 0; background: rgba(6, 14, 36, .74); opacity: 0; transition: opacity .2s ease; }
.ibec-ios-guide.is-open .ibec-ios-guide__backdrop { opacity: 1; }
.ibec-ios-guide__card {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: calc(96px + env(safe-area-inset-bottom, 0px));
	max-width: 440px;
	margin: 0 auto;
	box-sizing: border-box;
	background: #FFFFFF;
	color: #13213F;
	border-radius: 22px;
	padding: 20px 18px 18px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
	transform: translateY(20px);
	opacity: 0;
	transition: transform .24s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
}
.ibec-ios-guide.is-open .ibec-ios-guide__card { transform: none; opacity: 1; }
.ibec-ios-guide__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ibec-ios-guide__steps li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.ibec-ios-guide__n { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: #0B1F4D; color: #FFFFFF; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.ibec-ios-guide__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.4; }
.ibec-ios-guide__body.is-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.ibec-ios-guide__body small { font-size: 12.5px; line-height: 1.4; color: #52607D; }
.ibec-ios-guide__bar { height: 40px; border-radius: 12px; background: #F1F4F9; color: #7A869F; display: flex; align-items: center; justify-content: space-around; }
.ibec-ios-guide__bar svg { width: 18px; height: 18px; }
.ibec-ios-guide__hi { width: 38px; height: 32px; border-radius: 9px; background: #FEF6DC; box-shadow: 0 0 0 2px #F2B705; color: #0B1F4D; display: flex; align-items: center; justify-content: center; }
.ibec-ios-guide__sheet { border-radius: 12px; background: #F1F4F9; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.ibec-ios-guide__sheet > div { min-height: 30px; border-radius: 8px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #7A869F; }
.ibec-ios-guide__sheet > div.is-hi { min-height: 34px; font-weight: 700; color: #0B1F4D; background: #FEF6DC; box-shadow: 0 0 0 2px #F2B705; }
.ibec-ios-guide__sheet svg { width: 16px; height: 16px; }
.ibec-ios-guide__add { flex-shrink: 0; padding: 7px 12px; border-radius: 8px; background: #FEF6DC; box-shadow: 0 0 0 2px #F2B705; font-size: 13px; font-weight: 700; color: #1D4EAA; }
.ibec-ios-guide__nudge { position: absolute; left: 0; right: 0; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: center; gap: 4px; color: #FFFFFF; font-size: 13px; font-weight: 700; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); animation: ibecNudge 1.4s ease-in-out infinite; }
.ibec-ios-guide__nudge svg { width: 26px; height: 26px; color: #F2B705; stroke-width: 2.6; }
@keyframes ibecNudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
	.ibec-ios-guide__nudge { animation: none; }
	.ibec-ios-guide__card, .ibec-ios-guide__backdrop { transition: none; }
}
