@import "global.css";

@import "ui/buttons.css";
@import "ui/inputs.css";

@import "blocks/header.css";
@import "blocks/footer.css";

.for-sellers {
  margin-top: -64px;
  padding-top: 64px;
  padding-bottom: 64px;
  background: linear-gradient(180deg, #DCE9F4 0%, #FBF1ED 85.14%);
}

.for-sellers__header {
  margin-bottom: 30px;
  padding: 98px 24px 0 28px;

  h1 {
    margin-bottom: 24px;
    font-size: 22px;
    line-height: 31px;

    span {
      text-align: left;
    }

    span:nth-of-type(2) {
      padding-left: 81px;
    }
  }

  p {
    color: rgba(3, 10, 17, 0.64);
  }
}

.for-sellers__main {
  p {
    margin-bottom: 48px;
    padding: 0 28px;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    color: rgba(3, 10, 17, 0.64);
  }

  table {
    width: 100%;
    font-size: 16px;
    line-height: 22px;
    border-collapse: collapse;

    td {
      img {
        display: block;
        margin: 0 auto;
      }
    }

    tbody {
      th {
        padding: 0 20px;
        font-weight: 400;
        text-align: left;
      }

      tr:not(:last-of-type) {
        border-bottom: 1px solid rgba(255, 255, 255, 1);
      }
    }
  }
}

.for-sellers__mobile-tables {
  display: grid;
  grid-row-gap: 64px;
}

.for-sellers__mobile-table {
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 16px;
  overflow: hidden;

  table {
    thead {
      th {
        background-color: rgba(255, 255, 255, 0.56);
      }
    }

    tbody {
      th {
        background-color: rgba(255, 255, 255, 0.24);
      }
    }

    tr {
      height: 56px;
    }

    td {
      width: 64px;
      background-color: rgba(255, 255, 255, 0.56);
    }
  }
}

.for-sellers__desktop-table {
  display: none;
}

/*mobile portrait*/
@media (min-width: 478px) {
  .for-sellers__header {
    padding: 98px 40px 0;
  }

  .for-sellers__main {
    p {
      margin-bottom: 34px;
      padding: 0 40px;
      font-size: 24px;
      line-height: 29px;
    }
  }

  .for-sellers__mobile-tables {
    display: none;
  }

  .for-sellers__desktop-table {
    display: table;
    max-width: 775px;
    margin: 0 auto;

    thead {
      tr {
        height: 60px;
        font-size: 14px;
        line-height: 20px;

        th {
          color: rgba(3, 10, 17, 0.64);
        }

        th:nth-child(2) {
          color: rgba(3, 10, 17, 1);
          border-radius: 16px 16px 0 0;
        }
      }
    }

    tbody {
      background-color: rgba(255, 255, 255, 0.24);

      tr {
        height: 76px;
      }

      tr:first-of-type {
        th {
          border-radius: 24px 0 0 0;
        }

        td:last-child {
          border-radius: 0 24px 0 0;
        }
      }

      tr:last-of-type {
        th {
          border-radius: 0 0 0 24px;
        }

        td:last-child {
          border-radius: 0 0 24px 0;
        }
      }
    }

    tr {
      th:not(:first-child),
      td:not(:first-child) {
        width: 124px;
      }

      th:nth-child(2),
      td:nth-child(2) {
        background-color: rgba(255, 255, 255, 0.56);
      }
    }

    td {
      img {
        width: 28px;
        height: 28px;
      }
    }
  }
}

/*mobile landscape*/
@media (min-width: 767px) {
  .for-sellers {
    margin-top: -56px;
    padding-top: 56px;
  }

  .for-sellers__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 40px;
    align-items: center;
    width: 767px;
    margin: 0 auto 40px;

    h1 {
      margin-bottom: 0;
      font-size: 24px;
      line-height: 34px;

      span:nth-of-type(2) {
        padding-left: 47px;
      }
    }
  }

  .for-sellers__main {
    p {
      width: 767px;
      margin: 0 auto 56px;
      padding: 0 120px;
    }

    .for-sellers__desktop-table {
      font-size: 20px;
      line-height: 28px;

      thead {
        tr {
          height: 64px;
          font-size: 20px;
          line-height: 24px;
        }
      }

      tbody {
        tr {
          height: 68px;
        }

        th {
          padding: 0 46px;
        }
      }

      tr {
        th:not(:first-child),
        td:not(:first-child) {
          width: 194px;
        }
      }
    }
  }
}

/*tablet*/
@media (min-width: 991px) {
  .for-sellers__header {
    grid-template-columns: max-content auto;
    grid-column-gap: 56px;
    align-items: flex-start;
    width: 991px;

    h1 {
      span:nth-of-type(2) {
        padding-left: 79px;
      }
    }
  }

  .for-sellers__main {
    p {
      width: 991px;
      padding: 0 407px 0 120px;
    }

    .for-sellers__desktop-table {
      tbody {
        th {
          padding: 0 26px 0 50px;
        }
      }
    }
  }
}

/*desktop*/
@media (min-width: 1440px) {
  .for-sellers__header {
    width: 1440px;
    padding: 106px 228px 0;

    h1 {
      font-size: 32px;
      line-height: 45px;

      span:nth-of-type(2) {
        padding-left: 104px;
      }
    }
  }

  .for-sellers__main {
    p {
      width: 1440px;
      margin-bottom: 48px;
      padding: 0 644px 0 332px;
    }
  }
}
