.tobor-teleoperation-bundle {
  --tobor-bundle-bg: #ffffff;
  --tobor-bundle-text: #171717;
  --tobor-bundle-muted: #525252;
  --tobor-bundle-blue: #506ccd;
  --tobor-bundle-accent: #99c300;
  --tobor-bundle-border: #e8e8e8;
  --tobor-button-hover-border: #7DA300;
  --tobor-button-hover-bg: #7DA300;
  box-sizing: border-box;
  width: 100%;
  padding: 96px;
  background: var(--tobor-bundle-bg);
  color: var(--tobor-bundle-text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.tobor-teleoperation-bundle *,
.tobor-teleoperation-bundle *::before,
.tobor-teleoperation-bundle *::after {
  box-sizing: border-box;
}

.tobor-teleoperation-bundle__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1248px;
  margin: 0 auto 32px;
}

.tobor-teleoperation-bundle__header h2 {
  width: 100%;
  margin: 0;
  color: var(--tobor-bundle-text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  letter-spacing: 0;
}

.tobor-teleoperation-bundle .tobor-teleoperation-bundle__header p {
  width: 100%;
  margin: 0;
  color: var(--tobor-bundle-text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0;
}

.tobor-teleoperation-bundle__mobile-carousel {
  display: none;
}

.tobor-teleoperation-bundle__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 300px));
  gap: 16px;
  align-items: stretch;
  max-width: 1248px;
  margin: 0 auto;
}

.tobor-teleoperation-bundle__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--tobor-bundle-border);
  border-radius: 8px;
  background: #ffffff;
}

.tobor-teleoperation-bundle__card-link {
  text-decoration: none;
  color: inherit;
}

/* Stretch the title link over the whole card so any click opens the bundle. */
.tobor-teleoperation-bundle__card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.tobor-teleoperation-bundle__card:hover,
.tobor-teleoperation-bundle__card:focus-within {
  box-shadow: 0 8px 18px -6px rgba(24, 39, 75, 0.12), 0 12px 42px -4px rgba(24, 39, 75, 0.12);
}

.tobor-teleoperation-bundle__image {
  position: relative;
  width: 100%;
  height: 226px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: #ffffff;
}

.tobor-teleoperation-bundle__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: top;
}

