/* Location: assets/css/client.css
 * Client-facing discount badges (Requirement 46). Minimal by design —
 * intended to blend into the active WHMCS client-area template rather
 * than impose its own visual style.
 */
.dm-savings-badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  background: #dcfce7; color: #166534; font-size: 12px; font-weight: 600;
}

/* ---------------------------------------------------------------
 * Product listing offer badges
 * ---------------------------------------------------------------
 * Shown on a group listing, where a discounted product would
 * otherwise sit at list price with nothing to mark it as an offer. */
.dm-listing-price {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.dm-listing-was {
  color: #9ca3af;
  font-weight: 400;
  font-size: 0.7em;
  text-decoration: line-through;
}
.dm-listing-now { color: inherit; }
.dm-listing-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fce7f3;
  color: #9d174d;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------------------------------------------------------------
 * A domain's term dropdown showing a struck list price (2.9.89)
 * ---------------------------------------------------------------
 * The cart sizes that button for a single figure and cuts the rest off
 * with an ellipsis, so "Rs 1,199.00 Rs 1,029.00/1yr" read
 * "Rs 1,199.00 Rs ..." and the price being charged was the part hidden.
 * Only a control that holds a struck figure is touched -- WHMCS's own
 * <s> or ours -- so every other dropdown keeps the theme's styling. */
.dropdown-toggle:has(s, del, strike, .dm-ctl-was),
[data-toggle="dropdown"]:has(s, del, strike, .dm-ctl-was),
[data-bs-toggle="dropdown"]:has(s, del, strike, .dm-ctl-was) {
  height: auto !important;
  max-width: 100% !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  text-align: left;
  line-height: 1.4;
}
.dropdown-toggle:has(s, del, strike, .dm-ctl-was) *:not(.dropdown-menu):not(.dropdown-menu *),
[data-toggle="dropdown"]:has(s, del, strike, .dm-ctl-was) *:not(.dropdown-menu):not(.dropdown-menu *),
[data-bs-toggle="dropdown"]:has(s, del, strike, .dm-ctl-was) *:not(.dropdown-menu):not(.dropdown-menu *) {
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
}
