.nb-offer-modal > .nb-offer-dialog-frame {
  --nb-dialog-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  --nb-dialog-gap: 24px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  box-sizing: border-box;
  width: min(900px, calc(100% - 32px));
  height: 88vh;
  height: 88dvh;
  margin: 6vh auto;
  margin: 6dvh auto;
  padding: 0 20px 16px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}

.nb-offer-dialog-frame > .nb-offer-dialog-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 48px;
  padding-block: 4px;
}

.nb-offer-dialog-toolbar > .nb-offer-dialog-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #ed002b;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.nb-offer-dialog-frame > .nb-offer-dialog-body,
.nb-offer-dialog-frame > .nb-offer-dialog-footer {
  display: grid;
  grid-template-columns: var(--nb-dialog-columns);
  gap: var(--nb-dialog-gap);
  min-width: 0;
}

.nb-offer-dialog-frame > .nb-offer-dialog-body {
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.nb-offer-dialog-body > .nb-offer-modal-media,
.nb-offer-dialog-body > .nb-offer-modal-info {
  position: static;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  height: auto;
  align-self: stretch;
  align-content: start;
  padding: 4px 6px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nb-offer-dialog-frame > .nb-offer-dialog-footer {
  position: relative;
  z-index: 1;
  background: #fff;
  box-shadow: 0 -7px 12px -10px rgba(0, 0, 0, .45);
}

.nb-offer-dialog-footer > .nb-offer-modal-purchase {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 8px 6px 0;
}

.nb-offer-modal-purchase .nb-offer-purchase-summary {
  margin: 0;
  color: #555;
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.nb-offer-purchase-summary:empty,
.nb-offer-modal-purchase .nb-offer-message:empty {
  display: none;
}

.nb-offer-modal-purchase .nb-offer-purchase-row {
  display: grid;
  grid-template-columns: minmax(54px, 66px) minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}

.nb-offer-purchase-row > input[data-nb-offer-qty],
.nb-offer-purchase-row > .nb-offer-add-button {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  min-height: 44px;
  margin: 0;
}

.nb-offer-purchase-row > input[data-nb-offer-qty] {
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 999px;
  text-align: center;
}

.nb-offer-purchase-row > .nb-offer-add-button {
  position: relative;
  padding: 9px 10px;
  white-space: normal;
  line-height: 1.15;
}

.nb-offer-buy-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 8px;
  color: inherit;
  pointer-events: none;
}

.nb-offer-actions > .nb-offer-add-button {
  position: relative;
}

.nb-offer-add-button.is-loading .nb-offer-buy-label {
  opacity: 0;
}

.nb-offer-add-button.is-loading .nb-offer-buy-loading {
  display: flex;
}

.nb-offer-buy-spinner {
  box-sizing: border-box;
  width: .9em;
  height: .9em;
  flex: 0 0 .9em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: nb-offer-buy-spin .75s linear infinite;
}

.nb-offer-cart-progress {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes nb-offer-buy-spin {
  to { transform: rotate(1turn); }
}

@media (prefers-reduced-motion: reduce) {
  .nb-offer-buy-spinner {
    animation: none;
  }
}

.nb-offer-dialog-body .nb-offer-purchase-info {
  width: 100%;
  min-width: 0;
}

.nb-offer-purchase-info img {
  max-width: 100%;
  height: auto;
}

.nb-offer-dialog-footer > .nb-offer-payment-area {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  min-width: 0;
  cursor: default;
}

.nb-offer-payment-label {
  display: block;
  margin-bottom: 3px;
  color: #666;
  font-size: .68rem;
  line-height: 1;
  text-align: center;
}

.nb-offer-payment-logos {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  min-width: 0;
  width: 100%;
  gap: var(--nb-offer-logo-gap, clamp(3px, 1.3vw, 10px));
}

.nb-offer-dialog-footer .nb-offer-payment-logo {
  display: block;
  width: 100%;
  max-width: 110px;
  --nb-offer-logo-render-height: var(--nb-offer-logo-height, 28px);
  height: var(--nb-offer-logo-render-height);
  object-fit: contain;
}

.nb-offer-dialog-footer .nb-offer-payment-logo-compact {
  height: calc(var(--nb-offer-logo-render-height) * .73);
}

.nb-offer-modal-reviews {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: -9px;
  color: #626262;
  font-size: .84rem;
  line-height: 1.2;
}

.nb-offer-review-stars {
  position: relative;
  display: inline-block;
  color: #b5b5b5;
  font-size: 1.07rem;
  letter-spacing: .05em;
  white-space: nowrap;
}

.nb-offer-review-stars::before,
.nb-offer-review-stars::after {
  content: "★★★★★";
}

.nb-offer-review-stars::after {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  width: var(--nb-offer-rating, 0%);
  color: #f3b51b;
}

.nb-offer-modal-reviews[data-nb-stamped-empty] {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
}

.nb-offer-modal-reviews[data-nb-offer-stamped] :is(.stamped-fa-star, .stamped-fa-star-half-o, .stamped-fa-star-half),
.nb-offer-modal-reviews[data-nb-offer-stamped] :is(.stamped-fa-star, .stamped-fa-star-half-o, .stamped-fa-star-half)::before {
  color: #f3b51b !important;
}

.nb-offer-video-reels {
  display: grid;
  justify-items: center;
  width: min(100%, 360px);
  min-width: 0;
  gap: 6px;
}

.nb-offer-video-reels[hidden] {
  display: none !important;
}

.nb-offer-video-slot {
  display: contents;
}

.nb-offer-reel-stage,
.nb-offer-video-slot > .nb-offer-video {
  height: var(--nb-offer-video-height, auto);
}

.nb-offer-reel-stage {
  position: relative;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

.nb-offer-reel-stage video {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  -webkit-user-drag: none;
}

.nb-offer-reel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.nb-offer-reel-counter {
  min-width: 44px;
  color: #626262;
  font-size: .76rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.nb-offer-video[hidden] {
  display: none !important;
}

.nb-offer-video > [data-nb-offer-video-player] {
  position: relative;
  width: 100%;
  height: 100%;
}

.nb-offer-modal .nb-offer-video-controls,
.nb-offer-modal .nb-offer-video-controls:hover,
.nb-offer-modal .nb-offer-video-controls:active {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.nb-offer-modal .nb-offer-video-controls:focus-visible {
  outline: 2px solid #ed002b;
  outline-offset: -3px;
}

.nb-offer-video-controls[hidden] {
  display: none !important;
}

.nb-offer-video-feedback {
  position: absolute;
  inset: 8px 8px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 6px;
  background: rgba(20, 20, 20, .86);
  color: #fff;
  font-size: .85rem;
  text-align: center;
}

.nb-offer-video-feedback[hidden],
.nb-offer-video-feedback button[hidden] {
  display: none !important;
}

.nb-offer-modal .nb-offer-video-feedback button {
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 767px) {
  .nb-offer-modal > .nb-offer-dialog-frame {
    width: calc(100% - 16px);
    height: calc(100vh - 20px);
    height: calc(100dvh - 20px);
    margin: 10px auto;
    padding: 0 10px max(10px, env(safe-area-inset-bottom));
  }

  .nb-offer-dialog-frame > .nb-offer-dialog-body {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nb-offer-dialog-body > .nb-offer-modal-media,
  .nb-offer-dialog-body > .nb-offer-modal-info {
    overflow: visible;
  }

  .nb-offer-video-reels {
    width: min(100%, 280px);
    justify-self: center;
  }

  .nb-offer-reel-stage {
    aspect-ratio: 1;
  }

  .nb-offer-dialog-body > .nb-offer-modal-info {
    margin-top: 16px;
  }

  .nb-offer-dialog-frame > .nb-offer-dialog-footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .nb-offer-dialog-footer > .nb-offer-modal-purchase,
  .nb-offer-dialog-footer > .nb-offer-payment-area {
    grid-area: auto;
  }

  .nb-offer-payment-label {
    display: none;
  }

  .nb-offer-dialog-footer .nb-offer-payment-logo {
    --nb-offer-logo-render-height: var(--nb-offer-logo-height, 22px);
  }

  .nb-offer-dialog-footer > .nb-offer-modal-purchase {
    padding-inline: 2px;
  }

  .nb-offer-purchase-row > .nb-offer-add-button {
    font-size: .87rem;
  }
}

.nb-offer-quick-add .nb-offer-title .nb-product-registered,
.nb-offer-modal .nb-offer-modal-title .nb-product-registered,
.nb-offer-modal .nb-offer-upsell-details .nb-product-registered {
  font-size: .47em;
  line-height: 0;
  transform: none;
  vertical-align: super;
}

.nb-offer-paypal-prepare {
  min-height: 42px;
  width: 100%;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: #ffc439;
  color: #003087;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
}

.nb-offer-paypal-prepare[hidden],
.nb-offer-paypal-express[hidden] {
  display: none !important;
}

.nb-offer-paypal-express {
  max-height: min(136px, 24vh);
  overflow-y: auto;
}

.nb-offer-paypal-express a {
  font-size: .83rem;
}

.nb-offer-gallery-carousel > .nb-offer-gallery {
  display: grid;
  grid-template-columns: repeat(var(--nb-offer-thumb-columns, 4), minmax(0, 1fr));
  gap: clamp(4px, 1vw, 8px);
  box-sizing: border-box;
  scroll-snap-type: none;
}

.nb-offer-gallery-carousel .nb-offer-gallery-thumb {
  width: 100%;
  min-width: 0;
  touch-action: pan-y pinch-zoom;
}

.nb-offer-modal-gallery-wrap,
.nb-offer-gallery {
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

.nb-offer-modal-gallery-wrap img,
.nb-offer-gallery img {
  -webkit-user-drag: none;
}

@media (max-width: 767px) {
  .nb-offer-card .nb-offer-configuration,
  .nb-offer-modal .nb-offer-configuration {
    font-size: .8rem;
    line-height: 1.2;
  }

  .nb-offer-card .nb-offer-configuration select,
  .nb-offer-modal .nb-offer-configuration select {
    box-sizing: border-box;
    min-height: 34px;
    height: auto;
    padding: 4px 8px;
    font-size: inherit;
    line-height: 1.2;
  }

  .nb-offer-selected-label {
    font-size: .8rem;
    line-height: 1.2;
  }

}

.nb-offer-product-gallery {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 8px;
}

.nb-offer-product-gallery .nb-offer-modal-gallery-wrap {
  position: relative;
  aspect-ratio: 1;
  min-height: 0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  cursor: grab;
}

.nb-offer-product-gallery .nb-offer-modal-gallery-wrap:active {
  cursor: grabbing;
}

.nb-offer-gallery-main-media {
  position: absolute;
  inset: 0 0 34px;
  display: grid;
  place-items: center;
}

.nb-offer-product-gallery .nb-offer-gallery-main-media > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.nb-offer-gallery-lightbox .nb-offer-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
}

.nb-offer-gallery-lightbox .nb-offer-gallery-arrow.nb-prev {
  left: 6px;
}

.nb-offer-gallery-lightbox .nb-offer-gallery-arrow.nb-next {
  right: 6px;
}

.nb-offer-gallery-zoom {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  color: #333;
  line-height: 1;
  cursor: pointer;
}

.nb-offer-gallery-counter {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  font-size: .75rem;
  line-height: 1.15;
}

.nb-offer-product-gallery .nb-offer-gallery-carousel {
  display: grid;
}

.nb-offer-product-gallery .nb-offer-gallery-carousel > .nb-offer-gallery-arrow {
  grid-row: 1;
}

.nb-offer-product-gallery .nb-offer-gallery-carousel > .nb-prev {
  grid-column: 1;
}

.nb-offer-product-gallery .nb-offer-gallery-carousel > .nb-next {
  grid-column: 3;
}

.nb-offer-product-gallery .nb-offer-gallery {
  grid-area: 1 / 2;
  justify-self: center;
  max-width: calc(var(--nb-offer-thumb-columns, 5) * 82px);
  cursor: grab;
}

.nb-offer-gallery-tools {
  position: absolute;
  right: 5px;
  bottom: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nb-offer-gallery-tools > .nb-offer-gallery-zoom {
  width: 30px;
  height: 30px;
}

.nb-offer-gallery-tools > .nb-offer-gallery-zoom,
.nb-offer-gallery-tools > .nb-offer-gallery-counter {
  position: static;
}

.nb-offer-gallery-tools > .nb-offer-gallery-counter {
  color: #626262;
  background: transparent;
}

.nb-offer-gallery-lightbox {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(1100px, calc(100% - 24px));
  height: 90vh;
  height: 90dvh;
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 42px 38px 12px;
  border: 0;
  border-radius: 8px;
  background: #171717;
  overflow: hidden;
}

.nb-offer-gallery-lightbox:not([open]),
.nb-offer-product-gallery [hidden] {
  display: none !important;
}

.nb-offer-gallery-lightbox::backdrop {
  background: rgba(0, 0, 0, .78);
}

.nb-offer-gallery-lightbox .nb-offer-gallery-zoom {
  font-size: 1.35rem;
}

.nb-offer-gallery-lightbox-media {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  place-items: center;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

.nb-offer-gallery-lightbox-media > img,
.nb-offer-gallery-lightbox-media > video {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

@media (max-width: 767px) {
  .nb-offer-gallery-lightbox {
    width: calc(100% - 12px);
    padding-inline: 38px;
  }
}
