/*
 * Lit Review - the sidebar button, the wizard and the tracking page.
 *
 * Colours are the site's own Elementor globals, written out literally rather
 * than through var(--e-global-color-*) so the wizard does not break if the kit
 * is regenerated: accent #E36C3B, background #FCFBF9, primary #131414,
 * text #666666.
 */

/* ===========================================
   The sidebar button
   =========================================== */

.ashbar-litreview-cta {
	margin: 0 0 1.5em;
}

/* EVERY BUTTON RULE IN THIS FILE IS WRITTEN THROUGH A PARENT CLASS, and that
   is not style - it is the only way it applies at all. The site's Elementor
   kit carries

       .elementor-kit-25 button { background-color:#E36C3B; border-radius:0 }

   which is a class plus an element, and therefore outranks a plain
   `.my-button` however late it is loaded. That is why the first version of
   this button stayed orange through every cache purge. Two classes beat it
   without reaching for !important.

   `width: auto` and not `width: 100%`. A block button already fills the
   column, and 100% is the column's width PLUS the widget's own side margins -
   which is what pushed it past the sidebar's edge and cut the text off.

   And `white-space: normal`, because a <button> does not wrap its label on its
   own in every browser: this one is deliberately long. */
.ashbar-litreview-cta .ashbar-litreview-cta-button {
	display: block;
	width: auto;
	box-sizing: border-box;
	padding: 0.9em 1.1em 0.9em 2.6em;
	border: 0;
	border-radius: 6px;
	background-color: #6B3FA0;
	background-image: url(https://academagic.co.il/wp-content/uploads/2022/11/magic-wand.svg);
	background-repeat: no-repeat;
	background-size: 22px;
	background-position: 14px 50%;
	color: #fff;
	font-family: inherit;
	font-size: 1.02em;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	white-space: normal;
	word-break: break-word;
	cursor: pointer;
	transition: background-color 0.15s ease-in-out;
}

/* EVERY HOVER RULE HERE REPEATS border-radius, and that is not redundancy.
   The kit carries a second rule for the hovered state,

       .elementor-kit-25 button:hover { border-radius:0 }

   which is a class, an element and a pseudo-class. While the pointer is over
   the button that rule is compared against the BASE rule above - two classes -
   and wins, so the corners went sharp on hover even though nothing here said
   they should. A radius declared inside the hover rule itself settles it. */
.ashbar-litreview-cta .ashbar-litreview-cta-button:hover,
.ashbar-litreview-cta .ashbar-litreview-cta-button:focus {
	border-radius: 6px;
	background-color: #57318A;
	color: #fff;
}


/* ===========================================
   The page layout on this module's own pages
   ===========================================
   The site's own page layouts carry the sidebar inside each page's Elementor
   data; these two pages are plain WordPress pages, so the layout is built
   here. In an RTL flex row the first child sits on the right, which is why
   the aside comes first in the markup.
*/

.lr-layout {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 30px;
	direction: rtl;
}

.lr-aside {
	flex: 0 0 300px;
	max-width: 300px;
}

.lr-main {
	flex: 1 1 auto;
	/* Without this a long table inside a flex item refuses to shrink and
	   pushes the sidebar off the screen. */
	min-width: 0;
}

@media (max-width: 880px) {
	.lr-layout {
		flex-direction: column;
	}

	.lr-aside {
		flex: 1 1 auto;
		max-width: 100%;
		width: 100%;
		order: 2;
	}

	.lr-main {
		order: 1;
		width: 100%;
	}
}


/* ===========================================
   The wizard
   =========================================== */

.lr-wrap {
	direction: rtl;
	text-align: right;
	max-width: 1000px;
	margin: 0 auto;
	color: #131414;
}

.lr-back-link {
	display: inline-block;
	margin: 0 0 1.2em;
	font-size: 0.95em;
	color: #666666;
	text-decoration: none;
}

.lr-back-link:hover {
	color: #E36C3B;
}

.lr-heading {
	margin: 0 0 1em;
	font-size: 1.7em;
	line-height: 1.3;
}

.lr-step {
	display: none;
}

.lr-step.is-active {
	display: block;
}

.lr-step-title {
	margin: 0 0 0.6em;
	font-size: 1.25em;
}

.lr-intro {
	margin: 0 0 1.2em;
	color: #666666;
}

.lr-notice {
	margin: 1em 0;
	padding: 0.8em 1em;
	border-radius: 5px;
	background: #fcf0f1;
	color: #b32d2e;
}

.lr-notice:empty {
	display: none;
	padding: 0;
	margin: 0;
}


/* --- the article table --- */

.lr-tools {
	display: flex;
	gap: 1.2em;
	align-items: center;
	margin: 0.6em 0;
	font-size: 0.95em;
}

/* Small, transparent, no underline. Through .lr-wrap so the kit's orange
   button rule does not win. */
.lr-wrap .lr-tool {
	background: transparent;
	border: 1px solid #D0D1D1;
	border-radius: 5px;
	padding: 0.3em 0.9em;
	color: #54595F;
	font-family: inherit;
	font-size: 0.9em;
	font-weight: 400;
	line-height: 1.5;
	text-decoration: none;
	cursor: pointer;
}

.lr-wrap .lr-tool:hover,
.lr-wrap .lr-tool:focus {
	border-radius: 5px;
	background: transparent;
	border-color: #E36C3B;
	color: #E36C3B;
}

.lr-table-wrap {
	border: 1px solid #D0D1D1;
	border-radius: 6px;
	overflow: hidden;
}

.lr-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.lr-table th {
	background: #F4F4F4;
	padding: 0.7em 0.9em;
	text-align: right;
	font-size: 0.92em;
	color: #54595F;
	border-bottom: 1px solid #D0D1D1;
}

.lr-table th.lr-col-check,
.lr-table td.lr-col-check {
	width: 3.2em;
	text-align: center;
	vertical-align: middle;
}

.lr-table td {
	padding: 0.8em 0.9em;
	border-bottom: 1px solid #e9e9e9;
	vertical-align: top;
}

.lr-table tr:last-child td {
	border-bottom: 0;
}

/* Alternating backgrounds, so the eye keeps its place in a long list. */
.lr-table tbody tr:nth-child(odd) {
	background: #fff;
}

.lr-table tbody tr:nth-child(even) {
	background: #FCFBF9;
}

.lr-table tbody tr.is-picked,
.lr-table tbody tr.is-picked:nth-child(even) {
	background: #fdf0e9;
}

.lr-table tbody tr {
	cursor: pointer;
}

.lr-check {
	width: 1.15em;
	height: 1.15em;
	accent-color: #E36C3B;
	cursor: pointer;
}

.lr-title {
	display: block;
	font-size: 1.08em;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 0.25em;
}

.lr-apa {
	display: block;
	font-size: 0.85em;
	line-height: 1.5;
	color: #666666;
}

.lr-apa[dir="ltr"] {
	direction: ltr;
	text-align: left;
	unicode-bidi: embed;
}

.lr-count {
	margin: 0.9em 0 0;
	font-weight: 600;
}


/* --- scope and style --- */

.lr-field {
	margin: 0 0 1.6em;
}

.lr-label {
	display: block;
	margin-bottom: 0.6em;
	font-weight: 600;
}

.lr-ranges {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(11em, 1fr));
	gap: 0.6em;
}

