/* ============================================================
   Mattress Hardness Slider — Frontend Styles
   Matches the clean pill-track design from the reference image
   ============================================================ */

.mh-hardness-wrapper {
    margin: 1.4em 0 1.6em;
    font-family: inherit;
}

.mh-title {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 0.8em;
    letter-spacing: 0.01em;
}

/* ── Container ───────────────────────────────── */
.mh-slider-container {
    background: #f5f5f5;
    border-radius: 60px;
    padding: 14px 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 480px;
    box-sizing: border-box;
}

/* ── Labels row ──────────────────────────────── */
.mh-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 4px;
}

.mh-labels span {
    font-size: 0.78rem;
    color: #555;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* ── Track row ───────────────────────────────── */
.mh-track-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mh-edge-label {
    font-size: 0.82rem;
    color: #333;
    font-weight: 500;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    line-height: 1;
}

/* ── Track (pill) ────────────────────────────── */
.mh-track {
    position: relative;
    flex: 1;
    height: 6px;
    background: #d8d8d8;
    border-radius: 3px;
    /* Extra vertical space so thumb doesn't clip */
    margin: 16px 0;
}

/* ── Filled portion ──────────────────────────── */
.mh-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #93784B;
    border-radius: 3px;
    pointer-events: none;
    transition: width 0.15s ease;
}

/* ── Thumb ───────────────────────────────────── */
.mh-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    background: #93784B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.mh-thumb span {
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 480px) {
    .mh-slider-container {
        max-width: 100%;
        padding: 12px 16px 14px;
    }
}
