.wbnet-table--2-sorting-wrapper {
  position: relative;
  width: 196px;
  margin-left: auto;
}

.wbnet-table--2-sorting-trigger {
  width: 100%;

  & > button {
    appearance: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 !important;
    font-weight: 400 !important;
    text-transform: none !important;
    color: inherit !important;
    background-color: inherit !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    box-shadow: none;

    & > svg {
      width: 16px;
      height: 16px;
      margin-right: 8px;
      color: #64748b;
    }
  }
}

.wbnet-table--2-sorting-dropdown {
  display: none;
  position: absolute;
  margin-top: 4px;
  width: 100%;
  padding: 12px 16px;
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;

  & > button {
    appearance: none;
    display: flex !important;
    align-items: center;
    width: 100%;
    min-height: auto !important;
    padding: 0 !important;
    text-align: left;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    text-transform: none !important;
    color: inherit !important;
    background-color: inherit !important;
    border: 0 none !important;
    box-shadow: none;

    & > svg {
      width: 16px;
      height: 16px;
      margin-right: 8px;
      color: #64748b;

      &.desc {
        display: none;
      }
    }

    &[data-dir] {
      font-weight: 700;
      color: #235787;
    }

    &[data-dir="desc"] {
      & > svg {
        &.desc {
          display: none;
        }

        &.asc {
          display: block;
          color: #235787;
        }
      }
    }

    &[data-dir="asc"] {
      & > svg {
        &.asc {
          display: none;
        }

        &.desc {
          display: block;
          color: #235787;
        }
      }
    }
  }
}

.wbnet-table__2 {

  & > ol {

    & > li {
      margin-bottom: 0;
      align-items: center;

      & > span {
        text-align: center;

        img {
          max-height: 50px;
          margin: 0 auto;
        }

        &.wbnet-buchmacher {
          grid-column: 1;
          grid-row: 1;
          align-self: stretch;
          display: flex;
          align-items: center;
          justify-content: center;
          background-color: #f1f5f9;

          & > a {
            display: block;
          }
        }

        &.wbnet-column--1 {
          grid-column: 1;
          grid-row: 2;
          padding-top: 8px;

          & > span {
            display: block;
            padding: 0 4px;
            font-size: 24px;
            line-height: 1.4;

            &:nth-child(2) {
              font-size: 16px;
            }
          }
        }

        &.wbnet-group--1 {
          grid-column: 2;
          grid-row: 1/3;
          padding-top: 4px;

          .column-label {
            line-height: 1;
          }
        }

        &.wbnet-group--2 {
          grid-column: 2;
          grid-row: 3;
        }

        &.wbnet-group--3 {
          grid-column: 1;
          grid-row: 3;
          align-self: start;

          .column-label {
            display: inline-block;
          }
        }

        &.wbnet-group {
          & > span {
            display: block;
            margin-bottom: 6px;
          }

          & > img {
            display: block;
            width: 112px;
            height: 32px;
            margin: 3px auto;
            border: 1px solid #e5e7eb;
            border-radius: 4px;
          }
        }

        &.wbnet-links {
          grid-column: 1/3;
          grid-row: 4;
          display: inline-block;
          text-align: center;

          a {
            display: block;
            text-decoration: none;

            &.wbnet-link-aff {
              padding: 4px 32px;
              background-color: #235787;
              color: #fff;
              border-radius: 6px;

              &:hover {
                background-color: #1d476f;
              }
            }

            &.wbnet-link-review {
              margin-top: 10px;
              color: #b91c1c;

              &:hover {
                color: #9b1919;
              }
            }
          }
        }
      }

      @media (min-width: 1024px) {
        grid-template-columns: 1.6rem 196px 1fr 2fr 120px 1.5fr 1fr;
        gap: 12px;
        align-items: stretch;
        padding-top: 16px;
        padding-bottom: 16px;

        & > span {

          &.wbnet-idx {
            display: block;
            grid-column: 1;
            grid-row: 1;
            align-self: center;
            font-size: 1.3rem;
            font-weight: 700;
          }

          &.wbnet-buchmacher {
            grid-column: 2;
            grid-row: 1;
            border-radius: 12px;
          }

          &.wbnet-column--1 {
            grid-column: 3;
            grid-row: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding-top: 0;

            & > span {
              padding: 2px;
              font-size: 16px !important;
            }
          }

          &.wbnet-group--1 {
            grid-column: 4;
            grid-row: 1;

            .column-label {
              display: inline;
            }
          }

          &.wbnet-group--2 {
            grid-column: 5;
            grid-row: 1;
            align-content: center;
          }

          &.wbnet-group--3 {
            grid-column: 6;
            grid-row: 1;
            align-self: stretch;

            .column-label {
              display: inline;
            }
          }

          &.wbnet-group--1,
          &.wbnet-group--3 {
            align-content: center;
            padding: 6px 8px;
            font-size: 13px;
            border: 1px solid #e5e7eb;
            border-radius: 12px;

            & > span {
              margin-bottom: 2px;
            }
          }

          &.wbnet-links {
            grid-column: 7;
            grid-row: 1;
            align-self: center;
          }
        }
      }

      &:hover {
        background-color: #e2e8f0;

        & > .wbnet-buchmacher {
          background-color: #f8fafc;
        }
      }

      &:nth-child(even) {
        background-color: #f1f5f9;

        & > .wbnet-buchmacher {
          background-color: #f8fafc;
        }

        &:hover {
          background-color: #e2e8f0;
        }
      }

      .column-label {
        display: block;
        font-size: 13px;
        color: #235787;
      }
    }
  }
}

