/* ============================================================================
   Monash PWA prompt modal
   ============================================================================ */

body.monash-pwa-prompt-open {
	overflow: hidden;
}

.monash-pwa-prompt {
	position: fixed;
	inset: 0;
	z-index: 13000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(24, 24, 28, 0.55);
}

.monash-pwa-prompt[hidden] {
	display: none;
}

/* Card */
.monash-pwa-prompt__card {
	position: relative;
	width: min(100%, 22rem);
	background: #fff;
	border: 2px solid #5198c1;
	border-radius: 1rem;
	padding: 1.75rem 1.375rem 1.25rem;
	text-align: center;
	font-family: "Albert Sans", system-ui, sans-serif;
	color: #1a1a1a;
	box-shadow: 0 0.25rem 1rem rgba(20, 20, 20, 0.12);
}

/* Dismiss (×) button */
.monash-pwa-prompt__close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 1.75rem;
	height: 1.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	color: #aaa;
	font-size: 0.875rem;
	line-height: 1;
	cursor: pointer;
	border-radius: 0.25rem;
	padding: 0;
}

.monash-pwa-prompt__close:hover {
	color: #555;
}

.monash-pwa-prompt__close:focus-visible {
	outline: 2px solid #5198c1;
	outline-offset: 2px;
}

/* Text blocks */
.monash-pwa-prompt__lead {
	margin: 0 0 0.875rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
}

.monash-pwa-prompt__body {
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
}

/* Icons row (iOS) */
.monash-pwa-prompt__icons {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	margin: 1rem 0 0.375rem;
	color: #006dae;
}

.monash-pwa-prompt__caption {
	margin: 0 0 0;
	font-size: 0.875rem;
	color: #555;
	font-style: italic;
	line-height: 1.4;
}

/* Helper text (error / instruction fallback) */
.monash-pwa-prompt__helper {
	margin: 0.75rem 0 0;
	padding: 0.5rem 0.625rem;
	font-size: 0.875rem;
	line-height: 1.4;
	color: #2c2c2c;
	background: rgba(81, 152, 193, 0.15);
	border-radius: 0.375rem;
	text-align: left;
}

/* Privacy note */
.monash-pwa-prompt__privacy {
	margin: 0.875rem 0 0;
	font-size: 0.8125rem;
	color: #777;
	font-style: italic;
	line-height: 1.4;
}

/* Android install buttons */
.monash-pwa-prompt__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.375rem;
	margin: 1rem 0 0;
}

.monash-pwa-prompt__btn--install {
	width: 100%;
	padding: 0.625rem 1rem;
	background: #006dae;
	color: #fff;
	border: none;
	border-radius: 0.5rem;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.2;
}

.monash-pwa-prompt__btn--install:hover {
	background: #005a8e;
}

.monash-pwa-prompt__btn--install:focus-visible {
	outline: 2px solid #5198c1;
	outline-offset: 2px;
}

.monash-pwa-prompt__btn--skip {
	background: transparent;
	border: none;
	color: #888;
	font-family: inherit;
	font-size: 0.875rem;
	cursor: pointer;
	padding: 0.25rem 0.5rem;
	line-height: 1.4;
}

.monash-pwa-prompt__btn--skip:hover {
	color: #555;
}
