/* The client asked for large text everywhere. */
:root {
	--byoh-purple: #4a1d75;
	--byoh-purple-dark: #1f0d33;
	--byoh-tint: #f5effa;
	--byoh-text: #2a1b3d;
	--byoh-gold: #e8b84a;
}

/* Modules are not blog posts: no author, date or previous/next post links. */
.single-byoh_module .entry-meta,
.single-byoh_module .post-navigation {
	display: none;
}

.byoh {
	color: var(--byoh-text);
	font-size: 20px;
	line-height: 1.6;
}

.byoh-label {
	margin: 0 0 4px;
	color: var(--byoh-purple);
	font-size: 20px;
	font-weight: 700;
}

.byoh-subtitle {
	margin: 0 0 16px;
	font-size: 24px;
	font-weight: 600;
}

.byoh-description {
	margin-bottom: 28px;
}

.byoh-back {
	margin-top: 32px;
}

.byoh-small {
	margin-top: 16px;
	font-size: 18px;
}

.byoh-button,
.entry-content a.byoh-button,
.byoh-button:visited {
	display: inline-block;
	padding: 16px 30px;
	border: 2px solid var(--byoh-purple);
	border-radius: 999px;
	background: var(--byoh-purple);
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.byoh-button:hover,
.byoh-button:focus,
.entry-content a.byoh-button:hover {
	border-color: var(--byoh-purple-dark);
	background: var(--byoh-purple-dark);
	color: #fff;
}

.byoh-button-alt,
.entry-content a.byoh-button-alt,
.byoh-button-alt:visited {
	background: #fff;
	color: var(--byoh-purple);
}

.byoh-button[disabled] {
	border-color: #c9c2cf;
	background: #eee;
	color: #6f6876;
	cursor: not-allowed;
}

.byoh-gate {
	margin: 24px 0;
	padding: 32px 24px;
	border-radius: 12px;
	background: var(--byoh-tint);
	text-align: center;
}

.byoh-gate h2 {
	margin: 0 0 12px;
	color: #7030a0;
	font-size: 30px;
}

.byoh-gate p:last-child {
	margin-bottom: 0;
}

/* Slide viewer */
.byoh-viewer:focus {
	outline: none;
}

.single-byoh_module .site-content > .ast-container {
	max-width: 1300px;
}

.single-byoh_module.ast-separate-container .ast-article-single {
	padding: 40px;
}

/* A comfortable size with room around it. The Full Screen button is for going bigger. */
.byoh-viewer {
	width: min(100%, max(560px, calc((100vh - 240px) * 16 / 9)));
	margin-inline: auto;
}

/* Full screen. Also used on its own where browsers refuse real full screen, as on iPhones. */
.byoh-lock,
.byoh-lock body {
	overflow: hidden;
}

.byoh-viewer.byoh-is-full {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	margin: 0;
	background: #000;
}

.byoh-is-full .byoh-stage {
	flex: 1 1 auto;
	min-height: 0;
	aspect-ratio: auto;
	border-radius: 0;
	background: #000;
}

.byoh-is-full .byoh-controls {
	flex: none;
	margin: 0;
	padding: 10px 20px;
	background: var(--byoh-purple-dark);
}

.byoh-is-full .byoh-count {
	color: #fff;
}

.byoh-is-full .byoh-controls .byoh-button {
	padding: 10px 24px;
	font-size: 18px;
}

.byoh-is-full .byoh-next:not([disabled]) {
	border-color: var(--byoh-gold);
	background: var(--byoh-gold);
	color: var(--byoh-purple-dark);
}

.byoh-is-full .byoh-finish {
	flex: none;
	margin: 0;
	padding: 12px 20px;
	border-radius: 0;
}

.byoh-is-full .byoh-finish p {
	margin: 0 0 8px;
}

.byoh-is-full .byoh-finish .byoh-button {
	padding: 10px 24px;
	font-size: 18px;
}

/* A fixed shape stops the page jumping while the next slide loads. */
.byoh-stage {
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	background: #111;
	overflow: hidden;
}

.byoh-slide {
	margin: 0;
}

.byoh-slide[hidden] {
	display: none;
}

.byoh-slide,
.byoh-slide img,
.byoh-slide video {
	display: block;
	width: 100%;
	height: 100%;
}

.byoh-slide img,
.byoh-slide video {
	object-fit: contain;
}

.byoh-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 16px;
}

