/* Community Voting Widget */
.cm-voting-section { margin-bottom: 48px; }
#cm-voting-root { max-width: 540px; margin: 0 auto; background: #fafafa; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 20px rgba(0,0,0,0.06); font-family: "Inter", system-ui, -apple-system, sans-serif; }
.cm-voting-header { margin-top: 20px; border-radius: 16px 16px 0 0; background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); padding: 24px 24px 20px; color: #fff; }
.cm-voting-label { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: #999; margin-bottom: 6px; }
.cm-voting-question { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.cm-voting-stats { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 1px; }
.cm-voting-tabs { display: flex; border-bottom: 1px solid #e8e8e8; background: #fff; }
.cm-voting-tab { flex: 1; padding: 14px 8px; font-size: 14px; font-weight: 400; color: #999; background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; min-height: 48px; transition: all 0.2s; font-family: inherit; }
.cm-voting-tab:hover { color: #666; }
.cm-voting-tab-active { font-weight: 700; color: #1a1a1a; border-bottom-color: #1a1a1a; }
.cm-voting-tab-count { font-size: 12px; color: #bbb; margin-left: 4px; }
.cm-voting-status { margin: 12px 16px 0; padding: 10px 14px; background: #f0f4ff; border-radius: 8px; font-size: 13px; color: #5566aa; text-align: center; }
.cm-voting-ratelimit { margin: 12px 16px 0; padding: 10px 14px; background: #fff3e0; border-radius: 8px; font-size: 13px; color: #e65100; }
.cm-voting-list { padding: 8px 16px 0; }
.cm-voting-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-top: 8px; background: #fff; border-radius: 12px; border: 1px solid #f0f0f0; cursor: pointer; transition: all 0.2s; min-height: 52px; }
.cm-voting-card:hover { border-color: #e0e0e0; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.cm-voting-card.cm-vote-voted { border-color: #e8e8e8; }
.cm-voting-card.cm-vote-animating { transform: scale(1.02); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.cm-voting-rank { font-size: 13px; font-weight: 700; color: #ccc; width: 20px; text-align: center; flex-shrink: 0; }
.cm-voting-rank.cm-vote-top3 { color: #1a1a1a; }
.cm-voting-swatch { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; border: 1px solid rgba(0,0,0,0.08); position: relative; overflow: hidden; }
.cm-voting-chrome { position: absolute; right: 0; top: 0; bottom: 0; width: 35%; background: linear-gradient(180deg, #E8E8E8 0%, #B0B0B0 30%, #D0D0D0 50%, #A8A8A8 70%, #C0C0C0 100%); border-left: 1px solid rgba(0,0,0,0.05); }
.cm-voting-info { flex: 1; min-width: 0; }
.cm-voting-name-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.cm-voting-name { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.cm-voting-count { font-size: 13px; color: #999; flex-shrink: 0; margin-left: 8px; }
.cm-voting-bar-bg { height: 5px; border-radius: 3px; background: #f0f0f0; overflow: hidden; }
.cm-voting-bar { height: 100%; border-radius: 3px; transition: width 0.4s ease; }
.cm-voting-fire { background: none; border: none; cursor: pointer; font-size: 20px; padding: 8px 6px; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.3s; border-radius: 8px; }
.cm-voting-fire:hover { background: rgba(0,0,0,0.03); transform: scale(1.1); }
.cm-voting-fire:active { transform: scale(1.3); }
.cm-voting-toggle { display: flex; align-items: center; justify-content: center; width: calc(100% - 32px); margin: 10px 16px 16px; padding: 14px 0; min-height: 48px; background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 600; color: #888; transition: all 0.2s; font-family: inherit; }
.cm-voting-toggle:hover { border-color: #ccc; color: #666; }
.cm-voting-arrow { margin-left: 6px; font-size: 10px; display: inline-block; transition: transform 0.2s; }
.cm-voting-arrow-up { transform: rotate(180deg); }
.cm-voting-footer { padding: 12px 16px 16px; border-top: 1px solid #f0f0f0; background: #fff; font-size: 13px; color: #bbb; text-align: center; }
@media (max-width: 768px) { #cm-voting-root { border-radius: 12px; margin: 0 -4px; } .cm-voting-header { padding: 20px 16px 16px; border-radius: 12px 12px 0 0; } .cm-voting-card { padding: 14px 16px; } .cm-voting-swatch { width: 36px; height: 36px; min-width: 36px; flex-shrink: 0; margin-right: 12px !important; } .cm-voting-chrome { margin-right: 12px !important; } .cm-voting-info { flex: 1; min-width: 0; margin-left: 4px !important; } .cm-voting-count { display: none !important; } .cm-voting-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cm-voting-fire { min-width: 44px; min-height: 44px; flex-shrink: 0; } }