:root {
  --ss-accent-color: #080909ff;
  --ss-border-color: #e1e3e5;
  --ss-selected-bg-color: #f6f6f7;
  --ss-gift-bg-color: #111111;
  --ss-text-color: #1a1a1a;
  --ss-subtitle-color: #6d7175;
}

/* Upsell Checkout Section */
.ss-upsell-checkout {
  margin-top: 8px !important;
  padding: 0 !important;
  border: none !important;
}

.ss-upsell-checkout__title {
  display: none !important;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ss-subtitle-color);
  text-align: center;
  margin-bottom: 12px;
}


.ss-upsell-checkout__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ss-upsell-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px !important;
  border: 1.5px solid var(--ss-border-color);
  border-radius: 12px !important;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #ffffff;
  position: relative;
  height: auto !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ss-upsell-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ss-upsell-item--selected {
  border-width: 2px;
}

.ss-upsell-item__checkbox-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 8px;
}

.ss-upsell-item__checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--ss-accent-color);
}

.ss-upsell-item__image-wrapper {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #f4f4f4;
}

.ss-upsell-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ss-upsell-item__left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ss-upsell-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}


.ss-upsell-item__badge {
  display: inline-block;
  width: fit-content;
  padding: 2px 8px;
  background-color: #f3f4f6;
  color: #374151;
  font-size: 9px;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: 1px solid #e5e7eb;
}


.ss-upsell-item__title {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: #111827;
  line-height: 1.3;
}

.ss-upsell-item__subtitle {
  font-size: 12px;
  color: #000000;
  margin: 2px 0 0;
  font-weight: 600;
}

.ss-upsell-item__price {
  flex-shrink: 0;
  text-align: right;
  margin-left: auto;
  min-width: 85px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  overflow: hidden;
}

.ss-upsell-item__final-price {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
  line-height: 1.1;
}

.ss-upsell-item__original-price {
  font-size: 12px;
  color: #595959;
  text-decoration: line-through;
  white-space: nowrap;
  font-weight: 500;
}

.ss-bundle {
  margin-top: 12px;
  border-radius: 6px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: visible;
}

.ss-bundle__title {
  margin: 10px 0px;
  /* font-size: 13px; */
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #202223;
}

.ss-bundle__title:after,
.ss-bundle__title:before {
  content: "";
  display: block;
  height: 1.5px;
  flex-grow: 1;
}

.ss-bundle__title:before {
  background: linear-gradient(to right, transparent, var(--ss-border-color, #e1e3e5));
}

.ss-bundle__title:after {
  background: linear-gradient(to left, transparent, var(--ss-border-color, #e1e3e5));
}

.ss-bundle__bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: visible;
}

.ss-bundle__bars--grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: stretch;
  padding-top: 12px;
}

.ss-bundle__bars--grid .ss-bundle-bar {
  text-align: center;
}

.ss-bundle__bars--grid .ss-bundle-bar__main {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center;
  padding: 24px 14px 16px !important;
  gap: 8px;
}

.ss-bundle__bars--grid .ss-bundle-bar__left {
  flex-direction: column !important;
  align-items: center !important;
  width: 100%;
}

.ss-bundle__bars--grid .ss-bundle-bar__right {
  align-items: center !important;
  width: 100%;
  margin-left: 0 !important;
}

.ss-bundle__bars--grid .ss-bundle-bar__badge {
  position: absolute !important;
  top: -10px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
}

.ss-bundle__bars--grid .ss-bundle-bar__variants {
  width: 100%;
  align-items: center;
}

.ss-bundle__bars--grid .ss-variant-select-wrapper {
  justify-content: center;
}

.ss-bundle-bar {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: var(--ss-border-radius, 12px);
  border: 1.5px solid var(--ss-border-color);
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  overflow: visible !important;
  position: relative;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02); */
}

.ss-bundle-bar--selected {
  border-color: var(--ss-accent-color);
  border-width: 1.5px;
  background-color: var(--ss-selected-bg-color, #f6f6f7);
  /*  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);*/
  transform: translateY(-1px);
  /* Keep below bars that carry overhanging badges (see --badge-overhang). */
  z-index: 1;
}

/* Badge overhangs into the previous bar — must paint above selected neighbors. */
.ss-bundle-bar--badge-overhang {
  z-index: 20 !important;
  overflow: visible !important;
}

.ss-bundle-bar__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px !important;
  width: 100%;
  gap: 12px;
  box-sizing: border-box;
}

.ss-bundle-bar__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ss-bundle-bar__indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--ss-border-color, #d1d3d5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background-color: #ffffff;
  box-sizing: border-box;
}

.ss-bundle-bar--selected .ss-bundle-bar__indicator {
  border-color: var(--ss-accent-color, #111111);
  border-width: 2.5px;
  background-color: #ffffff;
}

.ss-bundle-bar__indicator::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.2s ease;
}

.ss-bundle-bar--selected .ss-bundle-bar__indicator::after {
  background: var(--ss-accent-color, #111111);
}

.ss-bundle-bar__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.ss-bundle-bar__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ss-bundle-bar__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.ss-bundle-bar__savings-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.ss-bundle-bar__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--ss-text-color, #111111);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.ss-bundle-bar__subtitle {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ss-subtitle-color, #6d7175);
  margin: 0px;
  line-height: 1.3;
  opacity: 0.95;
}

.ss-bundle-bar__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  min-width: 120px;
}

