.haptech-bundle-wrapper {
  font-family: sans-serif;
  color: var(--text-color, #000);
}

.haptech-bundle-title {
  text-align: center;
  margin: 10px 0;
  font-weight: bold;
  font-size: var(--campaign-font-size, 16px);
  color: var(--campaign-color, #000);
}

.haptech-bundle-item {
  border: 1px solid #e3e3e3;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 6px;
  background: var(--background, #fff);
  color: var(--text-color, #000);
  position: relative;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

/* leave room for the badge so it never covers the price */
.haptech-bundle-item.has-badge {
  margin-top: 14px;
}

/* selected tier: merchant border colour + active background */
.haptech-bundle-item.bundle-popular {
  border-color: var(--border-color, #000);
  border-width: var(--border-width, 2px);
  background: var(--background-active, #f8f8f8);
}

/* Badge gắn trên góc */
.haptech-bundle-badge {
  position: absolute;
  top: 0;
  right: 12px;
  transform: translateY(-50%);
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: bold;
  line-height: 1.4;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.bundle-header {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin: 0;
}

.bundle-header input[type="radio"] {
  flex: 0 0 auto;
  margin: 0;
}

.haptech-bundle-text {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.haptech-bundle-price {
  flex: 0 0 auto;
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
  font-size: var(--subtitle-font-size, 12px);
}

.haptech-bundle-name {
  font-weight: bold;
  font-size: var(--title-font-size, 14px);
}

.haptech-bundle-subtitle {
  font-size: var(--subtitle-font-size, 12px);
  color: var(--text-color, #555);
  margin-top: 2px;
}

.bundle-save {
  font-size: 12px;
  color: #555;
}

.haptech-final-price {
  display: block;
  font-weight: bold;
  color: var(--text-color, #000);
}

.haptech-origin-price {
  display: block;
  text-decoration: line-through;
  font-size: 12px;
  color: var(--text-color, #888);
  opacity: 0.6;
}

.bundle-variants {
  margin-top: 10px;
}

.bundle-variant-row {
  margin-bottom: 6px;
}

.bundle-variant {
  margin-left: 5px;
}

/* Add to cart button */
.haptech-bundle-button {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  background: var(--button-bg, #000);
  color: var(--button-text, #fff);
}