.byoh-count {
	margin-left: auto;
	font-size: 20px;
	font-weight: 600;
}

/* Sits beside the slide count, in the middle of the row. */
.byoh-button.byoh-full {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-right: auto;
	padding: 10px 20px;
	font-size: 18px;
}

.byoh-finish {
	margin-top: 24px;
	padding: 24px;
	border-radius: 12px;
	background: var(--byoh-tint);
	text-align: center;
}

.byoh-finish[hidden] {
	display: none;
}

/* Module blocks */
.byoh-modules {
	width: 100%;
}

.byoh-section-title {
	margin: 48px 0 24px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(74, 29, 117, 0.2);
	color: var(--byoh-purple);
	font-size: 38px;
	line-height: 1.15;
}

.byoh-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 28px;
}

.byoh-card {
	position: relative;
	display: block;
	aspect-ratio: 1;
	border-radius: 14px;
	background: #1f0d33;
	box-shadow: 0 10px 28px rgba(42, 17, 69, 0.2);
	overflow: hidden;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.byoh-card:hover,
a.byoh-card:focus {
	box-shadow: 0 16px 36px rgba(42, 17, 69, 0.32);
	transform: translateY(-4px);
}

.byoh-card-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.byoh-card-soon .byoh-card-image {
	filter: saturate(0.45);
	opacity: 0.6;
}

/* The title sits below the flower, on a soft band, so the whole lotus shows. */
.byoh-card-text {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	display: block;
	padding: 12px 16px 14px;
	border-top: 1px solid rgba(232, 184, 74, 0.7);
	background: rgba(31, 13, 51, 0.78);
	color: #fff;
	text-align: center;
}

.byoh-card-label {
	display: block;
	color: var(--byoh-gold);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.byoh-card-title {
	display: block;
	font-family: "Cormorant Garamond", serif;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.12;
}

.byoh-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 6px 14px;
	border-radius: 999px;
	background: #fff;
	color: var(--byoh-purple);
	font-size: 16px;
	font-weight: 800;
}

.byoh-badge-open,
.byoh-badge-login {
	background: var(--byoh-gold);
	color: #1f0d33;
}

.byoh-badge-soon {
	background: #eadff3;
}

/* Header navigation */
.elementor-location-header .elementor-nav-menu--main .elementor-item,
.elementor-location-header .elementor-nav-menu--dropdown .elementor-item {
	padding: 10px 16px;
	color: #2a1b3d !important;
	font-family: "Nunito Sans", sans-serif !important;
	font-size: 20px !important;
	font-weight: 700 !important;
}

.elementor-location-header .elementor-nav-menu--main .elementor-item:hover,
.elementor-location-header .elementor-nav-menu--main .elementor-item.elementor-item-active {
	color: #4a1d75 !important;
}

.elementor-location-header .elementor-nav-menu--main .elementor-item::after {
	background-color: #e8b84a !important;
	height: 3px !important;
}

.elementor-location-header aside a {
	color: #e8b84a;
	font-weight: 800;
	text-decoration: underline;
}

.elementor-location-header .elementor-menu-toggle {
	background: transparent !important;
	color: #4a1d75 !important;
	font-size: 30px;
}

/* The phone menu floats over the page instead of pushing the header open. */
.elementor-location-header .elementor-widget-nav-menu {
	position: relative;
	width: auto;
}

.elementor-location-header .elementor-nav-menu--dropdown.elementor-nav-menu__container {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 999;
	width: 230px;
	border-radius: 14px;
	background: #fff !important;
	box-shadow: 0 16px 36px rgba(42, 17, 69, 0.24);
	overflow: hidden;
}

.elementor-location-header .elementor-nav-menu--dropdown .elementor-item:hover,
.elementor-location-header .elementor-nav-menu--dropdown .elementor-item:focus,
.elementor-location-header .elementor-nav-menu--dropdown .elementor-item.elementor-item-active {
	background: #f5effa !important;
	color: #4a1d75 !important;
}

/* Cormorant defaults to old-style figures, where 11 reads like the Roman II. */
body {
	font-variant-numeric: lining-nums;
}

.woocommerce a.button,
.woocommerce button.button {
	border-radius: 999px;
}

.byoh-continue {
	margin-bottom: 8px;
}

/* Bigger text on the WooCommerce account, cart and checkout screens. */
.woocommerce-account .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-cart .woocommerce,
.woocommerce-account .woocommerce input,
.woocommerce-checkout .woocommerce input,
.woocommerce-checkout .woocommerce select {
	font-size: 19px;
}

.woocommerce-account .woocommerce button.button,
.woocommerce-checkout .woocommerce button.button {
	padding: 14px 26px;
	font-size: 20px;
}

/* Inner pages */
.entry-title {
	color: #7030a0;
	font-size: 56px;
	font-weight: 700;
	line-height: 1.08;
}

.single-byoh_module .ast-article-single {
	border-radius: 20px;
	background: #fff;
}

.byoh-gate {
	border: 1px solid #eadff3;
}

.byoh-gate h2 {
	font-size: 40px;
	font-weight: 700;
	line-height: 1.1;
}

.byoh-subtitle {
	font-family: "Cormorant Garamond", serif;
	font-size: 32px;
	font-weight: 600;
	line-height: 1.2;
}

@media (max-width: 600px) {
	.entry-title {
		font-size: 40px;
	}

	.single-byoh_module .site-content > .ast-container {
		padding-left: 8px;
		padding-right: 8px;
	}

	.single-byoh_module.ast-separate-container .ast-article-single {
		padding: 20px 12px;
	}

	.byoh-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}

	.byoh-section-title {
		font-size: 32px;
	}

	.byoh-card-text {
		padding: 6px 6px 8px;
	}

	.byoh-card-label {
		font-size: 13px;
	}

	.byoh-card-title {
		font-size: 19px;
		line-height: 1.08;
	}

	.byoh-badge {
		top: 6px;
		right: 6px;
		padding: 3px 9px;
		font-size: 14px;
	}

	.byoh-controls .byoh-button {
		flex: 1 1 40%;
		padding: 14px 12px;
	}

	.byoh-count {
		order: -1;
		flex-basis: 100%;
		margin-left: 0;
		text-align: center;
	}

	.byoh-controls .byoh-button.byoh-full {
		order: 1;
		flex-basis: 100%;
		justify-content: center;
		margin-right: 0;
		padding: 10px 12px;
	}

	.byoh-is-full .byoh-controls {
		gap: 8px;
		padding: 8px 12px;
	}

	.byoh-button {
		display: block;
	}
}