.ss-bundle-bar__price {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.ss-bundle-bar__final-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--ss-text-color, #111111);
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.ss-bundle-bar__original-price {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ss-subtitle-color, #6d7175);
  text-decoration: line-through;
  line-height: 1.2;
  white-space: nowrap;
}

.ss-bundle-option-select {
  padding: 7px 28px 7px 12px !important;
  font-size: 13.5px !important;
  font-family: inherit !important;
  border: 1px solid #d3d5d7 !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  color: #202223 !important;
  cursor: pointer !important;
  outline: none !important;
  height: 38px !important;
  line-height: normal !important;
  box-sizing: border-box !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23333333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

.ss-bundle-option-select::-ms-expand {
  display: none !important;
}

.ss-bundle-bar__badge {
  z-index: 10;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  background: #202223;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.ss-bundle-bar__savings-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  background: #e8e8e8;
  color: #555;
  transition: all 0.2s ease;
}


.ss-bundle-bar--selected .ss-bundle-bar__savings-badge {
  background: var(--ss-accent-color);
  color: #fff;
}

.ss-bundle-bar__gift {
  display: none;
  background: linear-gradient(90deg, var(--ss-accent-color), var(--ss-accent-color-transparent, var(--ss-accent-color)));
  background: linear-gradient(90deg, var(--ss-accent-color), color-mix(in srgb, var(--ss-accent-color) 80%, transparent));
  color: #fff;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 800;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ss-bundle-bar--selected .ss-bundle-bar__gift {
  display: flex;
}

.ss-bundle-bar__gift-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.ss-bundle-bar__gift-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
  flex-shrink: 0;
}

.ss-bundle-bar__gift-text {
  min-width: 0;
  line-height: 1.3;
}

.ss-bundle-bar__gift-price {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

.ss-bundle-bar__gift-free-price {
  font-size: 11px;
  font-weight: 900;
  color: #fff;
}

.ss-bundle-bar__gift-original-price {
  font-size: 12px;
  font-weight: 700;
  text-decoration: line-through;
  opacity: 0.85;
  color: #fff;
}

/* 🚀 Performance Optimization: Moved from JS to CSS */
.ss-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
}

.ss-modal {
  background: #fff;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ss-modal-header {
  padding: 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ss-modal-header h4 {
  margin: 0;
  font-size: 16px;
}

.ss-modal-close {
  cursor: pointer;
  font-size: 20px;
  border: none;
  background: none;
}

.ss-modal-content {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ss-product-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.ss-product-item:hover {
  background: #f9f9f9;
}

.ss-product-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}



.ss-product-item--variant {
  padding-left: 14px;
}



.ss-product-item--loading {
  opacity: 0.65;
  pointer-events: none;
}

.ss-product-info {
  flex: 1;
  min-width: 0;

}

.ss-product-title {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.ss-product-price {
  font-size: 12px;
  color: #666;
  margin: 0;
}

.ss-slot-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;

  padding: 8px;
  border: 1px solid #eee;
  border-radius: 6px;
  margin-bottom: 5px;
  background: #fff;
}

.ss-slot-main {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.ss-slot-variant-wrap {
  width: 100%;
  padding-left: 2px;
}

.ss-slot-variant-wrap .ss-variant-options-header,
.ss-slot-variant-wrap .ss-variant-slot-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ss-slot-variant-wrap .ss-variant-slot-inner {
  margin-top: 2px;
}


.ss-slot-thumb {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  background: #f4f4f4;
}

.ss-slot-info {
  flex: 1;
  min-width: 0;
}

.ss-slot-label {
  font-size: 10px;
  color: #888;
  display: block;
}

.ss-slot-title {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.ss-slot-btn {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  white-space: nowrap;
}

/* Completed Bundle Layouts */
.ss-completed-bundle {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--ss-border-color);
  border-radius: var(--ss-border-radius);
  background: #fff;
  margin: 8px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.ss-cb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 10px;
}

.ss-cb-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ss-text-color);
}

.ss-cb-badge {
  background: var(--ss-accent-color);
  color: white;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.ss-cb-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
}

.ss-cb-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 0;
}

.ss-cb-product img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  margin-bottom: 6px;
  background: #fafafa;
}

.ss-cb-product-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--ss-text-color);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ss-cb-product-price {
  font-size: 11px;
  font-weight: 700;
  color: var(--ss-accent-color);
}


.ss-cb-plus {
  font-size: 20px;
  color: #ccc;
  font-weight: 300;
  flex-shrink: 0;
}

.ss-cb-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.ss-cb-total-label {
  font-size: 12px;
  color: var(--ss-subtitle-color);
}

.ss-cb-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.ss-cb-final-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--ss-text-color);
}

.ss-cb-orig-wrap {
  display: flex;
  gap: 6px;
  font-size: 12px;
}

.ss-cb-orig-price {
  text-decoration: line-through;
  color: var(--ss-subtitle-color);
}

.ss-cb-total-savings {
  color: var(--ss-accent-color);
  font-weight: 600;
}


@media (max-width: 480px) {
  .ss-cb-product-row {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .ss-cb-product {
    flex-direction: row;
    text-align: left;
    gap: 12px;
    max-width: none;
  }

  .ss-cb-product img {
    width: 50px;
    height: 50px;
    margin-bottom: 0;
  }

  .ss-cb-plus {
    text-align: center;
    line-height: 1;
    padding: 0;
  }

  .ss-cb-product-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 12px;
  }
}

/* Skeleton Placeholder — visible until JS validates & renders a bundle */
.ss-bundle-placeholder {
  width: 100%;
  height: 180px;
  background: #f1f1f2;
  border-radius: 10px;
  margin: 12px 0;
  overflow: hidden;
  position: relative;
  display: block;
}

.ss-bundle-placeholder::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: ss-shimmer 1.5s infinite;
}

@keyframes ss-shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Sticky Add to Cart */
.ss-sticky-cart {
  position: fixed;
  bottom: -150px;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 32px;
  box-sizing: border-box;
  z-index: 2147483647;
  transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0.4s;
  visibility: hidden;
  opacity: 0;
  font-family: inherit;
}

.ss-sticky-cart--visible {
  bottom: 0;
  visibility: visible;
  opacity: 1;
}

.ss-sticky-cart__product {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.ss-sticky-cart__image-wrap {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #f4f4f4;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.ss-sticky-cart__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ss-sticky-cart__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.ss-sticky-cart__atc {
  flex-shrink: 0;
  margin-left: 20px;
}

.ss-sticky-cart__button {
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-align: center;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ss-sticky-cart__button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.ss-sticky-cart__button:active {
  transform: translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .ss-sticky-cart {
    padding: 12px 20px;
  }

  .ss-sticky-cart__image-wrap {
    width: 42px;
    height: 42px;
  }

  .ss-sticky-cart__title {
    font-size: 14px;
  }

  .ss-sticky-cart__button {
    padding: 12px 24px;
    font-size: 14px;
  }
}

@media (max-width: 540px) {
  .ss-sticky-cart__product {
    display: none;
    /* Hide product info to give button full width */
  }

  .ss-sticky-cart {
    justify-content: center;
    padding: 12px;
  }

  .ss-sticky-cart__atc {
    width: 100%;
    margin-left: 0;
  }

  .ss-sticky-cart__button {
    width: 100%;
    padding: 16px 20px;
  }
}

/* Sticky Cart Loader */
.ss-sticky-cart__button.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.ss-sticky-cart__button.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: ss-sticky-spin 0.8s ease-in-out infinite;
}

@keyframes ss-sticky-spin {
  to {
    transform: rotate(360deg);
  }
}

.ss-badge-star {
  font-size: 11px;
  color: #ffd700;
  margin-left: 2px;
  display: inline-block;
  filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.5));
}


/* ─────────────────────────────────────────────
   Bundle Bar Badges
   ───────────────────────────────────────────── */

/* Inline pill badge (shown inside rightSection) */
.ss-bundle-bar__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  /* Colors overridden inline per merchant config */
  background-color: #080909ff;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

/* "Most Popular" full-width top banner badge */
.ss-bundle-bar__badge--banner,
.ss-bundle-bar__badge[data-banner="true"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 5px 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
  border-radius: 0;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  /* Colors overridden inline per merchant config */
  background-color: #202223;
  color: #ffffff;
}

/* SVG sticker + ribbon badges */
.ss-popular-badge {
  display: inline-flex;
  line-height: 0;
  pointer-events: none;
  z-index: 21;
  overflow: visible;
}

