.jbusa .power-mode {
  background: #fff8e8;
  border: 1px solid #e9d6aa;
  border-radius: 999px;
  color: #765313;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 0 0 16px;
  padding: 6px 10px;
  text-transform: uppercase;
}

.jbusa .quantity-help {
  color: var(--jb-muted);
  font-size: 13px;
  margin: 0 0 12px;
}

.jbusa .quantity .quantity-options {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 610px;
}

.jbusa .quantity label {
  background: #fff;
  border: 1px solid var(--jb-line);
  border-radius: 16px;
  color: var(--jb-ink);
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 8px;
}

.jbusa .quantity input:checked + label {
  background: #fff;
  border: 2px solid var(--jb-green);
  box-shadow: 0 0 0 3px rgba(22, 90, 67, .12);
  color: var(--jb-ink);
  padding: 7px;
}

.jbusa .quantity-thumb {
  aspect-ratio: 4 / 3;
  background: #eef3f0;
  border-radius: 11px;
  display: grid;
  gap: 2px;
  overflow: hidden;
  padding: 2px;
}

.jbusa .quantity-thumb.is-photo {
  display: block;
  padding: 0;
}

.jbusa .quantity-thumb-2.is-composite {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jbusa .quantity-thumb-10.is-composite {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.jbusa .quantity-thumb img {
  height: 100%;
  min-height: 0;
  min-width: 0;
  object-fit: cover;
  width: 100%;
}

.jbusa .quantity-label {
  display: grid;
  gap: 1px;
  padding: 0 2px;
}

.jbusa .quantity-label strong {
  font-size: 14px;
}

.jbusa .quantity-label small {
  color: var(--jb-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.jbusa [data-jbusa-main-media] {
  position: relative;
}

.jbusa [data-jbusa-main-media]::after {
  align-items: center;
  background: rgba(23, 32, 29, .9);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  color: #fff;
  content: "\00d7" attr(data-quantity);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-height: 34px;
  min-width: 34px;
  padding: 0 10px;
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 2;
}

.jbusa .quantity label {
  position: relative;
}

.jbusa .quantity input:checked + label::after {
  background: var(--jb-green);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--jb-green);
  content: "";
  height: 10px;
  position: absolute;
  right: 8px;
  top: 8px;
  width: 10px;
}

.jbusa .pack-composite {
  display: grid;
  gap: 8px;
  height: min(480px, 58vw);
  max-width: 100%;
  width: 100%;
}

.jbusa .pack-composite-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jbusa .pack-composite-10 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.jbusa .pack-composite img {
  border-radius: 9px;
  height: 100%;
  min-height: 0;
  min-width: 0;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 760px) {
  .jbusa .quantity .quantity-options {
    gap: 8px;
  }

  .jbusa .quantity label {
    padding: 6px;
  }

  .jbusa .quantity input:checked + label {
    padding: 5px;
  }

  .jbusa .quantity-label small {
    display: none;
  }

  .jbusa .pack-composite {
    gap: 4px;
    height: min(360px, 88vw);
  }

  .jbusa [data-jbusa-main-media]::after {
    right: 12px;
    top: 12px;
  }

  /* Keep fallbacks legible on small screens; dedicated scene photos are unchanged. */
  .jbusa .quantity-thumb-10.is-composite {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    position: relative;
  }

  .jbusa .quantity-thumb-10.is-composite img:not(:first-child) {
    display: none;
  }

  .jbusa .quantity-thumb-10.is-composite img:first-child {
    grid-column: 1;
    grid-row: 1;
    object-fit: contain;
  }

  .jbusa .quantity-thumb-10.is-composite::after {
    align-items: center;
    background: rgba(23, 32, 29, .88);
    border-radius: 999px;
    color: #fff;
    content: "\00d7 10";
    display: flex;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    min-height: 28px;
    padding: 0 8px;
    position: absolute;
    right: 6px;
    top: 6px;
  }

  .jbusa .pack-composite-10 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    position: relative;
  }

  .jbusa .pack-composite-10 img:not(:first-child) {
    display: none;
  }

  .jbusa .pack-composite-10 img:first-child {
    grid-column: 1;
    grid-row: 1;
    object-fit: contain;
  }

}
