/* Hides the Vue root until the app mounts to prevent template flash. */
[v-cloak] {
  display: none !important;
}

/* ============================================================
 * Breadcrumb
 * ============================================================ */
.device-index-crumbs {
  padding-block: 20px 8px;
}

.device-index-crumbs b {
  color: #005eb1;
}

/* ============================================================
 * Hero
 * ============================================================ */
.hero {
  display: flex;
  /* align-items: center; */
  justify-content: center;
  padding: 20px 1rem;
  text-align: center;
}
.hero-content {
 display: flex;
 flex-direction: column;
 align-items: center;
}
.hero h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #111827;
}

.hero p {
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
  }
}

/* ============================================================
 * Device sections
 * ============================================================ */
.device-section {
  margin-bottom: 2rem;
  width: 98%;
}

.device-section-title {
  font-size: 1rem;
  font-weight: 500;
  color: #111827;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.device-selected-title {
  text-align: center;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  position: relative;
  background: #E9EAF2;
  border-radius: 4px;
  padding: 10px;
}
.device-grid-2{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  position: relative;
  padding: 10px;
}

.device-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding:8px;
  border-radius: 4px;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.device-card-2{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding:8px;
  border-radius: 4px;
  background: #F8F8F8;
  font-size: 0.875rem;
}
.device-card-2:hover{
  cursor: pointer;
}

.device-card--active{
  background: #fff;
}

.device-img-wrap {
  height: 80px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.device-img-wrap-2 {
  height: 100px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.device-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.device-img-wrap-2 img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.device-card p {
  font-size: 0.875rem;
  color: #374151;
  text-align: center;
  margin: 0;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.carousel-nav.next {
  right: -18px;
}

.carousel-nav .icon {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

@media (min-width: 768px) {
  .device-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .device-section-title {
    font-size: 1.125rem;
  }

  .carousel-nav {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .device-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
  }

  .carousel-nav {
    display: flex;
  }
}

/* ============================================================
 * Mobile device grid in picker modal
 * ============================================================ */
.device-grid-mobile {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 1rem;
}

/* Prototype selectPhone-allDevices visual language. */
.sp-allDevices {
  color: #000;
}

.sp-allDevices__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 2.75rem;
  text-align: center;
}

.sp-allDevices__header h1 {
  color: #000;
  font-size: 2.5rem;
  font-weight: 600;
}

.sp-allDevices__header p {
  margin-top: 1.25rem;
  color: #000;
  font-size: 0.875rem;
}

.sp-allDevices__tabs {
  margin-top: 2.875rem;
}

.sp-allDevices__tabs .device-category-nav {
  display: flex;
  justify-content: center;
}

.sp-allDevices__tabs .app-tabs__list {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3.875rem;
  flex-wrap: nowrap;
}

.sp-allDevices__tabs .app-tabs__tab {
  position: relative;
  padding: 0 0 0.5rem;
  border: 0;
  background: transparent;
  color: #000;
  cursor: pointer;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1.25rem;
  white-space: nowrap;
}

.sp-allDevices__tabs .app-tabs__tab::after {
  position: absolute;
  right: 0.188rem;
  bottom: 0;
  left: 0.188rem;
  height: 0.188rem;
  background: #015fb1;
  content: '';
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease-out;
}

.sp-allDevices__tabs .app-tabs__tab:hover,
.sp-allDevices__tabs .app-tabs__tab.active {
  color: #000;
}

.sp-allDevices__tabs .app-tabs__tab.active {
  font-weight: 700;
}

.sp-allDevices__tabs .app-tabs__tab.active::after {
  transform: scaleX(1);
}

.sp-allDevices__tabs .app-tabs__tab:focus-visible,
.sp-allDevices__family-card:focus-visible,
.sp-allDevices__product-card:focus-visible,
.sp-allDevices .carousel-nav:focus-visible {
  outline: 3px solid #015fb1;
  outline-offset: 3px;
}

.sp-allDevices__content {
  margin-top: 2.562rem;
}

.sp-allDevices__heading {
  margin-bottom: 0;
  color: #000;
  font-size: 2rem;
  font-weight: 700;
  line-height: 2.125rem;
  text-align: center;
}

.sp-allDevices__family-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 5.75rem 1.438rem;
  margin: 4.875rem auto 0;
  max-width: none;
  position: relative;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.sp-allDevices__family-card {
  grid-column: span 2;
}

.sp-allDevices__family-card:nth-child(1) { grid-column: 1 / span 2; }
.sp-allDevices__family-card:nth-child(2) { grid-column: 3 / span 2; }
.sp-allDevices__family-card:nth-child(3) { grid-column: 5 / span 2; }
.sp-allDevices__family-card:nth-child(4) { grid-column: 7 / span 2; }
.sp-allDevices__family-card:nth-child(5) { grid-column: 9 / span 2; }
.sp-allDevices__family-card:nth-child(6) { grid-column: 4 / span 2; }
.sp-allDevices__family-card:nth-child(7) { grid-column: 6 / span 2; }

.sp-allDevices__family-card {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  padding: 1.125rem 1.5rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #393939;
  font: inherit;
  text-align: center;
  transition: transform 180ms ease-out, background-color 180ms ease-out;
}

.sp-allDevices__family-card:hover,
.sp-allDevices__family-card.device-card--active {
  background-color: #e9eaf3;
}

.sp-allDevices__family-card:hover,
.sp-allDevices__family-card:focus-visible {
  transform: translateY(-0.25rem) scale(1.04);
}

.sp-allDevices__family-card .device-img-wrap {
  width: 100%;
  height: 7rem;
  margin-bottom: 0.75rem;
}

.sp-allDevices__family-card .device-img-wrap img {
  max-width: 13.813rem;
  min-width: 3.125rem;
  height: 7rem;
  object-fit: contain;
}

.sp-allDevices__family-card p {
  margin: 0;
  color: #393939;
  font-size: 0.75rem;
  line-height: 1.25rem;
}

.sp-allDevices__product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.375rem 1.625rem;
  margin: 3.75rem 5rem 0;
}

.sp-allDevices__product-heading-input {
  position: relative;
  width: min(25.937rem, 100%);
  margin: 1.625rem auto 0;
}

.sp-allDevices__product-heading-input input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid #ccc;
  border-radius: 1.5rem;
  background: #fff;
}

.sp-allDevices__product-heading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.125rem;
  margin-top: 3.938rem;
}