.ss-popular-badge--sticker {
  position: absolute;
  top: -10px;
  right: -6px;
  transform: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

.ss-popular-badge--ribbon {
  position: absolute;
  top: -2px;
  right: 12px;
  left: auto;
  transform: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

.ss-popular-badge--sticker.ss-badge-align-start,
.ss-popular-badge--ribbon.ss-badge-align-start {
  left: 12px;
  right: auto;
}

.ss-popular-badge--sticker.ss-badge-align-center,
.ss-popular-badge--ribbon.ss-badge-align-center {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.ss-popular-badge--sticker.ss-badge-align-start {
  transform: none;
}

.ss-popular-badge--sticker.ss-badge-align-center {
  transform: translateX(-50%);
}

.ss-popular-badge--sticker.ss-badge-align-end {
  left: auto;
  right: -6px;
  transform: none;
}

.ss-popular-badge--ribbon.ss-badge-align-end {
  left: auto;
  right: 12px;
  transform: none;
}

.ss-bundle-bar__off-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  background-color: #f97316;
  color: #ffffff;
  flex-shrink: 0;
}

.ss-bundle-bar__off-badge--under-price {
  position: static;
  margin-top: 6px;
}

/* BOGO savings badge */
.ss-bundle-bar__savings-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  padding: 5px 6px;
  border-radius: 4px;
  background-color: #080909ff;
  color: #ffffff;
  flex-shrink: 0;
}

.ss-bundle-bar__savings-badge--bogo {
  /* Slightly different accent for BOGO */
  background-color: #006e52;
}


/* ─────────────────────────────────────────────
   Progressive Gifts Section
   ───────────────────────────────────────────── */
.ss-progressive-gifts {
  width: 100%;
  box-sizing: border-box;
}

.ss-progressive-gifts-header {
  text-align: center;
}

.ss-progressive-gifts-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.ss-progressive-gifts-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  opacity: 0.8;
}

.ss-progressive-gift-card {
  transition: all 0.3s ease;
  overflow: visible;
}

.ss-bundle [data-ss-powered-by="rabbit"],
.ss-bundle-builder-root [data-ss-powered-by="rabbit"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 20 !important;
  margin-top: 10px !important;
  transform: none !important;
  clip: auto !important;
  clip-path: none !important;
  filter: none !important;
}

.ss-progressive-gift-labels-pill {
  pointer-events: none;
  overflow: hidden;
  max-width: calc(100% + 24px);
}

.ss-progressive-gift-label-crossed {
  text-decoration: line-through;
  opacity: 0.85;
}

.ss-progressive-gift-card.locked {
  filter: grayscale(0.5);
  opacity: 0.8;
}

.ss-locked-overlay {
  pointer-events: none;
}

.ss-progressive-gift-title {
  margin: 0;
  word-break: break-word;
}

/* ─────────────────────────────────────────────
   Bar label (the <label> element wrapping each
   bar option) — must be a flex column so the
   full-width top banner stacks above content
   ───────────────────────────────────────────── */
.ss-bundle-bar>.ss-countdown-timer {
  width: 100% !important;
  flex-shrink: 0 !important;
  align-self: stretch !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
}

