/* ── Auction Product Frontend ──────────────────────────── */

.azure-auction-bid-wrapper {
    margin: 20px 0;
    padding: 0;
}

/* ── Info Bar (price + countdown) ─────────────────────── */

.auction-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    margin-bottom: 16px;
}

.auction-current-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.auction-price-label {
    font-size: 13px;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.auction-price-value {
    font-size: 28px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1.2;
}

.auction-countdown {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.auction-countdown-label {
    font-size: 13px;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.auction-countdown-timer {
    font-size: 18px;
    font-weight: 700;
    color: #1d2327;
    font-variant-numeric: tabular-nums;
}

.auction-countdown-timer.ending-soon {
    color: #dc3545;
}

/* ── Buy It Now ───────────────────────────────────────── */

.auction-buy-it-now {
    margin: 0 0 20px;
}

.auction-buy-it-now-btn {
    display: inline-block;
    padding: 10px 24px !important;
    font-size: 15px !important;
    font-weight: 600;
    background: #0078d4 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 100%;
    text-align: center;
}

.auction-buy-it-now-btn:hover {
    background: #005a9e !important;
}

/* ── Bid Form ─────────────────────────────────────────── */

.auction-bid-form {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

.auction-bid-form > label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.auction-bid-controls {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 12px;
}

.auction-bid-amount {
    width: 120px;
    padding: 8px 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex-shrink: 0;
}

.auction-quick-buttons {
    display: flex;
    gap: 4px;
}

.auction-quick-bid {
    font-size: 12px !important;
    padding: 8px 10px !important;
    white-space: nowrap;
}

.auction-max-bid-row {
    margin: 0 0 12px;
    font-size: 13px;
}

.auction-max-bid-row > label {
    display: inline;
    font-weight: 400;
    cursor: pointer;
}

.auction-max-bid-amount {
    margin-left: 8px;
    padding: 6px 8px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.auction-place-bid {
    display: inline-block;
    padding: 10px 24px !important;
    font-size: 15px !important;
    font-weight: 600;
    background: #28a745 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.auction-place-bid:hover {
    background: #218838 !important;
}

.auction-bid-message {
    display: inline-block;
    margin-left: 12px;
    font-size: 14px;
    font-weight: 600;
}

.auction-bid-message.success {
    color: #28a745;
}

.auction-bid-message.error {
    color: #dc3545;
}

/* ── Login Required ───────────────────────────────────── */

.auction-login-required {
    padding: 12px 16px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    color: #856404;
    font-size: 14px;
    margin-bottom: 20px;
}

.auction-login-required a {
    color: #856404;
    font-weight: 600;
    text-decoration: underline;
}

/* ── Bid History Table ────────────────────────────────── */

.auction-bid-history {
    margin-top: 20px;
}

.auction-bid-history h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #1d2327;
}

.auction-bid-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.auction-bid-table thead th {
    text-align: left;
    padding: 8px 12px;
    background: #f0f0f1;
    border-bottom: 2px solid #c3c4c7;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #646970;
    font-weight: 600;
}

.auction-bid-table tbody tr {
    border-bottom: 1px solid #f0f0f1;
}

.auction-bid-table tbody tr:nth-child(odd) {
    background: #f8f9fa;
}

.auction-bid-table tbody td {
    padding: 8px 12px;
}

.auction-bid-table .bid-time {
    color: #646970;
    font-size: 12px;
}

.no-bids {
    color: #646970;
    font-style: italic;
    font-size: 14px;
}

/* ── Auction Ended ────────────────────────────────────── */

.auction-ended {
    padding: 20px;
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #50575e;
    text-align: center;
}

/* ── Confirm Bid Modal ─────────────────────────────────── */

.auction-confirm-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auction-confirm-box {
    background: #fff;
    border-radius: 8px;
    padding: 28px 32px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    text-align: center;
}

.auction-confirm-box h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #1d2327;
}

.auction-confirm-box .confirm-amount {
    font-size: 32px;
    font-weight: 700;
    color: #28a745;
    margin: 12px 0;
}

.auction-confirm-box .confirm-desc {
    font-size: 14px;
    color: #646970;
    margin-bottom: 20px;
}

.auction-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.auction-confirm-actions button {
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.auction-confirm-yes {
    background: #28a745;
    color: #fff;
}

.auction-confirm-yes:hover {
    background: #218838;
}

.auction-confirm-no {
    background: #f0f0f1;
    color: #50575e;
}

.auction-confirm-no:hover {
    background: #dcdcde;
}

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 480px) {
    .auction-info-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .auction-countdown {
        align-items: flex-start;
    }
    .auction-bid-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .auction-bid-amount {
        width: 100%;
    }
    .auction-quick-buttons {
        width: 100%;
    }
    .auction-quick-bid {
        flex: 1;
    }
}