.tobor-teleoperation-bundle__add {
  position: absolute;
  left: 50%;
  top: 160px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 128px;
  background: var(--tobor-bundle-accent);
  color: var(--tobor-bundle-text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.tobor-teleoperation-bundle__card:hover .tobor-teleoperation-bundle__add,
.tobor-teleoperation-bundle__card:focus-within .tobor-teleoperation-bundle__add {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tobor-teleoperation-bundle__add:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

.tobor-teleoperation-bundle__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  padding: 16px 12px;
}

.tobor-teleoperation-bundle__summary {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.tobor-teleoperation-bundle__summary h3 {
  width: 100%;
  margin: 0;
  color: var(--tobor-bundle-text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
}

.tobor-teleoperation-bundle__price {
  width: 100%;
  margin: 0;
  color: var(--tobor-bundle-blue);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.tobor-teleoperation-bundle__divider {
  width: 100%;
  height: 1px;
  margin: -24px 0;
  background: var(--tobor-bundle-border);
}

.tobor-teleoperation-bundle__best-for {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  font-size: 12px;
  line-height: 18px;
}

.tobor-teleoperation-bundle__label {
  margin: 0;
  color: var(--tobor-bundle-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.tobor-teleoperation-bundle__best-for-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #1f2937;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.tobor-teleoperation-bundle__best-for-list li {
  position: relative;
  padding-left: 14px;
}

.tobor-teleoperation-bundle__best-for-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tobor-bundle-muted);
}

.tobor-teleoperation-bundle__badges {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-top: auto;
}

.tobor-teleoperation-bundle__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Equal halves so the pair fills the card width instead of sizing to content. */
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 6px 8px 4px;
  border-radius: 6px;
  background: #f8fafc;
}

.tobor-teleoperation-bundle__badge img {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.tobor-teleoperation-bundle__badge span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.tobor-teleoperation-bundle__badge strong {
  color: var(--tobor-bundle-text);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}

.tobor-teleoperation-bundle__badge em {
  color: var(--tobor-bundle-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 12px;
  white-space: nowrap;
}

.tobor-teleoperation-bundle__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  margin-top: 32px;
}

.tobor-teleoperation-bundle__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 128px;
  color: var(--tobor-bundle-text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.tobor-teleoperation-bundle__button:hover,
.tobor-teleoperation-bundle__button:focus {
  color: var(--tobor-bundle-text);
  text-decoration: none;
}

.tobor-teleoperation-bundle__button--primary {
  border: 2px solid var(--tobor-bundle-accent);
  background: var(--tobor-bundle-accent);
}
.tobor-teleoperation-bundle__button--primary:hover {
  border: 2px solid var(--tobor-button-hover-border);
  background: var(--tobor-button-hover-bg);
}

.tobor-teleoperation-bundle__button--secondary {
  border: 2px solid var(--tobor-bundle-text);
  background: transparent;
}
.tobor-teleoperation-bundle__button--secondary:hover {
  border: 2px solid #dddddd;
  background-color: #f7f7f7;
  color: var(--tobor-bundle-text) !important;
}

@media (max-width: 1199px) {
  .tobor-teleoperation-bundle {
    padding: 80px 48px;
  }

  .tobor-teleoperation-bundle__cards {
    grid-template-columns: repeat(2, minmax(0, 300px));
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .tobor-teleoperation-bundle {
    padding: 64px 20px;
  }

  .tobor-teleoperation-bundle__header h2 {
    font-size: 36px;
    line-height: 44px;
  }

  .tobor-teleoperation-bundle__header p {
    font-size: 18px;
    line-height: 26px;
  }

  .tobor-teleoperation-bundle__cards {
    display: none;
  }

  .tobor-teleoperation-bundle__mobile-carousel {
    display: block;
    width: 100%;
    overflow: hidden;
  }

  .tobor-teleoperation-bundle__mobile-track {
    display: flex;
    gap: 16px;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-right: 0;
    cursor: grab;
  }

  .tobor-teleoperation-bundle__mobile-track::-webkit-scrollbar {
    display: none;
  }

  .tobor-teleoperation-bundle__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin:20px 0;
  }

  .tobor-teleoperation-bundle__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: var(--tobor-bundle-border);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .tobor-teleoperation-bundle__dot.is-active {
    background: var(--tobor-bundle-blue);
    transform: scale(1.3);
  }

  .tobor-teleoperation-bundle__card--mobile {
    /* mobile: current card takes full width, no peek of the next card */
    flex: 0 0 100%;
    scroll-snap-align: start;
  }

  .tobor-teleoperation-bundle__card--mobile .tobor-teleoperation-bundle__image {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .tobor-teleoperation-bundle__add {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  /* Stacked full-width CTAs on mobile, matching the feature section. */
  .tobor-teleoperation-bundle__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tobor-teleoperation-bundle__button {
    width: 100%;
  }
}

@media (max-width: 479px) {
  .tobor-teleoperation-bundle__card--mobile {
    /* stay full-width (no peek) on small phones too */
    flex: 0 0 100%;
  }
}

/* Tablet: use the scrollable carousel with 300px cards and a peek of the
   next card (instead of the desktop grid). */
@media (min-width: 768px) and (max-width: 1024px) {
  .tobor-teleoperation-bundle__cards {
    display: none;
  }

  .tobor-teleoperation-bundle__mobile-carousel {
    display: block;
    width: 100%;
    overflow: hidden;
  }

  .tobor-teleoperation-bundle__mobile-track {
    display: flex;
    gap: 16px;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
  }

  .tobor-teleoperation-bundle__mobile-track::-webkit-scrollbar {
    display: none;
  }

  .tobor-teleoperation-bundle__card--mobile {
    /* cards capped at 300px; a fixed basis keeps the next card peeking */
    flex: 0 0 300px;
    max-width: 300px;
    scroll-snap-align: start;
  }

  .tobor-teleoperation-bundle__card--mobile .tobor-teleoperation-bundle__image {
    height: 225px;
    aspect-ratio: 4 / 3;
  }

  .tobor-teleoperation-bundle__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
  }
}
