.olb-language-switcher {
	align-items: center;
	direction: ltr;
	display: inline-flex;
	gap: .5rem;
	font-size: .875rem;
	line-height: 1.4;
}

.olb-language-switcher__current {
	font-weight: 600;
}

.olb-language-switcher__link {
	border-radius: .25rem;
	padding: .2rem .35rem;
	text-decoration: underline;
	text-underline-offset: .15em;
}

.olb-language-switcher__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.olb-language-switcher--footer {
	margin: 1rem;
}

html[dir="ltr"] .olb-language-switcher,
.olb-dir-ltr .olb-language-switcher {
	direction: ltr;
}

.olb-menu-language-switcher a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* One compact, keyboard-accessible language control on every public page. */
html body .olb-floating-language-switcher {
	position: fixed;
	right: max(1rem, env(safe-area-inset-right));
	bottom: max(1rem, env(safe-area-inset-bottom));
	z-index: 9000;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .35rem;
	box-sizing: border-box;
	min-width: 4.25rem;
	min-height: 3.25rem;
	padding: .65rem .8rem;
	border: 1px solid #b8915a;
	border-radius: 999px;
	background: #18241e;
	box-shadow: 0 4px 14px rgba(24, 36, 30, .24);
	color: #fffaf0 !important;
	direction: ltr;
	font: 600 .875rem/1 "Segoe UI", Arial, sans-serif !important;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background-color .15s ease, transform .15s ease;
}

html body .olb-floating-language-switcher:hover {
	background: #30483d;
	transform: translateY(-2px);
}

html body .olb-floating-language-switcher:focus-visible {
	outline: 3px solid #b8915a;
	outline-offset: 3px;
}

.olb-floating-language-switcher__icon {
	width: 1.25rem;
	height: 1.25rem;
	flex: none;
}

@media (prefers-reduced-motion: reduce) {
	html body .olb-floating-language-switcher {
		transition: none;
	}

	html body .olb-floating-language-switcher:hover {
		transform: none;
	}
}

@media print {
	html body .olb-floating-language-switcher {
		display: none;
	}
}
:root {
	--olb-preview-banner-bg: #fff3cd;
}

.olb-preview-banner {
	position: relative;
	z-index: 99999;
	padding: .7rem 1rem;
	background: var(--olb-preview-banner-bg);
	color: #332701;
	font: 600 14px/1.4 sans-serif;
	text-align: center;
}

.olb-preview-banner a {
	margin-inline-start: 1rem;
}

html[dir="ltr"] input,
html[dir="ltr"] textarea,
html[dir="ltr"] select {
	direction: ltr;
	text-align: left;
}

html[dir="ltr"],
html[dir="ltr"] body,
html[dir="ltr"] header,
html[dir="ltr"] main,
html[dir="ltr"] footer,
html[dir="ltr"] section,
html[dir="ltr"] article,
html[dir="ltr"] nav,
html[dir="ltr"] form,
html[dir="ltr"] .desktop-nav,
html[dir="ltr"] .mobile-nav__panel {
	direction: ltr;
}

html[dir="ltr"] .segula-card__quote,
html[dir="ltr"] .segula-card__source,
html[dir="ltr"] .verse-text {
	direction: rtl;
	text-align: right;
	unicode-bidi: isolate;
}

html[dir="ltr"] .form-panel__title,
html[dir="ltr"] .form-panel__note,
html[dir="ltr"] .checkout-checkbox span,
html[dir="ltr"] .card--summary__title,
html[dir="ltr"] .card--summary__price,
html[dir="ltr"] .includes__title,
html[dir="ltr"] .includes__list {
	direction: ltr;
	text-align: left;
}

