// The Pricing screen (free plugin only).
.ai1wpsa-pricing-wrap {
  .ai1wpsa-pricing__body {
    margin: 0 20px 30px 0;
    padding: 8px 4px;
    color: #1d2327;
  }

  .ai1wpsa-pricing__title {
    margin: 28px 0 8px;
    font-size: 24px;
    font-weight: 700;
  }

  .ai1wpsa-pricing__lead {
    margin: 0 0 20px;
    font-size: 15px;
    color: #50575e;
  }

  .ai1wpsa-pricing__plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    align-items: stretch;
  }

  .ai1wpsa-pricing__plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 18px 20px;
    background: #fff;
    border: 1px solid #dbe6fb;
    border-radius: 16px;
    box-shadow: 0 10px 30px -18px rgba(15, 36, 71, 0.35);

    &.is-featured {
      border-color: #004bcb;
      box-shadow: 0 0 0 2px #004bcb, 0 30px 60px -30px rgba(0, 75, 203, 0.45);
    }

    h3 {
      margin: 0;
      font-size: 18px;
    }
  }

  .ai1wpsa-pricing__badge {
    position: absolute;
    top: -12px;
    left: 24px;
    padding: 4px 12px;
    border-radius: 99px;
    background: #004bcb;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .ai1wpsa-pricing__for {
    margin: 4px 0 0;
    min-height: 38px;
    font-size: 13px;
    color: #50575e;
  }

  .ai1wpsa-pricing__was {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 28px;
    margin-top: 12px;

    del {
      font-size: 15px;
      font-weight: 600;
      color: #8c8f94;
    }
  }

  .ai1wpsa-pricing__save {
    padding: 2px 10px;
    border-radius: 99px;
    background: #ecfdf3;
    color: #047857;
    font-size: 12px;
    font-weight: 800;
  }

  .ai1wpsa-pricing__price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 0;

    strong {
      font-size: 36px;
      line-height: 1.1;
      font-weight: 800;
      letter-spacing: -0.02em;
    }

    span {
      color: #50575e;
    }
  }

  .ai1wpsa-pricing__persite {
    min-height: 20px;
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #047857;
  }

  .ai1wpsa-pricing__includes {
    flex: 1;
    margin: 16px 0 22px;
    padding: 0;
    list-style: none;

    li {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 10px;
      font-size: 13px;
      font-weight: 500;

      &.is-strong {
        font-weight: 700;
      }

      .ai1wpsa-pricing__tick {
        flex: none;
      }
    }
  }

  .ai1wpsa-pricing__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 2px solid #004bcb;
    border-radius: 10px;
    background: #004bcb;
    color: #fff;
    font-weight: 700;
    text-decoration: none;

    &:hover {
      background: #003a9e;
      border-color: #003a9e;
      color: #fff;
    }

    &.is-ghost {
      background: #fff;
      color: #004bcb;

      &:hover {
        background: #eef4ff;
        border-color: #004bcb;
        color: #004bcb;
      }
    }

    &:focus-visible {
      outline: 2px solid #004bcb;
      outline-offset: 2px;
      box-shadow: none;
    }
  }

  .ai1wpsa-pricing__trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 32px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    font-weight: 600;
    color: #50575e;

    li::before {
      content: "\2713";
      margin-right: 8px;
      color: #004bcb;
      font-weight: 800;
    }
  }

  .ai1wpsa-pricing__table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    overflow: hidden;

    th,
    td {
      padding: 12px 14px;
      text-align: left;
      border-bottom: 1px solid #eaeaea;
      font-size: 14px;
    }

    thead th {
      background: #f6f7f7;
      font-weight: 700;
    }

    tbody th {
      font-weight: 500;
    }

    td {
      width: 22%;
    }
  }

  .ai1wpsa-pricing__tick {
    color: #1a9b4b;
  }

  .ai1wpsa-pricing__dash {
    color: #a7aaad;
  }

  .ai1wpsa-pricing__faq {
    details {
      margin-bottom: 8px;
      padding: 12px 16px;
      background: #fff;
      border: 1px solid #dcdcde;
      border-radius: 8px;
    }

    summary {
      cursor: pointer;
      font-weight: 600;
    }

    p {
      margin: 8px 0 0;
      color: #50575e;
    }
  }

  .ai1wpsa-pricing__more {
    margin: 24px 0 0;

    .ai1wpsa-pricing__button {
      width: auto;
      padding: 13px 24px;
    }
  }
}

// "See pricing" under the early-bird button in the settings tab menu.
.ai1wpsa-settings-menu .ai1wpsa-promo__link {
  display: block;
  margin-top: 2px;
  text-align: center;
  font-size: 12px;
  color: #c6d4f0;
  text-decoration: underline;

  &:hover,
  &:focus-visible {
    color: #fff;
  }

  @media (max-width: 900px) {
    display: none;
  }
}
