/* WC Sweepstakes Pro — Frontend v2 */

/* ── Product Page Banner ───────────────────────── */
.wcs-product-banner {
    display: flex; gap: 14px; align-items: flex-start;
    background: linear-gradient(135deg, #1e1e1e 0%, #333 100%);
    color: #fff; border-radius: 10px; padding: 16px 20px;
    margin: 16px 0; box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.wcs-product-banner__icon { font-size: 2rem; flex-shrink: 0; line-height: 1; }
.wcs-product-banner__body { display: flex; flex-direction: column; gap: 4px; }
.wcs-product-banner__title { font-size: 1rem; font-weight: 700; display: block; }
.wcs-product-banner__prize { font-size: .85rem; color: #ffd700; display: block; }
.wcs-product-banner__detail { font-size: .85rem; color: rgba(255,255,255,.8); display: block; }
.wcs-product-banner__count { font-size: .78rem; color: rgba(255,255,255,.55); display: block; margin-top: 2px; }

/* ── Sweepstakes Card ──────────────────────────── */
.wcs-card {
    background: #fff; border: 1px solid #e0e0e0; border-radius: 12px;
    overflow: hidden; margin-bottom: 32px;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.wcs-card--drawn { opacity: .8; }
.wcs-card__image img { width: 100%; height: 260px; object-fit: cover; display: block; }
.wcs-card__body { padding: 24px 28px; }
.wcs-card__title { margin: 0 0 12px; font-size: 1.6rem; }
.wcs-card__prize { margin: 0 0 14px; }
.wcs-card__desc { color: #444; margin-bottom: 16px; }
.wcs-card__dollar-note { color: #555; font-style: italic; margin: 8px 0 16px; }

.wcs-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.wcs-badge {
    display: inline-flex; align-items: center;
    background: #1e1e1e; color: #fff;
    padding: 4px 12px; border-radius: 20px; font-size: .78rem; font-weight: 700;
}
.wcs-badge--outline { background: transparent; border: 1.5px solid #1e1e1e; color: #1e1e1e; }
.wcs-badge--date    { background: #f0f0f0; color: #333; }
.wcs-badge--mode    { background: #007700; }

.wcs-card__products ul { margin: 8px 0 0; padding-left: 20px; }
.wcs-card__products li { margin-bottom: 6px; }

.wcs-rules { margin-top: 16px; }
.wcs-rules summary { cursor: pointer; font-weight: 600; color: #666; font-size: .85rem; }
.wcs-rules > div { margin-top: 8px; font-size: .85rem; color: #555; background: #f9f9f9; padding: 12px; border-radius: 6px; }

.wcs-drawn-notice {
    background: #e8f4fd; border-left: 4px solid #2196f3;
    padding: 12px 16px; border-radius: 4px; margin-top: 16px; font-size: .9rem;
}

/* ── My Tickets ────────────────────────────────── */
.wcs-my-tickets { max-width: 620px; }
.wcs-my-tickets h3 { margin-bottom: 16px; }

.wcs-ticket-summary {
    display: flex; gap: 24px; margin-bottom: 12px; flex-wrap: wrap;
}
.wcs-ticket-summary > div { display: flex; flex-direction: column; }
.wcs-total-tickets { font-size: 1.8rem; font-weight: 700; line-height: 1; }
.wcs-ticket-summary small { font-size: .75rem; color: #777; text-transform: uppercase; letter-spacing: .05em; }

.wcs-progress {
    height: 10px; background: #e0e0e0; border-radius: 6px; overflow: hidden; margin-bottom: 20px;
}
.wcs-progress-bar {
    height: 100%; background: linear-gradient(90deg, #1e1e1e, #555);
    border-radius: 6px; transition: width .5s ease;
}

.wcs-entry-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.wcs-entry-table th, .wcs-entry-table td { border: 1px solid #e0e0e0; padding: 8px 10px; text-align: left; }
.wcs-entry-table th { background: #f8f8f8; font-weight: 700; }

/* ── My Account ────────────────────────────────── */
.wcs-account { display: flex; flex-direction: column; gap: 20px; }
.wcs-account-card {
    background: #fff; border: 1px solid #e0e0e0; border-radius: 10px;
    padding: 20px; box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.wcs-account-card--drawn { opacity: .85; }
.wcs-account-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.wcs-account-card__header h3 { margin: 0; }
.wcs-account-card__prize { color: #856404; font-size: .9rem; margin: 0 0 12px; }
.wcs-account-card__date { font-size: .85rem; color: #666; margin: 8px 0 0; }

.wcs-entry-history { margin-top: 12px; }
.wcs-entry-history summary { cursor: pointer; font-size: .85rem; color: #666; font-weight: 600; }

.wcs-status {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
}
.wcs-status--active  { background: #d4edda; color: #155724; }
.wcs-status--draft   { background: #e2e3e5; color: #383d41; }
.wcs-status--paused  { background: #fff3cd; color: #856404; }
.wcs-status--closed  { background: #f8d7da; color: #721c24; }
.wcs-status--drawn   { background: #cce5ff; color: #004085; }

.wcs-none, .wcs-notice {
    padding: 16px 20px; background: #f9f9f9; border-radius: 8px;
    border-left: 3px solid #ccc;
}

/* ── Centered Shortcode Layout ─────────────────── */
.wcs-card,
.wcs-my-tickets,
.wcs-none,
.wcs-notice {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 720px;
}

.wcs-card__meta,
.wcs-card__products ul,
.wcs-ticket-summary {
    justify-content: center;
}

.wcs-card__products ul {
    list-style: none;
    padding-left: 0;
}

.wcs-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wcs-card__desc,
.wcs-card__dollar-note,
.wcs-card__prize,
.wcs-drawn-notice,
.wcs-rules {
    width: 100%;
    text-align: center;
}

.wcs-entry-table {
    text-align: left;
}

.wcs-progress {
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Countdown Timer ───────────────────────────── */
.wcs-countdown {
    background: #1e1e1e; color: #fff; border-radius: 10px;
    padding: 20px; text-align: center; margin: 16px auto; max-width: 480px;
}
.wcs-countdown--ended { background: #555; }
.wcs-countdown__label { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.wcs-countdown__units { display: flex; justify-content: center; align-items: center; gap: 8px; }
.wcs-cd-unit { display: flex; flex-direction: column; align-items: center; min-width: 60px; }
.wcs-cd-num { font-size: 2.2rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.wcs-cd-unit small { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.55); margin-top: 4px; }
.wcs-cd-sep { font-size: 2rem; font-weight: 700; color: rgba(255,255,255,.4); margin-bottom: 14px; }

/* ── Cart Upsell ───────────────────────────────── */
.wcs-cart-upsell {
    display: flex; gap: 12px; align-items: flex-start;
    background: #1e1e1e; color: #fff;
    border-radius: 8px; padding: 14px 16px; margin: 12px 0;
}
.wcs-cart-upsell__icon { font-size: 1.6rem; flex-shrink: 0; }
.wcs-cart-upsell__body { display: flex; flex-direction: column; gap: 3px; font-size: .875rem; }
.wcs-cart-upsell__body strong { font-size: .95rem; }
.wcs-cart-upsell__nudge { color: #ffd700; font-weight: 600; }
.wcs-cart-upsell__prize { color: rgba(255,255,255,.6); font-size: .8rem; }

/* ── Referral Box ──────────────────────────────── */
.wcs-referral-box {
    background: #f9f9f9; border: 1px solid #e0e0e0; border-radius: 10px;
    padding: 20px; margin: 20px auto; max-width: 560px; text-align: center;
}
.wcs-referral-box h4 { margin: 0 0 8px; font-size: 1.1rem; }
.wcs-referral-box p { margin: 0 0 16px; color: #555; font-size: .9rem; }
.wcs-referral-link-wrap { display: flex; gap: 8px; margin-bottom: 16px; }
.wcs-referral-input { flex: 1; padding: 8px 12px; border: 1px solid #ccc; border-radius: 6px; font-size: .85rem; background: #fff; }
.wcs-copy-btn { padding: 8px 16px; background: #1e1e1e; color: #fff; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.wcs-share-buttons { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.wcs-share-btn { display: inline-block; padding: 8px 16px; border-radius: 6px; font-size: .8rem; font-weight: 700; text-decoration: none; color: #fff; }
.wcs-share-btn--fb { background: #1877f2; }
.wcs-share-btn--tw { background: #000; }
.wcs-share-btn--em { background: #555; }
.wcs-share-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: #007700; color: #fff; padding: 12px 24px; border-radius: 8px;
    font-weight: 700; z-index: 99999; box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

/* ── Leaderboard ───────────────────────────────── */
.wcs-leaderboard { max-width: 600px; margin: 0 auto; }
.wcs-leaderboard__title { text-align: center; margin-bottom: 16px; }
.wcs-lb-table { width: 100%; border-collapse: collapse; }
.wcs-lb-table th, .wcs-lb-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #f0f0f0; font-size: .9rem; }
.wcs-lb-table th { background: #1e1e1e; color: #fff; }
.wcs-lb-row--you { background: #fffde7; font-weight: 700; }
.wcs-lb-rank { font-size: 1.2rem; text-align: center; }
.wcs-you-badge { background: #007700; color: #fff; font-size: .7rem; padding: 2px 6px; border-radius: 10px; margin-left: 6px; vertical-align: middle; }
.wcs-my-rank {
    background: #e8f4fd; border-left: 4px solid #2196f3;
    padding: 12px 16px; border-radius: 4px; font-size: .95rem;
}

/* ── Order Confirmation ────────────────────────── */
.wcs-confirmation { margin-top: 32px; }
.wcs-confirmation h2 { margin-bottom: 16px; }
.wcs-confirmation-card {
    background: #f9f9f9; border: 1px solid #e0e0e0; border-radius: 8px;
    padding: 16px 20px; margin-bottom: 12px;
}
.wcs-confirmation-card strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.wcs-confirmation-card p { margin: 4px 0; font-size: .9rem; color: #444; }

/* ── Cart Totals Row ───────────────────────────── */
.wcs-totals-row th,
.wcs-totals-row td {
    padding: 10px 0 !important;
    border-top: 1px solid #e0e0e0;
}
.wcs-totals-row th {
    font-weight: 700;
    font-size: .9rem;
}
.wcs-totals-row td {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
}
.wcs-totals-row strong {
    font-size: 1rem;
    color: #1e1e1e;
}
.wcs-totals-pct {
    font-size: .8rem;
    color: #007700;
    font-weight: 600;
}
.wcs-totals-prize {
    font-size: .78rem;
    color: #888;
}

/* ── Product Banner Share Section ──────────────── */
.wcs-product-banner {
    flex-direction: column;
    gap: 12px;
}
.wcs-product-banner__main {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.wcs-product-banner__share {
    border-top: 1px solid rgba(255,255,255,.15);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wcs-product-banner__share-label {
    font-size: .85rem;
    color: rgba(255,255,255,.85);
}
.wcs-product-banner__share-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.wcs-product-share {
    font-size: .78rem;
    padding: 6px 12px;
}
.wcs-product-banner__login-note {
    font-size: .78rem;
    color: rgba(255,255,255,.55);
}
.wcs-product-banner__login-note a {
    color: #ffd700;
}
.wcs-product-banner__ref-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}
.wcs-product-ref-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 6px;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: .78rem;
}
