.so-compatible-cars {
    width: 100%;
    max-width: 122.4rem;
    margin: auto;
    padding: 8rem 2rem;
}
.so-compatible-cars-header {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    text-align: center;
    margin-bottom: 4.5rem;
}
.cars-table-container {
    position: relative;
}
.wp-block-table table td, 
.wp-block-table table th, 
.wp-block-table table tr, 
.wp-block-table table {
    border-width: unset !important;
    border-style: unset !important;
}
.wp-block-table td, 
.wp-block-table th {
    font-size: 1.6rem;
    font-weight: 500;
    padding: 1.6rem 0;
}
.wp-block-table td {
    font-weight: 500;
}
.wp-block-table th {
    font-weight: 400;
}
.wp-block-table .has-fixed-layout {
    table-layout: unset;
}
.wp-block-table table {
    border: unset;
}
.wp-block-table tbody tr td:last-child {
    text-align: right !important;
}
.table-wrapper {
  position: relative;
}
.car-class-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.class-select {
    position: absolute;
    top: 100%;
    right: 0;
    width: 146px;
    background: #222;
    border-radius: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 20;
    overflow: hidden;
}
.car-class-dropdown:hover .class-select {
    opacity: 1;
    visibility: visible;
    filter: drop-shadow(0 1px 20px #00000033);
}
.class-select p {
    padding: 8px 16px;
    cursor: pointer;
    text-align: left;
    z-index: 100;
}
.class-select p:hover {
    background: #333;
}
.class-select p.active {
  color: #27E88D;
}
.game-options {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    justify-items: center;
    margin-bottom: 3.2rem;
    border-bottom: 1px solid #232326;
}
.game-options h5 {
    justify-content: center;
    font-size: 1.6rem !important;
    font-weight: 500;
    padding: 0.8rem;
    cursor: pointer;
    width: 100%;
    text-align: center;
    padding-bottom: 6px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.game-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.game-options h5.active {
  border-bottom-color: #27E88D;
}
.cars-table-top h4 {
    font-family: 'Funnel Display Medium', sans-serif;
    font-size: 2rem;
    font-weight: 500;
}
.cars-table-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}
.cars-table-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.table-top-search {
    position: relative;
    width: 100%;
    max-width: 24.3rem;
    height: 4rem;
    padding: 0.8rem 2.4rem;
}
.table-top-search input {
    font-family: 'Satoshi Light';
    text-transform: unset;
    font-size: 14px;
    font-weight: 400;
    color: #fff;

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    max-width: 24.3rem;
    height: 4rem;
    padding: 0.8rem 2.4rem;
    border-radius: 5rem;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: none;
    outline: none;
}
.table-top-search input::placeholder {
    color: rgba(255, 255, 255, 0.50);
}
.table-top-search input:active {
    border: 1px solid rgba(255, 255, 255, 0.20);
}
.table-top-search h6,
.table-top-search img {
    position: absolute;
}
.table-top-search img {
    top: 0.7rem;
    right: 2rem;
}
.compatible-car-wrapper {
    display: flex;
    gap: 1.6rem;
}
.table {
  display: none;
}
.table.active {
  display: block;
}
.search-not-found {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 1.6rem;
    text-align: center;
    position: absolute;
    top: 20rem;
    left: 0;
}
.search-not-found h5 {
    font-family: 'Funnel Display Medium', sans-serif;
    font-size: 2rem;
}
.search-not-found img {
    align-self: center;
    width: 10rem;
}
.category-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10rem;
  white-space: nowrap;
  user-select: none;
  color: #101010;
  font-family: 'Satoshi Medium', sans-serif;
  font-size: 16px;
  font-weight: 300;
  text-transform: uppercase;
}
.category-badge.gt2 {
    background-color: #5B84FF;
}
.category-badge.gt3 {
    background-color: #4DE99C;
}
.category-badge.gt4 {
    background-color: #4DD7E9;
}
.category-badge.gtp {
    background-color: #E9CC4D;
}
.category-badge.lmp2 {
    background-color: #FF8B48;
}
.category-badge.lmp3 {
    background-color: #FF6AFA;
}
.category-badge.formula {
    background-color: #FF4848;
}
.category-badge.cup {
    background-color: #9353EC;
}
.category-badge.lmgt3 {
    background-color: #4DE99C;
}
.category-badge.hypercar {
    background-color: #E9CC4D;
}
.category-badge.gte {
    background-color: #5BD257;
}
.category-badge.gto {
    background-color: #CAF88A;
}
.category-badge.prototype {
    background-color: #A9F5FF;
}
.category-badge.supercar {
    background-color: #FFB183;
}
.category-badge.nascar {
    background-color: #A4FF48;
}
.category-badge.indycar {
    background-color: #CAA1E9;
}
.category-badge.tcr {
    background-color: #CAA1E9;
}
.price-feature a {
    text-decoration: underline;
    font-size: 1.4rem;
    font-weight: 900;
    margin-left: 0.8rem;
    transition: all 0.3s ease-in-out;
}
.price-feature a:hover {
    color: #27e88d;
}
.optimizer-p1-text a {
    text-decoration: underline;
    font-size: 1.4rem;
    font-weight: 900;
    transition: all 0.3s ease-in-out;
}
.optimizer-p1-text a:hover {
    color: #27e88d;
}
.compatible-car-wrapper img {
    display: none;
    visibility: hidden;
    height: 2rem;
    transition: all 0.2s ease-in-out;
}
.compatible-car-wrapper img.active {
    display: inline-block;
    visibility: visible;
}
.car-container-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: unset;
    padding: 0 1.6rem;
    height: 52.5rem;
}
.car-container-header {
    font-size: 1.6rem;
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    padding: 1.6rem 0 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #151515;
}
.car-class-dropdown {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    cursor: pointer;
}
.wp-block-table {
    max-height: 47rem;
    overflow-y: auto;
    scrollbar-width: none;
}

.car-class-dropdown {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.car-class-dropdown img {
  transition: transform 0.3s, filter 0.3s;
}

/* Hover state for desktop */
@media (hover: hover) {
  .car-class-dropdown:hover,
  .car-class-dropdown.is-open {
    color: #27e88d; /* text green */
  }

  .car-class-dropdown:hover img,
  .car-class-dropdown.is-open img {
    transform: rotate(-180deg);
    filter: invert(0.45257) sepia(0.184185) saturate(12.5774)
      hue-rotate(78deg) brightness(2.05249) contrast(1.05262);
  }
}

/* Mobile / touch: when class "is-open" is applied */
.car-class-dropdown.is-open {
  color: #27e88d;
}

.car-class-dropdown.is-open img {
  transform: rotate(-180deg);
  filter: invert(0.45257) sepia(0.184185) saturate(12.5774)
    hue-rotate(78deg) brightness(2.05249) contrast(1.05262);
}