/* ── Super Ads — Chat Teaser (Instagram DM) ── */

@keyframes sa-ig-pop {
	from { opacity: 0; transform: translateY(6px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sa-ig-dot {
	0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
	40% { transform: translateY(-3px); opacity: 1; }
}

@keyframes sa-ig-live-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.25; }
}

.sa-ig {
	--sa-ig-header: #ffffff;
	--sa-ig-accent: #0095f6;
	--sa-ig-border: #0095f6;
	--sa-ig-border-w: 3px;
	display: block;
	margin: 18px 0;
	text-decoration: none !important;
	color: inherit !important;
	cursor: pointer;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.sa-ig__live {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 0 10px;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #ed4956 !important;
	animation: sa-ig-live-blink 1.2s ease-in-out infinite;
}

.sa-ig__live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ed4956;
	flex-shrink: 0;
	box-shadow: 0 0 0 0 rgba(237, 73, 86, 0.45);
}

.sa-ig *,
.sa-ig *::before,
.sa-ig *::after {
	box-sizing: border-box;
}

.sa-ig__phone {
	max-width: 390px;
	margin: 0 auto;
	border-radius: 20px;
	overflow: hidden;
	border: var(--sa-ig-border-w, 3px) solid var(--sa-ig-border, #0095f6);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
	background: #fff;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sa-ig:hover .sa-ig__phone {
	transform: translateY(-2px);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

.sa-ig__header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: var(--sa-ig-header);
	border-bottom: 1px solid #efefef;
	color: #262626;
}

.sa-ig__back {
	width: 24px;
	text-align: center;
	font-size: 28px;
	line-height: 1;
	font-weight: 300;
	color: #262626;
}

.sa-ig__avatar-wrap {
	position: relative;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	/* overflow visível: o ponto “online” fica na borda, sem cortar a foto */
	overflow: visible;
	isolation: isolate;
}

.sa-ig__avatar-clip {
	display: block;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	overflow: hidden;
	background: #efefef;
	border: 1px solid #dbdbdb;
	position: relative;
	z-index: 0;
}

.sa-ig__avatar,
.sa-ig img.sa-ig__avatar {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	min-width: 0 !important;
	min-height: 0 !important;
	object-fit: cover !important;
	object-position: center center !important;
	display: block !important;
	border: 0 !important;
	border-radius: 50% !important;
	margin: 0 !important;
	padding: 0 !important;
	position: static !important;
	transform: none !important;
	box-shadow: none !important;
}

.sa-ig__avatar--ph {
	display: flex !important;
	align-items: center;
	justify-content: center;
	background: #efefef;
	color: #8e8e8e !important;
	font-weight: 700;
	font-size: 14px;
	width: 100% !important;
	height: 100% !important;
	border-radius: 50% !important;
}

.sa-ig__online-dot {
	position: absolute;
	right: -1px;
	bottom: -1px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #78de45;
	border: 2px solid #fff;
	z-index: 3;
	box-shadow: none;
	pointer-events: none;
}

.sa-ig__who {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
	text-align: left;
}

.sa-ig__name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	color: #262626 !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sa-ig__status {
	font-size: 12px;
	font-weight: 400;
	color: #8e8e8e !important;
}

.sa-ig__actions {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-right: 2px;
}

.sa-ig__icon-cam,
.sa-ig__icon-info {
	display: block;
	width: 22px;
	height: 22px;
	color: #262626;
}

.sa-ig__icon-cam {
	border: 2px solid #262626;
	border-radius: 6px;
	position: relative;
}

.sa-ig__icon-cam::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 8px;
	height: 8px;
	margin: -4px 0 0 -4px;
	border: 2px solid #262626;
	border-radius: 50%;
}

.sa-ig__icon-info {
	border: 2px solid #262626;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	font-style: italic;
}

.sa-ig__stage {
	min-height: 260px;
	max-height: 320px;
	overflow-y: auto;
	padding: 14px 12px 10px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	background: #fff;
}

.sa-ig__bubble {
	position: relative;
	max-width: 78%;
	padding: 10px 14px;
	border-radius: 22px;
	background: #efefef;
	text-align: left;
}

.sa-ig__bubble[hidden],
.sa-ig__typing[hidden] {
	display: none !important;
}

.sa-ig--pop {
	animation: sa-ig-pop 0.28s ease both;
}

.sa-ig__text {
	display: block;
	font-size: 14px;
	line-height: 1.35;
	color: #262626 !important;
	font-weight: 400;
}

.sa-ig__bubble--audio {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 210px;
	padding: 10px 14px;
}

.sa-ig__audio-play {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--sa-ig-accent);
	color: #fff;
	font-size: 11px;
	padding-left: 2px;
}

.sa-ig__audio-wave {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	height: 20px;
	flex: 1;
}

.sa-ig__audio-wave i {
	width: 2.5px;
	height: var(--h, 50%);
	border-radius: 2px;
	background: #a8a8a8;
	display: block;
	/* estático — sem animação de áudio */
	animation: none !important;
}

.sa-ig__audio-dur {
	font-size: 12px;
	font-weight: 500;
	color: #8e8e8e;
	min-width: 28px;
}

.sa-ig__typing {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 12px 14px;
	border-radius: 22px;
	background: #efefef;
}

.sa-ig__typing span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #8e8e8e;
	animation: sa-ig-dot 1s ease-in-out infinite;
}

.sa-ig__typing span:nth-child(2) { animation-delay: 0.15s; }
.sa-ig__typing span:nth-child(3) { animation-delay: 0.3s; }

.sa-ig__composer {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px 12px;
	background: #fff;
	border-top: 1px solid #efefef;
}

.sa-ig__composer-cam {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--sa-ig-accent);
	position: relative;
	flex-shrink: 0;
}

.sa-ig__composer-cam::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 14px;
	height: 11px;
	margin: -5px 0 0 -7px;
	border: 2px solid #fff;
	border-radius: 3px;
}

.sa-ig__composer-cam::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 5px;
	height: 5px;
	margin: -2px 0 0 -2px;
	border: 1.5px solid #fff;
	border-radius: 50%;
}

.sa-ig__composer-input {
	flex: 1;
	min-height: 36px;
	padding: 8px 14px;
	border-radius: 22px;
	background: #fff;
	border: 1px solid #dbdbdb;
	color: #8e8e8e !important;
	font-size: 14px;
	font-weight: 400;
	text-align: left;
}

.sa-ig__composer-mic {
	width: 22px;
	height: 22px;
	position: relative;
	flex-shrink: 0;
	opacity: 0.85;
}

.sa-ig__composer-mic::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 2px;
	width: 9px;
	height: 12px;
	margin-left: -4.5px;
	border: 2px solid #262626;
	border-radius: 6px;
}

.sa-ig__composer-mic::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 1px;
	width: 12px;
	height: 6px;
	margin-left: -6px;
	border: 2px solid #262626;
	border-top: 0;
	border-radius: 0 0 8px 8px;
}

@media (prefers-reduced-motion: reduce) {
	.sa-ig--pop,
	.sa-ig__typing span,
	.sa-ig__live {
		animation: none !important;
	}
}
