.nb-bundle-quick-add {
  display: grid;
  gap: 12px;
  width: 100%;
  justify-items: center;
  text-align: center;
}

.nb-bundle-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  align-items: start;
  width: 100%;
  margin-bottom: 30px;
}

.nb-bundle-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 210px;
}

.nb-bundle-image {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  object-fit: contain;
}

h3.nb-bundle-title {
  margin: 0 0 8px;
  font-size: 1.8rem;
  line-height: 1.2;
  color: #161616;
}

.nb-bundle-modal-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  color: #161616;
}

.nb-bundle-prices {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-bottom: 36px;
}

.nb-bundle-regular-total {
  min-height: 18px;
  color: #777;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.nb-bundle-regular-price {
  text-decoration: line-through;
}

.nb-bundle-price {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  justify-content: center;
  color: #ed002b;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
}

.nb-bundle-price-label {
  color: #777;
  font-size: 1.1rem;
  font-weight: 800;
}

.nb-bundle-product {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-bottom: 0;
  min-width: 0;
}

.nb-bundle-product-controls {
  display: grid;
  gap: 15px;
  justify-items: center;
  width: 100%;
}

.nb-bundle-product-label {
  max-width: 100%;
  color: #666;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

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

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

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

button.nb-bundle-swatch {
  background: #fff;
}

.nb-bundle-swatch.is-selected {
  border-color: #ed002b;
  box-shadow: 0 0 0 0 #fff, 0 0 0 2px #ed002b;
}

.nb-bundle-swatch-visual {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: inherit;
  background-color: #f4f4f4;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.nb-bundle-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-bundle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.nb-bundle-add-button,
.nb-bundle-details-button {
  min-height: 40px;
  padding: 18px 30px;
  border: 0;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

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

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

.nb-bundle-add-button:disabled {
  background: #ddd;
  color: #777;
  cursor: not-allowed;
}

.nb-bundle-details-button {
  background: #ed002b;
  color: #fff;
}

.nb-bundle-details-button:hover {
  background: #c90024;
  color: #fff;
}

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

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

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

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

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

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

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

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

.nb-bundle-modal-description {
  margin: 0 0 18px;
  color: #444;
  font-size: .95rem;
  line-height: 1.45;
}

@media (max-width: 767px) {
  .nb-bundle-products {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .nb-bundle-product-label {
    width: min(132px, 100%);
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .92rem;
    line-height: 1.18;
  }

  .nb-bundle-image-wrap {
    min-height: 120px;
  }

  .nb-bundle-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nb-bundle-add-button,
  .nb-bundle-details-button {
    width: 100%;
  }

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