:root {
  --divider-width: 1px;
}

.rkit-background-switcher-links-items {
  display: flex;
  flex-direction: column;
  position: relative;
}

.rkit-background-switcher-links-container {
  position: relative;
  /* z-index: 1; */
}

.rkit-background-switcher-links-image img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.rkit-background-switcher-links-item {
  /* position: relative; */
  display: flex;
  padding: 1rem;
  flex-direction: row;
  align-items: center;
  transition: all 0.5s;
}

.rkit-background-switcher-links-container.background
  .rkit-background-switcher-links-image {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  visibility: hidden;
  opacity: 0;
  transition: all 0.5s;
  z-index: -1;
}

.rkit-background-switcher-links-container.background
  .rkit-background-switcher-links-image.active {
  visibility: visible;
  opacity: 1;
}

.rkit-background-switcher-links-container.background
  .rkit-background-switcher-links-items {
  /* z-index: 2; */
}

.rkit-background-switcher-links-container.background
  .rkit-background-switcher-links-image
  img {
  display: none;
}

.rkit-background-switcher-links-item-link {
  display: flex;
  flex-direction: column;
  /* width: 100%; */
}

.rkit-background-switcher-view-more:not(.card-row) {
  text-wrap: nowrap;
  aspect-ratio: 1/1;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  transition: all 0.5s;
}

.rkit-background-switcher-link-no {
  padding-right: 1rem;
  font-size: 39px;
  line-height: 1.5;
}

.rkit-background-switcher-links-text {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  color: black;
  position: relative;
}

.rkit-background-switcher-link-number {
  display: flex;
  align-items: start;
}

.rkit-background-switcher-links-item-link .rkit-background-switcher-link,
.rkit-background-switcher-link-number {
  font-size: 39px;
  position: relative;
  margin: 0;
  width: fit-content;
}

.rkit-background-switcher-links-item.pointer
  .rkit-background-switcher-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: all 0.5s;
}

.rkit-background-switcher-links-item.pointer.upperline
  .rkit-background-switcher-link::after {
  bottom: 100%;
}

.rkit-background-switcher-links-item.pointer.doubleline
  .rkit-background-switcher-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: all 0.5s;
}

.rkit-background-switcher-links-item.pointer.linethrough
  .rkit-background-switcher-link::after {
  bottom: 50%;
  transform: translateY(50%);
}

.rkit-background-switcher-link-list.active
  .rkit-background-switcher-link::after {
  width: 100%;
}
.rkit-background-switcher-link-list.active
  .rkit-background-switcher-link::before {
  width: 100% !important;
}

.rkit-background-switcher-view-more-icon {
  color: black;
  fill: black;
  font-size: 39px;
}

.rkit-background-switcher-links-item.card-row {
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  /* z-index: -2; */
  transition: all 0.5s;
}

.rkit-background-switcher-link-list.divider {
  --divider-color: black;
  border-bottom-width: var(--divider-width);
  border-bottom-style: solid;
  border-bottom-color: var(--divider-color);
}

.rkit-background-switcher-link-list.divider:last-child {
  border-bottom: none;
}

.rkit-background-switcher-links-items.card-row
  .rkit-background-switcher-link-list {
  padding: 12px;
}
.rkit-background-switcher-links-item.card-row {
  width: 100%;
  height: 100%;
  align-items: start;
}

.rkit-background-switcher-link-list.card-row.divider-horizontal {
  border-bottom: none;
  border-right-width: var(--divider-width);
  border-right-style: solid;
  border-right-color: var(--divider-color);
}

.rkit-background-switcher-link-list.card-row.divider-horizontal {
  border-right-width: var(--divider-width);
  border-right-style: solid;
  border-right-color: var(--divider-color);
}

.rkit-background-switcher-link-list.card-row.divider-horizontal:last-child {
  border-right: none;
}

.rkit-background-switcher-links-items.card-row {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}

.rkit-background-switcher-link-list.card-row {
  flex: 1 0 calc(100% / var(--item-count, 1));
  max-width: calc(100% / var(--item-count, 1));
  box-sizing: border-box;
}

