@media (max-width: 919px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  [data-mobile-carousel] {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-padding-inline: 0;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
  }

  [data-mobile-carousel]::-webkit-scrollbar {
    display: none;
  }

  [data-mobile-carousel] > * {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }

  .mobile-carousel-ui {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-top: 0.72rem;
  }

  .mobile-carousel-ui[hidden] {
    display: none !important;
  }

  .mobile-carousel-hint {
    color: rgba(17, 17, 17, 0.64);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: -0.01em;
  }

  .mobile-carousel-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
  }

  .mobile-carousel-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
  }

  .mobile-carousel-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(17, 17, 17, 0.16);
    cursor: pointer;
  }

  .mobile-carousel-dot.is-active {
    background: #fff218;
  }

  .mobile-carousel-button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #111111;
    border-radius: 999px;
    background: #fff218;
    color: #111111;
    cursor: pointer;
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .mobile-carousel-button.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
  }

  .mobile-carousel-button:focus-visible {
    outline: 3px solid rgba(255, 242, 0, 0.5);
    outline-offset: 3px;
  }

  .mobile-carousel-nudge {
    animation: workit-carousel-nudge 0.75s ease both;
  }

  .mobile-carousel-ui.is-package-carousel {
    display: grid;
    justify-content: center;
    justify-items: center;
    gap: 0.65rem;
    margin-top: 0.85rem;
  }

  .mobile-carousel-ui.is-package-carousel[hidden] {
    display: none !important;
  }

  .mobile-carousel-ui.is-package-carousel .mobile-carousel-controls {
    order: 1;
    gap: 0.85rem;
  }

  .mobile-carousel-ui.is-package-carousel .mobile-carousel-hint {
    order: 2;
    color: rgba(17, 17, 17, 0.52);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .packages-grid[data-carousel-variant="packages"] {
    display: grid;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .packages-grid[data-carousel-variant="packages"] > .package-card {
    min-width: 0;
  }
}

@supports not (overflow: clip) {
  @media (max-width: 919px) {
    html,
    body {
      overflow-x: hidden;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-mobile-carousel] {
    scroll-behavior: auto;
  }

  .mobile-carousel-nudge {
    animation: none;
  }
}

@keyframes workit-carousel-nudge {
  0% {
    transform: translateX(0);
  }
  45% {
    transform: translateX(-14px);
  }
  100% {
    transform: translateX(0);
  }
}
