@font-face {
  font-family: "NotoSansHebrew-Light";
  src: url("./../fonts/NotoSansHebrew-Light.ttf") format("truetype");
  font-weight: 300;
}
@font-face {
  font-family: "NotoSansHebrew-Regular";
  src: url("./../fonts/NotoSansHebrew-Regular.ttf") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: "NotoSansHebrew-Medium";
  src: url("./../fonts/NotoSansHebrew-Medium.ttf") format("truetype");
  font-weight: 500;
}
@font-face {
  font-family: "NotoSansHebrew-SemiBold";
  src: url("./../fonts/NotoSansHebrew-SemiBold.ttf") format("truetype");
  font-weight: 600;
}
@font-face {
  font-family: "NotoSansHebrew-Bold";
  src: url("./../fonts/NotoSansHebrew-Bold.ttf") format("truetype");
  font-weight: 700;
}

:root {
  --blue: #0c75ad;
  --blue-l: #005fa6;
  --orange: #f38627;
  --green: #38ab4c;
  --black: #181818;
  --gray: #838383;
  --red: #ff3019;
  --bg: #f0f0f0;
  --border: #c3cad9;
  --shadow-card: 0px 0px 30px 0px #0e82b440;
  --shadow-input: 0px 0px 30px 0px #2c2c2c26;
  --loader: rgba(165, 165, 165, 0.2);
  --loader-bg: #777;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "NotoSansHebrew-Regular", Arial, sans-serif;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  background-color: var(--bg);
  color: var(--black);
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  cursor: pointer;
}

button {
  border: none;
  background: none;
  color: inherit;
}

input::placeholder {
  font-family: Arial, sans-serif !important;
  color: #c4c4c4;
}

.mark {
  color: #ff0000;
}

/* Header */

.lp-header {
  background: linear-gradient(123.94deg, #12a5c4 5.45%, #095ca1 97.21%);
  box-shadow: 0px 4px 30px 0px #0e82b499;
  border-radius: 0 0 28px 28px;
  padding: 20px 30px;
  min-height: 120px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 90;
}

.lp-header_inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-header_logo {
  height: 52px;
  width: auto;
}

/* Layout */

.lp-main {
  max-width: 480px;
  margin: 0 auto;
  padding: 25px 16px 40px;
}

.lp-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.lp-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 30px 18px 28px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
  max-width: 100%;
}

.lp-card_title {
  font-family: "NotoSansHebrew-Medium";
  font-size: 26px;
  color: var(--blue);
  text-align: center;
}

.lp-card_subtitle {
  font-family: "NotoSansHebrew-Medium";
  font-size: 18px;
  color: var(--orange);
  text-align: center;
  margin-bottom: 10px;
}

.lp-card_note {
  font-family: "NotoSansHebrew-Regular", "NotoSansHebrew-Medium", sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: #6b7280;
  text-align: center;
  margin: -6px 0 4px;
}

.lp-loader {
  display: flex;
  justify-content: center;
  padding: 80px 0;
}

.lp-spinner,
.ssp-loader,
[data-mode="loading"]::before {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 150%;
  border: 5px solid var(--loader-bg);
  border-right-color: var(--loader);
  border-bottom-color: var(--loader);
  border-left-color: var(--loader);
  animation: lp-spin 1s linear infinite;
}

@keyframes lp-spin {
  to {
    transform: rotate(360deg);
  }
}

.lp-message {
  align-items: center;
  text-align: center;
}

.lp-message img {
  width: 70px;
}

.lp-message_text {
  font-family: "NotoSansHebrew-SemiBold";
  font-size: 20px;
  color: var(--blue-l);
}

/* Book card */

.lp-book {
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.lp-book_image {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
}

.lp-book_title {
  font-family: "NotoSansHebrew-SemiBold";
  font-weight: normal;
  font-size: 20px;
  line-height: 1.6;
  color: var(--blue-l);
  background-color: #ededed;
  padding: 20px;
}

.lp-book_body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.lp-book_description {
  font-family: "NotoSansHebrew-Light";
  font-size: 15px;
  white-space: pre-line;
}

.lp-book_description:empty {
  display: none;
}

.lp-book hr {
  border: none;
  height: 1px;
  background-color: var(--green);
  margin: 0 20px;
}

.lp-book_price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.lp-book_price-value {
  font-family: "NotoSansHebrew-SemiBold";
  font-size: 22px;
  color: #000;
}

.lp-forms {
  display: grid;
  min-width: 0;
  max-width: 100%;
}

.lp-forms > .lp-card {
  grid-area: 1 / 1;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

.lp-forms > .lp-card.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  z-index: 1;
  pointer-events: auto;
}

.lp-forms > .lp-card:not(.is-active) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  z-index: 0;
  pointer-events: none;
}

/* Forms */

.lp-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 5px;
}

