.ccu2-wrap{
  --red:#E11D48;
  --green:#10B981;
  --bg:#0B0F19;
  --fg:#F8FAFC;
  --muted:rgba(248,250,252,.72);
  --border:rgba(248,250,252,.12);
  margin: 12px 0;
  font-family: inherit;
}

.ccu2-wrap[hidden] {
  display: none !important;
}

/* Hard guard to prevent aggressive themes from overriding our hidden state */
.ccu2-wrap [hidden] {
  display: none !important;
}

.ccu2-bar{
  display:grid;
  grid-template-columns:1.2fr 2fr 1fr;
  gap:14px;
  align-items:center;
  background:var(--bg);
  color:var(--fg);
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
  min-height:86px; 
}

.ccu2-title{
  display:block;
  font-weight:900;
  letter-spacing:-0.02em;
  font-size:16px;
  line-height:1.1;
}
.ccu2-sub{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:13px;
}

.ccu2-progress{
  width:100%;
  height:10px;
  border-radius:999px;
  background:rgba(248,250,252,0.10);
  overflow:hidden;
  border:1px solid rgba(248,250,252,0.10);
}
.ccu2-progress-fill{
  height:100%;
  width:0%;
  border-radius:999px;
  background:var(--green);
  transition:width 0.5s ease-in-out;
}

.ccu2-badges{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}
.ccu2-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(248,250,252,0.14);
  background:rgba(248,250,252,0.06);
  font-size:12px;
  line-height:1;
  white-space:nowrap;
}
.ccu2-badge strong{ font-weight:900; }

.ccu2-timer{
  display:grid;
  justify-content:end;
  text-align:right;
  gap:4px;
}
.ccu2-timer-label{ color:var(--muted); font-size:12px; }
.ccu2-timer-value{
  font-weight:900;
  letter-spacing:-0.02em;
  font-size:16px;
  font-variant-numeric: tabular-nums;
  min-width: 120px; 
}

.ccu2-claimed{
  margin-top:10px;
  background:rgba(225,29,72,0.10);
  border:1px solid rgba(225,29,72,0.35);
  color:var(--fg);
  border-radius:14px;
  padding:12px 14px;
  min-height:52px;
  display:flex;
  align-items:center;
}
.ccu2-claimed-msg{ font-weight:900; letter-spacing:-0.02em; }

.ccu2--ok .ccu2-progress-fill { background:var(--green); }
.ccu2--danger .ccu2-progress-fill { background:var(--red); }
.ccu2--danger .ccu2-timer-value { color:var(--red); }

@media (max-width: 768px){
  .ccu2-bar{ grid-template-columns:1fr; }
  .ccu2-timer{ justify-content:start; text-align:left; }
}

.ccu2-wrap--compact {
  margin: 8px 0 0;
  font-size: 12px;
}

.ccu2-bar--compact {
  display: block;
  min-height: auto;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(11, 15, 25, 0.96);
}

.ccu2-compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.ccu2-compact-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.ccu2-compact-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ccu2-wrap--compact .ccu2-timer-value,
.ccu2-wrap--compact .ccu2-uses {
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.ccu2-claimed--compact {
  margin-top: 8px;
  min-height: auto;
  padding: 10px 12px;
  border-radius: 10px;
}

.woocommerce-cart .cart-discount td .ccu2-wrap--compact,
.woocommerce-checkout-review-order-table .cart-discount td .ccu2-wrap--compact,
.woocommerce-checkout .shop_table .cart-discount td .ccu2-wrap--compact {
  width: 100%;
  clear: both;
}

@media (max-width: 768px) {
  .ccu2-compact-meta {
    gap: 10px;
  }

  .ccu2-compact-item {
    width: 100%;
  }
}

.ccu2-wrap--compact {
  margin: 8px 0 0;
  font-size: 12px;
}

.ccu2-bar--compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(11, 15, 25, 0.96);
  text-align: center;
}

.ccu2-wrap--compact .ccu2-compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.ccu2-wrap--compact .ccu2-compact-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.ccu2-wrap--compact .ccu2-compact-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ccu2-wrap--compact .ccu2-timer-value,
.ccu2-wrap--compact .ccu2-uses {
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.ccu2-wrap--compact .ccu2-progress {
  width: 100%;
  max-width: 240px;
  margin: 10px auto 0;
}

.ccu2-wrap--compact .ccu2-claimed--compact {
  margin-top: 8px;
  min-height: auto;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: center;
}

.woocommerce-cart .cart-discount td .ccu2-wrap--compact,
.woocommerce-checkout-review-order-table .cart-discount td .ccu2-wrap--compact,
.woocommerce-checkout .shop_table .cart-discount td .ccu2-wrap--compact {
  width: 100%;
  clear: both;
}

@media (max-width: 768px) {
  .ccu2-wrap--compact .ccu2-compact-meta {
    gap: 10px;
  }

  .ccu2-wrap--compact .ccu2-compact-item {
    width: 100%;
  }

  .ccu2-wrap--compact .ccu2-progress {
    max-width: 100%;
  }
}