/* PlayQR Roue — comptoir.css (validation au comptoir, mobile-first) */

.pqr-comptoir {
  --pqr-co: #8b5cf6;
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 14px 48px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1f2937;
}
.pqr-comptoir *, .pqr-comptoir *::before, .pqr-comptoir *::after { box-sizing: border-box; }

.pqr-co-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  margin: 12px 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
}
.pqr-co-msg { text-align: center; }
.pqr-co-card h2 { margin: 0 0 4px; font-size: 1.2rem; }
.pqr-co-sub { margin: 0 0 12px; color: #6b7280; font-size: .9rem; }
.pqr-co-note p { margin: 0; color: #4b5563; font-size: .9rem; }

.pqr-co-spinner {
  width: 34px; height: 34px;
  margin: 4px auto 10px;
  border: 4px solid #e5e7eb;
  border-top-color: var(--pqr-co);
  border-radius: 50%;
  animation: pqr-co-spin .8s linear infinite;
}
@keyframes pqr-co-spin { to { transform: rotate(360deg); } }

.pqr-co-label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #374151;
}
.pqr-co-card input[type=text],
.pqr-co-card input[type=password] {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 1rem;
}
.pqr-co-card input:focus {
  outline: none;
  border-color: var(--pqr-co);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .15);
}

.pqr-co-btn {
  display: inline-block;
  padding: 11px 16px;
  border: none;
  border-radius: 10px;
  font-size: .98rem;
  font-weight: 700;
  cursor: pointer;
}
.pqr-co-btn-primary {
  display: block; width: 100%; margin-top: 12px;
  background: var(--pqr-co); color: #fff;
}
.pqr-co-btn-ok { background: #16a34a; color: #fff; }
.pqr-co-btn-ghost { background: #f3f4f6; color: #374151; }
.pqr-co-btn:disabled { opacity: .6; cursor: default; }

.pqr-co-error {
  margin: 10px 0 0;
  padding: 9px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #b91c1c;
  font-size: .85rem;
}

.pqr-co-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin: 6px 2px 4px;
}
.pqr-co-header h1 { margin: 0; font-size: 1.3rem; }
.pqr-co-link {
  background: none; border: none; cursor: pointer;
  color: var(--pqr-co); font-size: .85rem; font-weight: 600;
  text-decoration: underline; padding: 4px;
}

.pqr-co-coderow { display: flex; gap: 8px; }
.pqr-co-coderow input {
  flex: 1; text-transform: uppercase; letter-spacing: 2px;
  font-weight: 700;
}
.pqr-co-coderow .pqr-co-btn { margin-top: 0; flex: 0 0 auto; }

.pqr-co-feedback {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 600;
}
.pqr-co-fb-ok    { background: #dcfce7; color: #166534; }
.pqr-co-fb-warn  { background: #fef9c3; color: #854d0e; }
.pqr-co-fb-error { background: #fef2f2; color: #b91c1c; }
.pqr-co-fb-info  { background: #eff6ff; color: #1e40af; }

.pqr-co-listhead {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 18px 2px 6px;
}
.pqr-co-listhead h2 { margin: 0; font-size: 1.05rem; }

/* Lignes de gains */
.pqr-co-row {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #d1d5db;
  border-radius: 10px;
  padding: 11px 13px;
  margin: 8px 0;
}
.pqr-co-row-pending  { border-left-color: #f59e0b; }
.pqr-co-row-redeemed { border-left-color: #16a34a; opacity: .8; }
.pqr-co-row-expired  { border-left-color: #9ca3af; opacity: .7; }
.pqr-co-rowtop {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.pqr-co-name { font-weight: 700; }
.pqr-co-prize { margin: 3px 0; color: #4b5563; font-size: .95rem; }
.pqr-co-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pqr-co-code {
  font-family: monospace; font-weight: 700; letter-spacing: 2px;
  background: #f5f3ff; color: var(--pqr-co);
  padding: 1px 7px; border-radius: 5px; font-size: .9rem;
}
.pqr-co-metatxt { color: #6b7280; font-size: .8rem; }
.pqr-co-rowact { margin-top: 9px; }
.pqr-co-rowact .pqr-co-btn { width: 100%; }

.pqr-co-badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; white-space: nowrap;
}
.pqr-co-badge-pending  { background: #fef3c7; color: #92400e; }
.pqr-co-badge-redeemed { background: #dcfce7; color: #166534; }
.pqr-co-badge-expired  { background: #f3f4f6; color: #6b7280; }
.pqr-co-badge-none     { background: #f3f4f6; color: #6b7280; }
.pqr-co-birth { margin: 2px 0 4px; color: #374151; font-size: .9rem; font-weight: 600; }