.lr-range {
	display: block;
	position: relative;
	padding: 0.7em 0.9em;
	border: 1px solid #D0D1D1;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	text-align: center;
}

.lr-range input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.lr-range.is-picked {
	border-color: #E36C3B;
	background: #fdf0e9;
	font-weight: 600;
}

.lr-select {
	min-width: 18em;
	max-width: 100%;
	padding: 0.6em 0.7em;
	border: 1px solid #D0D1D1;
	border-radius: 6px;
	background: #fff;
	font-size: 1em;
}

.lr-price {
	margin: 1.2em 0 0;
	font-size: 1.15em;
}

.lr-price strong {
	color: #E36C3B;
}


/* --- the step buttons --- */

/* "המשך" at the left edge, "חזור" at the right edge, on every screen.
   row-reverse makes flex-start the LEFT in an RTL row, so the first child in
   the markup - the next button - lands there and space-between pushes the back
   button to the far right. */
.lr-nav {
	display: flex;
	flex-direction: row-reverse;
	justify-content: space-between;
	align-items: center;
	gap: 0.8em;
	margin: 2em 0 0;
	padding-top: 1.2em;
	border-top: 1px solid #e9e9e9;
}

/* "חזור" IS PINNED RIGHT ON EVERY SCREEN, the payment step included, where it
   is the only button in the nav. The row is reversed, so a lone item would sit
   at the start of the axis - the left - and the auto margin on its left pushes
   it back to the right edge. */