/* Homepage photo. The whole photo shows on computers, with the title in the sky and clear water.
   The Bitmoji positions come from where the first stone sits in the photo. */
section.elementor-element-3fdfd7a3.elementor-element-3fdfd7a3 {
	position: relative;
	align-items: flex-start;
	min-height: 0;
	aspect-ratio: 2560 / 960;
	padding: clamp(20px, 3vw, 56px) 24px 0;
	overflow: hidden;
}

.elementor-element-3fdfd7a3 h1 {
	font-size: min(100px, 6.2vw) !important;
}

.elementor-element-3fdfd7a3 .elementor-element-2a9f6af8 p {
	font-size: min(54px, 3.4vw) !important;
}

.elementor-element-3fdfd7a3 h2 {
	margin-bottom: 0 !important;
	font-size: min(56px, 3.6vw) !important;
}

.byoh-hero-bitmoji,
[data-id="b17e0d11"] {
	position: absolute !important;
	bottom: 24.8%;
	left: 10.9%;
	width: 17%;
	margin: 0;
	transform: translateX(-50%);
}

[data-id="b17e0d11"] img,
img[data-id="b17e0d11"] {
	display: block;
	height: auto;
}

[data-id="b17e0d11"] img {
	width: 100%;
}

@media (max-width: 1024px) {
	section.elementor-element-3fdfd7a3.elementor-element-3fdfd7a3 {
		height: 460px;
		aspect-ratio: auto;
		padding-top: 28px;
		background-position: left top !important;
	}

	.elementor-element-3fdfd7a3 h1 {
		font-size: 56px !important;
	}

	.elementor-element-3fdfd7a3 .elementor-element-2a9f6af8 p {
		font-size: 38px !important;
	}

	.elementor-element-3fdfd7a3 h2 {
		font-size: 38px !important;
	}

	[data-id="b17e0d11"] {
		bottom: 116px;
		left: 134px;
		width: 180px;
	}
}

