/* ================================
   Desktop (Base styles)
================================= */
.template-filter-block-wrapper {
  overflow: hidden;
}

.template-filter-block-wrapper .template-filter-tags-wrapper {
  position: relative;
}

.template-filter-block-wrapper .template-filter-tags-wrapper .button-nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
}

.template-filter-block-wrapper .template-filter-tags-wrapper .button-nav.next {
  right: 0;
  left: auto;
}

.template-filter-block-wrapper .template-filter-tags-wrapper .button-nav.next img {
  transform: rotate(180deg);
}

.template-filter-block-wrapper .template-filter-tags-wrapper .button-nav img {
  display: block;
}

.template-filter-block-wrapper .template-filter-tags-wrapper.overflow {
  padding: 0 30px;
}

.template-filter-block-wrapper .template-filter-tags-wrapper.overflow .button-nav {
  display: block;
}

.template-filter-block-wrapper .template-filter-tags-wrapper .template-filter-tags-list {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.template-filter-block-wrapper .template-filter-tags-wrapper .template-filter-tags-list::-webkit-scrollbar {
  display: none;
}

.template-filter-block-wrapper .template-filter-tags-wrapper .template-filter-tags-list .tag {
  font-weight: 400;
  border: solid 1px #CBD0D7;
  padding: 5px 35px;
  border-radius: 20px;
  transition: all 0.3s ease;
  text-wrap: nowrap;
}

.template-filter-block-wrapper .template-filter-tags-wrapper .template-filter-tags-list .tag.active {
  font-weight: 700;
  border-color: #ED7843;
  background-color: #EEA787;
}

.template-filter-block-wrapper .template-filter-tags-wrapper .template-filter-tags-list .tag:hover {
  cursor: pointer;
  border-color: #ED7843;
  background-color: #EEA787;
}


/* ================================
   Tablet (≤ 768px)
================================= */
@media screen and (max-width: 768px) {
  .template-filter-block-wrapper .template-filter-tags-wrapper.overflow {
    padding: 0;
  }

  .template-filter-block-wrapper .template-filter-tags-wrapper.overflow .button-nav {
    display: none;
  }

  /* Reanudar el overflow visible fuera de mobile */
  .template-filter-block-wrapper {
    overflow: visible;
  }
}


/* ================================
   Mobile (≤ 600px)
================================= */
@media screen and (max-width: 600px) {
  .template-filter-block-wrapper {
    overflow: hidden;
  }

  .template-filter-block-wrapper .template-filter-tags-wrapper .template-filter-tags-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: -20px;
    padding-right: 20px;
    margin-left: -20px;
    padding-left: 20px;
    scrollbar-width: none;
  }

  .template-filter-block-wrapper .template-filter-tags-wrapper .template-filter-tags-list .tag {
    flex-shrink: 0;
  }
}