.container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.email-substrate {
  display: grid;
  grid-template-columns: 1fr 36px;
  align-content: center;
  position: absolute;
  max-width: calc(100% + 9px);
  top: -18px;
  right: -26px;
  height: 46px;
}

.title {
  font-size: 28px;
  line-height: 125%;
  margin-top: 44px;
  color: #2c2c2c;
  font-weight: 500;
}

.prices-container {
  justify-content: center;
  gap: 10px;
  width: fit-content;
  margin: 0 auto;
}

.price-item {
  border: solid #2c2c2c 1px;
  width: 70px;
  height: 65px;
  font-size: 20px;
  font-weight: 500;

  // &:last-child::after {
  //   content: "";
  //   position: absolute;
  //   width: 2px;
  //   height: 20px;
  //   background-color: #224e90;
  //   bottom: -30px;
  //   left: 50%;
  // }

  & > .priceItemArrow {
    position: absolute;
    bottom: -29px;
    left: 50%;
    transform: translateX(-50%);
  }

  &.price-item-active {
    border: solid #224e90 3px !important;
    background-color: transparent;
    color: #224e90;
  }

  &.price-item-disabled {
    color: #fb6c6c;
    border-color: #fb6c6c;
  }

  &.v1,
  &.v3 {
    border: 1px solid #9ca3af;

    &.price-item-active {
      background: linear-gradient(90deg, #5393de 0%, #3a70b2 100%);
      color: #fff !important;
      border: none !important;
    }

    &:last-child {
      border-width: 3px;
    }
  }

  &.v2,
  &.v4 {
    font-weight: 700;
    border: 2px solid #d1d5db;
    border-radius: 12px;

    &.price-item-active {
      background: linear-gradient(90deg, #5393de 0%, #3a70b2 100%);
      color: #fff !important;
      border: 2px solid #3a70b2;

      & > .price-item-description {
        color: #fff;
      }
    }

    &:last-child {
      border-width: 4px;
    }
  }

  &.v3,
  &.v4 {
    &.priceItemDisabled {
      color: #fb6c6c;
      border-color: #fb6c6c;

      & > .price-item-description {
        color: #fb6c6c;
      }
    }
  }
}

:global(.dark-theme) .price-item {
  border: solid #f7f7f7 1px;

  &.price-item-active {
    border: solid #4f8de5 3px !important;
    color: #4f8de5;
  }

  &.price-item-disabled {
    color: #fb6c6c;
    border-color: #fb6c6c;
  }

  &.v1,
  &.v3 {
    border: 1px solid #9ca3af;

    &.price-item-active {
      background: linear-gradient(90deg, #5393de 0%, #3a70b2 100%);
      color: #fff !important;
      border: none !important;
    }

    &:last-child {
      border-width: 3px;
    }
  }

  &.v2,
  &.v4 {
    border: 2px solid #d1d5db;

    &.price-item-active {
      background: linear-gradient(90deg, #5393de 0%, #3a70b2 100%);
      color: #fff !important;
      border: 2px solid #3a70b2;

      & > .price-item-description {
        color: #fff;
      }
    }

    &:last-child {
      border-width: 4px;
    }
  }

  &.v3,
  &.v4 {
    &.priceItemDisabled {
      color: #fb6c6c;
      border-color: #fb6c6c;

      & > .price-item-description {
        color: #fb6c6c;
      }
    }
  }
}

.price-container {
  position: relative;
  width: 100%;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 32px;

  &.price-container-disabled {
    background: #fef2f2;
    border: 1px solid rgba(254, 202, 202, 1);
  }
}

.priceListContainer {
  width: fit-content;
  margin-inline: auto;
  transition: all 0.2s ease;

  &.priceListContainerDisabled {
    background: #fef2f2;
    border: 1px solid rgba(254, 202, 202, 1);
    padding: 20px 12px 10px;
    border-radius: 8px;

    & > .priceListContainerDisabledText {
      color: rgba(185, 28, 28, 1);
      font-size: 16px;
      line-height: 24px;
      display: flex;
      align-items: center;
      gap: 15px;
      padding-left: 6px;
      margin-bottom: 20px;
    }

    & .price-item {
      // border: 1px solid rgba(156, 163, 175, 1);
      color: #000;
      background-color: #fff;
      box-shadow: 0px 4px 6px 0px rgba(0, 0, 0, 0.1),
        0px 2px 4px 0px rgba(0, 0, 0, 0.1);
    }
  }
}

.auxiliary-text {
  font-size: 15px;
  line-height: 125%;
  font-weight: 600;
  color: #0244a5;
  width: 100%;
  text-align: center;
}

:global(.dark-theme) .auxiliary-text {
  color: #4f8de5;
}

.cursor {
  position: absolute;
  width: 2px;
  height: 20px;
  background-color: #224e90;
  top: 71px;
  right: 34px;
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.button {
  margin-top: 20px;
  transition: background 0.2s ease, color 0.2s ease;

  &:not(.button-v1):disabled {
    border: solid #224e90 1px;
    background: none;
    color: #120d0d;
    opacity: 1;
  }

  &.button-v1 {
    position: sticky;
    bottom: calc(0dvh + 16px);

    &.button-v1-disabled {
      opacity: 0.2;
    }
  }
}

:global(.dark-theme) {
  .button:not(.button-v1):disabled {
    border: solid #4f8de5 1px;
    background: none;
    color: #f7f7f7;
  }
}

.text {
  white-space: pre-wrap;
  margin-top: 40px;
  margin-bottom: 6px;
}
