/* .title {
  color: var(--white);
  font-size: 30px;

  font-family: "SF Pro", sans-serif;
  font-weight: 1000;
  font-stretch: 150%;
} */

.loyalty-card {
  min-height: 370px;
  height: 40svh;
  width: 100%;
  perspective: 1000px;
}

.loyalty-card-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.top-loyalty-card {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: var(--padding-small);
  width: 100%;
  height: 70%;
}

.text-loyalty {
  padding: 12px;
  position: absolute;
  color: var(--dark-blue);
  z-index: 11;
  text-align: center;
}

.loyalty-swipe-bottom__background {
  padding: var(--padding-extra-small);
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: end;
}

.loyalty-swipe-bottom {
  position: relative;
  background-color: var(--dark-blue);
  color: var(--white);
  font-size: 10px;
  display: none;
  align-items: center;
  text-align: center;
  justify-content: center;
  width: 100%;
  height: calc(100% - calc(var(--padding-base) / 2));
  z-index: 11;
}

.loyalty-swipe-bottom#bookSwipeBottom {
  display: flex;
}

.loyalty-bottom-form {
  /* padding: var(--padding-extra-small); */
  padding: 0 var(--padding-base);
  position: absolute;
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
}

.loyalty-continue {
  position: relative;
  background-color: var(--dark-blue);
  color: var(--white);
  font-size: 12px;
  display: none;
  align-items: center;
  text-align: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  height: 100%;
  z-index: 11;
  transition:
    width 0.4s ease,
    background-color 0.4s ease,
    color 0.4s ease,
    opacity 0.4s ease,
    border-color 0.4s ease;
}

.loyalty-continue span {
  z-index: 50;
  font-size: 12px;
  color: var(--white);
}

.loyalty-continue::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10%;
  width: 120%;
  height: 100%;
  background: var(--dark-blue);
  transform: skew(30deg);
  z-index: 1;

  transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
}

.loyalty-end-text {
  position: relative;
  /* background-color: var(--white); */
  color: var(--dark-blue);
  font-size: 12px;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  height: 100%;
  z-index: 11;
  transition:
    width 0.3s ease,
    background-color 0.4s ease,
    color 0.4s ease,
    opacity 0.4s ease,
    border-color 0.4s ease;
}

.loyalty-button-back {
  position: relative;
  display: none;
  align-items: center;
  text-align: center;
  justify-content: center;
  background-color: var(--dark-blue);
  margin-right: var(--one-section-margin);
  width: 120px;
  opacity: 0;
  height: 100%;
  z-index: 11;

  -webkit-mask-image: var(--mask-url), linear-gradient(black, black);
  mask-image: var(--mask-url), linear-gradient(black, black);

  -webkit-mask-repeat: no-repeat, no-repeat;
  mask-repeat: no-repeat, no-repeat;

  -webkit-mask-position: center, center;
  mask-position: center, center;

  -webkit-mask-size: 25%, 100%;
  mask-size: 25%, 100%;

  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: all 0.3s ease, opacity 0.3s ease;
}

#loyaltyBackButton.visible {
  transform: translateX(0);
  opacity: 1;
}

.loyalty-scratch {
  padding: var(--padding-extra-small);
  z-index: 11;
  position: absolute;
  width: 100%;
  height: 100%;
}

.widget-back {
  transform: rotateY(180deg);
}

.loyalty-card-inner.flipped {
  transform: rotateY(180deg);
}


.loyalty-card-inner.flipped .bottom-loyalty-card {
  padding: var(--padding-base);
}

.widget-front {
  backface-visibility: hidden;
}

.widget-back {
  transform: rotateY(180deg);
  backface-visibility: hidden;
}

.loyalty-card-inner.flipped .widget-front {
  transform: rotateY(180deg);
}

.loyalty-card-inner.flipped .widget-back {
  transform: rotateY(180deg);
  backface-visibility: visible;
}

.svg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.bottom-loyalty-card {
  display: flex;
  padding-top: 10px;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-top: -1px;
  width: 100%;
  height: calc(70px + 2 * var(--padding-base)) !important;
}


.loyalty-scratch__scratcher {
  position: relative;
  width: 100%;
  height: 100%;
  /* height: calc(100% - var(--padding-extra-small)); */
  display: flex;
  justify-content: center;
  align-items: center;
  /* margin: 1rem 0; */
}

canvas {
  z-index: 2147483647 !important;
  border-radius: var(--border-radius-medium);
}

.loyalty-scratch__background,
.loyalty-scratch__foreground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.loyalty-scratch__background {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--dark-blue);
  background-color: var(--orange);
  padding: var(--padding-small);
  border-radius: var(--border-radius-medium);
  text-transform: uppercase;
  font-size: 1.25rem;
  text-align: center;
}

.loyalty-form-number {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - var(--padding-extra-small));
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--dark-blue);
  background-color: var(--orange);
  padding: var(--padding-small);
  border-radius: var(--border-radius-medium);
  text-transform: uppercase;
  font-size: 1.25rem;
  text-align: center;
}

.loyalty-top-with-emoji #loyaltyEmoji {
  height: 38px;
  transform: rotate(24deg);
  opacity: 0;
  /* display: none; */
}

.loyalty-instruction {
  font-size: 22px;
  max-width: 70%;
  margin-bottom: var(--one-section-margin);
  margin-left: var(--one-section-margin);
}

.loyalty-subtitle {
  font-size: 20px;
  margin-bottom: calc(var(--section-margin) / 2);
  margin-left: var(--one-section-margin);
}