.lr-nav .lr-prev:only-child {
	margin-right: 0;
	margin-left: auto;
}

.lr-wrap .lr-next {
	padding: 0.8em 2.2em;
	border: 0;
	border-radius: 6px;
	background-color: #D9D9D9;
	color: #8c8f94;
	font-family: inherit;
	font-size: 1.02em;
	font-weight: 700;
	cursor: not-allowed;
	transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.lr-wrap .lr-next.is-ready {
	background-color: #E36C3B;
	color: #fff;
	cursor: pointer;
}

.lr-wrap .lr-next.is-ready:hover,
.lr-wrap .lr-next.is-ready:focus {
	border-radius: 6px;
	background-color: #c75a2d;
	color: #fff;
}

.lr-wrap .lr-prev {
	padding: 0.8em 1.6em;
	border: 1px solid #D0D1D1;
	border-radius: 6px;
	background-color: transparent;
	color: #54595F;
	font-family: inherit;
	font-size: 1.02em;
	font-weight: 400;
	cursor: pointer;
}

.lr-wrap .lr-prev:hover,
.lr-wrap .lr-prev:focus {
	border-radius: 6px;
	background-color: transparent;
	border-color: #666666;
	color: #131414;
}


/* --- details, code, payment --- */

.lr-input {
	width: 100%;
	max-width: 26em;
	padding: 0.65em 0.7em;
	border: 1px solid #D0D1D1;
	border-radius: 6px;
	font-size: 1em;
}

.lr-input.is-bad {
	border-color: #b32d2e;
	background: #fcf0f1;
}

.lr-help {
	display: block;
	margin-top: 0.4em;
	font-size: 0.88em;
	color: #666666;
}

.lr-terms {
	display: flex;
	gap: 0.6em;
	align-items: flex-start;
	margin: 1.2em 0 0;
}

.lr-terms input {
	margin-top: 0.25em;
	width: 1.1em;
	height: 1.1em;
	accent-color: #E36C3B;
}

/* Plain text with an underline, on its own line under the field. */
.lr-wrap .lr-resend {
	display: block;
	margin-top: 0.7em;
	padding: 0;
	border: 0;
	background: transparent;
	color: #666666;
	font-family: inherit;
	font-size: 0.92em;
	font-weight: 400;
	text-align: right;
	text-decoration: underline;
	cursor: pointer;
}

.lr-wrap .lr-resend:hover,
.lr-wrap .lr-resend:focus {
	background: transparent;
	color: #E36C3B;
}

.lr-code {
	letter-spacing: 0.35em;
	text-align: center;
	font-size: 1.3em;
	max-width: 9em;
	direction: ltr;
}

.lr-summary-box {
	margin: 0 0 1.4em;
	padding: 1em 1.2em;
	border: 1px solid #D0D1D1;
	border-radius: 6px;
	background: #FCFBF9;
}

.lr-summary-box div {
	margin: 0.25em 0;
}

/* The gateway buttons are disabled until the ID validates, and the box says
 * so visually as well: a button that looks normal and does nothing reads as a
 * broken site. Both halves are required - payment-conventions.md section 4. */
.lr-paypal-box {
	margin-top: 1.2em;
	transition: opacity 0.15s ease-in-out;
}

/* ONE WIDTH FOR THE WHOLE PAYMENT STEP. The ID field sits directly above the
   gateway buttons and the two are one form; a field wider than the button
   under it reads as two unrelated forms. The gateway buttons take the width of
   their box, so the box and the field are set together, here, once. */
.lr-paypal-box,
.lr-wrap .lr-step[data-step="5"] .lr-input {
	max-width: 24em;
}

.lr-paypal-box.is-locked {
	pointer-events: none;
	opacity: 0.4;
}


/* ===========================================
   The tracking page
   =========================================== */

.lr-track-stages {
	list-style: none;
	margin: 1.5em 0;
	padding: 0;
}

.lr-track-stages li {
	position: relative;
	padding: 0.55em 2em 0.55em 0;
	color: #8c8f94;
}

.lr-track-stages li:before {
	content: "○";
	position: absolute;
	right: 0;
	top: 0.5em;
}

.lr-track-stages li.is-done {
	color: #54595F;
}

.lr-track-stages li.is-done:before {
	content: "✓";
	color: #00a32a;
}

.lr-track-stages li.is-now {
	color: #131414;
	font-weight: 700;
}

/* THE STAGE BEING WORKED ON PULSES. A trail that only sits there reads as a
   stuck page, and the customer is looking at it for minutes.
   A filled dot with a halo that grows out of it and fades, and not a spinner:
   a spinner keeps pulling the eye back, and this is a page someone leaves open.
   The glyph is replaced by a real circle because a text character cannot carry
   a box-shadow of its own shape. */
.lr-track-stages li.is-now:before {
	content: "";
	width: 10px;
	height: 10px;
	top: 0.95em;
	right: 4px;
	border-radius: 50%;
	background: #E36C3B;
	animation: lr-pulse 1.8s ease-in-out infinite;
}

@keyframes lr-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(227, 108, 59, 0.45); }
	50%      { box-shadow: 0 0 0 7px rgba(227, 108, 59, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.lr-track-stages li.is-now:before {
		animation: none;
	}
}

.lr-download {
	display: inline-block;
	margin: 1.2em 0;
	padding: 0.9em 2em;
	border-radius: 6px;
	background: #E36C3B;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.lr-download:hover {
	border-radius: 6px;
	background: #c75a2d;
	color: #fff;
}

.lr-articles-list {
	margin: 1em 0;
	padding: 0 1.2em 0 0;
	font-size: 0.95em;
	color: #666666;
}


/* ===========================================
   The processing overlay
   ===========================================
   Toggled by a class on <body> and never on the overlay itself: body sits at
   the top of the stacking context tree, so nothing a page builder wraps the
   form in can cap it. See payment-systems/processing-overlay.md.
*/

.lr-processing-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2147483600;
	background: rgba(20, 24, 35, 0.78);
	align-items: center;
	justify-content: center;
}

body.lr-processing .lr-processing-overlay {
	display: flex;
}

body.lr-processing {
	overflow: hidden;
}

.lr-processing-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1em;
	padding: 2em 2.5em;
	min-width: 240px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
	color: #131414;
	direction: rtl;
	text-align: center;
}

.lr-processing-circle {
	width: 48px;
	height: 48px;
	border: 4px solid #dcdcde;
	border-top-color: #E36C3B;
	border-radius: 50%;
	animation: lr-spin 0.8s linear infinite;
}

.lr-processing-text {
	margin: 0;
	font-size: 1.05em;
	font-weight: 600;
}

@keyframes lr-spin {
	to { transform: rotate(360deg); }
}


@media (max-width: 640px) {
	.lr-table th.lr-col-check,
	.lr-table td.lr-col-check {
		width: 2.6em;
	}

	.lr-nav {
		flex-direction: column-reverse;
	}

	.lr-next,
	.lr-prev {
		width: 100%;
	}
}