@media (max-width: 767px) {
	section.elementor-element-3fdfd7a3.elementor-element-3fdfd7a3 {
		height: 560px;
		padding: 24px 16px 0;
	}

	.elementor-element-3fdfd7a3 h1 {
		font-size: 54px !important;
	}

	.elementor-element-3fdfd7a3 h2 {
		font-size: 36px !important;
	}

	[data-id="b17e0d11"] {
		bottom: 144px;
		left: 163px;
		width: 170px;
	}
}

/* Keeps the site name on one line in the header. */
[data-id="5f8fda5b"],
[data-id="44a56a14"] {
	white-space: nowrap;
}

/* Narrow tablets: the header has no room for this button, and Start Free is elsewhere on the page. */
@media (min-width: 768px) and (max-width: 900px) {
	[data-id="302243ca"] {
		display: none !important;
	}

	[data-id="5f8fda5b"] {
		font-size: 24px !important;
	}

	[data-id="44a56a14"] {
		font-size: 20px !important;
	}
}

/* The gold quote sits in a half-width column: smaller on tablets so lines hold more words. */
@media (max-width: 1024px) {
	[data-id="21ccf6cf"] {
		font-size: 38px !important;
	}
}

@media (max-width: 767px) {
	[data-id="21ccf6cf"] {
		font-size: 34px !important;
	}
}

/* Quote and lotus section: the gold quote is sized to sit on two lines on computers. */
@media (min-width: 1025px) {
	[data-id="21ccf6cf"] {
		font-size: min(46px, 2.75vw) !important;
	}
}

/* Crystal's angel Bitmoji flies over the water, below the flower. */
[data-id="3b92dd2c"] {
	position: relative;
	overflow: hidden;
}

[data-id="a9e1c0d7"] {
	position: absolute !important;
	bottom: 4%;
	left: 5%;
	width: 40%;
	max-width: 340px;
	margin: 0;
}

img[data-id="a9e1c0d7"],
[data-id="a9e1c0d7"] img {
	display: block;
	height: auto;
}

@media (max-width: 767px) {
	[data-id="a9e1c0d7"] {
		width: 46%;
	}
}

/* Tablets: the text sits above the lotus, so the photo is not squeezed into a tall strip. */
@media (max-width: 1024px) {
	section[data-id="6ea71f72"] {
		flex-direction: column !important;
	}

	[data-id="3b92dd2c"] {
		min-height: 460px !important;
	}

	[data-id="21ccf6cf"] {
		font-size: 44px !important;
	}
}

@media (max-width: 767px) {
	[data-id="21ccf6cf"] {
		font-size: 34px !important;
	}

	[data-id="3b92dd2c"] {
		min-height: 360px !important;
	}
}