/* Keep English punctuation and mixed Hebrew examples in the correct visual order. */
html[dir="ltr"] .desktop-nav,
html[dir="ltr"] .mobile-nav__panel,
html[dir="ltr"] .hero__text,
html[dir="ltr"] .content-card__text,
html[dir="ltr"] .process-card__title,
html[dir="ltr"] .process-card__text,
html[dir="ltr"] .choice-card__title,
html[dir="ltr"] .choice-card__text,
html[dir="ltr"] .segula-selection-copy,
html[dir="ltr"] .why-segula-title,
html[dir="ltr"] .why-segula-list,
html[dir="ltr"] .faq-question__text,
html[dir="ltr"] .faq-answer,
html[dir="ltr"] .footer-contact-list,
html[dir="ltr"] .footer-meta,
html[dir="ltr"] .wpcf7-form {
	direction: ltr;
	unicode-bidi: plaintext;
}

html[dir="ltr"] .why-segula-title {
	text-align: left;
	unicode-bidi: isolate;
}

html[dir="ltr"] .why-segula-list,
html[dir="ltr"] .footer-contact-list,
html[dir="ltr"] .wpcf7-form {
	text-align: left;
}

html[dir="ltr"] .faq-question__text,
html[dir="ltr"] .faq-answer {
	text-align: left;
}

html[dir="ltr"] .torah-empty-cart__steps,
html[dir="ltr"] .torah-empty-cart__list {
	direction: ltr;
	text-align: left;
}

@media (max-width: 30rem) {
	html[dir="ltr"] .segmented__opt {
		padding-inline: .4rem;
		font-size: .875rem;
		line-height: 1.25;
	}
}

/*
 * English visual layer.
 * The Hebrew display faces are intentionally not reused for Latin copy: their
 * Latin fallback is heavy and much wider than the design. Keep the production
 * spacing, colours, textures and ornaments, while using restrained Latin type.
 */
html[dir="ltr"] body.olb-lang-en {
	--olb-font-body: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--olb-font-display: Georgia, "Times New Roman", serif;
	direction: ltr !important;
	font-family: var(--olb-font-body) !important;
	font-weight: 400;
	text-align: left;
}

html[dir="ltr"] body.olb-lang-en :where(
	p,
	li,
	a,
	dt,
	dd,
	th,
	td,
	summary,
	button,
	input,
	select,
	textarea,
	label,
	.btn,
	.tab-pill,
	.radio-pill,
	.choice-line,
	.form-panel__title,
	.card--summary__title,
	.card--summary__price,
	.includes__title,
	.segula-card__description,
	.faq-question__text,
	.faq-answer,
	.woocommerce
) {
	font-family: var(--olb-font-body) !important;
}

html[dir="ltr"] body.olb-lang-en :where(
	h1,
	h2,
	h3,
	h4,
	h5,
	h6,
	.hero__title,
	.section-heading,
	.content-card__title,
	.segula-card__title,
	.card--verse__heading
) {
	font-family: var(--olb-font-display) !important;
	font-style: normal;
	font-weight: 500 !important;
	letter-spacing: -.015em;
}

html[dir="ltr"] body.olb-lang-en :where(
	.form-panel__title,
	.card--summary__title,
	.card--summary__price,
	.includes__title
) {
	font-family: var(--olb-font-body) !important;
	font-weight: 650 !important;
	letter-spacing: -.01em;
}

/* Keep the English Segulot page elegant and within the original proportions. */
html[dir="ltr"] body.olb-lang-en.page-segulot .segulot-cards-section .section-heading {
	max-width: 46rem;
	font-size: clamp(2.25rem, 4vw, 3.5rem) !important;
	font-weight: 500 !important;
	line-height: 1.08;
}

/* Let long English names grow without crossing the ornamental lines. */
html[dir="ltr"] body.olb-lang-en.page-segulot .segulot-cards-section .segula-card__header {
	aspect-ratio: auto;
	min-height: 9.625rem;
	padding-block: 3.5rem;
	box-sizing: border-box;
}

