/* Homepage rate table. Native nesting, scoped under .rate-table, px units. */
.rate-table {
  padding: 60px 0 40px;

  .rt-head {
    text-align: center;
    margin-bottom: 30px;

    .fa-title { justify-content: center; }
    .divider { margin: 14px auto; }
    .rt-sub { color: #636363; font-size: 16px; margin: 0; }
  }

  .rt-box {
    border: 1px solid #e3e6ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    overflow: hidden;
  }

  .rt-scroll {
    overflow: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transition: max-height 0.4s ease;

    &:focus-visible { outline: 2px solid var(--primary-color-one); outline-offset: -2px; }
  }

  table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
    color: #222;
  }

  th,
  td {
    padding: 11px 16px;
    border-bottom: 1px solid #eceef5;
    white-space: nowrap;
    font-family: var(--font-roboto-reg), sans-serif;

    &.al-left { text-align: left; }
    &.al-center { text-align: center; }
    &.al-right { text-align: right; }
    &.rt-no { text-align: center; width: 64px; color: #777; font-weight: 700; }
  }

  thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--primary-color-two);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border-bottom: 0;
  }

  tbody tr {
    transition: background 0.2s ease;

    &:nth-child(even) td { background: #f8f9fd; }
    &:hover td { background: #fff3ec; }
    &:last-child td { border-bottom: 0; }
  }

  .rt-actions {
    display: flex;
    justify-content: center;
    margin-top: 22px;
  }

  .rt-toggle {
    cursor: pointer;
    border: 0;
    font-size: 15px;
    min-width: 150px;
    text-align: left;

    .rt-label { font-weight: 500; }
    i { transition: transform 0.3s ease; }
    &[aria-expanded="true"] i { transform: rotate(180deg); }
    &:hover i { rotate: 0deg; }
  }

  .rt-notes {
    margin-top: 26px;
    padding: 18px 22px;
    border-left: 4px solid var(--primary-color-three);
    background: #fafafa;
    border-radius: 0 10px 10px 0;

    p {
      margin: 0 0 6px;
      font-size: 14px;
      line-height: 1.6;
      color: #444;
      font-family: var(--font-roboto-reg), sans-serif;
    }
    p:last-child { margin-bottom: 0; }
    strong { color: var(--primary-color-two); }
  }

  @media (max-width: 767px) {
      .rate-table {max-width:95% !important; margin:0 auto;}
    padding: 40px 0 24px;
    table { font-size: 12px; }
    th, td { padding: 10px 12px; }
  }
}
