/* Quiz Wallah Install App v1.3.2 – no position jump */

.qwia-bar {
	position: fixed;
	z-index: 99990;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow:
		0 4px 6px rgba(0, 0, 0, 0.04),
		0 12px 28px rgba(0, 0, 0, 0.14);
	box-sizing: border-box;
	max-width: min(420px, calc(100vw - 24px));
	/* Opacity-only animation — never touch transform (avoids center jump) */
	animation: qwia-fade 0.3s ease;
}

.qwia-bar[hidden] {
	display: none !important;
}

/* Center without transform so animation cannot fight layout */
.qwia-pos-bottom {
	left: 12px;
	right: 12px;
	bottom: 78px;
	width: max-content;
	max-width: min(420px, calc(100vw - 24px));
	margin-left: auto;
	margin-right: auto;
}

.qwia-pos-bottom-left {
	left: 12px;
	right: auto;
	bottom: 78px;
	width: max-content;
	max-width: min(420px, calc(100vw - 24px));
}

.qwia-pos-bottom-right {
	right: 12px;
	left: auto;
	bottom: 78px;
	width: max-content;
	max-width: min(420px, calc(100vw - 24px));
}

@media (min-width: 769px) {
	.qwia-pos-bottom,
	.qwia-pos-bottom-left,
	.qwia-pos-bottom-right {
		bottom: 28px;
	}
}

@keyframes qwia-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.qwia-btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: none;
	border-radius: 12px;
	padding: 13px 18px;
	background: var(--qwia-bg, #0b5cab);
	color: var(--qwia-text, #ffffff);
	font-size: 15px;
	font-weight: 650;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	cursor: pointer;
	line-height: 1.25;
	letter-spacing: 0.01em;
	box-shadow: 0 2px 8px rgba(11, 92, 171, 0.35);
	transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.qwia-btn:hover {
	filter: brightness(1.06);
}

.qwia-btn:active {
	filter: brightness(0.96);
}

.qwia-logo {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.2);
}

.qwia-icon {
	flex-shrink: 0;
	opacity: 0.95;
}

.qwia-text {
	white-space: nowrap;
}

.qwia-bar .qwia-close,
button.qwia-close,
#qwia-close {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #e5e7eb !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	color: #344054 !important;
	border-radius: 10px;
	cursor: pointer;
	padding: 0;
	box-shadow: none !important;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.qwia-bar .qwia-close:hover,
button.qwia-close:hover,
#qwia-close:hover {
	background: #ffffff !important;
	background-color: #ffffff !important;
	color: #101828 !important;
	border-color: #98a2b3 !important;
}

.qwia-bar .qwia-close:active,
button.qwia-close:active,
#qwia-close:active {
	background: #ffffff !important;
	background-color: #ffffff !important;
}

.qwia-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(16, 24, 40, 0.5);
	box-sizing: border-box;
}

.qwia-modal[hidden] {
	display: none !important;
}

.qwia-modal-card {
	position: relative;
	width: 100%;
	max-width: 360px;
	background: #fff;
	color: #101828;
	border-radius: 16px;
	padding: 24px 20px 18px;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.qwia-modal-x {
	position: absolute;
	top: 10px;
	right: 12px;
	border: none;
	background: #f2f4f7;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	font-size: 20px;
	line-height: 1;
	color: #344054;
	cursor: pointer;
}

.qwia-modal-title {
	margin: 0 36px 10px 0;
	font-size: 18px;
	font-weight: 700;
}

.qwia-modal-msg {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.5;
	color: #475467;
}

.qwia-modal-steps {
	margin: 0 0 16px;
	padding-left: 20px;
	font-size: 14px;
	line-height: 1.55;
	color: #344054;
}

.qwia-modal-steps li {
	margin-bottom: 6px;
}

.qwia-modal-ok {
	width: 100%;
	border: none;
	border-radius: 12px;
	padding: 12px 16px;
	background: var(--qwia-bg, #0b5cab);
	color: var(--qwia-text, #fff);
	font-size: 15px;
	font-weight: 650;
	cursor: pointer;
}