html[dir="ltr"] body.olb-lang-en.page-segulot .segulot-cards-section .card-ornament {
	height: 190%;
}

html[dir="ltr"] body.olb-lang-en.page-segulot .segulot-cards-section .segula-card__title {
	font-size: clamp(1.55rem, 1.5rem + .6vw, 2rem) !important;
	font-weight: 500 !important;
	line-height: 1.08;
	overflow-wrap: normal;
	text-wrap: balance;
}

html[dir="ltr"] body.olb-lang-en .card--verse__heading {
	font-size: clamp(1.5rem, 1.15rem + .7vw, 1.875rem) !important;
	line-height: 1.1;
	text-wrap: balance;
}

/* Resolve the ornament height against a definite box on English checkout. */
html[dir="ltr"] body.olb-lang-en .card--verse__visual {
	height: 9.625rem;
	box-sizing: border-box;
}

html[dir="ltr"] body.olb-lang-en .card--verse__ornament {
	height: 9.625rem;
}

html[dir="ltr"] body.olb-lang-en.page-segulot .segulot-cards-section .segula-card__description {
	font-size: clamp(1rem, .94rem + .28vw, 1.2rem) !important;
	font-weight: 400 !important;
	line-height: 1.55;
}

html[dir="ltr"] body.olb-lang-en.page-segulot .segulot-cards-section .segula-card .btn--gold {
	font-size: 1rem !important;
	font-weight: 600 !important;
}

/* English interface direction, including high-specificity checkout theme rules. */
html[dir="ltr"] body.olb-lang-en :where(
	.site,
	.site-main,
	.selection-page,
	.selection-main,
	.selection-layout,
	.selection-form,
	.selection-form-column,
	.selection-sidebar,
	.woocommerce,
	.woocommerce-checkout,
	.woocommerce-billing-fields,
	.woocommerce-billing-fields__field-wrapper,
	.form-panel,
	.wording-choice-group,
	.wording-grid,
	.ship-grid,
	.radio-row,
	.wc_payment_methods,
	.woocommerce-checkout-review-order
) {
	direction: ltr !important;
}

html[dir="ltr"] body.olb-lang-en :where(
	.form-panel__title,
	.form-panel__note,
	.field__label,
	.woocommerce form .form-row label,
	.woocommerce-checkout .form-row label,
	.choice-line__text,
	.radio-pill,
	.checkout-checkbox span,
	.checkbox-line,
	.payment_box,
	.woocommerce-error,
	.woocommerce-info,
	.woocommerce-message,
	.ot-order-overview__label,
	.ot-order-overview__value,
	.torah-certificate-thankyou-title,
	.torah-certificate-thankyou-message
) {
	direction: ltr !important;
	text-align: left !important;
	unicode-bidi: plaintext;
}

html[dir="ltr"] body.olb-lang-en :where(
	input:not([type="radio"]):not([type="checkbox"]),
	textarea,
	select,
	.input,
	.input-text
) {
	direction: ltr !important;
	text-align: left !important;
	unicode-bidi: plaintext;
}

html[dir="ltr"] body.olb-lang-en :where(
	.choice-line,
	.radio-pill,
	.checkbox-line,
	.checkout-checkbox,
	.woocommerce-checkout #payment .wc_payment_methods li.wc_payment_method > label,
	.includes__list li
) {
	direction: ltr !important;
	flex-direction: row !important;
	justify-content: flex-start;
	text-align: left !important;
}

html[dir="ltr"] body.olb-lang-en .select-wrap__chevron {
	left: auto;
	right: 1rem;
}

html[dir="ltr"] body.olb-lang-en .input--select,
html[dir="ltr"] body.olb-lang-en select.input {
	padding-inline: 1.0625rem 2.5rem;
}

