/* SecurPlanet product complements — compact native accessories.
   Loaded with a cache-buster from head.tpl (CCC can skip custom.css). */

body.page-product #center-column {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

.sp-acc {
  --sp-acc-visible: 1.28;
  --sp-acc-gap: 0.75rem;
  --sp-acc-card-max: 22rem;
  --sp-acc-img: 4.75rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 1.5rem 0;
  padding: 0;
  overflow-x: clip;
  color: var(--sp-night, #0b1220);
}

@media (min-width: 768px) {
  .sp-acc {
    --sp-acc-visible: 2;
    --sp-acc-gap: 0.85rem;
    margin: 2rem 0;
  }
}

@media (min-width: 992px) {
  .sp-acc {
    --sp-acc-visible: 3;
    --sp-acc-gap: 1rem;
  }
}

.sp-acc__header {
  margin: 0 0 0.75rem;
}

@media (min-width: 768px) {
  .sp-acc__header {
    margin: 0 0 1rem;
  }
}

.sp-acc__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--sp-night, #0b1220);
}

.sp-acc__stage {
  position: relative;
  max-width: 100%;
  min-width: 0;
}

.sp-acc__viewport {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.sp-acc__viewport::-webkit-scrollbar {
  display: none;
}

.sp-acc__viewport:focus-visible {
  outline: 2px solid var(--sp-electric, #2563eb);
  outline-offset: 4px;
}

.sp-acc--static .sp-acc__viewport {
  overflow: hidden;
}

.sp-acc--scrollable .sp-acc__viewport {
  margin-inline: 2.35rem;
}

@media (max-width: 767px) {
  .sp-acc--scrollable .sp-acc__viewport {
    margin-inline: 1.7rem;
  }
}

.sp-acc__track {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: var(--sp-acc-gap);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-acc__item {
  box-sizing: border-box;
  flex: 0 0 calc((100% - (var(--sp-acc-visible) - 1) * var(--sp-acc-gap)) / var(--sp-acc-visible));
  width: calc((100% - (var(--sp-acc-visible) - 1) * var(--sp-acc-gap)) / var(--sp-acc-visible));
  max-width: calc((100% - (var(--sp-acc-visible) - 1) * var(--sp-acc-gap)) / var(--sp-acc-visible));
  min-width: 0;
  scroll-snap-align: start;
}

.sp-acc--static .sp-acc__item {
  max-width: min(var(--sp-acc-card-max), calc((100% - (var(--sp-acc-visible) - 1) * var(--sp-acc-gap)) / var(--sp-acc-visible)));
}

.sp-acc__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--sp-gray, #e2e8f0);
  border-radius: 999px;
  background: var(--sp-white, #ffffff);
  color: #64748b;
  transform: translateY(-50%);
  cursor: pointer;
}

.sp-acc__nav .material-icons {
  font-size: 1.25rem;
  line-height: 1;
}

.sp-acc__nav--prev {
  left: 0;
}

.sp-acc__nav--next {
  right: 0;
}

.sp-acc__nav:hover:not(:disabled) {
  color: var(--sp-night, #0b1220);
  border-color: #cbd5e1;
}

.sp-acc__nav:focus-visible {
  outline: 2px solid var(--sp-electric, #2563eb);
  outline-offset: 2px;
}

.sp-acc__nav:disabled,
.sp-acc__nav[hidden] {
  opacity: 0;
  pointer-events: none;
}

.sp-acc:not(.sp-acc--scrollable) .sp-acc__nav {
  display: none;
}

.sp-acc-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-sizing: border-box;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--sp-gray, #e2e8f0);
  border-radius: 0.5rem;
  background: var(--sp-white, #ffffff);
}

.sp-acc-card__media {
  flex: 0 0 var(--sp-acc-img);
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--sp-acc-img);
  height: var(--sp-acc-img);
  overflow: hidden;
}

.sp-acc-card__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: var(--sp-acc-img);
  max-height: var(--sp-acc-img);
  object-fit: contain;
  object-position: center;
}

.sp-acc-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  gap: 0;
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
}

.sp-acc-card__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 0.25rem;
  min-height: calc(1em * 1.3 * 2);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--sp-night, #0b1220);
  text-decoration: none;
}

.sp-acc a.sp-acc-card__name:not(.btn) {
  color: var(--sp-night, #0b1220);
}

.sp-acc a.sp-acc-card__name:not(.btn):hover,
.sp-acc a.sp-acc-card__name:not(.btn):focus-visible {
  color: var(--sp-electric, #2563eb);
}

.sp-acc-card__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 0.5rem;
  row-gap: 0.15rem;
  width: 100%;
  min-width: 0;
  margin: 0 0 0.35rem;
}

.sp-acc-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem;
  min-width: 0;
  margin: 0;
}

.sp-acc-card__amount {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sp-night, #0b1220);
}

.sp-acc-card__tax {
  font-size: 0.72rem;
  color: #64748b;
}

.sp-acc-card__avail {
  margin: 0;
  justify-self: end;
  align-self: start;
  white-space: nowrap;
}

.sp-acc-card__avail .badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.2;
  padding: 0.18rem 0.42rem;
  border-radius: 0.35rem;
}

.sp-acc-card .badge.sp-avail-in {
  background-color: #e6faf6;
  border: 1px solid #c7f3ea;
  color: #0b1220;
}

.sp-acc-card .badge.sp-avail-order {
  background-color: #fff6eb;
  border: 1px solid #f3d5b0;
  color: #9a4d00;
}

.sp-acc-card .badge.sp-avail-out {
  background-color: #eef2f6;
  border: 1px solid #e2e8f0;
  color: #0b1220;
}

.sp-acc-card__action {
  margin-top: auto;
  width: 100%;
  min-width: 0;
}

.sp-acc-card__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.sp-acc-card__qty.quantity-button,
.sp-acc-card .js-quantity-button {
  display: block;
  flex: 0 0 auto;
  max-width: 100%;
  min-width: 0;
}

.sp-acc-card .quantity-button__group.input-group {
  display: flex;
  flex-wrap: nowrap;
  width: auto;
  max-width: 100%;
}

.sp-acc-card .quantity-button button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 0.35rem;
}

.sp-acc-card .quantity-button button .material-icons {
  font-size: 1.05rem;
  line-height: 1;
}

.sp-acc-card .quantity-button input.form-control {
  box-sizing: border-box;
  flex: 0 0 2.25rem;
  width: 2.25rem;
  min-width: 2rem;
  max-width: 2.5rem;
  height: 2rem;
  padding: 0 0.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.sp-acc-card__btn.btn {
  flex: 1 1 7.5rem;
  min-width: 0;
  min-height: 2rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

@media (max-width: 767px) {
  .sp-acc {
    --sp-acc-img: 4.375rem;
  }

  .sp-acc-card {
    gap: 0.5rem;
    padding: 0.75rem;
    min-height: 0;
  }

  .sp-acc-card__meta {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 0.25rem;
  }

  .sp-acc-card__avail {
    justify-self: start;
  }

  .sp-acc-card__form {
    flex-direction: column;
    align-items: stretch;
  }

  .sp-acc-card .quantity-button__group.input-group {
    width: 100%;
  }

  .sp-acc-card .quantity-button button.btn {
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
  }

  .sp-acc-card .quantity-button input.form-control {
    flex: 1 1 auto;
    width: auto;
    min-width: 2.75rem;
    max-width: none;
    height: 2.75rem;
    font-size: 1rem;
  }

  .sp-acc-card__btn.btn {
    flex: 1 1 auto;
    width: 100%;
    min-height: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-acc__viewport {
    scroll-behavior: auto;
  }
}
