.nb-offer-quick-add {
  display: grid;
  gap: 24px;
  width: 100%;
}

.nb-offer-heading {
  margin: 0;
  color: #161616;
  font-size: 1.8rem;
  line-height: 1.2;
  text-align: center;
}

.nb-offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  width: 100%;
}

.nb-offer-card {
  display: grid;
  gap: 12px;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.nb-offer-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  width: 100%;
}

.nb-offer-image,
.nb-offer-modal-image {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
}

.nb-offer-title {
  margin: 0;
  max-width: 100%;
  color: #3d3c3c;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

span.nb-product-registered {
    font-size: 1rem;
}

.nb-offer-card-modal-trigger {
  appearance: none;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  text-decoration: none;
}

.nb-offer-card-modal-trigger:hover,
.nb-offer-card-modal-trigger:focus {
  color: #ed002b;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
  text-decoration: none;
}

.nb-offer-title.nb-offer-card-modal-trigger {
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.nb-product-registered {
  display: inline-block;
  font-size: .52em;
  line-height: 1;
  transform: translateY(-.45em);
}

.nb-offer-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.nb-offer-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #fff !important;
  cursor: pointer;
}

.nb-offer-swatch.is-selected {
  border-color: #ed002b !important;
  box-shadow: none !important;
}

.nb-offer-swatch:not(.is-selected) {
  border-color: transparent !important;
  box-shadow: none !important;
}

.nb-offer-swatch-visual {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: inherit;
  background-color: #f4f4f4;
  box-shadow: inset 0 0 0 1px #d9d9d9;
}

.nb-offer-swatch-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nb-offer-selected-label {
  min-height: 16px;
  color: #555;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.nb-offer-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  justify-content: center;
}

.nb-offer-regular-price {
  min-height: 18px;
  color: #777;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: line-through;
}

.nb-offer-price {
  color: #ed002b;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

.nb-offer-price .nb-price-cents {
  display: inline-block;
  font-size: .62em;
  line-height: 1;
  transform: translateY(-.32em);
}

.nb-offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.nb-offer-add-button,
.nb-offer-details-button {
  min-height: 44px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.nb-offer-add-button {
  background: #ed002b;
  color: #fff;
}

.nb-offer-add-button:hover {
  background: #c90024;
  color: #fff;
}

.nb-offer-details-button {
  min-height: 38px;
  padding-inline: 12px;
  border: 0 !important;
  background: transparent !important;
  color: #3d3c3c !important;
  font-size: .92rem;
  font-weight: 800;
}

.nb-offer-message {
  min-height: 18px;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.3;
}

.nb-offer-message.is-error {
  color: #c90024;
}

.nb-offer-message.is-success {
  color: #14833b;
}

body.nb-offer-modal-open {
  overflow: hidden;
}

.nb-offer-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000000;
}

.nb-offer-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}

.nb-offer-modal-content {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100% - 32px));
  height: 80vh;
  max-height: 80vh;
  margin: 10vh auto;
  padding: 28px;
  overflow-y: auto;
  border-radius: 8px;
  background: #fff;
}

.nb-offer-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 3px;
  background: #ed002b;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.nb-offer-modal-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(320px, .95fr);
  gap: 32px;
  align-items: start;
}

.nb-offer-modal-media {
  display: grid;
  gap: 16px;
  justify-items: center;
  align-self: start;
}

@media (min-width: 768px) {
  .nb-offer-modal-media {
    position: sticky;
    top: 0;
    min-height: 620px;
    align-content: center;
  }

  .nb-offer-modal-media:has(.nb-offer-video) {
    align-content: start;
  }
}

.nb-offer-modal-info {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding-top: 16px;
}

.nb-offer-modal .nb-offer-modal-title {
  margin: 0;
  color: #161616;
  font-size: 2rem !important;
  font-weight: 800;
  line-height: 1.2;
}

.nb-offer-description {
  margin: 0;
  color: #444;
  font-size: .95rem;
  line-height: 1.55;
}

.nb-offer-modal-info .nb-offer-prices {
  justify-content: flex-start;
}

.nb-offer-modal-info .nb-offer-regular-price {
  color: #ed002b;
  font-size: 1.08rem;
}

.nb-offer-modal-info .nb-offer-price {
  font-size: 1.28rem;
}

.nb-offer-gallery-carousel {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  gap: 8px;
  align-items: center;
  width: 100%;
  justify-content: center;
}

.nb-offer-gallery {
  display: flex;
  gap: 10px;
  max-width: 342px;
  overflow: hidden;
  overscroll-behavior-x: cover;
  scroll-behavior: smooth;
  scroll-padding-inline: 4px;
  scroll-snap-type: x mandatory;
  width: 100%;
  padding: 3px;
  scrollbar-width: none;
}

