/* Revive Install App. Colours and fonts follow the Revive Hair theme, with fallbacks. */
.rhi[hidden], .rhi-banner[hidden] { display: none !important; }

/* Only one of the two controls shows: the button, or the iPhone steps */
.rhi__can, .rhi__ios { display: none; }
.is-can .rhi__can { display: block; }
.is-ios .rhi__ios { display: block; }

/* ---------- the section ---------- */
.rhi { max-width: 36rem; margin-inline: auto; text-align: center; }
.rhi--left { margin-inline: 0; text-align: left; }
.rhi__title { margin: 0 0 0.4em; color: inherit; }   /* takes the colour of the area it sits in, e.g. light text in the dark footer */
.rhi__text, .rhi__ios { color: inherit; }
.rhi__text { margin: 0 0 1.2em; }
.rhi__ios { margin: 0; }
.rhi__share { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em; color: inherit; }

/* the button matches the site's WPBakery buttons */
.rhi__btn {
	display: inline-block;
	min-width: 200px;
	min-height: 44px;
	margin: 0;
	padding: 1em 2.6em;
	border: 1px solid transparent;
	border-radius: 2px;
	background: var(--rh-color-eucalyptus, #6b7a5e);
	color: var(--rh-color-whitewood, #f2ecdf);
	font-family: var(--rh-font-heading, Georgia, serif);
	font-size: 0.9375rem;
	font-weight: 400;
	letter-spacing: 0.08em;
	line-height: 1.2;
	cursor: pointer;
	transition: box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.rhi__btn:hover { box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, 0.1); }
.rhi__btn:focus-visible { outline: 2px solid var(--rh-color-deep, #5d6b51); outline-offset: 3px; }

/* ---------- the slim banner ---------- */
.rhi-banner {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 900;
	padding: 0 12px calc(12px + env(safe-area-inset-bottom));
	transform: translateY(110%);
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: none;
}
.rhi-banner.is-shown { transform: none; }
.rhi-banner__inner {
	display: flex;
	align-items: center;
	gap: 12px 16px;
	max-width: 760px;
	margin: 0 auto;
	padding: 12px 12px 12px 18px;
	border-radius: 10px;
	background: var(--rh-color-cloud, #fbf8f2);
	color: var(--rh-color-text, #2c2c2a);
	box-shadow: 0 6px 30px rgba(44, 44, 42, 0.18);
	font-size: 0.9rem;
	line-height: 1.4;
	pointer-events: auto;
}
.rhi-banner__text { flex: 1 1 auto; margin: 0; }
.rhi-banner .rhi__btn { min-width: 0; padding: 0.8em 1.4em; white-space: nowrap; }
.rhi-banner .rhi__ios { flex: 0 1 15rem; font-size: 0.85rem; }
.rhi-banner__close {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}
.rhi-banner__close:hover { background: rgba(44, 44, 42, 0.07); }
@media (max-width: 560px) {
	.rhi-banner__inner { flex-wrap: wrap; }
	.rhi-banner__text { flex-basis: calc(100% - 52px); }
	.rhi-banner__close { order: 2; }
	.rhi-banner .rhi__can, .rhi-banner .rhi__ios { order: 3; flex-basis: 100%; }
	.rhi-banner .rhi__btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.rhi-banner { transition: none; }
}

.rhi__note { display: block; margin-top: 0.6em; font-size: 0.8rem; opacity: 0.8; }
/* a little breathing room under the button */
.rhi:not(.rhi-banner__inner) .rhi__can, .rhi:not(.rhi-banner__inner) .rhi__ios { margin-bottom: 1.5rem; }
