/*
 * Time Calendar – Price Bar
 * All colors via var(--tc-*) from design-system.css.
 *
 * Variant classes (set on .tc-price-bar):
 *   .tc-price-bar--fixed    – numeric price, amount + period
 *   .tc-price-bar--action   – modifier on --fixed: badge + struck original + action price
 *   .tc-price-bar--free     – free text, no label
 *   .tc-price-bar--request  – request text, outline button
 *   .tc-price-bar--full     – sold-out state, shows waitlist button
 */

/* ─── Sticky outer wrapper ────────────────────────────────────── */
.tc-price-bar-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--tc-bg);
  border-top: 1px solid var(--tc-border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .10);
  padding: 14px 24px;
}

.tc-dark .tc-price-bar-wrapper {
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .35);
}

/* ─── Inner flex container ────────────────────────────────────── */
.tc-price-bar {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ─── Left column ─────────────────────────────────────────────── */
.tc-price-bar__left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ─── Action badge ────────────────────────────────────────────── */
.tc-price-bar__badge {
  background: var(--tc-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 4px;
}

/* ─── Price row (amount + period, optionally with struck original) */
.tc-price-bar__prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.tc-price-bar__amount {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--tc-text);
  line-height: 1;
  white-space: nowrap;
}

.tc-price-bar__amount--accent {
  color: var(--tc-primary);
}

/* Struck-through original price (action variant) */
.tc-price-bar__strike {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--tc-text-muted);
  text-decoration: line-through;
  white-space: nowrap;
}

/* Period suffix: "einmalig", "/ Monat", "/ Jahr" */
.tc-price-bar__period {
  font-size: 0.8rem;
  color: var(--tc-text-muted);
}

/* Action price deadline */
.tc-price-bar__deadline {
  font-size: 0.7rem;
  color: var(--tc-text);
}

/* ─── Free & request text ─────────────────────────────────────── */
.tc-price-bar__free-text,
.tc-price-bar__request-text {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--tc-text);
}

/* ─── Sold-out (full) state ───────────────────────────────────── */
.tc-price-bar__full-label {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--tc-danger);
}

.tc-price-bar__full-sub {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--tc-danger);
}

/* ─── CTA Button ──────────────────────────────────────────────── */
.tc-price-bar__btn {
  display: inline-block;
  flex-shrink: 0;
  background: var(--tc-primary);
  color: #fff;
  border: none;
  border-radius: var(--tc-border-radius, 6px);
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.tc-price-bar__btn:hover {
  background: var(--tc-primary-dark);
  color: #fff;
}

/* Outline variant for "request" type */
.tc-price-bar__btn--outline {
  background: transparent;
  color: var(--tc-text);
  border: 1px solid var(--tc-border);
}

.tc-price-bar__btn--outline:hover {
  background: var(--tc-bg-muted, rgba(0, 0, 0, .04));
  color: var(--tc-text);
}

/* Waitlist state — secondary/outline style */
.tc-price-bar__btn--waitlist {
  background: transparent;
  color: var(--tc-primary);
  border: 1.5px solid var(--tc-primary);
}

.tc-price-bar__btn--waitlist:hover {
  background: var(--tc-primary);
  color: #fff;
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .tc-price-bar-wrapper {
    padding: 12px 16px;
  }

  .tc-price-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .tc-price-bar__btn {
    width: 100%;
    text-align: center;
  }
}
