:root {
  --bg-color-secondary: #f5f5f5;
  --bg-color-kinda-loud: lavender;
  --text-color-caption: #555;
  --text-brand-loud-red: crimson;
}

.container.first {
  padding-bottom: 0;
}

.trust-statement {
  font-size: 24px;
  line-height: 32px;
  margin: 16px 0;
  border-left: 4px solid #e9e9e9;
  padding: 16px;
}

.trust-statement .emph {
  font-weight: 600;
}

.plan-purchase-wrapper {
  border-top: 1px solid var(--bg-color-kinda-loud);
  border-bottom: 1px solid var(--bg-color-kinda-loud);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23cccccc' fill-opacity='0.2'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  padding: 32px 0 40px;
  margin-bottom: 32px;

  .plans-section {
    .subheading {
      font-weight: bold;
      font-size: 24px;
      line-height: 24px;
      margin-bottom: 16px;
    }

    .plans {
      display: flex;
      flex-direction: row;
      gap: 32px;
    }

    .plan-box {
      background: linear-gradient(to bottom, #fff, var(--bg-color-secondary));
      padding: 16px;
      border: 1px solid var(--bg-color-kinda-loud);
      border-radius: 4px;
      width: 400px;
      transition: all 0.2s ease-in-out;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      cursor: pointer;

      button {
        cursor: pointer;
        transition: all 0.2s ease-in-out;
      }

      &.selected,
      &:hover {
        transform: scale(1.03);
      }

      &.selected {
        border-color: var(--text-color-dark);

        button {
          opacity: 0.75;
        }
      }

      .plan-box-header .plan-name {
        font-size: 27px;
        font-weight: 300;
      }

      .plan-specific-feature {
        margin: 8px 0 16px;
        border: 1px solid var(--bg-color-kinda-loud);
        padding: 16px;
        border-radius: 4px;
        text-align: center;
        font-size: 21px;
        line-height: 21px;

        &.extractors {
          margin-top: -8px;
          padding: 16px 12px 12px;

          .extractor-links {
            display: flex;
            gap: 6px;
            margin-top: 12px;

            a {
              flex: 1;
              display: flex;
              flex-direction: column;
              align-items: center;
              gap: 10px;
              padding: 12px 0;
              border: 1px solid var(--bg-color-kinda-loud);
              border-radius: 4px;
              background-color: #fff;
              color: inherit;
              font-size: 14px;
              line-height: 14px;
              transition: all 0.2s ease-in-out;

              &:hover {
                border-color: cornflowerblue;
                text-decoration: none;
              }

              .extractor-icon {
                position: relative;
                display: block;
                width: 40px;
                height: 40px;

                img {
                  display: block;
                  width: 100%;
                  height: 100%;
                  border-radius: 8px;
                }

                img.chrome-badge {
                  position: absolute;
                  right: -7px;
                  bottom: -5px;
                  width: 18px;
                  height: 18px;
                  border-radius: 50%;
                  box-shadow: 0 0 0 2px #fff;
                  background-color: #fff;
                }
              }
            }
          }
        }
      }

      .summary {
        font-size: 17px;
        line-height: 19px;
        margin-bottom: 16px;
      }

      .plan-box-footer {
        display: flex;
        flex-direction: column;

        .annually {
          font-size: 17px;
          line-height: 19px;
          margin-top: 8px;
        }
      }
    }

    .free-plan-export-limit {
      color: var(--text-color-caption);
      font-size: 21px;
      line-height: 23px;
      margin-top: 24px;

      &:before {
        content: "*";
        margin-right: 2px;
        position: relative;
        top: 16px;
        color: var(--text-brand-loud-red);
        font-size: 42px;
        font-weight: 500;
      }
    }
  }
}

.purchase-form-wrapper {
  form.stripe-form.disabled {
    filter: grayscale(100%);
    pointer-events: none;
  }
}

.purchase-complete-wrapper {
  background-color: #fff;
  border-top: 1px solid #e9e9e9;
  padding-top: 32px;
  padding-bottom: 128px;

  .code {
    display: inline-block;
    font-size: 23px;
    border: 1px solid lightsalmon;
    padding: 8px;
    font-family: monospace;
    border-radius: 3px;
    margin-left: 8px;
  }
}

.form-check {
  position: relative;
  display: block;
  padding-left: 1.25rem;
  margin-top: 1rem;
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .purchase-form-wrapper {
    border-top: 1px solid #e9e9e9;
    padding-top: 32px;
    margin-top: 16px;
  }
}

@media (max-width: 768px) {
  .plan-purchase-wrapper {
    .plans-section {
      .plans {
        flex-direction: column;

        .plan-box {
          width: 100%;
        }
      }
    }
  }
}
