/* Atalhos do header no mobile: carrossel horizontal deslizante */

@media (max-width: 767.98px) {
  .atalhos-header-col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .atalhos-header-mobile {
    position: relative;
    width: 100%;
    /* Fade nas bordas indica que dá para deslizar */
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 12px,
      #000 calc(100% - 12px),
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 12px,
      #000 calc(100% - 12px),
      transparent 100%
    );
  }

  .atalhos-header-mobile.is-at-start {
    -webkit-mask-image: linear-gradient(
      to right,
      #000 0,
      #000 calc(100% - 12px),
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      #000 0,
      #000 calc(100% - 12px),
      transparent 100%
    );
  }

  .atalhos-header-mobile.is-at-end {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 12px,
      #000 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 12px,
      #000 100%
    );
  }

  .atalhos-header-mobile.is-no-scroll {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .atalhos-header-mobile.is-no-scroll .atalhos-header-mobile__track {
    justify-content: center;
  }

  .atalhos-header-mobile__track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    padding: 0.15rem 0.25rem;
    /* Esconde scrollbar, mantém gesto de deslize */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .atalhos-header-mobile__track::-webkit-scrollbar {
    display: none;
  }

  .atalhos-header-mobile__btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    flex: 0 0 auto;
    width: 4.25rem;
    min-width: 4.25rem;
    height: 3.5rem;
    padding: 0.35rem 0.25rem;
    margin: 0;
    border-radius: 0.75rem;
    line-height: 1.1;
    text-align: center;
    scroll-snap-align: start;
    box-shadow: 0 1px 3px rgba(50, 50, 93, 0.12);
    -webkit-tap-highlight-color: transparent;
  }

  .atalhos-header-mobile__btn i {
    font-size: 1.15rem;
    line-height: 1;
    margin: 0;
  }

  .atalhos-header-mobile__label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.62rem;
    font-weight: 600;
    color: #525f7f;
    line-height: 1.15;
  }
}
