/* --- GLOBAL CONTAINER (Compact & Professional) --- */
.snq-poll-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 450px; /* Slightly narrower for compact mobile feel */
    margin: 0px auto;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border: 1px solid #e0e0e0;
    position: relative;
}

/* --- HEADER & QUESTION --- */
.snq-question-text {
    text-align: center;
    padding: 15px 10px 5px 10px; /* Minimized padding */
    font-size: 1.25rem;
    font-weight: 800;
    color: #111;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

/* --- GRAPH CONTAINER (Tight Fit) --- */
.snq-chart-container {
    width: 240px; 
    margin: 0 auto;
    position: relative;
    z-index: 15;
    margin-bottom: -25px; /* Pulls the options UP into the graph area */
}

/* --- VS LAYOUT (2 Options - Side by Side) --- */
.snq-layout-vs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px; /* Very tight gap */
    padding: 0 10px 15px 10px;
    align-items: end; /* Align bottoms */
}

.snq-layout-vs .snq-opt-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    border: 1px solid #eee;
    position: relative;
    transition: transform 0.2s;
    /* Create a card that looks integrated */
}

.snq-layout-vs .snq-opt-card:hover {
    border-color: var(--theme-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- BIGGER IMAGES --- */
.snq-layout-vs .snq-opt-img {
    height: 180px; /* Tall images */
    width: 100%;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
}

/* Option Name & Button Area */
.snq-layout-vs .snq-opt-content {
    padding: 8px 5px;
    background: linear-gradient(to bottom, #fff 0%, #f9f9f9 100%);
}

.snq-layout-vs .snq-opt-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- COMPACT VOTE BUTTON --- */
.snq-btn-vote {
    background: var(--theme-color);
    color: #fff;
    border: none;
    padding: 6px 0;
    width: 100%;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.snq-btn-vote:active { transform: scale(0.98); }

/* --- RESULT BAR (Compact) --- */
.snq-progress-bg {
    background: #e0e0e0;
    height: 15px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 5px;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}
.snq-progress-fill { height: 100%; }
.snq-percent-text {
    font-size: 0.85rem;
    font-weight: 900;
    text-align: center;
    color: #333;
    margin-top: 2px;
}

/* --- LIST LAYOUT (3+ Options) --- */
.snq-layout-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 15px 15px 15px;
}
.snq-layout-list .snq-opt-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
}
.snq-layout-list .snq-opt-card:hover { border-color: var(--theme-color); background: #fdfdfd; }
.snq-layout-list .snq-opt-img {
    width: 70px; height: 70px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-right: 12px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}
.snq-layout-list .snq-opt-content { flex-grow: 1; }
.snq-layout-list .snq-opt-name { font-weight: 600; font-size: 0.95rem; margin: 0; }
.snq-layout-list .snq-btn-vote { width: auto; padding: 4px 12px; font-size: 0.8rem; margin-left: 10px; }

/* --- SHARE FOOTER (Minimal) --- */
.snq-share-footer {
    background: #f7f7f7;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-top: 1px solid #eee;
}
.snq-share-footer span { font-size: 0.8rem; font-weight: bold; color: #777; }
.snq-share-btn {
    padding: 4px 10px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    display: flex; align-items: center; gap: 4px;
}
.snq-wa { background: #25D366; }
.snq-fb { background: #1877F2; }
.snq-x { background: #000; }

/* --- NO IMAGE FALLBACK --- */
.snq-no-img {
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold; font-size: 2rem;
}