/* Keeps the angel from growing over the flower when the lotus spans the full width. */
[data-id="a9e1c0d7"] {
	width: min(40%, 280px) !important;
	max-width: none !important;
}

@media (max-width: 767px) {
	[data-id="a9e1c0d7"] {
		width: min(46%, 200px) !important;
	}
}

/* Quote and lotus section, shorter: less padding, a smaller flower with less water, angel centred under it. */
[data-id="3c9f531a"] {
	padding-top: 48px !important;
	padding-bottom: 48px !important;
}

[data-id="3b92dd2c"] {
	min-height: 480px !important;
	background-color: #000 !important;
	background-size: auto 125% !important;
	background-position: center 20% !important;
	background-repeat: no-repeat !important;
}

/* Soft black edges so the narrower photo blends into the column. */
[data-id="3b92dd2c"]::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop offset='0' stop-color='%23000'/%3E%3Cstop offset='.12' stop-color='%23000' stop-opacity='0'/%3E%3Cstop offset='.88' stop-color='%23000' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23000'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23g)'/%3E%3C/svg%3E") no-repeat;
	background-size: inherit;
	background-position: inherit;
	pointer-events: none;
	z-index: 1;
}

[data-id="a9e1c0d7"] {
	left: 50% !important;
	bottom: 3% !important;
	transform: translateX(-50%);
	width: min(30%, 190px) !important;
	z-index: 2;
}

@media (max-width: 1024px) {
	[data-id="3c9f531a"] {
		padding-top: 40px !important;
		padding-bottom: 40px !important;
	}

	[data-id="3b92dd2c"] {
		min-height: 380px !important;
		background-size: auto 140% !important;
		background-position: center 15% !important;
	}

	[data-id="a9e1c0d7"] {
		width: min(30%, 170px) !important;
	}
}

@media (max-width: 767px) {
	[data-id="3b92dd2c"] {
		min-height: 300px !important;
	}

	[data-id="a9e1c0d7"] {
		width: min(36%, 130px) !important;
	}
}

/* Homepage modules block: "The Main Program", the Start Free button and "Click a lotus flower
   to begin." on one line, then the cards. Only this column, not the Modules page. */
[data-id="27aed0f9"] {
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	column-gap: 24px !important;
	row-gap: 0 !important;
}

[data-id="27aed0f9"] > .byoh-modules {
	display: contents;
}

[data-id="27aed0f9"] > .byoh-modules > * {
	order: 10;
	flex: 0 0 100%;
}

[data-id="27aed0f9"] > .byoh-modules > .byoh-section-title:first-child {
	order: 1;
	flex: 0 0 auto;
	margin: 0 !important;
	padding-bottom: 0 !important;
	border-bottom: 0 !important;
}

[data-id="27aed0f9"] > [data-id="2f401aed"] {
	order: 2;
	flex: 0 0 auto;
}

[data-id="27aed0f9"] > [data-id="46a895f6"] {
	order: 3;
	flex: 0 1 auto;
	margin: 0 !important;
}

[data-id="27aed0f9"] > .byoh-modules > .byoh-section-title:first-child + .byoh-grid {
	margin-top: 24px;
}

@media (max-width: 767px) {
	[data-id="27aed0f9"] {
		justify-content: center !important;
		row-gap: 12px !important;
	}

	[data-id="27aed0f9"] > .byoh-modules > .byoh-section-title:first-child {
		flex-basis: 100%;
		text-align: center;
	}
}

/* Picture section: "BUT NONE of that needs to matter!..." across the top on one line. */
[data-id="33f7fc23"] {
	width: 100%;
	text-align: center !important;
	margin: 0 !important;
}

@media (min-width: 768px) {
	[data-id="33f7fc23"] {
		font-size: min(58px, 3.6vw) !important;
		line-height: 1.15 !important;
		white-space: nowrap;
	}
}

@media (max-width: 767px) {
	[data-id="33f7fc23"] {
		font-size: 32px !important;
		line-height: 1.2 !important;
	}
}
