/* Main container styling */
.conversionbox-upsell {
  margin: 20px 0;
  clear: both;
  display: block;
  font-weight: bold;
}

/* Skeleton Loading Styles - Matching instant search pattern */
@keyframes cbSkeletonAnim {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.cb-bundle-skeleton {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-family: inherit;
  width: 100%;
  clear: both;
  display: block;
}

.cb-bundle-skeleton * {
  box-sizing: border-box;
}

.cb-bundle-skeleton .cbSkeletonCard {
  padding: 10px;
  border: 1px solid #eee;
}

.cb-bundle-skeleton .cbSkeletonText {
  height: 8px;
  background: #eee;
  border-radius: 3px;
  display: inline-block;
  animation: cbSkeletonAnim 2s infinite;
}

.cb-bundle-skeleton .cbSkeletonText.cbFullWidth:last-child {
  width: 100%;
}

.cb-bundle-skeleton .cbSkeletonText.cbFullWidth:first-child:not(:last-child) {
  width: 80%;
}

.cb-bundle-skeleton .cbSkeletonText.cbFullWidth:nth-child(2):not(:last-child) {
  width: 95%;
}

.cb-bundle-skeleton .cbSkeletonText.cbFullWidth:last-child:not(:first-child) {
  width: 60%;
}

.cb-bundle-skeleton .cbBundleHeader {
  margin-bottom: 20px;
}

.cb-bundle-skeleton .cbBundleHeader .cbSkeletonText:first-child {
  width: 60%;
  height: 24px;
  margin-bottom: 8px;
}

.cb-bundle-skeleton .cbBundleHeader .cbSkeletonText:last-child {
  width: 80%;
  height: 16px;
}

.cb-bundle-skeleton .cbSkeletonProducts {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: 100%;
}

.cb-bundle-skeleton .cbProductItem {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  background: white;
  position: relative;
  width: 250px;
  height: 330px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cb-bundle-skeleton .cbProductItem .cbThumbnailWrap {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
}

.cb-bundle-skeleton .cbProductItem .cbThumbnailWrap .cbThumbnail {
  margin: -10px -10px 0 -10px;
  background: #eee;
  height: 180px;
  border-radius: 6px;
}

.cb-bundle-skeleton .cbProductItem .cbOverhidden {
  padding-bottom: 20px;
  text-align: center;
  width: 100%;
}

.cb-bundle-skeleton .cbProductItem .cbOverhidden > span {
  margin: 15px 0 0 0;
  display: block;
}

/* Responsive skeleton design */
@media (max-width: 768px) {
  .cb-bundle-skeleton .cbSkeletonProducts {
    flex-direction: column;
    gap: 15px;
    flex-wrap: wrap;
  }
  
  .cb-bundle-skeleton .cbProductItem {
    width: 100%;
    max-width: 250px;
  }
}
  
  /* Buy Together Bundle Container */
  .cb-buy-together-bundle {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: inherit;
    width: 100%;
    clear: both;
    display: block;
  }
  
  /* Bundle Header */
  .cb-bundle-header {
    margin-bottom: 20px;
  }
  
  .cb-bundle-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.cb-bundle-pitch {
  font-size: 14px;
  color: #666;
  margin: 8px 0 0 0;
}
  
  /* Products Section */
.cb-products-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: 100%;
}
  
  /* Product Card */
.cb-product-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  background: white;
  position: relative;
  width: 250px;
  height: 330px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.cb-main-product,
.cb-addon-product {
  border: 1px solid #e0e0e0;
  transition: border-color 0.2s;
}

.cb-main-product:hover,
.cb-addon-product:hover {
  border-color: var(--cbACViewAllBackground, #000000);
}

.cb-selected {
  border-color: var(--cbACViewAllBackground, #000000);
  background: #f8f9ff;
}
  
  /* Product Image */
  .cb-product-image {
    position: relative;
    text-align: center;
    margin-bottom: 12px;
    width: 100%;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .cb-product-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
  }
  
  .cb-product-image .placeholder {
    color: #999;
    font-size: 12px;
    text-align: center;
  }
  
  /* Selection Indicator */
  .cb-selected-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
  }
  
  .cb-custom-checkbox {
    width: 20px;
    height: 20px;
    background: var(--cbACViewAllBackground, #000000);
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--cbACViewAllBackground, #000000);
    animation: checkboxPop 0.3s ease-out;
  }
  
  @keyframes checkboxPop {
    0% {
      transform: scale(0);
      opacity: 0;
    }
    50% {
      transform: scale(1.1);
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }
  
  /* Product Info */
  .cb-product-info {
    text-align: center;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 90px;
    padding: 0 4px;
  }
  
  .cb-product-name {
  font-size: 16px;
  font-weight: 500;
  color: #1e293b;
  margin: 0 0 6px 0;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.cb-product-price {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  height: 24px;
}

.cb-current-price {
  font-size: 15px;
  font-weight: 500;
  color: var(--cbACPrice, #000000);
  text-align: center;
}

.cb-special-price-note {
  font-size: 7px;
  color: #4caf50;
  font-weight: 500;
  margin-top: 1px;
}

.cb-addon-products {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
  
  /* Math Symbols */
.cb-plus-sign, .cb-equals-sign {
  font-size: 18px;
  font-weight: bold;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  margin-top: 0;
  flex-shrink: 0;
}
  
  /* Total Section */
.cb-total-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  flex-shrink: 0;
  height: 330px;
  justify-content: center;
  margin-left: 0;
  margin-right: 0;
  flex: 0 0 auto;
  width: 200px;
}
  
  .cb-price-breakdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 8px;
  min-width: 200px;
}
  
  .cb-breakdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 11px;
  min-width: 200px;
  text-align: center;
  margin-bottom: 8px;
}
  
  .cb-breakdown-item span:first-child {
  font-size: 13px;
  color: #1e293b;
  font-weight: bold;
  margin-bottom: 4px;
}

.cb-breakdown-item span:last-child {
  font-size: 12px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.cb-breakdown-item.cb-total span:last-child {
  font-size: 14px;
  color: var(--cbACPrice, #000000);
  margin-bottom: 8px;
  font-weight: bold;
}

.cb-total-price {
  font-size: 14px;
  color: var(--cbACPrice, #000000);
  font-weight: bold;
}
  
  /* Add to Cart Button */
.cb-add-to-cart-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--cbACViewAllBackground,#000000);
  color: var(--cbACViewAllText, white);
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 200px;
}
  
  .cb-add-to-cart-button:hover:not(:disabled) {
  background: var(--cbACViewAllBackground, #333333);
}
  
  .cb-add-to-cart-button:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
  }
  
  
  
  /* Loading and Error States */
  .loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }
  
  .error {
    text-align: center;
    color: #dc3545;
    padding: 20px;
  }
  
  /* Responsive Design */
@media (max-width: 768px) {
  .cb-products-section {
    flex-direction: column;
    gap: 15px;
    flex-wrap: wrap;
  }
  
  .cb-plus-sign {
    transform: rotate(90deg);
    margin-top: 0;
  }
  
  .cb-total-section {
    flex-direction: row;
    align-items: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .cb-price-breakdown {
    justify-content: center;
    flex: 1;
  }
  
  .cb-add-to-cart-button {
    width: auto;
    min-width: 120px;
  }
  
  .cb-product-card {
    width: 100%;
    max-width: 250px;
  }
}
  
  /* Ensure proper positioning within layout */
  .productView-description .cb-buy-together-bundle,
  .productView-info .cb-buy-together-bundle,
  .productView-info-details .cb-buy-together-bundle {
    margin-top: 30px;
    margin-bottom: 30px;
  }
  
  /* Override any floating issues */
  .cb-buy-together-bundle::before,
  .cb-buy-together-bundle::after {
    content: "";
    display: table;
    clear: both;
  }