/**
 * ============================================================
 * shared/components/WeightOverlay/WeightOverlay.css - СТИЛИ ОВЕРЛЕЯ ВЕСА
 * ============================================================
 */

.weight-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 16px;
    text-align: center;
    z-index: 3;
    pointer-events: none;
    /* Ширина под «200.0» — бокс не меняет размер при смене цифр */
    min-width: 122px;
}

.weight-overlay-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary, #17181c);
    display: block;
    line-height: 1.2;
    /* Ширина под «000.0»: при смене цифр бокс не меняет размер */
    min-width: 4.2ch;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.weight-overlay-label {
    font-size: 0.65rem;
    color: var(--text-tertiary, #9ca3af);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Адаптив */
@media (max-width: 600px) {
    .weight-overlay {
        top: 12px;
        right: 12px;
        padding: 4px 12px;
        /* Ширина под «200.0» — бокс не «дышит» */
        min-width: 104px;
        border-radius: 10px;
    }

    .weight-overlay-value {
        font-size: 1.2rem;
    }

    .weight-overlay-label {
        font-size: 0.55rem;
    }
}

@media (max-height: 700px) and (max-width: 600px) {
    .weight-overlay {
        top: 8px;
        right: 8px;
        padding: 2px 8px;
        min-width: 92px;
    }

    .weight-overlay-value {
        font-size: 1rem;
    }

    .weight-overlay-label {
        font-size: 0.5rem;
    }
}