.loyalty-title {
  font-size: 10px;
  margin: auto 0;
  text-align: center;
}

.loyalty-center {
  text-align: center;
}

.loyalty-input {
  background-color: var(--white);
  border: 1px var(--dark-blue) solid;
  color: var(--dark-blue);
  width: 100%;
  height: 65px;
  font-size: 10px;
  text-align: center;
  /* display: flex;
  align-items: start;
  overflow: hidden; */
  box-shadow: 3px 7px 9.4px 0px color-mix(in srgb, var(--dark-blue) 20%, transparent);
}

.loyalty-input::placeholder {
  color: color-mix(in srgb, var(--dark-blue) 36%, transparent)
}

.loyalty-bday-gender-container {
  padding: 0 var(--padding-small);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.loyalty-bday-input {
  color: var(--dark-blue);
  text-align: center;
  font-size: 12px;
  flex: 4;
  width: 100%;
  height: 100%;
  border: none;
  background-color: transparent;
}

.loyalty-bday-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px var(--white) inset !important;
  -webkit-text-fill-color: var(--dark-blue) !important;
}

.loyalty-bday-input:-moz-autofill {
  box-shadow: 0 0 0px 1000px var(--white) inset !important;
  -moz-text-fill-color: var(--dark-blue) !important;
}

.loyalty-bday-input::placeholder {
  font-size: 10px;
}

.loyalty-bday-input:focus {
  border-color: var(--dark-blue);
  outline: none;
}

.loyalty-gender-label {
  flex: 1;
  width: 40px;
  height: 40px;
  border: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: lightgray;
}

.loyalty-gender-label:has(#loyaltyGenderM:checked) {
  background-color: var(--gender-blue);
}

.loyalty-gender-label:has(#loyaltyGenderW:checked) {
  background-color: var(--pink);
}

.loyalty-gender-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.gender-text {
  font-size: 16px;
  font-weight: bold;
  color: var(--dark-blue);
  z-index: 2;
}

.loyalty-gender-input:checked+.gender-text {
  color: var(--white);
}

.loyalty-gender-label,
.loyalty-gender-input,
.gender-text {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.loyalty-gender-input:focus,
.loyalty-gender-label:focus,
.gender-text:focus {
  outline: none;
  box-shadow: none;
}

/* Для Firefox */
.loyalty-gender-label::-moz-focus-inner,
.gender-text::-moz-focus-inner {
  border: 0;
}


.loyalty-input:focus {
  border-color: var(--dark-blue);
  outline: none;
}

.loyalty-continue.inactive {
  background-color: var(--white);
  color: var(--dark-blue);
  border: 1px solid var(--dark-blue);
  opacity: 0.4;
  pointer-events: none;
}

.loyalty-continue.inactive span {
  color: var(--dark-blue);
}

.loyalty-continue.inactive::before {
  transform: translateX(100%);
}

/* .loyalty-continue {
  position: relative;
  background-color: var(--dark-blue);
  color: var(--white);
  font-size: 24px;
  display: none;
  align-items: center;
  text-align: center;
  justify-content: center;
  width: 100%;
  height: 20%;
  z-index: 11;
} */

.loyalty-scratch__background .loyalty-scratch__emoji {
  font-size: 6rem;
  width: 60px;
  height: 60px;
  margin-bottom: 0.5rem;
  text-align: center;
  transition: all 2s ease;
}

.loyalty-scratch__background:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--orange);
  border-radius: var(--border-radius-medium);
  opacity: 0;
}

.loyalty-scratch--ready .loyalty-scratch__background {
  display: flex;
}

.title-scratch-loyalty {
  font-size: 10px;
  margin: var(--one-section-margin) 0;
  color: var(--dark-blue);
}

.subtitle-scratch-loyalty {
  font-size: 12px;
  text-align: justify;
  color: var(--dark-blue);
}

.loyalty-radio-group {
  background: transparent;
}

.loyalty-radio-group {
  display: flex;
  position: relative;
  border: 1px solid var(--dark-blue);
  background: var(--white);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.1),
    inset 0 -1px 2px rgba(0, 0, 0, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.2);
  /* overflow: hidden; */
  padding: 6px;
  width: 100%;
  height: 65px;
}

.loyalty-radio-group input {
  display: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.loyalty-radio-group input:focus {
  outline: none;
}

.loyalty-radio-group label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  font-size: 8px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--dark-blue);
  position: relative;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.loyalty-radio-group input {
  display: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.loyalty-radio-group label {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.loyalty-radio-group label:focus,
.loyalty-radio-group label:active,
.loyalty-radio-group input:focus+label {
  outline: none;
  box-shadow: none;
}

.loyalty-radio-group label::-moz-focus-inner {
  border: 0;
}

.loyalty-radio-group input:checked+label {
  color: var(--white);
}

.loyalty-glass-glider {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc((100% - 12px) / 2);
  border-radius: 14px;
  z-index: 1;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

#loyaltyCall:checked~.loyalty-glass-glider {
  transform: translateX(0%);
  background: linear-gradient(135deg, var(--dark-blue), var(--dark-blue));
}

#loyaltyTelegram:checked~.loyalty-glass-glider {
  transform: translateX(100%);
  background: linear-gradient(135deg, var(--dark-blue), var(--dark-blue));
}

.loyalty-progress-emoji-container {
  position: absolute;
  width: 100px;
  height: 100%;
  /* background-color: black; */
  top: 0;
  right: 0;
  margin-bottom: calc(var(--padding-sm) + 11px);
  margin-top: calc(-1 * (var(--padding-sm) + 11px));
}