/* These are sacred Hebrew source fields, not untranslated interface copy. */
html[dir="ltr"] body.olb-lang-en :where(
	[lang="he"],
	.segula-card__quote,
	.segula-card__source,
	.verse-text,
	.card--verse__text
) {
	direction: rtl !important;
	font-family: "Almoni ML v5 AAA", Arial, sans-serif !important;
	text-align: center !important;
	unicode-bidi: isolate;
}

html[dir="ltr"] body.olb-lang-en .card--verse__ref {
	direction: ltr !important;
	font-family: var(--olb-font-body) !important;
	text-align: center !important;
}

@media (max-width: 48rem) {
	html[dir="ltr"] body.olb-lang-en.page-segulot .segulot-cards-section .section-heading {
		font-size: clamp(2rem, 9vw, 2.75rem) !important;
	}

	html[dir="ltr"] body.olb-lang-en.page-segulot .segulot-cards-section .segula-card__title {
		font-size: clamp(1.55rem, 7vw, 2rem) !important;
	}
}

/* English homepage: mirror story panels without touching Hebrew. */
html[dir="ltr"] body.olb-lang-en.page-home .about-card,
html[dir="ltr"] body.olb-lang-en.page-home .segula-selection-content,
html[dir="ltr"] body.olb-lang-en.page-home .segula-selection-copy,
html[dir="ltr"] body.olb-lang-en.page-home .why-segula-content,
html[dir="ltr"] body.olb-lang-en.page-home .why-segula-list,
html[dir="ltr"] body.olb-lang-en.page-home .why-segula-list-item {
	direction: ltr;
}

html[dir="ltr"] body.olb-lang-en.page-home .segula-selection-copy p br {
	display: none;
}

@media (min-width: 901px) {
	html[dir="ltr"] body.olb-lang-en.page-home .section-about .split-panel {
		grid-template-areas: "card image";
	}

	html[dir="ltr"] body.olb-lang-en.page-home .about-card .content-card__title,
	html[dir="ltr"] body.olb-lang-en.page-home .about-card .content-card__text {
		text-align: left;
	}

	html[dir="ltr"] body.olb-lang-en.page-home .why-segula-section {
		grid-template-areas: "copy image";
		grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
	}

	html[dir="ltr"] body.olb-lang-en.page-home .why-segula-image-frame {
		margin: 0;
	}

	html[dir="ltr"] body.olb-lang-en.page-home .why-segula-content {
		align-items: flex-start;
		text-align: left;
	}

	html[dir="ltr"] body.olb-lang-en.page-home .why-segula-title,
	html[dir="ltr"] body.olb-lang-en.page-home .why-segula-list-item {
		text-align: left;
	}

	html[dir="ltr"] body.olb-lang-en.page-home .why-segula-list {
		align-self: flex-start;
	}
}

@media (min-width: 1101px) {
	html[dir="ltr"] body.olb-lang-en.page-home .segula-selection-section {
		grid-template-areas: "content gallery";
		grid-template-columns: minmax(0, 1fr) minmax(0, 642px);
	}

	html[dir="ltr"] body.olb-lang-en.page-home .segula-selection-content,
	html[dir="ltr"] body.olb-lang-en.page-home .segula-selection-copy {
		align-items: flex-start;
	}

	html[dir="ltr"] body.olb-lang-en.page-home .segula-selection-content .section-heading,
	html[dir="ltr"] body.olb-lang-en.page-home .segula-selection-content p {
		text-align: left;
	}

	html[dir="ltr"] body.olb-lang-en.page-home .segula-selection-content .cta-button {
		align-self: flex-start;
		margin-left: 0;
		margin-right: auto;
	}
}

@media (max-width: 900px) {
	html[dir="ltr"] body.olb-lang-en.page-home .segula-selection-copy {
		align-items: flex-start;
		text-align: left;
	}

	html[dir="ltr"] body.olb-lang-en.page-home .segula-selection-content .section-heading,
	html[dir="ltr"] body.olb-lang-en.page-home .segula-selection-content p {
		text-align: left;
	}
}
