.acc-type-sub-accounts {
  width: 100%;
}

.acc-type-subtitle {
  position: relative;
  margin: 40px 0 20px;
  font-size: 1.6rem;
  font-weight: bold;
  text-align: center;
  line-height: 1.3;

  @media (min-width: 768px) {
    font-size: 2rem;
  }

  &:first-child {
    margin-top: 0;
  }

  &.acc-type-subtitle--bar {
    padding-top: 20px;

    &:before {
      content: "";
      position: absolute;
      top: 0;
      left: 50%;
      width: 60px;
      height: 4px;
      background: linear-gradient(90deg, #4591eb 0%, #64c788 100%);
      transform: translateX(-50%);
    }
  }
}

.acc-type-table {
  table-layout: fixed;
  border-collapse: collapse;
  width: 100%;
  margin-top: 40px;
  background: #fff;
  line-height: 1.3;

  th,
  td {
    padding: 12px 16px;
    border: 1px solid #dadada;
    text-align: center;
  }

  thead {
    background: #f5fcff;
  }

  th:first-child {
    width: 28%;
    background: #f9f9f9;
    text-align: left;

    span {
      margin-left: 0.5em;
      font-weight: normal;
    }
  }
}

.acc-type-overflow-scroll {
  overflow-x: auto;
  overflow-y: hidden;
}

.acc-type-platform-table {
  table-layout: fixed;
  border-collapse: collapse;
  width: 100%;
  min-width: 980px;
  background: #fff;
  line-height: 1.3;

  th,
  td {
    padding: 8px 16px;
    border: 1px solid #dadada;
    text-align: center;
  }

  thead th {
    background: #f9f9f9;

    tr:nth-child(3) & {
      background: #fff;
      font-weight: normal;
    }
  }

  tbody {
    th:not([rowspan]) {
      font-weight: normal;
    }
  }

  @media (min-width: 768px) {
    thead:not(:first-child) {
      display: none;
    }

    th,
    td {
      padding: 12px 16px;
    }
  }

  .acc-type-platform-mt5 tr:first-child th:first-child {
    background: #f5fcff;
  }

  .acc-type-platform-oandaone tr:first-child th:first-child {
    background: #fdfbf1;
  }

  .acc-type-platform-fxtrade tr:first-child th:first-child {
    background: #f5fbf1;
  }
}

thead .acc-type-platform-table__header {
  th {
    padding: 32px 0 16px;
    background: transparent;
    border: none;
    text-align: left;
  }

  @media (min-width: 768px) {
    display: none;
  }
}

.acc-type-note {
  margin: 20px 0 0;
  font-size: 1.2rem;
  line-height: 1.6;

  p {
    position: relative;
    margin: 0;
    padding-left: 2.5em;

    span {
      position: absolute;
      top: 0;
      left: 0;
      display: inline-block;
      width: 2.5em;
    }
  }
}

.acc-type-frame {
  margin: 40px -20px 0;
  padding: 32px 40px;
  background: #f5f5f5;

  @media (min-width: 768px) {
    margin: 40px 0 0;
  }
}

.acc-type-platforms {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;

  @media (min-width: 768px) {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

.acc-type-platform {
  display: block;
  padding: 30px;
  border-radius: 8px;
}

.acc-type-platform__title {
  margin: -30px -30px 20px;
  padding: 12px 16px;
  border-radius: 8px 8px 0 0;
  background: #fff;
  color: #fff;
  text-align: center;
  line-height: 1.5;

  @media (min-width: 768px) {
    padding: 16px;
  }
}

.acc-type-platform__items {
  display: grid;
  grid-auto-rows: auto;
  gap: 10px;
}

.acc-type-platform__item {
  padding: 16px 10px;
  background: #fff;
  border: 1px solid currentColor;
  border-radius: 4px;
  text-align: center;
}

.acc-type-platform--mt5 {
  background: #def4ff;

  .acc-type-platform__title {
    background: #45a4e1;
  }

  .acc-type-platform__item {
    color: #45a4e1;
  }
}

.acc-type-platform--oandaone {
  background: #f7f0d0;

  .acc-type-platform__title {
    background: #cba534;
  }

  .acc-type-platform__item {
    color: #cba534;
  }
}

.acc-type-platform--fxtrade {
  background: #ddf1d0;

  .acc-type-platform__title {
    background: #4eb955;
  }

  .acc-type-platform__item {
    color: #4eb955;
  }
}

.acc-type-check {
  position: relative;
  display: inline-block;
  overflow: hidden;
  width: 17px;
  height: 17px;
  vertical-align: middle;
  white-space: nowrap;
  text-indent: 100%;
}

.acc-type-check::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: #999;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8' fill='none'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.acc-type-platform-mt5 .acc-type-check::before {
  background-color: #45a4e1;
}

.acc-type-platform-oandaone .acc-type-check::before {
  background-color: #cba534;
}

.acc-type-platform-fxtrade .acc-type-check::before {
  background-color: #4eb955;
}
