/* ============================================================
   WC Auction Bidding v2 — Public Styles
   Matches the screenshot design (blue/purple palette)
   ============================================================ */

/* ---------- Wrapper ---------- */
#wcab-wrap { margin: 20px 0; }

.wcab-box {
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    color: #333;
}

/* ---------- Stats bar ---------- */
.wcab-stats-bar {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #e2e2e2;
}
.wcab-stat {
    flex: 1 1 120px;
    padding: 12px 16px;
    border-right: 1px solid #e2e2e2;
    text-align: center;
}
.wcab-stat:last-child { border-right: none; }
.wcab-lbl {
    display: block;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 4px;
}
.wcab-val {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

/* ---------- Top bid banner ---------- */
.wcab-top-bid {
    background: #5b50d6;
    color: #fff;
    padding: 16px 20px;
}
.wcab-top-bid.wcab-winning { background: #1e8a4a; }
.wcab-top-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.wcab-top-label { font-size: 14px; opacity: .85; }
.wcab-top-amount { font-size: 26px; font-weight: 800; }
.wcab-top-user  { font-size: 13px; opacity: .8; margin-top: 4px; }
.wcab-you-win   { font-size: 13px; font-weight: 700; margin-top: 6px; }

/* ---------- Bid form row ---------- */
.wcab-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 16px 20px 8px;
}
.wcab-suggest-lbl { font-size: 13px; color: #666; white-space: nowrap; }
.wcab-input {
    width: 110px !important;
    padding: 9px 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    font-size: 15px !important;
    text-align: center;
    box-sizing: border-box !important;
    -moz-appearance: textfield;
}
.wcab-input::-webkit-inner-spin-button,
.wcab-input::-webkit-outer-spin-button { opacity: 1; }

/* ---------- Buttons ---------- */
.wcab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border: none !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: filter .15s, transform .1s;
    white-space: nowrap;
    line-height: 1.2 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}
.wcab-btn:hover  { filter: brightness(.9); transform: translateY(-1px); }
.wcab-btn:active { transform: translateY(0); }
.wcab-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.wcab-orange { background: #f0a500 !important; color: #fff !important; }
.wcab-dark   { background: #2c2c2c !important; color: #fff !important; }

/* ---------- Autobid panel ---------- */
.wcab-autobid-panel {
    margin: 0 20px 12px;
    background: #f8f8f8;
    border: 1px dashed #ccc;
    border-radius: 6px;
    padding: 12px 16px;
}
.wcab-autobid-panel label { display: block; margin-bottom: 6px; }
.wcab-hint { font-size: 12px; color: #777; margin: 6px 0 0; }

/* ---------- Messages ---------- */
.wcab-msg {
    margin: 4px 20px 12px;
    padding: 10px 14px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
}
.wcab-msg.wcab-ok  { background: #d4edda; color: #155724; }
.wcab-msg.wcab-err { background: #f8d7da; color: #721c24; }

/* ---------- Login / Closed notices ---------- */
.wcab-login-note,
.wcab-closed-note {
    margin: 0;
    padding: 14px 20px;
    font-size: 14px;
}
.wcab-login-note { background: #fff8e1; color: #555; }
.wcab-login-note a { color: #5b50d6; font-weight: 600; }
.wcab-closed-note { background: #f8d7da; color: #721c24; font-weight: 700; }

/* ---------- Bid history ---------- */
.wcab-history {
    border-top: 1px solid #eee;
    padding: 14px 20px 18px;
}
.wcab-history-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #555;
    margin-bottom: 10px;
}
.wcab-history table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.wcab-history th {
    text-align: left;
    color: #999;
    font-weight: 600;
    padding: 4px 8px;
    border-bottom: 1px solid #eee;
}
.wcab-history td {
    padding: 7px 8px;
    border-bottom: 1px solid #f4f4f4;
    color: #333;
}
.wcab-history .wcab-row-top td {
    background: #f0edff;
    color: #2d2469;
    font-weight: 600;
}

/* ---------- Shop card prices ---------- */
.wcab-card-prices {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 6px 0;
    font-size: 13px;
}
.wcab-card-market { color: #888; }
.wcab-card-last strong {
    display: inline-block;
    background: #5b50d6;
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 15px;
}
.wcab-card-btn {
    background: #5b50d6 !important;
    color: #fff !important;
    border-radius: 5px !important;
    border: none !important;
    font-weight: 700 !important;
}
.wcab-card-btn:hover { background: #4740b8 !important; color: #fff !important; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .wcab-stats-bar  { flex-direction: column; }
    .wcab-stat       { border-right: none; border-bottom: 1px solid #e2e2e2; }
    .wcab-stat:last-child { border-bottom: none; }
    .wcab-form-row   { flex-direction: column; align-items: stretch; }
    .wcab-input      { width: 100% !important; }
    .wcab-btn        { width: 100%; text-align: center; }
}

/* ---------- Countdown timer stat ---------- */
.wcab-stat-countdown { border-left: 3px solid #5b50d6; }
.wcab-timer {
    color: #5b50d6 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: -.02em;
}
.wcab-timer.wcab-urgent { color: #dc3545 !important; animation: wcab-pulse 1s infinite; }
@keyframes wcab-pulse { 0%,100%{opacity:1} 50%{opacity:.6} }

/* ---------- Start / End date display ---------- */
.wcab-stat-end { border-left: 2px solid #e74c3c; }
.wcab-date { font-size: 15px !important; font-weight: 700 !important; color: #1a1a1a !important; }
.wcab-time {
    display: block;
    font-size: 12px;
    color: #5b50d6;
    font-weight: 600;
    margin-top: 2px;
}
