/* TixLock frontend components — neutral baseline styles, the theme (Bricks) is expected to override. */

/* --- Spend form --- */

.tixlock-form {
  max-width: 26rem;
}

.tixlock-form__amount-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
}

.tixlock-form__label {
  font-weight: 600;
}

.tixlock-form__range {
  width: 100%;
  display: block;
  accent-color: currentColor;
}

.tixlock-form__amount-display {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.tixlock-form__slider-bounds {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 0.125rem;
}

.tixlock-form__preview {
  min-height: 1.5em;
  margin: 0.5rem 0;
}

.tixlock-form__preview-line {
  margin: 0.25rem 0;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.5rem;
}

.tixlock-form__preview-label {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8125rem;
  opacity: 0.8;
}

.tixlock-form__preview-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tixlock-form__button {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.tixlock-form__reserve-note {
  font-size: 0.8125rem;
  opacity: 0.75;
  margin-top: 0.5rem;
}

.tixlock-form__notice {
  padding: 0.5rem 0.75rem;
  border-left: 3px solid #b32d2e;
  background: rgba(179, 45, 46, 0.08);
}

.tixlock-form__status {
  margin: 0;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.tixlock-form__status--full {
  font-weight: 600;
}

/* --- Hold countdown --- */

.tixlock-countdown {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.tixlock-countdown__message {
  margin: 0;
}

.tixlock-countdown__timer {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tixlock-countdown--expired {
  border-color: #b32d2e;
  background: rgba(179, 45, 46, 0.08);
}

.tixlock-countdown--expired .tixlock-countdown__message {
  color: #b32d2e;
}

/* --- My Tickets --- */

.tixlock-tickets__table {
  width: 100%;
  border-collapse: collapse;
}

.tixlock-tickets__table th {
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 600;
  opacity: 0.7;
  padding: 0.5rem 0.75rem;
}

.tixlock-tickets__table td {
  padding: 0.625rem 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-variant-numeric: tabular-nums;
}

.tixlock-tickets__badge {
  display: inline-block;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.tixlock-tickets__badge--locked {
  border: 1px solid currentColor;
  opacity: 0.85;
}

.tixlock-tickets__badge--eliminated,
.tixlock-tickets__badge--refunded {
  color: #b32d2e;
  background: rgba(179, 45, 46, 0.08);
}

.tixlock-tickets__status {
  opacity: 0.85;
}

/* My Tickets inside the FluentCart customer dashboard */

.tixlock-tickets-portal__title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.tixlock-tickets-portal .tixlock-tickets {
  overflow-x: auto;
}

/* Checkout compliance gate: centered error notice */

.tixlock-checkout-notice {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tixlock-checkout-notice[hidden] {
  display: none;
}

.tixlock-checkout-notice__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.tixlock-checkout-notice__card {
  position: relative;
  max-width: 26rem;
  width: calc(100% - 2rem);
  padding: 1.5rem;
  background: #fff;
  color: #1e1e1e;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.tixlock-checkout-notice__message {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.tixlock-checkout-notice__dismiss {
  min-width: 6rem;
  padding: 0.5rem 1.25rem;
  border: 0;
  border-radius: 6px;
  background: #1e1e1e;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.tixlock-checkout-notice__dismiss:hover,
.tixlock-checkout-notice__dismiss:focus {
  background: #3c3c3c;
}

/* Logged-out call to action (spend form / My Tickets): "Log in or create an
   account …" — two links, the register one carrying the return path. */

.tixlock-account-links,
.tixlock-form .tixlock-account-links,
.tixlock-tickets .tixlock-account-links {
  display: block;
  text-align: center;
}

.tixlock-account-links a {
  font-weight: 600;
  text-decoration: underline;
}

/* Logged-out spend form: slider + preview render, the links sit where the
   "Lock it in" button would be. */

.tixlock-form .tixlock-form__gate {
  margin: 0.75rem 0 0;
  text-align: center;
}