.sp-allDevices__product-heading-row .sp-allDevices__heading {
  margin: 0;
}

.sp-allDevices__back {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
}

.sp-allDevices__back-icon {
  width: 2.75rem;
  height: 2.75rem;
}

.sp-allDevices__product-card {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  padding: 0.75rem 1.375rem;
  border: 1px solid transparent;
  border-radius: 0;
  background: #f8f8f8;
  color: #393939;
  font: inherit;
  text-align: center;
}

.sp-allDevices__product-card:hover,
.sp-allDevices__product-card:focus-visible {
  border-color: #ccc;
  background: #fff;
}

.sp-allDevices__product-card .device-img-wrap-2 {
  width: 100%;
  height: 7.125rem;
  margin-bottom: 0.875rem;
}

.sp-allDevices__product-card .device-img-wrap-2 img {
  width: 8.063rem;
  height: 7.125rem;
  object-fit: contain;
}

.sp-allDevices__product-card p {
  max-width: 12.125rem;
  margin: 0.75rem 0 0;
  padding: 0 1.25rem;
  font-size: 0.75rem;
  line-height: 1.25rem;
}

.sp-allDevices__no-results {
  margin: 3.75rem 0 0;
  color: #393939;
  text-align: center;
}

.sp-allDevices .device-selected-title {
  margin-top: 3.5rem;
}

.sp-allDevices .carousel-nav {
  z-index: 1;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: #000;
}

.sp-allDevices .carousel-nav.next {
  right: -1.375rem;
}

@media (max-width: 64rem) {
  .sp-allDevices__tabs .app-tabs__list {
    gap: 1.5rem;
    overflow-x: auto;
  }

  .sp-allDevices__product-grid {
    margin-inline: 1rem;
  }
}

@media (max-width: 48rem) {
  .sp-allDevices__header h1 {
    font-size: 2rem;
  }

  .sp-allDevices__tabs .app-tabs__list {
    justify-content: flex-start;
  }

  .sp-allDevices__family-grid,
  .sp-allDevices__product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sp-allDevices__family-card,
  .sp-allDevices__family-card:nth-child(n) {
    grid-column: span 1;
  }

  .sp-allDevices__product-grid {
    margin-inline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-allDevices__tabs .app-tabs__tab::after,
  .sp-allDevices__family-card {
    transition: none;
  }
}
