﻿/* Pills and badges */
.pill, .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .85rem;
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
    width: 100%
}

.pill-soft {
    background: #e0f2fe;
    color: #075985;
    border-color: #bae6fd;
}

.pill-green {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.pill-blue {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}


.pill-red {
    background: #dbeafe;
    color: red;
    border: 1px solid #bfdbfe;
}


.badge.red {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

/* Mobile truncation for pills inside table cards */
@media (max-width:720px) {
    .pill {
        max-width: 68%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}


.pill-choices {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Make chips expand evenly and center content */
.pill.choice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    line-height: 1.2;
    background: #fff; /* neutral */
    color: var(--text);
    border: 1px solid var(--border); /* neutral */
    white-space: normal;
}

    .pill.choice.selected {
        background: #dbeafe;
        color: #1e40af;
        border-color: #bfdbfe;
    }

    /* Focus ring consistent with your theme */
    .pill.choice:focus-visible {
        outline: 3px solid var(--ring);
        outline-offset: 2px;
    }

/* Small info icon next to Fasting */
.info-icon {
    margin-left: 8px;
    font-size: .9rem;
    color: var(--muted);
}

    .info-icon:hover {
        color: var(--brand);
    }

@media (max-width:720px) {
    .pill.choice {
        max-width: none !important;
        overflow: visible !important;
        text-overflow: unset !important;
        white-space: normal !important;
    }
}



