/* =============================================================================
   BID BOTTOM SHEET - Mobile Bieten-Dialog
   Oeffnet sich bei Tap auf "Bieten" in einer Auction Card auf Mobile
   ============================================================================= */

/* Sheet Content */
.bid-sheet-product {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.bid-sheet-product img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.bid-sheet-product-info {
    flex: 1;
    min-width: 0;
}

.bid-sheet-product-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    margin: 0 0 4px;
}

.bid-sheet-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #1e3a5f;
}

.bid-sheet-product-price-label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 400;
}

/* Timer im Sheet */
.bid-sheet-timer {
    display: flex;
    justify-content: center;
    gap: 8px;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 16px;
}

.bid-sheet-timer .timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 44px;
}

.bid-sheet-timer .timer-value {
    font-size: 20px;
    font-weight: 700;
    color: #1e3a5f;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.bid-sheet-timer .timer-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    font-weight: 600;
}

.bid-sheet-timer .timer-sep {
    font-size: 20px;
    font-weight: 700;
    color: #94a3b8;
    align-self: flex-start;
    line-height: 1.2;
}

/* Bid Input Group im Sheet */
.bid-sheet-input-wrapper {
    margin-bottom: 12px;
}

.bid-sheet-input-group {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.bid-sheet-input-group:focus-within {
    border-color: #1e3a5f;
}

.bid-sheet-input-group input {
    flex: 1;
    border: none;
    padding: 14px 16px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    outline: none;
    font-variant-numeric: tabular-nums;
    min-width: 0;
    -webkit-appearance: none;
}

.bid-sheet-btn-minus,
.bid-sheet-btn-plus {
    width: 48px;
    min-width: 48px;
    height: 52px;
    border: none;
    background: #f8fafc;
    color: #1e3a5f;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.bid-sheet-btn-minus:active,
.bid-sheet-btn-plus:active {
    background: #e2e8f0;
}

.bid-sheet-btn-minus {
    border-right: 1px solid #e2e8f0;
}

.bid-sheet-btn-plus {
    border-left: 1px solid #e2e8f0;
}

/* Quick-Bid Chips */
.bid-sheet-quick-bids {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 16px;
    padding: 2px 0;
}

.bid-sheet-quick-bids::-webkit-scrollbar {
    display: none;
}

.bid-sheet-quick-bid {
    flex-shrink: 0;
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #1e3a5f;
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.bid-sheet-quick-bid:active,
.bid-sheet-quick-bid.selected {
    background: #1e3a5f;
    color: #fff;
    border-color: #1e3a5f;
}

/* Submit Button */
.bid-sheet-submit {
    width: 100%;
    padding: 16px;
    background: #1e3a5f;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    min-height: 52px;
    -webkit-tap-highlight-color: transparent;
}

.bid-sheet-submit:active {
    transform: scale(0.98);
}

.bid-sheet-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* Aufgeld/MwSt Hinweis */
.bid-sheet-hint {
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 10px;
    line-height: 1.4;
}

/* Success State */
.bid-sheet-success {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    text-align: center;
}

.bid-sheet-success.visible {
    display: flex;
}

.bid-sheet-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.bid-sheet-success-icon svg {
    width: 28px;
    height: 28px;
}

.bid-sheet-success-text {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.bid-sheet-success-amount {
    font-size: 22px;
    font-weight: 700;
    color: #1e3a5f;
}

/* Error State */
.bid-sheet-error {
    display: none;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 13px;
    margin-bottom: 12px;
    text-align: center;
}

.bid-sheet-error.visible {
    display: block;
}

/* Maximalgebot Option */
.bid-sheet-maxbid-option {
    padding: 8px 0;
}

.bid-sheet-maxbid-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #1a1a1a;
}

.bid-sheet-maxbid-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #c00;
    flex-shrink: 0;
}

.bid-sheet-maxbid-info {
    margin-top: 6px;
    padding: 8px 10px;
    background: #f0f7ff;
    border-left: 3px solid #0073aa;
    font-size: 11px;
    line-height: 1.4;
    color: #555;
    border-radius: 0 4px 4px 0;
}

/* Loading State */
.bid-sheet-submit.loading {
    position: relative;
    color: transparent;
}

.bid-sheet-submit.loading::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bid-sheet-spin 0.6s linear infinite;
    left: 50%;
    top: 50%;
    margin: -11px 0 0 -11px;
}

@keyframes bid-sheet-spin {
    to { transform: rotate(360deg); }
}