.rkit-background-switcher-view-more.card-row {
  /* width: 100%; */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.rkit-background-switcher-links-item.active .rkit-background-switcher-link {
  color: #00cea6;
}

.rkit-background-switcher-link-list.active
  .rkit-background-switcher-view-more-icon {
  color: #00cea6;
  fill: #00cea6;
}
.rkit-background-switcher-d-flex {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.rkit-background-switcher-list-divider-enabled
  .rkit-background-switcher-link-list.card-row {
  --divider-color: black;
  outline: solid var(--divider-width) var(--divider-color);
}

.rkit-background-switcher-link-list.hidding .show-on-hover {
  animation: hiding 0.5s ease forwards;
}

@keyframes hiding {
  0% {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    max-height: var(--height);
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 0;
    transform: translateY(-20px);
    position: absolute;
    max-height: 0px;
  }
}

@keyframes showing {
  0% {
    opacity: 0;
    transform: translateY(-20px);
    position: absolute;
    max-height: 0px;
  }

  50% {
    opacity: 0.3;
  }

  80% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    max-height: var(--height);
  }
}

/* ===== DESKTOP ===== */
@media (min-width: 1025px) {
  .rkit-background-switcher-pos-absolute .show-on-hover {
    opacity: 0;
    /* display: block; */
    transform: translateY(-20px);
    max-height: 0px;
    transition:
      transform 0.5s ease,
      max-height 0.5s ease;
    pointer-events: none;
    position: inherit;
  }

  .rkit-background-switcher-link-list.card-row.active
    .rkit-background-switcher-links-text
    .rkit-background-switcher-links-item-link
    .rkit-background-switcher-link-subheading.show-on-hover,
  .rkit-background-switcher-link-list.card-row.active
    .rkit-background-switcher-link-no.show-on-hover,
  .rkit-background-switcher-link-list.card-row.active
    .rkit-background-switcher-links-text
    .rkit-background-switcher-links-item-link
    .rkit-background-switcher-title.show-on-hover,
  .rkit-background-switcher-link-list.card-row.active
    .rkit-background-switcher-view-more.show-on-hover {
    /* opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    max-height: var(--height);
    position: relative;
    transition: transform 0.5s ease  , opacity 0.8s ease , max-height 0.5s ease;
    visibility: visible; */
    animation: showing 0.5s ease forwards;
  }
}

/* ===== TABLET ===== */
@media (min-width: 768px) and (max-width: 1024px) {
  .rkit-background-switcher-pos-absolute .show-on-hover-tablet {
    opacity: 0;
    transform: translateY(20px);
    transition:
      transform 0.5s ease,
      max-height 0.5s ease;
    pointer-events: none;
    position: inherit;
    max-height: 0px;
  }

  .rkit-background-switcher-link-list.card-row.active
    .rkit-background-switcher-links-text
    .rkit-background-switcher-links-item-link
    .rkit-background-switcher-link-subheading.show-on-hover-tablet,
  .rkit-background-switcher-link-list.card-row.active
    .rkit-background-switcher-link-no.show-on-hover-tablet,
  .rkit-background-switcher-link-list.card-row.active
    .rkit-background-switcher-links-text
    .rkit-background-switcher-links-item-link
    .rkit-background-switcher-title.show-on-hover-tablet,
  .rkit-background-switcher-link-list.card-row.active
    .rkit-background-switcher-view-more.show-on-hover-tablet {
    /* opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    max-height: var(--height);
    position: relative;
    transition: transform 0.5s ease , opacity 0.8s ease , max-height 0.5s ease;
    height: 100%; */
    animation: showing 0.5s ease forwards;
  }

  .rkit-background-switcher-link-list.hidding .show-on-hover-tablet {
    animation: hiding 0.5s ease forwards;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 767px) {
  .rkit-background-switcher-pos-absolute .show-on-hover-mobile {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    position: inherit;
    transition:
      transform 0.5s ease,
      max-height 0.5s ease;
    max-height: 0px;
  }

  .rkit-background-switcher-link-list.card-row.active
    .rkit-background-switcher-links-text
    .rkit-background-switcher-links-item-link
    .rkit-background-switcher-link-subheading.show-on-hover-mobile,
  .rkit-background-switcher-link-list.card-row.active
    .rkit-background-switcher-link-no.show-on-hover-mobile,
  .rkit-background-switcher-link-list.card-row.active
    .rkit-background-switcher-links-text
    .rkit-background-switcher-links-item-link
    .rkit-background-switcher-title.show-on-hover-mobile,
  .rkit-background-switcher-link-list.card-row.active
    .rkit-background-switcher-view-more.show-on-hover-mobile {
    animation: showing 0.5s ease forwards;
    /* opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    max-height: var(--height);
    position: relative; */
    /* transition: transform 0.5s ease , opacity 0.8s ease , max-height 0.5s ease; */
  }

  .rkit-background-switcher-link-list.hidding .show-on-hover-mobile {
    animation: hiding 0.5s ease forwards;
  }
}

.rkit-background-switcher-pos-absolute {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  justify-content: flex-end;
  overflow: hidden;
}

.rkit-background-switcher-pos-absolute-2 {
  display: flex;
  /* position: absolute; */
  inset: 0;
  flex-direction: column;
  justify-content: flex-end;
  /* z-index: -1; */
  width: 100%;
}
@media screen and (max-width: 1024px) {
  .rkit-background-switcher-link-list.card-row.divider-horizontal {
    border-radius: none;
    --divider-color: black;
    border-right: none;
    border-bottom-width: var(--divider-width);
    border-bottom-style: solid;
    border-bottom-color: var(--divider-color);
  }
}
