/* RTCL PWA — frontend */

.rtcl-pwa-banner {
	position: fixed;
	left: 12px;
	right: 12px;
	z-index: 99999;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	background: #fff;
	color: #111;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	animation: rtclPwaSlide 0.35s ease;
}

.rtcl-pwa-banner[hidden] {
	display: none !important;
}

.rtcl-pwa-banner--bottom {
	bottom: 12px;
}

.rtcl-pwa-banner--top {
	top: 12px;
}

.rtcl-pwa-banner__icon img {
	display: block;
	border-radius: 10px;
}

.rtcl-pwa-banner__body {
	flex: 1;
	min-width: 0;
}

.rtcl-pwa-banner__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.35;
}

.rtcl-pwa-banner__btn {
	border: 0;
	border-radius: 999px;
	padding: 10px 16px;
	background: var(--rtcl-pwa-theme, #1a73e8);
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	white-space: nowrap;
}

.rtcl-pwa-banner__close,
.rtcl-pwa-modal__close {
	position: absolute;
	top: 6px;
	right: 8px;
	border: 0;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #666;
}

.rtcl-pwa-banner {
	position: fixed;
}

.rtcl-pwa-banner__close {
	position: static;
	margin: -4px 0 0 auto;
	order: 10;
	padding: 0 4px;
}

@keyframes rtclPwaSlide {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.rtcl-pwa-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.45);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 16px;
}

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

.rtcl-pwa-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 16px;
	padding: 24px 20px 20px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.rtcl-pwa-modal__dialog h3 {
	margin: 0 0 12px;
	font-size: 18px;
}

.rtcl-pwa-ios-steps {
	margin: 0;
	padding-left: 1.2em;
	line-height: 1.55;
}

.rtcl-pwa-install-page {
	max-width: 480px;
	margin: 2rem auto;
	padding: 2rem 1.25rem;
	text-align: center;
}

.rtcl-pwa-install-page__icon {
	border-radius: 22px;
	margin-bottom: 1rem;
}

.rtcl-pwa-install-page__title {
	margin: 0 0 0.5rem;
	font-size: 1.6rem;
}

.rtcl-pwa-install-page__content {
	margin: 0 0 1.25rem;
	color: #444;
	line-height: 1.5;
}

.rtcl-pwa-install-page__btn,
.rtcl-pwa-push-box__btn {
	border: 0;
	border-radius: 999px;
	padding: 12px 28px;
	background: var(--rtcl-pwa-theme, #1a73e8);
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

.rtcl-pwa-install-page__hint {
	margin-top: 1rem;
	color: #666;
	font-size: 0.95rem;
}

.rtcl-pwa-push-box {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.rtcl-pwa-status-msg {
	margin: 12px 0 0;
	font-size: 0.95rem;
	color: #0f9d58;
}

.rtcl-pwa-status-msg.is-error {
	color: #d93025;
}

.rtcl-pwa-modal__note {
	margin: 12px 0 0;
	font-size: 0.9rem;
	color: #666;
	line-height: 1.45;
}

.rtcl-pwa-install-page__btn:disabled,
.rtcl-pwa-banner__btn:disabled {
	opacity: 0.65;
	cursor: wait;
}

@media (min-width: 600px) {
	.rtcl-pwa-modal {
		align-items: center;
	}
}