.lp-field label {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: "NotoSansHebrew-Light";
  font-size: 16px;
}

.lp-field label img {
  width: 18px;
  height: 18px;
}

.lp-field input,
.country-code-select-custom {
  width: 100%;
  min-height: 52px;
  padding: 7px 16px;
  font-size: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-input);
  background-color: #fff;
  outline: none;
  transition: border-color 0.2s ease;
}

.lp-field input:focus {
  border-color: var(--blue-l);
}

.lp-field[data-state="error"] input,
.lp-field[data-state="error"] .country-code-select-custom {
  border-color: var(--red);
}

[dir="rtl"] input[dir="ltr"] {
  text-align: right;
}

.lp-error {
  display: none;
  font-family: "NotoSansHebrew-Light";
  font-size: 14px;
  color: var(--red);
}

.lp-field[data-state="error"] .lp-error,
.lp-error[data-state="active"] {
  display: block;
}

.lp-phone {
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}

.lp-phone input {
  min-width: 0;
  flex: 1 1 0;
  width: auto;
}

.country-code-select-wrapper {
  position: relative;
  width: 115px;
  flex-shrink: 0;
}

.country-code-select-custom {
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 40px;
  padding-right: 28px;
  cursor: pointer;
  user-select: none;
}

.country-code-flag {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
}

.country-code-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-code-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  pointer-events: none;
}

.country-code-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  max-width: calc(100vw - 48px);
  max-height: 300px;
  overflow-y: auto;
  margin-top: 5px;
  background: #fff;
  border: 2px solid #000;
  border-radius: 10px;
  box-shadow: 0px 4px 30px 0px #005fa63b;
  z-index: 1000;
}

.lp-field input.lp-code-input {
  letter-spacing: 0.5em;
  text-align: center !important;
  font-family: "NotoSansHebrew-SemiBold";
  padding-inline-end: calc(16px - 0.5em);
}

.lp-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 47px;
  padding: 5px 15px;
  margin-top: 10px;
  border: 1px solid var(--orange);
  border-radius: 50px;
  background-color: var(--orange);
  box-shadow: var(--shadow-card);
  color: #fff;
  font-family: "NotoSansHebrew-Medium";
  font-size: 18px;
  line-height: 1.38;
  text-align: center;
  transition: all 0.3s ease;
}

.lp-button:hover {
  filter: brightness(1.05);
}

#purchase_button,
#send_code_button {
  margin-top: 28px;
}

#purchase_form {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

#purchase_form .lp-field,
#purchase_form .lp-phone {
  min-width: 0;
  max-width: 100%;
}

#purchase_button {
  font-size: 16px;
  max-width: 100%;
  min-width: 0;
  flex-wrap: wrap;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

html[lang="he"] #purchase_button {
  white-space: nowrap;
}

[data-mode="loading"] {
  pointer-events: none;
  color: transparent !important;
}

[data-mode="loading"]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border-width: 3px;
  mix-blend-mode: multiply;
  animation-name: lp-spin-centered;
}

@keyframes lp-spin-centered {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.lp-switch {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 15px;
  font-family: "NotoSansHebrew-Light";
  font-size: 15px;
  margin-top: 5px;
}

.lp-link {
  color: var(--blue-l);
  font-family: "NotoSansHebrew-SemiBold";
  font-size: 15px;
  text-decoration: underline;
}

/* Popups */

.lp-overlay {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lp-popup {
  width: 100%;
  max-width: 400px;
  min-height: 270px;
  padding: 40px 24px 30px;
  border-radius: 15px;
  background-color: var(--bg);
  box-shadow: 0px 0px 30px 0px #2c2c2c26;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: center;
  animation: lp-popup-in 0.3s ease;
}

@keyframes lp-popup-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
}

.lp-popup img {
  width: 70px;
}

.lp-popup_title {
  font-family: "NotoSansHebrew-SemiBold";
  font-size: 24px;
  color: var(--blue-l);
}

.lp-popup_text {
  font-family: "NotoSansHebrew-Medium";
  font-size: 16px;
  line-height: 1.5;
  color: var(--orange);
}

.lp-popup_text a {
  color: var(--blue-l);
  text-decoration: underline;
  word-break: break-word;
}

/* Book reader */

section[data-name="page_21"]:not([data-state="active"]) {
  display: none;
}

html[data-active-page="page_21"] .lp-main {
  display: none;
}

html[data-active-page="page_21"] .lp-header {
  min-height: 40px;
  height: 40px;
  padding: 0 20px;
  border-radius: 0 0 18px 18px;
}

html[data-device="desktop"][data-active-page="page_21"] .lp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

html[data-active-page="page_21"] .lp-header_logo {
  height: 26px;
}

html:not([data-device="desktop"]) .book-reader-page {
  padding-top: 10px !important;
}

@media (min-width: 760px) {
  .lp-main {
    padding-top: 40px;
  }
}