/* WP 7 / Optimizer Fix: flat CSS fallback for wbnet-table-2 (no CSS nesting required) */
.wbnet-table__2 > ol > li {
  display: grid;
  gap: 8px 4px;
  align-items: center;
  grid-template-columns: repeat(2, 1fr);
  margin-left: 0;
  margin-bottom: 0;
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
}
.wbnet-table__2 > ol > li > span { text-align: center; }
.wbnet-table__2 > ol > li > span img { display: block; width: 100%; max-width: 100%; max-height: 50px; margin: 0 auto; }
.wbnet-table__2 > ol > li > span.wbnet-idx { display: none; }
.wbnet-table__2 > ol > li > span.wbnet-buchmacher { grid-column: 1; grid-row: 1; align-self: stretch; display: flex; align-items: center; justify-content: center; background-color: #f1f5f9; }
.wbnet-table__2 > ol > li > span.wbnet-buchmacher > a { display: block; }
.wbnet-table__2 > ol > li > span.wbnet-column--1 { grid-column: 1; grid-row: 2; padding-top: 8px; }
.wbnet-table__2 > ol > li > span.wbnet-column--1 > span { display: block; padding: 0 4px; font-size: 24px; line-height: 1.4; }
.wbnet-table__2 > ol > li > span.wbnet-column--1 > span:nth-child(2) { font-size: 16px; }
.wbnet-table__2 > ol > li > span.wbnet-group--1 { grid-column: 2; grid-row: 1 / 3; padding-top: 4px; }
.wbnet-table__2 > ol > li > span.wbnet-group--1 .column-label { line-height: 1; }
.wbnet-table__2 > ol > li > span.wbnet-group--2 { grid-column: 2; grid-row: 3; }
.wbnet-table__2 > ol > li > span.wbnet-group--3 { grid-column: 1; grid-row: 3; align-self: start; }
.wbnet-table__2 > ol > li > span.wbnet-group--3 .column-label { display: inline-block; }
.wbnet-table__2 > ol > li > span.wbnet-group > span { display: block; margin-bottom: 6px; }
.wbnet-table__2 > ol > li > span.wbnet-group > img { display: block; width: 112px; height: 32px; margin: 3px auto; border: 1px solid #e5e7eb; border-radius: 4px; }
.wbnet-table__2 > ol > li > span.wbnet-links { grid-column: 1 / 3; grid-row: 4; display: inline-block; text-align: center; }
.wbnet-table__2 > ol > li > span.wbnet-links a { display: block; text-decoration: none; }
.wbnet-table__2 > ol > li > span.wbnet-links a.wbnet-link-aff { padding: 4px 32px; background-color: #235787; color: #fff; border-radius: 6px; }
.wbnet-table__2 > ol > li > span.wbnet-links a.wbnet-link-aff:hover { background-color: #1d476f; }
.wbnet-table__2 > ol > li > span.wbnet-links a.wbnet-link-review { margin-top: 10px; color: #b91c1c; }
.wbnet-table__2 > ol > li > span.wbnet-links a.wbnet-link-review:hover { color: #9b1919; }
.wbnet-table__2 > ol > li:hover { background-color: #e2e8f0; }
.wbnet-table__2 > ol > li:hover > .wbnet-buchmacher { background-color: #f8fafc; }
.wbnet-table__2 > ol > li:nth-child(even) { background-color: #f1f5f9; }
.wbnet-table__2 > ol > li:nth-child(even) > .wbnet-buchmacher { background-color: #f8fafc; }
.wbnet-table__2 > ol > li:nth-child(even):hover { background-color: #e2e8f0; }
.wbnet-table__2 > ol > li .column-label { display: block; font-size: 13px; color: #235787; }

@media (min-width: 1024px) {
  .wbnet-table__2 > ol > li {
    grid-template-columns: 1.6rem 196px 1fr 2fr 120px 1.5fr 1fr;
    gap: 12px;
    align-items: stretch;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .wbnet-table__2 > ol > li > span.wbnet-idx { display: block; grid-column: 1; grid-row: 1; align-self: center; font-size: 1.3rem; font-weight: 700; }
  .wbnet-table__2 > ol > li > span.wbnet-buchmacher { grid-column: 2; grid-row: 1; border-radius: 12px; }
  .wbnet-table__2 > ol > li > span.wbnet-column--1 { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 0; }
  .wbnet-table__2 > ol > li > span.wbnet-column--1 > span { padding: 2px; font-size: 16px !important; }
  .wbnet-table__2 > ol > li > span.wbnet-group--1 { grid-column: 4; grid-row: 1; }
  .wbnet-table__2 > ol > li > span.wbnet-group--1 .column-label { display: inline; }
  .wbnet-table__2 > ol > li > span.wbnet-group--2 { grid-column: 5; grid-row: 1; align-content: center; }
  .wbnet-table__2 > ol > li > span.wbnet-group--3 { grid-column: 6; grid-row: 1; align-self: stretch; }
  .wbnet-table__2 > ol > li > span.wbnet-group--3 .column-label { display: inline; }
  .wbnet-table__2 > ol > li > span.wbnet-group--1,
  .wbnet-table__2 > ol > li > span.wbnet-group--3 { align-content: center; padding: 6px 8px; font-size: 13px; border: 1px solid #e5e7eb; border-radius: 12px; }
  .wbnet-table__2 > ol > li > span.wbnet-group--1 > span,
  .wbnet-table__2 > ol > li > span.wbnet-group--3 > span { margin-bottom: 2px; }
  .wbnet-table__2 > ol > li > span.wbnet-links { grid-column: 7; grid-row: 1; align-self: center; }
}

.wbnet-table__2 .wbnet-load-more {
    display: block;
    width: 100%;
    padding-bottom: 12px;
    text-align: center;
}

.wbnet-table__2 .wbnet-load-more button {
    display: inline-block;
    margin: 20px auto 0;
}