@import "../../../../assets/scss/variables";
@import "../../../../assets/scss/mixins";

.ftm_table_cta {
  th {
    border-style: none;
    padding: 1em 2em 1em 1em;
    text-wrap: nowrap;
    background-color: var(--ftm-table-h-bg-color);
    color: var(--ftm-table-h-text-color);
  }
  tr {
    position: relative;
    > td:nth-child(1) {
      img {
        max-width: 100%;
        display: block;
        margin-left: auto;
        margin-right: auto;
      }
      strong {
        margin-left: 20px;
        margin-right: 20px;
      }
    }
  }
  tbody {
    td {
      a {
        button {
          color: var(--ftm-table-btn-txt-color);
          background-color: var(--ftm-table-btn-bg-color);
          border-radius: var(--ftm-table-btn-rad);
          padding: 15px;
          font-weight: bold;
          display: block;
          margin-left: auto;
          margin-right: auto;
          position: relative;
          &:hover {
            color: var(--ftm-table-btn-txt-color-hv);
            background-color: var(--ftm-table-btn-bg-color-hv);
          }
        }
      }
    }
    tr {
      &:hover {
        background: linear-gradient(
          70deg,
          var(--ftm-table-row-gradient-1) 0%,
          var(--ftm-table-row-gradient-2) 200%
        );
        td {
          a {
            button {
              color: var(--ftm-table-btn-txt-color-hv);
              background-color: var(--ftm-table-btn-bg-color-hv);
            }
          }
        }
      }
    }
  }

  tr:not(:first-child) {
    td:first-child {
      text-align: center;
    }
  }

  td:nth-child(4) {
    padding: 0;
    border: 0px;
    a {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      &:hover {
          background: linear-gradient(
          70deg,
          var(--ftm-table-row-gradient-1) 0%,
          var(--ftm-table-row-gradient-2) 200%
        );
      }
    }
  }

  tr:not(:first-child) td:nth-child(2) ul {
    @media (max-width: $breakpoint-sm) {
      padding-left: 0%;
    }
  }

  @media (max-width: $breakpoint-sm) {
    td {
      display: block;

      &:last-child {
        margin-bottom: 3px;
        border-bottom: 2px solid #ccc;
      }
    }

    th:not(:first-child) {
      display: none;
    }
  }
}