.ss-mix-match__progress-section {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.ss-mix-match__tier-badge {
  position: absolute;
  top: -12px;
  right: -8px;
  width: 48px;
  height: 48px;
  z-index: 2;
  pointer-events: none;
}

.ss-mix-match__tier-card {
  overflow: visible !important;
}

.ss-mix-match__tier-labels {
  overflow: visible !important;
  padding-top: 14px;
}

.ss-mix-match__progress-text {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #5d522e;
  margin-bottom: 8px;
  line-height: 1.35;
}

.ss-mix-match__progress-container {
  height: 10px;
  background: #f5f0e6;
  border-radius: 999px;
  overflow: hidden;
}

.ss-mix-match__progress-bar {
  display: block !important;
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.ss-mix-match__product-block {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.ss-mix-match__products {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.ss-mix-match__card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.ss-mix-match__card-title {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden !important;
  white-space: normal !important;
  text-overflow: unset !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  max-width: 100% !important;
}

.ss-mix-match__card-image {
  flex-shrink: 0;
}

.ss-mix-match__card-actions {
  flex-shrink: 0;
}

.ss-mix-match__add-btn {
  flex-shrink: 0;
}

.ss-mix-match__variants-panel {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ss-mix-match__tier-labels {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ss-mix-match__qty-picker {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
  border: 1.5px solid var(--ss-accent-color, #111) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  background: #fff !important;
  height: 36px !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.ss-mix-match__qty-picker .ss-mix-match__qty-btn,
.ss-mix-match__qty-picker button {
  width: 34px !important;
  height: 36px !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #111 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.ss-mix-match__qty-picker .ss-mix-match__qty-input,
.ss-mix-match__qty-picker input[type="number"],
.ss-mix-match__qty-picker input {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-left: 1px solid #e5e7eb !important;
  border-right: 1px solid #e5e7eb !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  outline: none !important;
  text-align: center !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 36px !important;
  color: #111 !important;
  appearance: textfield !important;
  -webkit-appearance: none !important;
  -moz-appearance: textfield !important;
}

.ss-mix-match__qty-picker input[type="number"]::-webkit-outer-spin-button,
.ss-mix-match__qty-picker input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
  display: none !important;
}

.ss-mix-match__qty-picker input:focus,
.ss-mix-match__qty-picker input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-left-color: #e5e7eb !important;
  border-right-color: #e5e7eb !important;
  background: #fff !important;
}

.ss-mix-match__variant-row:last-child {
  border-bottom: none !important;
}

.ss-mix-match__price-summary {
  width: 100%;
  box-sizing: border-box;
}

.ss-mix-match__price-summary .money {
  white-space: nowrap;
}

.ss-mix-match__atc-button {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
}

/* Mix & Match — mobile */
@media (max-width: 749px) {
  .ss-mix-match__header-row {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .ss-mix-match__tier-labels {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 8px !important;
    padding-top: 16px !important;
    padding-bottom: 4px !important;
    scrollbar-width: thin;
  }

  .ss-mix-match__tier-card {
    flex: 0 0 auto !important;
    min-width: 96px !important;
    padding: 10px 8px !important;
    overflow: visible !important;
  }

  .ss-mix-match__card {
    align-items: flex-start !important;
    gap: 8px 10px !important;
    padding: 10px !important;
  }

  .ss-mix-match__card-info {
    flex: 1 1 calc(100% - 70px) !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .ss-mix-match__card-image {
    width: 52px !important;
    height: 52px !important;
  }

  .ss-mix-match__card-title {
    font-size: 13px !important;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .ss-mix-match__card-actions {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: fit-content;
    margin-left: auto !important;
    justify-content: flex-end;
  }

  .ss-mix-match__add-btn {
    padding: 8px 12px !important;
    font-size: 12px !important;
  }

  .ss-mix-match__products--carousel .ss-mix-match__product-block {
    flex: 0 0 min(240px, 82vw) !important;
    max-width: 82vw !important;
  }

  .ss-mix-match__variant-row {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .ss-mix-match__atc-button {
    font-size: 15px !important;
    padding: 14px 16px !important;
    min-height: 48px;
  }
}

@media (max-width: 380px) {
  .ss-mix-match__card-image {
    width: 44px !important;
    height: 44px !important;
  }

  .ss-mix-match__card-title {
    font-size: 12px !important;
  }
}

/* ─────────────────────────────────────────────
   Bundle Builder Custom CSS (Build a Box)
   ───────────────────────────────────────────── */

.ss-builder-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #202223;
}

.ss-builder-container:not(.ss-builder-container--page) {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}

.ss-builder-container.ss-builder-container--page {
  max-width: none;
  width: 100%;
  margin: 0;
}

.ss-builder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  overflow: visible;
}

@media (min-width: 990px) {
  .ss-builder-grid {
    grid-template-columns: minmax(0, 1fr) 400px;
    align-items: stretch;
  }
}

.ss-builder-header {
  margin-bottom: 24px;
}

.ss-builder-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.ss-builder-subtitle {
  font-size: 16px;
  color: #6d7175;
  margin: 0;
}

/* Slot Visualization */
.ss-builder-slots-container {
  background: #f6f6f7;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  border: 1px solid #e1e3e5;
}

.ss-builder-slots {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}


.ss-builder-slot {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ss-builder-slot.empty {
  border: 2px dashed #d1d3d5;
  background: #fff;
  color: #8c9196;
}

.ss-builder-slot.empty.active {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-color) 15%, transparent);
  background: color-mix(in srgb, var(--accent-color) 4%, #fff);
}

.ss-builder-slot.filled {
  border: 2px solid var(--accent-color);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.ss-builder-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ss-builder-slot-num {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.ss-builder-slot-step-title {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  text-align: center;
  padding: 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.ss-builder-slot-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  font-size: 8px;
  text-align: center;
  padding: 2px 0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.ss-builder-qty-minus,
.ss-builder-qty-plus {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #111;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}

.ss-builder-qty-minus:hover,
.ss-builder-qty-plus:hover {
  background: #e5e7eb;
}

.ss-builder-slot-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ss-builder-slot-remove:hover {
  background: #fee2e2;
  color: #ef4444;
}

.ss-builder-slot-remove svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* Progress Tracker */
.ss-builder-progress-bar-wrap {
  margin-bottom: 24px;
}

.ss-builder-progress-text {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #202223;
}

.ss-builder-progress-track {
  height: 8px;
  background: #e1e3e5;
  border-radius: 4px;
  overflow: hidden;
}

.ss-builder-progress-fill {
  height: 100%;
  background: var(--accent-color);
  border-radius: 4px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block !important;
}

/* Steps Navigation */
.ss-builder-steps-nav {
  display: flex;
  border-bottom: 1px solid #e1e3e5;
  margin-bottom: 24px;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.ss-builder-steps-nav[hidden] {
  display: none !important;
}

.ss-builder-step-tab {
  background: none;
  border: none;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #6d7175;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ss-builder-step-tab.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

.ss-builder-step-tab.complete .ss-builder-step-badge {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
}

.ss-builder-step-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #6d7175;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
}

.ss-builder-step-tab.active .ss-builder-step-badge {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* Product Cards Grid */
.ss-builder-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.ss-builder-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.ss-builder-load-more-wrap[hidden] {
  display: none !important;
}

.ss-builder-load-more-btn {
  min-width: 160px;
  padding: 12px 20px;
  border: 1.5px solid var(--accent-color, #080909ff);
  border-radius: 8px;
  background: #fff;
  color: var(--accent-color, #080909ff);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}

.ss-builder-load-more-btn:hover:not(:disabled) {
  background: var(--accent-color, #080909ff);
  color: #fff;
}

.ss-builder-load-more-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}


@media (min-width: 600px) {
  .ss-builder-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ss-builder-product-card {
  border: 1px solid #e1e3e5;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ss-builder-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.ss-builder-product-img-wrap {
  aspect-ratio: 1;
  background: #f9f9fb;
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
}

.ss-builder-product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ss-builder-product-details {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ss-builder-product-details h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.ss-builder-product-price {
  font-size: 14px;
  font-weight: 700;
  color: #6d7175;
  margin: 0 0 12px;
}

.ss-builder-product-select-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.ss-builder-product-select-btn:hover {
  opacity: 0.9;
}

.ss-builder-product-select-btn:disabled {
  background: #e1e3e5 !important;
  color: #8c9196;
  cursor: not-allowed;
}

/* OOS Overlay */
.ss-builder-oos {
  opacity: 0.6;
}

.ss-builder-badge-oos {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.ss-bb-card-free {
  font-weight: 700;
}

.ss-bb-card-was {
  opacity: 0.55;
  font-weight: 400;
  margin-left: 4px;
}

.ss-builder-right {
  align-self: stretch;
  position: relative;
  width: 100%;
}

/* Summary Card — CSS sticky when ancestors allow; JS pins with fixed if theme clips */
.ss-builder-summary-card {
  border: 1px solid #e1e3e5;
  border-radius: 12px;
  padding: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  overflow: auto;
}

@media (min-width: 990px) {
  .ss-builder-summary-card {
    position: sticky;
    top: var(--ss-sticky-offset, 96px);
    max-height: calc(100vh - var(--ss-sticky-offset, 96px) - 16px);
    max-height: calc(100dvh - var(--ss-sticky-offset, 96px) - 16px);
    z-index: 2;
  }
}

.ss-builder-summary-card.is-pinned {
  z-index: 2;
}

.ss-builder-summary-card.is-pinned-bottom {
  z-index: 2;
}

.ss-builder-summary-card h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
}

.ss-builder-summary-list {
  display: flex;
  scrollbar-width: thin;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  flex: 0 0 auto;
  min-height: 88px;
  max-height: none;
  overflow: visible;
}

.ss-builder-free-gift {
  flex: 0 0 auto;
}

.ss-builder-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e1e3e5;
}

.ss-builder-summary-item--lg {
  padding: 12px 0;
  border-bottom: 1px solid #f1f1f2;
  gap: 10px;
}

.ss-builder-summary-item__left {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  gap: 12px;
}

.ss-builder-summary-item__img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 1px solid #e1e3e5;
  object-fit: cover;
  flex-shrink: 0;
}

.ss-builder-summary-item__text {
  min-width: 0;
  flex: 1;
  text-align: left;
}

.ss-builder-summary-item__title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ss-builder-summary-item__meta {
  font-size: 12px;
  color: #6d7175;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ss-builder-summary-item__qty {
  font-size: 12px;
  color: #1a1a1a;
  margin-top: 4px;
  font-weight: 600;
}

.ss-builder-summary-item__actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 6px;
}

.ss-builder-summary-item__qty-val {
  min-width: 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

/* Fixed empty / filled slots in Bundle Summary */
.ss-builder-summary-slots {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 4px;
}

.ss-builder-summary-slot {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 12px 14px;
  border-radius: 12px;
  box-sizing: border-box;
}

.ss-builder-summary-slot--empty {
  border: 2px dashed #c9cccf;
  background: #fafbfb;
  color: #8c9196;
  justify-content: flex-start;
}

.ss-builder-summary-slot--empty.is-active {
  border-color: var(--accent-color, #080909ff);
  background: color-mix(in srgb, var(--accent-color, #080909ff) 5%, #fff);
  color: var(--accent-color, #080909ff);
}

.ss-builder-summary-slot--filled {
  border: 1px solid #e1e3e5;
  background: #fff;
}

.ss-builder-summary-slot__media {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #e1e3e5;
  background: #f6f6f7;
}

.ss-builder-summary-slot__media img,
.ss-builder-summary-slot__ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ss-builder-summary-slot__ph {
  background: #ececec;
}

.ss-builder-summary-slot__info {
  min-width: 0;
  flex: 1;
}

.ss-builder-summary-slot__title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ss-builder-summary-slot__meta {
  font-size: 12px;
  color: #6d7175;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ss-builder-summary-slot__qty {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 4px;
}

.ss-builder-summary-slot__price {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 4px;
}

.ss-builder-summary-slot__price--free {
  color: #166534;
}

.ss-builder-summary-slot__was {
  margin-left: 6px;
  font-weight: 400;
  opacity: 0.55;
}

.ss-builder-summary-slot__actions {
  flex-shrink: 0;
}

.ss-builder-summary-slot__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px dashed currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.ss-builder-summary-slot__label {
  font-size: 14px;
  font-weight: 600;
}

.ss-builder-summary-step {
  display: block;
  font-size: 10px;
  color: #6d7175;
  margin-top: 2px;
}

/* Pricing Grid */
.ss-builder-pricing {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
}

.ss-builder-price-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #6d7175;
}

.ss-builder-discount-row {
  color: var(--accent-color);
  font-weight: 600;
}

.ss-builder-total-row {
  font-size: 18px;
  font-weight: 700;
  color: #202223;
  padding-top: 12px;
  border-top: 1px solid #e1e3e5;
  margin-top: 4px;
}

/* Checkout Button */
.ss-builder-checkout-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ss-builder-btn-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: var(--accent-color);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ss-builder-btn-submit:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.ss-builder-btn-submit:disabled {
  background: #e1e3e5 !important;
  color: #8c9196;
  cursor: not-allowed;
  transform: none;
}

.ss-builder-validation-msg {
  font-size: 12px;
  text-align: center;
  color: #6d7175;
}

/* ==========================================
   Storefront Widget for Bundle Builder
   ========================================== */
.ss-bb-widget-card {
  position: relative;
  display: block;
  border: 1px solid #e1e3e5;
  border-radius: 12px;
  background-color: #ffffff;
  padding: 20px 20px 16px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  margin-top: 15px;
  margin-bottom: 15px;
  box-sizing: border-box;
  font-family: inherit;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ss-bb-widget-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: #c9cccf;
}

.ss-bb-widget-badge {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #e91e63;
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  padding: 6px 12px;
  border-top-left-radius: 12px;
  border-bottom-right-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  z-index: 2;
}

.ss-bb-widget-hero {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 100px;
  height: 100px;
  border-radius: 10px;
  object-fit: cover;
  background: #f6f6f7;
  border: 1px solid #e1e3e5;
  z-index: 1;
}

.ss-bb-widget-body {
  position: relative;
  z-index: 0;
}

.ss-bb-widget-body--with-hero {
  padding-right: 116px;
  min-height: 100px;
}

.ss-bb-widget-title {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 16px 0 4px 0 !important;
  line-height: 1.3;
  text-align: left;
}

.ss-bb-widget-subtitle {
  font-size: 13px;
  color: #6d7175;
  margin: 0 0 16px 0 !important;
  text-align: left;
}

.ss-bb-widget-divider {
  border-top: 1px solid #f1f1f2;
  margin-bottom: 16px;
  width: 100%;
}

.ss-bb-widget-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.ss-bb-widget-step-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ss-bb-widget-step-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.ss-bb-widget-step-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

.ss-bb-widget-step-desc {
  font-size: 12px;
  color: #6d7175;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.ss-bb-widget-images-container {
  display: flex;
  align-items: center;
  position: relative;
  height: 36px;
  padding-left: 12px;
  flex-shrink: 0;
}


.ss-bb-widget-step-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  position: relative;
  margin-left: -12px;
  background: #ffffff;
}

.ss-bb-widget-step-thumb--0 {
  z-index: 3;
}

.ss-bb-widget-step-thumb--1 {
  z-index: 2;
}

.ss-bb-widget-step-thumb--2 {
  z-index: 1;
}

.ss-bb-widget-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background-color: #212121;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
  box-sizing: border-box;
  transition: background-color 0.2s ease, transform 0.1s ease;
  border: none;
  cursor: pointer;
}

.ss-bb-widget-card:hover .ss-bb-widget-btn {
  background-color: #000000;
}

.ss-bb-widget-btn:active {
  transform: scale(0.98);
}

@media (max-width: 480px) {
  .ss-bb-widget-hero {
    width: 72px;
    height: 72px;
    top: 12px;
    right: 12px;
  }

  .ss-bb-widget-body--with-hero {
    padding-right: 88px;
    min-height: 72px;
  }
}

/* ── Attached badges (Badges accordion) ── */
.ss-attached-badges {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Above bar content AND neighboring bars (parent bar uses elevated z-index). */
  z-index: 20;
  overflow: visible;
}

.ss-attached-badge__simple {
  position: absolute;
  top: 0;
  right: 14px;
  left: auto;
  transform: translateY(-50%);
  padding: 5px 12px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 4px;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  z-index: 21;
}

.ss-attached-badge__most-popular {
  position: absolute;
  /* Match the admin preview: keep the taller sticker clear of the price. */
  top: -34px;
  right: -6px;
  z-index: 21;
  line-height: 0;
  overflow: visible;
  pointer-events: none;
}

.ss-attached-badge__most-popular svg {
  display: block;
  overflow: visible;
  max-width: none;
}

.ss-attached-badge__custom {
  position: absolute;
  top: -8px;
  right: -4px;
  z-index: 21;
  object-fit: contain;
  display: block;
  max-width: none;
}

.ss-attached-badge__custom--svg {
  line-height: 0;
}

.ss-attached-badge__custom--svg svg {
  display: block;
  width: 100%;
  height: auto;
}

.ss-attached-badge__border-wrap {
  position: absolute;
  z-index: 0;
  box-sizing: border-box;
  pointer-events: none;
  overflow: visible;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

.ss-attached-badge__border-band {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border-radius: var(--ss-badge-band-radius, 24px);
  padding: var(--ss-badge-thickness, 16px);
  pointer-events: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.ss-attached-badge__border-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.ss-attached-badge__border-svg text {
  /* dominant-baseline: central; */
  alignment-baseline: middle;
}

.ss-attached-badge__marquee {
  display: inline-flex;
  flex-shrink: 0;
  width: max-content;
  animation: ss-badge-marquee linear infinite;
  will-change: transform;
}

.ss-attached-badge__marquee>span {
  display: inline-block;
  padding-right: 0.35em;
}

.ss-attached-badge__marquee--vertical {
  flex-direction: column;
  height: max-content;
  width: auto;
  animation-name: ss-badge-marquee-y;
}

.ss-attached-badge__marquee--vertical>span {
  padding-right: 0;
  padding-bottom: 0.35em;
}

@keyframes ss-badge-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes ss-badge-marquee-y {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

.ss-attached-badge__strip {
  position: absolute;
  z-index: 6;
  overflow: hidden;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: var(--ss-badge-thickness, 16px);
  font-size: var(--ss-badge-font, 10px);
  display: flex;
  align-items: center;
}

.ss-attached-badge__strip--top {
  top: calc(-1 * var(--ss-badge-distance, 8px) - var(--ss-badge-thickness, 16px));
  left: 0;
  right: 0;
  height: var(--ss-badge-thickness, 16px);
}

.ss-attached-badge__strip--bottom {
  bottom: calc(-1 * var(--ss-badge-distance, 8px) - var(--ss-badge-thickness, 16px));
  left: 0;
  right: 0;
  height: var(--ss-badge-thickness, 16px);
}

.ss-attached-badge__strip--left {
  left: calc(-1 * var(--ss-badge-distance, 8px) - var(--ss-badge-thickness, 16px));
  top: 0;
  bottom: 0;
  width: var(--ss-badge-thickness, 16px);
  writing-mode: vertical-rl;
}

.ss-attached-badge__strip--right {
  right: calc(-1 * var(--ss-badge-distance, 8px) - var(--ss-badge-thickness, 16px));
  top: 0;
  bottom: 0;
  width: var(--ss-badge-thickness, 16px);
  writing-mode: vertical-rl;
}

/* ── Bundle Builder page design (hero / announce / cards / modal) ── */

.ss-bundle-builder-root,
.ss-builder-page {
  width: 100%;
  max-width: none;
  overflow-x: visible;
  box-sizing: border-box;
}

/* Break out of theme .page-width / .container wrappers (Dawn, etc.) */
.ss-bundle-builder-root {
  width: 100%;
  max-width: 100%;
  position: relative;
  /* left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw; */
}

.ss-builder-page *,
.ss-builder-page *::before,
.ss-builder-page *::after {
  box-sizing: border-box;
}

.ss-builder-page img {
  max-width: 100%;
}

.ss-builder-container--page {
  max-width: none !important;
  width: 100%;
  margin: 0;
  padding: 20px clamp(16px, 3vw, 48px) 40px;
  overflow: visible;
  box-sizing: border-box;
}

.ss-bb-announce {
  width: 100%;
  padding: 24px clamp(16px, 3vw, 48px) 20px;
  box-sizing: border-box;
}

.ss-bb-announce--top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ss-bb-announce--bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ss-bb-announce-headline {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
}

.ss-bb-announce-units {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.ss-bb-announce--bottom .ss-bb-announce-units {
  justify-content: flex-start;
}

.ss-bb-announce-digit {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}

.ss-bb-announce-label {
  margin-top: 8px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
}

.ss-bb-hero {
  position: relative;
  width: 100%;
  margin: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 220px;
}

.ss-bb-hero--placeholder {
  background: #ece7e1;
}

.ss-bb-hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 28px clamp(16px, 3vw, 48px);
  box-sizing: border-box;
}

.ss-bb-hero-copy {
  max-width: min(560px, 100%);
}

.ss-bb-hero-inner--left-top {
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

.ss-bb-hero-inner--left-middle {
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

.ss-bb-hero-inner--left-bottom {
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
}

.ss-bb-hero-inner--center-top {
  align-items: flex-start;
  justify-content: center;
  text-align: center;
}

.ss-bb-hero-inner--center-middle {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ss-bb-hero-inner--center-bottom {
  align-items: flex-end;
  justify-content: center;
  text-align: center;
}

.ss-bb-hero-inner--right-top {
  align-items: flex-start;
  justify-content: flex-end;
  text-align: right;
}

.ss-bb-hero-inner--right-middle {
  align-items: center;
  justify-content: flex-end;
  text-align: right;
}

.ss-bb-hero-inner--right-bottom {
  align-items: flex-end;
  justify-content: flex-end;
  text-align: right;
}

.ss-bb-filters {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.ss-bb-filters-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
}

.ss-bb-search {
  display: flex;
  align-items: center;
  min-width: 0;
}

.ss-bb-search-icon {
  width: 42px;
  height: 42px;
  border: 1.5px solid #111;
  border-radius: 999px;
  background: #fff;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.ss-bb-search-field {
  display: none;
  position: relative;
  align-items: center;
  width: 100%;
}

.ss-bb-search.is-open {
  flex: 1 1 220px;
  min-width: min(280px, 100%);
}

.ss-bb-search.is-open .ss-bb-search-icon {
  display: none;
}

.ss-bb-search.is-open .ss-bb-search-field {
  display: flex;
}

.ss-bb-search-input {
  width: 100%;
  min-height: 42px;
  border: 1.5px solid #111;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 14px;
  padding: 8px 42px 8px 16px;
  outline: none;
}

.ss-bb-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.ss-bb-search-close {
  position: absolute;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #f0f0f0;
  color: #111;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.ss-bb-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 18px;
  border: 1.5px solid #111;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  line-height: 1;
}

.ss-bb-filter-btn-icon {
  display: flex;
  align-items: center;
}

.ss-bb-filter-btn-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.ss-bb-filter-btn-count[hidden] {
  display: none;
}

.ss-bb-filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ss-bb-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 12px;
  border: 0;
  border-radius: 999px;
  background: #efefef;
  color: #111;
  font-size: 13px;
  cursor: pointer;
}

.ss-bb-filter-chip-x {
  font-size: 16px;
  line-height: 1;
  color: #555;
}

.ss-bb-filter-clear {
  border: 0;
  background: none;
  padding: 0;
  color: #111;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.ss-bb-fm[hidden] {
  display: none;
}

.ss-bb-fm {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}

.ss-bb-fm-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(26, 26, 26, 0.35);
  cursor: pointer;
}

.ss-bb-fm-panel {
  position: relative;
  z-index: 1;
  width: min(400px, 92vw);
  height: 100%;
  max-height: 100%;
  overflow: auto;
  background: #fff;
  border-radius: 0;
  padding: 22px 22px 18px;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.16);
  box-sizing: border-box;
}

.ss-bb-fm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ss-bb-fm-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.ss-bb-fm-close {
  width: 32px;
  height: 32px;
  border: 1px solid #d4d4d4;
  border-radius: 999px;
  background: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #111;
}

.ss-bb-fm-section {
  padding: 16px 0;
  border-top: 1px solid #ececec;
}

.ss-bb-fm-search,
.ss-bb-fm-select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #f4f4f4;
  padding: 10px 12px;
  font-size: 14px;
  box-sizing: border-box;
}

.ss-bb-fm-field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}

.ss-bb-fm-variant-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.ss-bb-fm-variant-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #202223;
  cursor: pointer;
}

.ss-bb-fm-variant-opt input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
}

.ss-bb-fm-sort {
  position: relative;
}

.ss-bb-fm-sort-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  min-height: 58px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: #f3f3f3;
  cursor: pointer;
}

.ss-bb-fm-sort-label {
  display: block;
  font-size: 12px;
  color: #6d7175;
  margin-bottom: 2px;
}

.ss-bb-fm-sort-value {
  display: block;
  font-size: 15px;
  color: #111;
  font-weight: 500;
}

.ss-bb-fm-sort-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 2;
  background: #fff;
  border: 1px solid #c9c9c9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ss-bb-fm-sort-opt {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  padding: 12px 14px;
  font-size: 14px;
  cursor: pointer;
}

.ss-bb-fm-sort-opt.is-active {
  background: #2c6ecb;
  color: #fff;
}

.ss-bb-fm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
}

.ss-bb-fm-toggle {
  width: 44px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: #d4d4d4;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.ss-bb-fm-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

.ss-bb-fm-toggle.is-on {
  background: #111;
}

.ss-bb-fm-toggle.is-on::after {
  transform: translateX(18px);
}

.ss-bb-fm-price-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: none;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.ss-bb-fm-price.is-collapsed .ss-bb-fm-price-body {
  display: none;
}

.ss-bb-fm-price.is-collapsed .ss-bb-fm-price-head svg {
  transform: rotate(180deg);
}

.ss-bb-fm-range {
  position: relative;
  height: 36px;
  margin: 18px 0 8px;
}

.ss-bb-fm-range-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 16px;
  height: 3px;
  background: #ddd;
  border-radius: 999px;
}

.ss-bb-fm-range-fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: #111;
  border-radius: 999px;
}

.ss-bb-fm-range input[type="range"] {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  top: 8px;
  margin: 0;
  background: none;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
}

.ss-bb-fm-range input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #111;
  cursor: pointer;
}

.ss-bb-fm-range input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #111;
  cursor: pointer;
}

.ss-bb-fm-price-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ss-bb-fm-price-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  color: #6d7175;
}

.ss-bb-fm-price-field input {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: #111;
  outline: none;
}

.ss-bb-fm-price-to {
  color: #6d7175;
  font-size: 13px;
}

.ss-bb-fm-apply {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.ss-bb-hero-title {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
}

.ss-bb-hero-sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.ss-builder-container--page .ss-builder-grid {
  gap: 28px;
}

@media (min-width: 990px) {
  .ss-builder-container--page .ss-builder-grid:not(.ss-builder-grid--full) {
    grid-template-columns: minmax(0, 1fr) 400px;
  }
}

.ss-builder-container--page .ss-builder-grid--full {
  grid-template-columns: minmax(0, 1fr);
}

.ss-builder-container--page .ss-builder-product-grid {
  display: block;
}

.ss-bb-step-section {
  margin-bottom: 28px;
}

.ss-bb-step-section--accordion {
  margin-bottom: 0;
}

.ss-bb-step-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid #e1e3e5;
  background: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.ss-bb-step-section--tabs .ss-bb-step-title {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e1e3e5;
}

.ss-bb-step-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.ss-bb-step-chevron {
  display: inline-flex;
  color: #6d7175;
  transition: transform 0.2s ease;
}

.ss-bb-step-section.is-collapsed .ss-bb-step-chevron {
  transform: rotate(-90deg);
}

.ss-bb-step-section.is-collapsed .ss-bb-step-body {
  display: none;
}

.ss-bb-step-section--accordion .ss-bb-step-body {
  padding: 16px 0 20px;
}

.ss-bb-step-desc {
  margin: 0 0 16px;
  color: #6d7175;
  font-size: 14px;
}

.ss-bb-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 200px));
  justify-content: start;
  gap: 16px 20px;
  width: 100%;
}

.ss-bb-step-grid--inline-variants {
  grid-template-columns: repeat(auto-fill, minmax(180px, 220px));
}

.ss-bb-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  max-width: 220px;
}

.ss-bb-step-empty {
  grid-column: 1 / -1;
  padding: 24px;
  text-align: center;
  color: #6d7175;
}

.ss-bb-card-media {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  background: #f6f6f7;
  overflow: hidden;
  margin-bottom: 12px;
}

.ss-bb-card-media img,
.ss-bb-card-ph {
  width: 100%;
  height: 100%;
  max-width: 100%;
  /* contain keeps full product visible (no tight crop / "too close") */
  object-fit: contain;
  object-position: center;
  display: block;
}

.ss-bb-card-view {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border: 0;
  background: rgba(40, 40, 40, 0.72);
  color: #fff;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.ss-bb-card-media:hover .ss-bb-card-view,
.ss-bb-card-view:focus-visible {
  opacity: 1;
}

.ss-bb-card-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.ss-bb-card-price {
  margin: 0 0 8px;
  font-size: 14px;
}

.ss-bb-card-variant-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
  min-width: 0;
  width: 100%;
}

.ss-bb-card-variant-label {
  font-size: 11px;
  font-weight: 600;
  color: #6d7175;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ss-bb-card-variant,
select.ss-bb-card-variant {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  border: 1px solid #c9cccf !important;
  border-radius: 8px !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236d7175' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 12px !important;
  color: #1a1a1a !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  padding: 0 36px 0 12px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  cursor: pointer;
}

.ss-bb-card-btn {
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-top: auto;
}

.ss-bb-card-btn:disabled {
  background: #e1e3e5 !important;
  color: #8c9196 !important;
  cursor: not-allowed;
}

.ss-bb-card-btn.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.ss-bb-modal[hidden] {
  display: none !important;
}

.ss-bb-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  box-sizing: border-box;
}

.ss-bb-modal *,
.ss-bb-modal *::before,
.ss-bb-modal *::after {
  box-sizing: border-box;
}

.ss-bb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.ss-bb-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-width: 100%;
  max-height: min(92vh, 760px);
  max-height: min(92dvh, 760px);
  background: #fff;
  border-radius: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(180px, 38vh) minmax(0, 1fr);
  overflow: hidden;
  isolation: isolate;
}

.ss-bb-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  float: none;
}

.ss-bb-modal-media {
  position: relative;
  background: #f6f6f7;
  min-width: 0;
  min-height: 0;
  max-height: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ss-bb-modal-media>img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
}

.ss-bb-modal-nav {
  position: absolute;
  top: 42%;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  z-index: 2;
  float: none;
}

.ss-bb-modal-prev {
  left: 10px;
}

.ss-bb-modal-next {
  right: 10px;
}

.ss-bb-modal-thumbs {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  z-index: 2;
}

.ss-bb-modal-thumb {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid transparent;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  float: none;
}

.ss-bb-modal-thumb.is-active {
  border-color: #111;
}

.ss-bb-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ss-bb-modal-body {
  position: relative;
  padding: 20px 18px 24px;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.ss-bb-modal-body h2 {
  margin: 0 0 16px;
  padding-right: 28px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

#ss-bb-modal-variants {
  flex: 0 0 auto;
  min-height: auto;
  width: 100%;
  margin: 0 0 16px;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.ss-bb-modal-opt-label,
.ss-bb-modal-qty-label {
  display: block;
  position: relative;
  float: none;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.3;
}

.ss-bb-modal-opt-stacks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.ss-bb-modal-opt-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.ss-bb-modal-opt-select,
.ss-bb-modal-variant-search {
  display: block;
  position: relative;
  float: none;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  height: auto;
  margin: 0;
  border: 1px solid #d0d3d6;
  border-radius: 8px;
  padding: 10px 36px 10px 12px;
  font-size: 14px;
  line-height: 1.4;
  background: #fff;
  color: #111;
  appearance: auto;
  -webkit-appearance: menulist;
}

.ss-bb-modal-variant-search {
  margin-bottom: 8px;
  padding-right: 12px;
}

.ss-bb-modal-variant-list {
  max-height: min(32vh, 240px);
  overflow-y: auto;
  border: 1px solid #e4e5e7;
  border-radius: 8px;
  background: #fff;
}

.ss-bb-modal-variant-row {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #f0f1f2;
  background: #fff;
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
  line-height: 1.35;
  float: none;
}

.ss-bb-modal-variant-row:last-child {
  border-bottom: 0;
}

.ss-bb-modal-variant-row.is-active {
  background: #111;
  color: #fff;
}

.ss-bb-modal-variant-row.is-oos,
.ss-bb-modal-variant-row:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ss-bb-modal-variant-empty {
  padding: 16px 12px;
  color: #6d7175;
  font-size: 13px;
}

.ss-bb-modal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  max-height: min(32vh, 220px);
  overflow-y: auto;
}

.ss-bb-modal-pill {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  float: none;
}

.ss-bb-modal-pill.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.ss-bb-modal-pill.is-oos {
  opacity: 0.45;
  cursor: not-allowed;
}

.ss-bb-modal-qty-wrap,
.ss-bb-modal-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin: 0 0 16px;
  position: relative;
  z-index: 0;
  float: none;
}

.ss-bb-modal-qty-wrap[hidden] {
  display: none !important;
}

.ss-bb-modal-qty {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  width: auto;
  float: none;
  position: relative;
}

.ss-bb-modal-qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eee;
  color: #111;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  float: none;
  position: relative;
}

.ss-bb-modal-qty span,
#ss-bb-modal-qty {
  display: inline-block;
  min-width: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  float: none;
  position: relative;
}

.ss-bb-modal-add {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  min-height: 46px;
  float: none;
  position: relative;
}

.ss-bb-modal-details {
  border-top: 1px solid #eee;
  padding-top: 14px;
  flex: 0 0 auto;
}

.ss-bb-modal-details-h {
  font-weight: 700;
  margin-bottom: 8px;
}

.ss-bb-modal-details p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #4a4a4a;
}

@media (min-width: 860px) {
  .ss-bb-modal-dialog {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    max-height: min(90vh, 760px);
    max-height: min(90dvh, 760px);
  }

  .ss-bb-modal-media {
    max-height: min(90vh, 760px);
    max-height: min(90dvh, 760px);
  }

  .ss-bb-modal-body {
    padding: 28px 24px;
  }
}

@media (min-width: 990px) {
  .ss-bb-step-grid {
    grid-template-columns: repeat(var(--bb-cols, 4), minmax(0, 200px));
  }

  .ss-bb-step-grid--inline-variants {
    grid-template-columns: repeat(var(--bb-cols, 4), minmax(0, 220px));
  }
}

@media (max-width: 989px) {

  .ss-builder-container--page .ss-builder-grid,
  .ss-builder-container--page .ss-builder-grid--full {
    grid-template-columns: minmax(0, 1fr);
  }

  .ss-builder-right,
  .ss-builder-summary-card,
  .ss-builder-summary-card.is-pinned,
  .ss-builder-summary-card.is-pinned-bottom {
    position: static !important;
    top: auto !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    max-height: none !important;
  }

  .ss-bb-hero {
    height: min(320px, 48vw) !important;
    min-height: 180px !important;
  }
}

@media (max-width: 749px) {
  .ss-builder-container--page {
    padding: 12px 12px 28px;
  }

  .ss-builder-steps-nav {
    margin-bottom: 16px;
  }

  .ss-bb-step-grid,
  .ss-bb-step-grid--inline-variants {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
  }

  .ss-bb-card {
    max-width: none;
  }

  .ss-bb-step-title {
    font-size: 17px;
  }

  .ss-bb-card-title {
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .ss-bb-card-view {
    opacity: 1;
    padding: 8px 0;
    font-size: 12px;
  }

  .ss-bb-fm {
    padding: 0;
    justify-content: flex-start;
  }

  .ss-bb-fm-panel {
    width: min(360px, 88vw);
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .ss-bb-hero-inner {
    padding: 16px;
  }

  .ss-bb-hero-title {
    font-size: 24px;
  }

  .ss-bb-modal {
    padding: 0;
    align-items: stretch;
  }

  .ss-bb-modal-dialog {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100dvh;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(140px, 32vh) minmax(0, 1fr);
    border-radius: 0;
    overflow: hidden;
  }

  .ss-bb-modal-media {
    min-height: 0;
    max-height: 32vh;
  }

  .ss-bb-modal-media>img {
    min-height: 0;
    height: 100%;
    max-height: 32vh;
    object-fit: contain;
  }

  .ss-bb-modal-body {
    padding: 18px 16px 28px;
    max-height: none;
    overflow-y: auto;
  }

  .ss-bb-modal-variant-list {
    max-height: min(40vh, 280px);
  }

  .ss-bb-modal-body h2 {
    font-size: 18px;
    overflow-wrap: anywhere;
  }

  .ss-bb-announce-digit {
    width: 48px;
    height: 48px;
    font-size: 16px;
  }

  .ss-builder-summary-item {
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 420px) {

  .ss-bb-step-grid,
  .ss-bb-step-grid--inline-variants {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  .ss-bb-card {
    max-width: none;
  }

  .ss-bb-card-btn {
    font-size: 12px;
    padding: 10px 6px;
  }

  .ss-bb-filter-btn {
    max-width: 100%;
  }
}