.ta-raffle-strip{background:linear-gradient(105deg,#9c1526,#bd2037);color:#fff;display:flex;align-items:center;gap:clamp(.6rem,2vw,1.25rem);min-height:62px;padding:.4rem clamp(.65rem,3vw,2rem);font:650 .9rem/1.4 system-ui,sans-serif}
.ta-raffle-strip .ta-raffle-ticket{display:inline-flex;flex:none;align-items:center;gap:.5rem;min-height:44px;padding:.5rem clamp(.7rem,1.5vw,1rem);border:1px solid #ffd4da;border-radius:9px;background:#fff7f4;color:#8c1224;font-weight:800;text-decoration:none;white-space:nowrap;box-shadow:0 2px 0 #640f1c;transition:background-color .15s ease}
.ta-raffle-ticket svg{flex:none;padding-inline-end:.45rem;width:1.7rem;box-sizing:content-box;border-inline-end:1px dashed #b7616d}
.ta-raffle-strip .ta-raffle-ticket:hover{background:#ffe2e6}
.ta-raffle-strip .ta-raffle-ticket:focus-visible{outline:2px solid white;outline-offset:3px}
.ta-raffle-window{overflow:hidden;flex:1;min-width:0;container-type:inline-size}
.ta-raffle-track{display:flex;width:max-content;animation:ta-raffle-scroll 48s linear infinite}
.ta-raffle-track span{flex:none;box-sizing:border-box;min-width:100cqi;padding-inline:1rem 3rem}
.ta-raffle-strip:hover .ta-raffle-track,.ta-raffle-strip:focus-within .ta-raffle-track{animation-play-state:paused}
@keyframes ta-raffle-scroll{to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.ta-raffle-track{animation:none;width:auto}.ta-raffle-track span{flex:auto;min-width:0;padding:0}.ta-raffle-track [aria-hidden]{display:none}}

.ta-raffle-page{margin:0;background:#f5f6f1;color:#19271f;font:1rem/1.5 system-ui,sans-serif}
.ta-raffle-page *{box-sizing:border-box}
.ta-raffle-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.65rem max(1rem,calc((100% - 68rem)/2));background:#13291e}
.ta-raffle-header a{display:inline-flex;align-items:center;min-height:48px;color:white;font-weight:750}
.ta-raffle-main{max-width:70rem;margin:auto;padding:1rem}
.ta-raffle-hero,.ta-raffle-card{padding:clamp(1rem,4vw,2.25rem);margin:0 0 1rem;border-radius:1rem}
.ta-raffle-hero{background:#172e23;color:white}
.ta-raffle-hero h1{font-size:clamp(2rem,5vw,3.5rem);line-height:1.12;margin:.4rem 0 1rem}
.ta-raffle-hero p{margin:.25rem 0}
.ta-raffle-label{color:#f6de94;font-weight:750}
.ta-raffle-card{background:#fff;border:1px solid #d9e0d7}
.ta-raffle-card h2{margin-top:0}
.ta-raffle-card form{display:flex;align-items:flex-end;gap:.6rem;flex-wrap:wrap}
.ta-raffle-card label{font-weight:650}
.ta-raffle-card form>label:first-child{width:100%}
.ta-raffle-card :is(input,textarea,select,button){font:inherit;padding:.55rem .8rem;border-radius:.5rem;border:1px solid #748578;min-height:48px;color:inherit;background:#fff}
.ta-raffle-card :is(button,select){cursor:pointer}
.ta-raffle-card button{background:#214633;color:#fff;font-weight:700}
.ta-raffle-card :focus-visible,.ta-raffle-strip :focus-visible{outline:3px solid #a16d14;outline-offset:2px}
.ta-raffle-card textarea{width:100%;max-width:42rem}
#ta-raffle-receipt img{display:block;margin-bottom:1rem}
#ta-raffle-receipt p{overflow-wrap:anywhere}
.ta-raffle-card a{color:#155130;font-weight:700}
@media print{.ta-raffle-header,.ta-raffle-hero,.ta-raffle-card:not(#ta-raffle-receipt),#ta-raffle-receipt button{display:none}#ta-raffle-receipt{border:0}.ta-raffle-page{background:white}}


#ta-raffle-code,#ta-raffle-buyer{width:min(100%,22rem)}
.ta-raffle-help{width:100%;margin:0;color:#405247}
#ta-raffle-records li,#ta-raffle-links li{overflow-wrap:anywhere;margin-block:.35rem}

/* Public ticket. The sales panel keeps its existing layout. */
.ta-raffle-public {
  --ta-ticket-red: #a5162d;
  --ta-ticket-deep: #781024;
  --ta-ticket-paper: #fff;
  --ta-ticket-background: #fff1f2;
  background: var(--ta-ticket-background);
  color: #42121c;
}
.ta-raffle-public .ta-raffle-header {
  background: var(--ta-ticket-deep);
  padding-inline: max(1rem, calc((100% - 43rem)/2));
}
.ta-raffle-public .ta-raffle-header a {
  justify-content: center;
  gap: .55rem;
  border: 1px solid #ffdbdf;
  border-radius: .75rem;
  background: #fff;
  color: var(--ta-ticket-deep);
  font-size: .9rem;
  text-decoration: none;
}
.ta-raffle-public .ta-raffle-header a:hover { background: #fff1f2; }
.ta-raffle-public .ta-raffle-header a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.ta-raffle-home-button { min-width: 64px; padding-inline: .35rem; }
.ta-raffle-home-button img { display: block; object-fit: contain; }
.ta-raffle-whatsapp-button { padding: .55rem .8rem; }
.ta-raffle-whatsapp-button svg { flex: none; color: #14613b; }
.ta-raffle-public .ta-raffle-main {
  max-width: 45rem;
  padding-block: clamp(1.5rem, 6vw, 4rem);
}
.ta-raffle-sheet,
.ta-raffle-public #ta-raffle-receipt {
  border-radius: 1.2rem;
  box-shadow: 0 14px 36px #7810241c;
}
.ta-raffle-sheet { overflow: hidden; margin-bottom: 1.5rem; }
.ta-raffle-public .ta-raffle-hero {
  margin: 0;
  border-radius: 0;
  padding: clamp(1.5rem, 5vw, 2.6rem);
  background: linear-gradient(125deg, var(--ta-ticket-deep), var(--ta-ticket-red));
}
.ta-raffle-public .ta-raffle-label {
  color: #ffe0e5;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.ta-raffle-public .ta-raffle-stub {
  position: relative;
  margin: 0;
  border: 0;
  border-radius: 0;
  border-top: 2px dashed #e2a3af;
  background: var(--ta-ticket-paper);
  padding: clamp(1.5rem, 5vw, 2.6rem);
}
.ta-raffle-stub::before,
.ta-raffle-stub::after {
  content: "";
  position: absolute;
  top: -1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ta-ticket-background);
}
.ta-raffle-stub::before { left: 0; transform: translate(-50%, -50%); }
.ta-raffle-stub::after { right: 0; transform: translate(50%, -50%); }
.ta-raffle-public #ta-raffle-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}
.ta-raffle-public #ta-raffle-search label { grid-column: 1 / -1; }
.ta-raffle-public #ta-raffle-code { width: 100%; border-color: #b5727e; }
.ta-raffle-public .ta-raffle-card button {
  background: var(--ta-ticket-red);
  border-color: var(--ta-ticket-red);
  padding-inline: 1.35rem;
}
.ta-raffle-public .ta-raffle-card button:hover { background: var(--ta-ticket-deep); }
.ta-raffle-public .ta-raffle-card :focus-visible { outline-color: var(--ta-ticket-red); }
.ta-raffle-public #ta-raffle-status:empty { display: none; }
.ta-raffle-public #ta-raffle-receipt { border: 1px solid #e2a3af; border-top: 5px solid var(--ta-ticket-red); }
.ta-raffle-public #ta-raffle-receipt h2 {
  color: var(--ta-ticket-deep);
  padding-bottom: .65rem;
  border-bottom: 1px dashed #e2a3af;
}
@media (max-width: 480px) {
  .ta-raffle-public #ta-raffle-search { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .ta-raffle-public { background: #fff; }
  .ta-raffle-public .ta-raffle-sheet { display: none; }
  .ta-raffle-public #ta-raffle-receipt { box-shadow: none; }
}

.ta-raffle-public .ta-raffle-availability{border-color:#e2a3af}
.ta-raffle-availability-heading{display:flex;justify-content:space-between;align-items:start;gap:.75rem;flex-wrap:wrap}
.ta-raffle-availability-heading h2,.ta-raffle-availability-heading p{margin:0 0 .4rem}
.ta-raffle-filters{display:flex;flex-wrap:wrap;gap:.4rem}
.ta-raffle-public .ta-raffle-filters button{min-height:44px;padding:.4rem .7rem;border:1px solid #b5727e;background:#fff;color:var(--ta-ticket-deep);font-size:.85rem}
.ta-raffle-public .ta-raffle-filters button:hover{background:#fff1f2}
.ta-raffle-public .ta-raffle-filters button[aria-pressed="true"]{background:var(--ta-ticket-red);border-color:var(--ta-ticket-red);color:#fff}
.ta-raffle-availability-scroll{margin-top:.8rem;max-height:32rem;overflow:auto;scrollbar-gutter:stable}
.ta-raffle-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  justify-items: center;
  gap: clamp(.2rem, 1vw, .55rem);
  margin: 0;
  padding: .25rem;
}
.ta-raffle-grid li {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 2.8rem);
  aspect-ratio: 1;
  border: 1px solid;
  border-radius: 50%;
}
.ta-raffle-grid strong { font: 700 clamp(.65rem, 2.5vw, .95rem)/1 ui-monospace, Consolas, monospace; }
.ta-raffle-grid small {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.ta-raffle-availability [data-state=available] { color: #8c1224; background: #fff; border-color: #d8a0aa; }
.ta-raffle-availability [data-state=sold] { color: #fff; background: #a5162d; border-color: #a5162d; }
@media (max-width: 340px) {
  .ta-raffle-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
