/* Quantity Pricing Tiers - Bundle & Save card design */

/* Hide default variation UI ONLY when pt-bundle-only is active */
.pt-bundle-only form.variations_form table.variations,
.pt-bundle-only form.variations_form .reset_variations,
.pt-bundle-only form.variations_form .variable-items-wrapper,
.pt-bundle-only form.variations_form .woo-variation-swatches,
.pt-bundle-only form.variations_form .enweby-variation-swatches,
.pt-bundle-only form.variations_form .wvs-archive-variations-wrapper {
  display: none !important;
}

.pt-bundle-wrap { max-width: 560px; font-family: inherit; margin: 14px 0; }
.pt-bundle-title {
  color: #fff; font-weight: 900; text-align: center; padding: 12px 14px;
  border-radius: 14px 14px 0 0; background: var(--qpt-accent, #621F1F);
}
.pt-bundle-cards {
  border: 1px solid #e5e7eb; border-top: 0; padding: 14px;
  border-radius: 0 0 14px 14px; background: #fff;
}

.pt-card {
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid #e5e7eb; border-radius: 16px;
  padding: 16px; margin: 16px 0; cursor: pointer; position: relative; transition: .15s;
  background: #fff;
}
.pt-card:hover { transform: translateY(-1px); }
.pt-left { display: flex; gap: 12px; align-items: flex-start; }
.pt-dot {
  width: 20px; height: 20px; border-radius: 999px; border: 2px solid #d1d5db; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
}
.pt-dot::after { content: ""; width: 11px; height: 11px; border-radius: 999px; transform: scale(0); transition: .12s; background: var(--qpt-accent, #621F1F); }
.pt-card.is-selected { border-color: var(--qpt-accent, #621F1F); box-shadow: 0 0 0 4px rgba(98,31,31,.14); }
.pt-card.is-selected .pt-dot { border-color: var(--qpt-accent, #621F1F); }
.pt-card.is-selected .pt-dot::after { transform: scale(1); }
.pt-h1 { font-weight: 900; }
.pt-sub { font-size: 12px; color: #111827; margin-top: 4px; font-weight: 800; opacity: .85; }
.pt-right { text-align: right; }
.pt-price { font-weight: 900; }
.pt-was { font-size: 12px; color: #6b7280; text-decoration: line-through; margin-top: 4px; }

.pt-pill {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 900; background: var(--qpt-accent, #621F1F) !important; color: #fff !important; padding: 6px 14px; border-radius: 999px;
  white-space: nowrap; z-index: 5;
}

.pt-slot { margin: -6px 0 8px 0; }

.pt-colors {
  display: none;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  margin-top: 10px;
}
.pt-colors-title { font-weight: 900; margin-bottom: 12px; font-size: 15px; }
.pt-color-row { margin-top: 14px; }
.pt-color-label { font-weight: 800; margin: 0 0 10px 0; font-size: 13px; }
.pt-swatches { display: flex; gap: 10px; flex-wrap: wrap; row-gap: 14px; padding-bottom: 6px; }

/* Ring: INNER BLACK + OUTER BURGUNDY */
.pt-swatch.pt-swatch--color {
  width: 42px; height: 42px; border-radius: 999px;
  border: 2px solid #e5e7eb;
  cursor: pointer; position: relative; margin-bottom: 24px;
  transition: all .15s;
}
.pt-swatch.pt-swatch--color.is-selected {
  border: 3px solid #111827;
  box-shadow: 0 0 0 3px var(--qpt-accent, #621F1F);
}
.pt-swatch.pt-swatch--color span {
  position: absolute; top: 48px; left: 50%; transform: translateX(-50%);
  width: 82px; text-align: center; white-space: normal; line-height: 1.1;
  font-size: 11px; color: #6b7280; font-weight: 600;
}

/* Size / Text Swatches */
.pt-swatch.pt-swatch--text {
  width: auto;
  min-width: 42px;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  background: #f9fafb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all .15s;
}
.pt-swatch.pt-swatch--text.is-selected {
  border-color: #111827;
  box-shadow: 0 0 0 3px var(--qpt-accent, #621F1F);
  background: var(--qpt-accent, #621F1F);
  color: #ffffff;
}
.pt-swatch.pt-swatch--text span {
  position: static;
  transform: none;
  width: auto;
  font-size: 13px;
  color: inherit;
}

/* Disabled Add to Cart & Buy Now Button State */
form.cart button.single_add_to_cart_button.qpt-btn-disabled,
form.cart .single_add_to_cart_button.qpt-btn-disabled,
form.cart .single_buy_now_button.qpt-btn-disabled,
form.cart .buy-now.qpt-btn-disabled {
  opacity: 0.55 !important;
  filter: grayscale(35%);
  cursor: not-allowed !important;
  transition: opacity .2s, filter .2s;
}

/* RTL */
.rtl .pt-pill { left: auto; right: 50%; transform: translateX(50%); }
.rtl .pt-right { text-align: left; }

/* Prevent stacked duplicate variation prices */
.single_variation .woocommerce-variation-price ~ .woocommerce-variation-price,
.woocommerce-variation-price .price ~ .price {
  display: none !important;
}

@media (max-width: 480px) {
  .pt-card { padding: 12px; }
  .pt-h1 { font-size: .95em; }
  .pt-sub { font-size: 11px; }
}
