.wiz-bid-prediction-shell {
    position: relative;
    box-sizing: border-box;
    block-size: clamp(300px, 48vh, 420px);
    block-size: clamp(300px, 48dvh, 420px);
    margin-top: 12px;
    padding: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    border: 1px solid #dbe5f2;
    border-radius: 10px;
    background: #fbfdff;
}

.wiz-bid-prediction-shell:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

.wiz-bid-prediction-state {
    min-block-size: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 10px;
    text-align: center;
    color: #475569;
}

.wiz-bid-prediction-state strong {
    color: #1e3a5f;
    font-size: 0.92rem;
}

.wiz-bid-prediction-state > span:not(.wiz-bid-prediction-spinner) {
    max-width: 34rem;
    font-size: 0.8rem;
    line-height: 1.55;
}

.wiz-bid-prediction-spinner {
    inline-size: 34px;
    block-size: 34px;
    border: 4px solid #dbeafe;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: wiz-bid-prediction-spin 0.8s linear infinite;
}

.wiz-bid-prediction-skeleton {
    inline-size: min(100%, 520px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.wiz-bid-prediction-skeleton i {
    display: block;
    block-size: 64px;
    border-radius: 8px;
    background: linear-gradient(100deg, #edf2f7 20%, #f8fafc 40%, #edf2f7 60%);
    background-size: 240% 100%;
    animation: wiz-bid-prediction-shimmer 1.3s ease-in-out infinite;
}

.wiz-bid-prediction-retry {
    min-inline-size: 96px;
    min-block-size: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    padding: 10px 18px;
    border: 0;
    border-radius: 9px;
    background: #2563eb;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

@keyframes wiz-bid-prediction-spin {
    to { transform: rotate(360deg); }
}

@keyframes wiz-bid-prediction-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@media (max-width: 767px) {
    .bwiz-overlay .bwiz-close,
    .bwiz-overlay .bwiz-btn {
        min-inline-size: 44px;
        min-block-size: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .wiz-bid-prediction-shell {
        block-size: clamp(260px, 46vh, 380px);
        block-size: clamp(260px, 46dvh, 380px);
        padding: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wiz-bid-prediction-spinner,
    .wiz-bid-prediction-skeleton i {
        animation: none;
    }
}
