/* TitanCart Lottery — storefront (PDP raffle block + My Raffles). S485.
   Light on opinions: inherits the theme's fonts/colours, uses TitanCart's
   --tc-* tokens where they exist with sane fallbacks. */

.tclt-pdp {
  margin: 18px 0 22px;
  padding: 18px 20px;
  border: 1px solid var(--tc-border, #e5e7eb);
  border-radius: 14px;
  background: var(--tc-card-bg, #fff);
}
.tclt-pdp__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.tclt-pdp__badge {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: #111827; color: #fff;
}
.tclt-pdp__badge--pot { background: #7c3aed; }
.tclt-pdp__badge--sweepstakes { background: #0f766e; }

/* Sweepstakes (S486) */
.tclt-pdp__sweeps { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--tc-border, #e5e7eb); }
.tclt-pdp__enter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tclt-pdp__input { flex: 1; min-width: 180px; padding: 10px 12px; border: 1px solid var(--tc-border, #d1d5db); border-radius: 8px; font: inherit; }
.tclt-pdp__consent { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: 13px; color: #4b5563; line-height: 1.4; cursor: pointer; }
.tclt-pdp__consent input { margin-top: 2px; }
.tclt-pdp__entered-line { font-size: 14px; color: #374151; margin-bottom: 10px; }
.tclt-pdp__actions { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tclt-pdp__action { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--tc-border, #e5e7eb); border-radius: 10px; background: #fff; }
.tclt-pdp__action--done { background: #f0fdf4; border-color: #bbf7d0; }
.tclt-pdp__action-icon { font-size: 18px; color: #374151; width: 22px; text-align: center; }
.tclt-pdp__action-label { flex: 1; font-size: 14px; }
.tclt-pdp__action-chip { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #111827; color: #fff; white-space: nowrap; }
.tclt-pdp__action--done .tclt-pdp__action-chip { background: #16a34a; }
.tclt-pdp__action-btns { display: flex; gap: 6px; align-items: center; }
.tclt-pdp__action-link, .tclt-pdp__action-claim { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 8px; border: 1px solid #111827; background: #111827; color: #fff; text-decoration: none; cursor: pointer; line-height: 1.2; }
.tclt-pdp__action-claim { background: #fff; color: #111827; }
.tclt-pdp__action-claim[disabled] { opacity: .55; cursor: wait; }
.tclt-pdp__action-note { font-size: 12px; color: #6b7280; }
.tclt-pdp__stat--mine .tclt-pdp__stat-n { color: #0f766e; }
.tclt-pdp__status { font-size: 13px; font-weight: 600; color: #374151; }
.tclt-pdp__status--active   { color: #15803d; }
.tclt-pdp__status--upcoming { color: #b45309; }
.tclt-pdp__status--ended    { color: #2563eb; }
.tclt-pdp__status--failed   { color: #b91c1c; }
.tclt-pdp__countdown { margin-left: auto; font-size: 13px; font-variant-numeric: tabular-nums; color: #374151; }
.tclt-pdp__countdown strong { font-weight: 700; }

.tclt-pdp__stats { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.tclt-pdp__stat { display: flex; flex-direction: column; min-width: 72px; }
.tclt-pdp__stat-n { font-size: 20px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tclt-pdp__stat-l { font-size: 12px; color: #6b7280; }
.tclt-pdp__stat--pot .tclt-pdp__stat-n { color: #7c3aed; }

.tclt-pdp__progress { height: 8px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.tclt-pdp__progress-bar { height: 100%; background: linear-gradient(90deg, #16a34a, #22c55e); border-radius: 999px; transition: width .4s ease; }
.tclt-pdp__progress-label { font-size: 12px; color: #6b7280; margin: 6px 0 0; }
.tclt-pdp__pot-note { font-size: 13px; color: #4b5563; margin: 12px 0 0; line-height: 1.5; }

.tclt-pdp__buy { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--tc-border, #e5e7eb); }
.tclt-pdp__buy-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.tclt-pdp__each { font-weight: 400; color: #6b7280; }
.tclt-pdp__presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tclt-pdp__preset {
  display: flex; flex-direction: column; align-items: center; min-width: 74px;
  padding: 8px 12px; border: 1px solid var(--tc-border, #d1d5db); border-radius: 10px;
  background: #fff; cursor: pointer; font: inherit; line-height: 1.2; transition: border-color .15s, background .15s;
}
.tclt-pdp__preset:hover { border-color: #9ca3af; }
.tclt-pdp__preset--active { border-color: #111827; background: #111827; color: #fff; }
.tclt-pdp__preset-n { font-size: 16px; font-weight: 700; }
.tclt-pdp__preset-t { font-size: 12px; opacity: .8; }

.tclt-pdp__qty-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tclt-pdp__qty { display: inline-flex; align-items: stretch; border: 1px solid var(--tc-border, #d1d5db); border-radius: 10px; overflow: hidden; }
.tclt-pdp__qty-btn { width: 40px; border: 0; background: #f3f4f6; cursor: pointer; font-size: 18px; line-height: 1; }
.tclt-pdp__qty-btn:hover { background: #e5e7eb; }
.tclt-pdp__qty-input { width: 64px; border: 0; text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; }
.tclt-pdp__qty-input::-webkit-outer-spin-button, .tclt-pdp__qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tclt-pdp__total { font-size: 14px; color: #374151; }
.tclt-pdp__total strong { font-size: 18px; margin-left: 4px; }
.tclt-pdp__hint { font-size: 12px; color: #6b7280; margin: 8px 0 0; }

.tclt-pdp__skill { display: block; margin: 14px 0 0; }
.tclt-pdp__skill-q { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.tclt-pdp__skill-input { width: 100%; max-width: 360px; padding: 9px 12px; border: 1px solid var(--tc-border, #d1d5db); border-radius: 8px; font: inherit; }
.tclt-pdp__skill-hint { display: block; font-size: 12px; color: #6b7280; margin-top: 4px; }

.tclt-pdp__btn { margin-top: 14px; width: 100%; justify-content: center; }
.tclt-pdp__btn[disabled] { opacity: .55; cursor: not-allowed; }
.tclt-pdp__msg { min-height: 1.2em; margin: 8px 0 0; font-size: 13px; color: #b91c1c; }
.tclt-pdp__msg--ok { color: #15803d; }
.tclt-pdp__drawer-trigger { display: none !important; }

.tclt-pdp__closed { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #f3f4f6; font-size: 14px; color: #374151; }
.tclt-pdp__winners { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #f0fdf4; border: 1px solid #bbf7d0; }
.tclt-pdp__winners-title { font-weight: 700; font-size: 13px; margin-bottom: 6px; color: #166534; }
.tclt-pdp__winners ul { margin: 0; padding-left: 18px; font-size: 13px; }

.tclt-pdp__free, .tclt-pdp__rules { margin-top: 12px; font-size: 13px; }
.tclt-pdp__free summary, .tclt-pdp__rules summary { cursor: pointer; font-weight: 600; color: #374151; }
.tclt-pdp__free div, .tclt-pdp__rules div { margin-top: 8px; color: #4b5563; line-height: 1.55; }

/* My Account → My Raffles */
.tclt-account__title { margin: 0 0 16px; }
.tclt-account__empty { text-align: center; padding: 32px 0; color: #6b7280; }
.tclt-account__browse { display: inline-block; margin-top: 10px; padding: 8px 16px; border-radius: 8px; background: #111827; color: #fff; text-decoration: none; }
.tclt-account__list { display: grid; gap: 12px; }
.tclt-account__card { border: 1px solid var(--tc-border, #e5e7eb); border-radius: 12px; padding: 14px 16px; }
.tclt-account__card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.tclt-account__name { font-weight: 600; }
.tclt-account__name a { color: inherit; text-decoration: none; }
.tclt-account__status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #f3f4f6; color: #374151; }
.tclt-account__status--active { background: #dcfce7; color: #166534; }
.tclt-account__status--upcoming { background: #fef3c7; color: #92400e; }
.tclt-account__card-body { display: flex; gap: 22px; flex-wrap: wrap; }
.tclt-account__detail { display: flex; flex-direction: column; font-size: 13px; }
.tclt-account__detail span { color: #6b7280; font-size: 12px; }

@media (max-width: 575.98px) {
  .tclt-pdp { padding: 14px; }
  .tclt-pdp__countdown { margin-left: 0; width: 100%; }
  .tclt-pdp__stat-n { font-size: 18px; }
}
