.img-container:has(.qo-phone),
.img-container:has(.qo-phone) > div {
	height: auto;
}

.img-container .qo-phone .qo-phone__frame {
	position: relative;
	inset: auto;
	top: auto;
	left: auto;
	display: block;
	width: 100%;
	height: auto;
	max-height: none;
	object-fit: contain;
}

.qo-phone {
	--qo-ink: #f7f5f8;
	--qo-muted: #8e8798;
	--qo-card: #1c1a24;
	--qo-line: rgba(255, 255, 255, 0.08);
	width: 100%;
	color: var(--qo-ink);
	font-family: Montserrat, "Segoe UI", sans-serif;
	background: transparent;
}

.qo-phone__kader {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background: #14131a;
	border: 1px solid var(--qo-line);
	border-radius: 11px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	padding: 28px 20px;
}

.qo-phone__device {
	position: relative;
	width: min(250px, 100%);
	margin: 0 auto;
}

.qo-phone .qo-phone__frame {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

.qo-phone__screen {
	position: absolute;
	left: 4.6%;
	right: 4.6%;
	top: 2.6%;
	bottom: 2.2%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 36px;
	background: #0c0c0e;
	padding: 7% 5% 4%;
}

.qo-phone__head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 2px 4px 10px;
	border-bottom: 1px solid var(--qo-line);
}

.qo-phone__head strong,
.qo-phone__head small {
	display: block;
	line-height: 1.1;
}

.qo-phone__head strong {
	font-size: 13px;
	font-weight: 700;
}

.qo-phone__head small {
	margin-top: 0;
	color: var(--qo-muted);
	font-size: 10px;
}

.qo-phone__avatar {
	position: relative;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: #fff;
	background: linear-gradient(160deg, #e56aa8 0%, #7b4dff 100%);
	flex: 0 0 auto;
}

.qo-phone__avatar svg {
	width: 16px;
	height: 16px;
}

.qo-phone__avatar i {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #3dde6a;
	border: 2px solid #101014;
}

.qo-phone__thread {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 6px;
	min-height: 0;
	flex: 1 1 auto;
	padding-top: 14px;
	overflow: hidden;
}

.qo-phone__msg {
	max-width: 92%;
	padding: 7px 10px 4px;
	border-radius: 14px;
	background: var(--qo-card);
	font-size: 11px;
	line-height: 1.3;
	animation: qo-phone-in 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.qo-phone__msg.is-reply {
	align-self: flex-end;
	background: linear-gradient(100deg, #7b4dff 0%, #ee6a86 55%, #ff8a3d 100%);
}

.qo-phone__typing {
	display: flex;
	align-items: center;
	gap: 4px;
	align-self: flex-start;
	width: fit-content;
	margin: 0;
	padding: 9px 12px;
	border-radius: 14px;
	background: var(--qo-card);
}

.qo-phone__typing.is-reply {
	align-self: flex-end;
	background: linear-gradient(100deg, #7b4dff 0%, #ee6a86 55%, #ff8a3d 100%);
}

.qo-phone__typing i {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #fff;
	opacity: 0.45;
	animation: qo-phone-dot 1s infinite;
}

.qo-phone__typing i:nth-child(2) { animation-delay: 0.15s; }
.qo-phone__typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes qo-phone-dot {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
	30% { transform: translateY(-3px); opacity: 1; }
}

.qo-phone__msg time {
	display: block;
	margin-top: 3px;
	text-align: right;
	font-size: 9px;
	opacity: 0.7;
}

@keyframes qo-phone-in {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
	.qo-phone__msg { font-size: 11px; }
}
