/*
 * Oddusee What's Poppin' App - install banner and instructions.
 *
 * High-contrast by design: light text (#f6f3ec) on a dark panel (#17171d).
 * The button color comes from the settings; its text color is chosen
 * automatically (black or white) so it always stays readable.
 * Selectors use the element IDs so theme styles cannot override them.
 */

#owpa-banner,
#owpa-sheet,
#owpa-banner *,
#owpa-sheet * {
	box-sizing: border-box;
}

#owpa-banner[hidden],
#owpa-sheet[hidden],
#owpa-sheet [hidden],
button.owpa-inline-install[hidden] {
	display: none !important;
}

/* Buttons ------------------------------------------------------------- */

#owpa-banner .owpa-btn,
#owpa-sheet .owpa-btn,
button.owpa-btn.owpa-inline-install {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 10px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--owpa-accent, #dca83e);
	color: var(--owpa-accent-text, #111111);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	text-shadow: none;
	white-space: nowrap;
	box-shadow: none;
	cursor: pointer;
}

#owpa-banner .owpa-btn:hover,
#owpa-sheet .owpa-btn:hover,
button.owpa-btn.owpa-inline-install:hover {
	background: var(--owpa-accent, #dca83e);
	color: var(--owpa-accent-text, #111111);
	filter: brightness(1.08);
}

#owpa-banner button:focus-visible,
#owpa-sheet button:focus-visible,
#owpa-sheet .owpa-sheet__panel:focus-visible,
button.owpa-btn.owpa-inline-install:focus-visible {
	outline: 2px solid #111111;
	outline-offset: 1px;
	box-shadow: 0 0 0 4px #f6f3ec;
}

/* Banner -------------------------------------------------------------- */

#owpa-banner {
	position: fixed;
	z-index: 2147483000;
	left: 12px;
	right: 12px;
	bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	max-width: 560px;
	margin: 0 auto;
	padding: 14px 52px 14px 14px;
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas:
		"icon body"
		"icon actions";
	column-gap: 12px;
	row-gap: 10px;
	align-items: center;
	background: #17171d;
	color: #f6f3ec;
	border: 1px solid rgba(246, 243, 236, 0.18);
	border-radius: 18px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	text-align: left;
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

#owpa-banner.is-visible {
	opacity: 1;
	transform: none;
}

#owpa-banner .owpa-banner__icon {
	grid-area: icon;
	align-self: start;
	display: block;
	width: 52px;
	height: 52px;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 12px;
}

#owpa-banner .owpa-banner__body {
	grid-area: body;
	min-width: 0;
}

#owpa-banner .owpa-banner__title {
	margin: 0 0 2px;
	padding: 0;
	color: #f6f3ec;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

#owpa-banner .owpa-banner__text {
	margin: 0;
	padding: 0;
	color: #e6e2d8;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
}

#owpa-banner .owpa-banner__actions {
	grid-area: actions;
}

#owpa-banner .owpa-banner__close,
#owpa-sheet .owpa-sheet__close {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	top: 4px;
	right: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #f6f3ec;
	box-shadow: none;
	cursor: pointer;
}

#owpa-banner .owpa-banner__close:hover,
#owpa-sheet .owpa-sheet__close:hover {
	background: rgba(246, 243, 236, 0.12);
	color: #ffffff;
}

#owpa-banner svg,
#owpa-sheet svg {
	display: block;
	width: 22px;
	height: 22px;
	fill: none;
}

@media (max-width: 359px) {
	#owpa-banner {
		left: 8px;
		right: 8px;
		padding: 12px 44px 12px 12px;
		column-gap: 10px;
	}

	#owpa-banner .owpa-banner__icon {
		width: 40px;
		height: 40px;
		border-radius: 10px;
	}

	#owpa-banner .owpa-banner__title {
		font-size: 15px;
	}

	#owpa-banner .owpa-banner__text {
		font-size: 13px;
	}
}

@media (min-width: 480px) {
	#owpa-banner {
		grid-template-columns: auto 1fr auto;
		grid-template-areas: "icon body actions";
	}

	#owpa-banner .owpa-banner__icon {
		align-self: center;
	}
}

/* Instructions sheet -------------------------------------------------- */

html.owpa-sheet-open,
html.owpa-sheet-open body {
	overflow: hidden;
}

#owpa-sheet {
	position: fixed;
	z-index: 2147483001;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	text-align: left;
}

#owpa-sheet .owpa-sheet__backdrop {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.65);
}

#owpa-sheet .owpa-sheet__panel {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow-y: auto;
	margin: 0;
	padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px));
	background: #17171d;
	color: #f6f3ec;
	border: 1px solid rgba(246, 243, 236, 0.18);
	border-bottom: 0;
	border-radius: 22px 22px 0 0;
	box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5);
	outline: none;
}

@media (min-width: 600px) {
	#owpa-sheet {
		align-items: center;
	}

	#owpa-sheet .owpa-sheet__panel {
		border-bottom: 1px solid rgba(246, 243, 236, 0.18);
		border-radius: 22px;
	}
}

#owpa-sheet .owpa-sheet__title {
	margin: 0 44px 18px 0;
	padding: 0;
	color: #f6f3ec;
	font-family: inherit;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
}

#owpa-sheet .owpa-sheet__text {
	margin: 0 0 22px;
	padding: 0;
	color: #f6f3ec;
	font-size: 16px;
	line-height: 1.5;
}

#owpa-sheet .owpa-steps {
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

#owpa-sheet .owpa-steps li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 16px;
	padding: 0;
	color: #f6f3ec;
	font-size: 16px;
	line-height: 1.45;
	list-style: none;
}

#owpa-sheet .owpa-steps li::before,
#owpa-sheet .owpa-steps li::marker {
	content: none;
}

#owpa-sheet .owpa-steps__num {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--owpa-accent, #dca83e);
	color: var(--owpa-accent-text, #111111);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
}

#owpa-sheet .owpa-steps__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: rgba(246, 243, 236, 0.1);
	color: #f6f3ec;
}

/* iPhone's Share icon is blue, so match it to help people find it. */
#owpa-sheet .owpa-steps--ios .owpa-steps__icon {
	color: #6cb4ff;
}

#owpa-sheet .owpa-steps__text {
	flex: 1 1 auto;
	min-width: 0;
	padding-top: 3px;
}

#owpa-sheet .owpa-sheet__done {
	width: 100%;
}

@media (prefers-reduced-motion: reduce) {
	#owpa-banner {
		transition: none;
	}
}
