/* Happy Contests | Odds Calculator | v0.9 (WordPress widget) */
/* Typography and outer spacing are controlled by the hosting page. */
.hc-odds{width:100%;margin:0;padding:0;background:transparent;color:inherit;font-family:inherit}
.hc-odds *{box-sizing:border-box}
.hc-odds .wrap{width:100%;max-width:none;margin:0;padding:0}
.hc-odds .card{background:#fff;border:1px solid #e0e5eb;border-radius:14px;padding:24px;margin:16px 0;box-shadow:0 2px 12px #2634480a}
.hc-odds .muted{color:#566579}
.hc-odds .controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0}
.hc-odds .count{display:inline-flex;align-items:center;gap:12px;border:1px solid #ccd5de;border-radius:9px;padding:5px}
.hc-odds .count button{height:34px;width:34px;background:#eaf0f6;border:0;border-radius:6px;cursor:pointer;font-size:1.2rem}
.hc-odds .count output{font-weight:700;min-width:25px;text-align:center}
.hc-odds button,.hc-odds input{font-family:inherit}
.hc-odds button:focus-visible,.hc-odds input:focus-visible{outline:3px solid #7cb6f2;outline-offset:2px}
.hc-odds .reset-all{margin-left:auto;background:#fff;border:1px solid #bcc9d5;border-radius:7px;padding:8px 13px;cursor:pointer}
.hc-odds .grid{display:grid;grid-template-columns:minmax(150px,2fr) minmax(160px,1.3fr) minmax(100px,.75fr) 48px;align-items:center;gap:12px}
/* WP themes commonly add pseudo-elements and negative margins to .row.
   Suppress those specifically on this widget's grid rows without changing JS. */
.hc-odds .grid.row{display:grid;float:none;clear:none;width:100%;margin:0;padding:11px 0;border-bottom:1px solid #eef1f4}
.hc-odds .grid.row::before,.hc-odds .grid.row::after{content:none;display:none}
.hc-odds .head{color:#526477;font-size:.83rem;font-weight:650;border-bottom:1px solid #dce4eb;padding:9px 0}
.hc-odds .name,.hc-odds .pct{font:inherit;width:100%;min-width:0;padding:9px 10px;border:1px solid #c6d2df;border-radius:8px;background:#fff;color:#263448}
.hc-odds .pct:disabled{background:#f0f3f7;color:#526477;opacity:1}
.hc-odds .percent-cell{display:flex;gap:7px;align-items:center;min-width:0}
.hc-odds .pct-suffix{white-space:nowrap}
.hc-odds .badge{width:28px;height:28px;flex:none;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;font-size:.77rem;font-weight:800;border:1px solid #c3cedb;background:#ebf1f7;color:#234360}
.hc-odds .badge.manual{background:#dcefeb;color:#12604d;border-color:#acd6c9}
.hc-odds .badge.lock{background:#eef0f3}
.hc-odds .badge svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hc-odds .weight{text-align:right;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.hc-odds .free{border:none;background:transparent;color:#356799;text-decoration:underline;cursor:pointer;padding:6px 1px;font-size:.79rem}
.hc-odds .free:disabled{visibility:hidden}
.hc-odds .summary{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:18px 0 2px;font-weight:700}
.hc-odds .summary span:last-child{font-size:1.25rem}
.hc-odds .note{padding:12px 14px;border-radius:8px;background:#eef5fb;color:#294b68;font-size:.91rem}
.hc-odds .error{background:#fff0ee;color:#98372d}
.hc-odds .legend{display:flex;gap:14px;flex-wrap:wrap;margin:16px 0 0;font-size:.83rem;color:#4a5b6a}
.hc-odds .legend span{display:inline-flex;gap:6px;align-items:center}
.hc-odds .result{font-size:.96rem;line-height:1.6}
.hc-odds .result strong{font-variant-numeric:tabular-nums}
.hc-odds .footer{font-size:.8rem;color:#617185}
.hc-odds [data-hc="error"]{display:none}
.hc-odds [data-hc="error"].show{display:block;margin-top:12px}
@media(max-width:650px){
 .hc-odds .card{padding:17px 12px}
 .hc-odds .grid{grid-template-columns:minmax(100px,1.35fr) minmax(135px,1.3fr) minmax(54px,.5fr) 25px;gap:5px}
 .hc-odds .head{font-size:.73rem}
 .hc-odds .grid.row{padding:8px 0}
 .hc-odds .name,.hc-odds .pct{padding:8px 5px;font-size:.9rem}
 .hc-odds .badge{width:23px;height:23px}
 .hc-odds .percent-cell{gap:3px}
 .hc-odds .weight{font-size:.84rem}
 .hc-odds .reset-all{margin-left:0}
 .hc-odds .free{font-size:.72rem}
}