.nb-offer-gallery::-webkit-scrollbar {
  display: none;
}

.nb-offer-light-gallery {
  width: 100%;
}

.nb-offer-modal-gallery-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 390px;
  width: 100%;
}

.nb-offer-modal-gallery-wrap .nb-offer-modal-image {
  max-width: 430px;
  max-height: 430px;
	min-height: 430px;

	
}

.nb-offer-gallery-thumb {
  display: none;
  flex: 0 0 78px;
  width: 78px;
  aspect-ratio: 1;
  height: auto;
  padding: 2px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff !important;
  cursor: pointer;
  scroll-snap-align: center;
}

.nb-offer-gallery-thumb.is-visible-thumb {
  display: block;
}

.nb-offer-gallery-thumb.is-selected {
  border-color: #ed002b;
  box-shadow: none;
}

.nb-offer-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
	border-radius: 5px;
}

.nb-offer-gallery-arrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid #ed002b;
  border-radius: 999px;
  background: #fff;
  color: #ed002b;
  cursor: pointer;
}

.nb-offer-gallery-arrow span {
  display: block;
  width: 9px;
  height: 9px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
}

.nb-offer-gallery-arrow:hover,
.nb-offer-gallery-arrow:focus-visible {
  background: #ed002b;
}

.nb-offer-gallery-arrow:hover span,
.nb-offer-gallery-arrow:focus-visible span {
  border-color: #fff;
}

.nb-offer-gallery-arrow.nb-prev span {
  transform: rotate(-45deg);
}

.nb-offer-gallery-arrow.nb-next span {
  transform: rotate(135deg);
}

.nb-offer-video {
  aspect-ratio: 4 / 5;
  max-width: 360px;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5f5;
}

.nb-offer-video iframe,
.nb-offer-video video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.nb-offer-upsells {
  display: grid;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  background: #f5f5f5;
}

.nb-offer-upsells > div {
  display: grid;
  gap: 0;
}

.nb-offer-upsells label {
  display: grid;
  grid-template-columns: 20px 54px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 10px 0;
  border-top: 1px solid #ddd;
  color: #333;
  font-size: .9rem;
  font-weight: 700;
}

.nb-offer-upsells label:first-child {
  border-top: 0;
}

.nb-offer-upsells img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.nb-offer-upsells span {
  display: grid;
  gap: 3px;
}

.nb-offer-upsells small {
  color: #ed002b;
  font-size: .82rem;
  font-weight: 800;
}

.nb-offer-accordion {
  display: grid;
  gap: 8px;
  width: 100%;
}

.nb-offer-accordion details {
  border-radius: 8px;
  background: #f5f5f5;
}

.nb-offer-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 800;
}

.nb-offer-accordion summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 800;
}

.nb-offer-accordion details[open] summary::after {
  content: "-";
}

.nb-offer-accordion details > div {
  padding: 0 16px 14px;
  color: #444;
  font-size: .92rem;
  line-height: 1.45;
}

.nb-offer-accordion ul,
.nb-offer-accordion p {
  margin: 8px 0 0;
}

.nb-offer-purchase-row {
  width: 100%;
}

.nb-offer-purchase-row input {
  width: 92px;
  min-height: 42px;
  border: 1px solid #ddd;
  border-radius: 999px;
  text-align: center;
}

.nb-offer-modal-info > .nb-offer-add-button {
  width: 100%;
  min-height: 46px;
}

@media (max-width: 767px) {
  .nb-offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
  }

  .nb-offer-image-wrap {
    min-height: 130px;
  }

  .nb-offer-title {
    font-size: 1rem;
  }

  .nb-offer-actions {
    display: grid;
    width: 100%;
  }

  .nb-offer-add-button,
  .nb-offer-details-button {
    width: 100%;
    padding-inline: 14px;
  }

  .nb-offer-modal-content {
    width: calc(100% - 24px);
    height: auto;
    max-height: 92vh;
    margin: 4vh auto;
    padding: 22px 16px;
  }

  .nb-offer-modal-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .nb-offer-modal-info {
    padding-top: 0;
  }

  .nb-offer-modal-gallery-wrap {
    min-height: 240px;
  }

  .nb-offer-modal-gallery-wrap .nb-offer-modal-image {
    max-height: 260px;
  }

  .nb-offer-gallery {
    max-width: 278px;
  }

  .nb-offer-gallery-thumb {
    flex-basis: 62px;
    width: 62px;
  }

  .nb-offer-video iframe,
  .nb-offer-video video {
    height: 100%;
  }

  .nb-offer-video {
    aspect-ratio: 1;
    max-width: 280px;
    justify-self: center;
  }
}
