.wp-block-sowmedia-table {
  max-width: 100%;
  --spaarrente-table-gap-x: clamp( 8px, 1vw, 12px);
  --spaarrente-table-gap-x-half: clamp( 4px, 0.5vw, 8px);
  --spaarrente-table-gap-y: 8px;
}
.wp-block-sowmedia-table .spaarrentes-tabel__items-scroll-container {
  max-width: calc(100% + 10px);
  margin-left: -5px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 5px;
}
.wp-block-sowmedia-table .spaarrentes-tabel__items {
  display: table;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 var(--spaarrente-table-gap-x);
  border: 0;
  margin: 0;
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item {
  display: table-row;
  border: 1px solid #f1f1f1;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1px 3px 1px rgba(6, 18, 52, 0.05);
  position: relative;
  /* Safari doesnt understand position: relative */
  transform: translate(0);
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item:focus-within, .wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item:hover, .wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item:has(:hover) {
  box-shadow: 0 2px 4px 1px rgba(6, 18, 52, 0.1);
}
@media (min-width: 783px) {
  .wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item:focus-within .item-link a .icon-arrow-right, .wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item:hover .item-link a .icon-arrow-right, .wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item:has(:hover) .item-link a .icon-arrow-right {
    color: #fff;
    background-color: #3151b5;
  }
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item:focus-within .item-link a:focus, .wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item:hover .item-link a:focus, .wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item:has(:hover) .item-link a:focus {
  outline: 0;
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item:active, .wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item:has(:active) {
  box-shadow: 0 2px 4px 1px rgba(6, 18, 52, 0.1);
}
@media (max-width: 782px) {
  .wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item:active .item-link a .icon-arrow-right, .wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item:has(:active) .item-link a .icon-arrow-right {
    color: #fff;
    background-color: #3151b5;
  }
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item[hidden] {
  display: none;
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-spacer {
  display: table-cell;
  border: 0;
  padding: 0 1px;
  width: auto;
  position: relative;
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-spacer.item-spacer-seperator {
  padding: 0 var(--spaarrente-table-gap-x-half);
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-spacer.item-spacer-seperator::after {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  content: "";
  display: block;
  border-left: 1px solid #f1f1f1;
  height: 40px;
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-spacer:has(+ .spaarrentes-tabel__item-meta[hidden]) {
  display: none;
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .spaarrentes-tabel__item-meta {
  display: table-cell;
  border: 0;
  padding: var(--spaarrente-table-gap-y) var(--spaarrente-table-gap-x-half);
  border-radius: inherit;
  width: 0;
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .spaarrentes-tabel__item-meta:first-child {
  padding-left: var(--spaarrente-table-gap-x);
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .spaarrentes-tabel__item-meta:last-child {
  padding-right: var(--spaarrente-table-gap-x);
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .spaarrentes-tabel__item-meta > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1;
  gap: 2px;
}
@media (min-width: 783px) {
  .wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .spaarrentes-tabel__item-meta > div {
    flex: 0 0 100px;
  }
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .spaarrentes-tabel__item-meta > div > span {
  white-space: nowrap;
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .spaarrentes-tabel__item-meta:has(.item-link) {
  width: 40px;
  min-width: 40px;
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .spaarrentes-tabel__item-meta:has(.item-img) {
  width: clamp(86px, 6vw, 100px);
  min-width: clamp(86px, 6vw, 100px);
}
@media (max-width: 782px) {
  .wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .spaarrentes-tabel__item-meta:has(.item-looptijd), .wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .spaarrentes-tabel__item-meta:has(.item-rating) {
    display: none;
  }
  .wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .spaarrentes-tabel__item-meta:has(.item-looptijd) + .item-spacer, .wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .spaarrentes-tabel__item-meta:has(.item-rating) + .item-spacer {
    display: none;
  }
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .spaarrentes-tabel__item-meta[hidden] {
  display: none;
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-img {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3/2;
  background-color: white;
  border-radius: 5px;
  flex-direction: row;
  border: 1px solid #e9e9e9;
  padding: 4px 8px;
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-img img {
  object-fit: contain;
  max-height: 26px;
}
@media (min-width: 783px) {
  .wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-img img {
    max-height: 38px;
  }
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-rente {
  min-width: 50px;
  line-height: 1;
  align-items: flex-start;
  gap: 2px;
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-rente > span {
  color: #009cde;
  font-size: 16px;
  font-weight: bold;
}
@media (min-width: 783px) {
  .wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-rente > span {
    font-size: 20px;
  }
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-rente .item-rente-text {
  color: darkgray;
  font-size: 10px;
  font-weight: normal;
}
@media (min-width: 783px) {
  .wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-rente .item-rente-text {
    font-size: 14px;
  }
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-rating {
  line-height: 1;
  align-items: flex-start;
  gap: 2px;
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-rating > span {
  color: black;
  font-size: 16px;
  font-weight: bold;
}
@media (min-width: 783px) {
  .wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-rating > span {
    font-size: 20px;
  }
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-rating > span .icon-star {
  color: #3151b5;
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-rating > span > span:last-child {
  font-size: 12px;
  font-weight: 400;
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-rating .item-rating-text {
  color: darkgray;
  font-size: 10px;
  font-weight: normal;
}
@media (min-width: 783px) {
  .wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-rating .item-rating-text {
    font-size: 14px;
  }
}
@media (min-width: 783px) {
  .wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-rating, .wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-rating + .item-spacer {
    display: flex;
  }
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-rating-small {
  padding-top: 2px;
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-rating-small > span {
  font-size: 16px;
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-looptijd {
  line-height: 1;
  align-items: flex-start;
  gap: 2px;
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-looptijd > span {
  color: black;
  font-size: 16px;
  font-weight: bold;
}
@media (min-width: 783px) {
  .wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-looptijd > span {
    font-size: 20px;
  }
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-looptijd .item-looptijd-text {
  color: darkgray;
  font-size: 10px;
  font-weight: normal;
}
@media (min-width: 783px) {
  .wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-looptijd .item-looptijd-text {
    font-size: 14px;
  }
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-profit > span {
  color: black;
  font-size: 16px;
  font-weight: bold;
}
@media (min-width: 783px) {
  .wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-profit > span {
    font-size: 20px;
  }
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-profit .item-profit-text {
  color: darkgray;
  font-size: 16px;
  font-size: 10px;
  font-weight: normal;
}
@media (min-width: 783px) {
  .wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-profit .item-profit-text {
    font-size: 14px;
  }
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-link {
  display: flex;
  justify-content: center;
  align-items: center;
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-link a {
  text-decoration: none;
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-link a::after {
  position: absolute;
  display: block;
  inset: 0;
  content: "";
}
.wp-block-sowmedia-table .spaarrentes-tabel__items .spaarrentes-tabel__item .item-link a .icon-arrow-right {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3151b5;
  border-radius: 9999px;
  background-color: #f1f1f1;
  font-size: 24px;
  height: 40px;
  width: 40px;
  transition: all 0.15s linear;
}
.wp-block-sowmedia-table .acf-innerblocks-container {
  padding-top: 12px;
  padding-bottom: 12px;
}
.wp-block-sowmedia-table .acf-innerblocks-container:empty {
  display: none;
}
.wp-block-sowmedia-table .acf-innerblocks-container > *:first-child {
  margin-top: 0 !important;
}
.wp-block-sowmedia-table .acf-innerblocks-container > *:last-child {
  margin-bottom: 0 !important;
}
.wp-block-sowmedia-table .spaarrentes-tabel__load-more {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
  margin-bottom: 12px;
}
.wp-block-sowmedia-table .spaarrentes-tabel__load-more[hidden] {
  display: none;
}
.wp-block-sowmedia-table .spaarrentes-tabel__load-more button {
  border-radius: 32px;
  display: flex;
  align-items: center;
  gap: var(--spaarrente-table-gap-x);
}

/** Filters **/
.spaarrentes-tabel__header {
  margin-bottom: 12px;
}

.spaarrentes-tabel__filter-group {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 12px;
  height: auto;
  height: calc-size(auto);
  transition-behavior: allow-discrete;
  transition: all 0.2s;
  overflow: hidden;
}
@media screen and (min-width: 783px) {
  .spaarrentes-tabel__filter-group {
    align-items: flex-end;
    flex-flow: wrap;
    flex-direction: row;
  }
}

.spaarrentes-tabel__filter-group--vertical {
  flex-direction: row; /* Change to row to display filters in a row */
  align-items: stretch;
  padding: 1rem;
  background-color: white;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
  border-radius: 5px;
  margin-top: 12px;
}

.spaarrentes-tabel__filter-button {
  display: none; /* Hide the filter button */
}

.spaarrentes-tabel__field:not([hidden]) {
  display: grid;
  grid-auto-flow: row;
  grid-gap: 5px;
  width: 100%;
}
@media (min-width: 783px) {
  .spaarrentes-tabel__field:not([hidden]) {
    width: auto;
  }
}

.spaarrentes-tabel__field-wrapper {
  background-color: #fff;
  border: 1px solid var(--ast-border-color);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  line-height: 24px;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
  color: var(--ast-form-input-text, #475569);
  align-items: center;
  display: inline-grid; /* We're doing some auto resize magic with this */
  position: relative;
}
.spaarrentes-tabel__field-wrapper:focus-within {
  border-color: #046BD2;
}
.spaarrentes-tabel__field-wrapper:focus-within::after {
  visibility: hidden;
}
.spaarrentes-tabel__field-wrapper:focus-within input, .spaarrentes-tabel__field-wrapper:focus-within textarea, .spaarrentes-tabel__field-wrapper:focus-within select {
  font-size: inherit;
}
.spaarrentes-tabel__field-wrapper .spaarrentes-tabel__field-prefix,
.spaarrentes-tabel__field-wrapper .spaarrentes-tabel__field-suffix {
  padding: 7px 12px;
}
.spaarrentes-tabel__field-wrapper .spaarrentes-tabel__field-prefix {
  padding-right: 5px;
  grid-area: 1/1;
}
.spaarrentes-tabel__field-wrapper:has(.spaarrentes-tabel__field-prefix)::after, .spaarrentes-tabel__field-wrapper:has(.spaarrentes-tabel__field-prefix) input, .spaarrentes-tabel__field-wrapper:has(.spaarrentes-tabel__field-prefix) textarea, .spaarrentes-tabel__field-wrapper:has(.spaarrentes-tabel__field-prefix) select {
  grid-area: 1/2;
  padding-left: 2px;
}
.spaarrentes-tabel__field-wrapper:has(.spaarrentes-tabel__field-suffix)::after, .spaarrentes-tabel__field-wrapper:has(.spaarrentes-tabel__field-suffix) input, .spaarrentes-tabel__field-wrapper:has(.spaarrentes-tabel__field-suffix) textarea, .spaarrentes-tabel__field-wrapper:has(.spaarrentes-tabel__field-suffix) select {
  padding-right: 2px;
}
.spaarrentes-tabel__field-wrapper .spaarrentes-tabel__field-suffix {
  padding-left: 5px;
  grid-area: 1/3;
}
.spaarrentes-tabel__field-wrapper::after,
.spaarrentes-tabel__field-wrapper input,
.spaarrentes-tabel__field-wrapper textarea,
.spaarrentes-tabel__field-wrapper select {
  width: auto;
  min-width: 1em;
  grid-area: 1/1;
  font: inherit;
  font-size: 0;
  margin: 0;
  padding: 7px 16px;
  resize: none;
  background: none;
  appearance: none;
  border: none;
  color: var(--ast-form-input-text, #475569);
  box-shadow: none;
  z-index: 1;
  transition: none;
}
.spaarrentes-tabel__field-wrapper::after {
  content: attr(data-value) " ";
  visibility: visible;
  white-space: pre-wrap;
  font-size: inherit;
  z-index: 0;
  position: relative;
}
.spaarrentes-tabel__field-wrapper input:focus {
  outline: none;
  border-color: transparent;
}

.spaarrentes-tabel__field--clear-filters {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  cursor: pointer;
}

@media (max-width: 782px) {
  .spaarrentes-tabel__field--sort {
    display: none !important;
  }
}

.spaarrentes-tabel__field--inleg {
  width: auto !important;
}
