/**
 * 1.1.282 — Fixed High Protein Step 2 presentation.
 *
 * Fixed Goal Mode keeps the shared calculator UI but replaces the selectable
 * nutrition-goal group with one static High Protein context. These rules are
 * intentionally scoped to fixed-goal Step 2 only. Meal, Starter, Ingredients,
 * Fixed Meal Mode, and the standard calculator retain their existing CSS.
 */

.bmb-fixed-goal-mode .bmb-fixed-goal-step,
.bmb-fixed-goal-mode .bmb-fixed-goal-step .bmb-step-head > div {
    min-width: 0;
}

.bmb-fixed-goal-mode .bmb-fixed-goal-step .bmb-step-head p {
    display: block !important;
}

.bmb-fixed-goal-mode .bmb-fixed-goal-step .bmb-step-head h3,
.bmb-fixed-goal-mode .bmb-fixed-goal-step .bmb-step-head p {
    overflow-wrap: break-word;
}

.bmb-fixed-goal-mode .bmb-fixed-goal-display {
    grid-template-columns: minmax(0, 1fr);
}

.bmb-fixed-goal-mode .bmb-fixed-goal-options {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
}

.bmb-fixed-goal-mode .bmb-fixed-goal-card,
.bmb-fixed-goal-mode .bmb-fixed-goal-card:disabled {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 74px;
    padding: 0.82rem 0.9rem;
    border-color: var(--bmb-adaptive-primary, #ff6a00) !important;
    border-radius: 14px;
    background: color-mix(in srgb, var(--bmb-adaptive-primary, #ff6a00) 10%, var(--bmb-adaptive-surface, #ffffff) 90%) !important;
    color: var(--bmb-adaptive-text, #21160d) !important;
    cursor: default !important;
    opacity: 1 !important;
    text-align: left;
    transform: none !important;
    user-select: none;
}

.bmb-fixed-goal-mode .bmb-fixed-goal-card:hover,
.bmb-fixed-goal-mode .bmb-fixed-goal-card:focus,
.bmb-fixed-goal-mode .bmb-fixed-goal-card:focus-visible,
.bmb-fixed-goal-mode .bmb-fixed-goal-card:active,
.bmb-fixed-goal-mode .bmb-fixed-goal-card:disabled:hover {
    border-color: var(--bmb-adaptive-primary, #ff6a00) !important;
    background: color-mix(in srgb, var(--bmb-adaptive-primary, #ff6a00) 10%, var(--bmb-adaptive-surface, #ffffff) 90%) !important;
    color: var(--bmb-adaptive-text, #21160d) !important;
    cursor: default !important;
    box-shadow: none !important;
    transform: none !important;
}

.bmb-fixed-goal-mode .bmb-fixed-goal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    font-size: 24px;
    line-height: 1;
}

.bmb-fixed-goal-mode .bmb-fixed-goal-copy {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    gap: 0.18rem;
}

.bmb-fixed-goal-mode .bmb-fixed-goal-copy strong {
    display: block;
    max-width: 100%;
    color: inherit;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.2;
    overflow-wrap: break-word;
}

.bmb-fixed-goal-mode .bmb-fixed-goal-copy small {
    display: block;
    max-width: 100%;
    color: var(--bmb-adaptive-text-muted, #6d5037);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.35;
    white-space: normal;
    overflow: visible;
    overflow-wrap: break-word;
}

.bmb-fixed-goal-mode .bmb-fixed-goal-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-left: auto;
    min-height: 28px;
    padding: 0.28rem 0.68rem;
    border: 1px solid var(--bmb-adaptive-border, #f1d5ad);
    border-radius: 999px;
    background: var(--bmb-adaptive-surface-soft, #fff8ef);
    color: var(--bmb-adaptive-text-muted, #6d5037);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 680px) {
    .bmb-fixed-goal-mode .bmb-fixed-goal-card,
    .bmb-fixed-goal-mode .bmb-fixed-goal-card:disabled {
        gap: 0.62rem;
        min-height: 70px;
        padding: 0.75rem;
    }

    .bmb-fixed-goal-mode .bmb-fixed-goal-status {
        min-height: 26px;
        padding-inline: 0.55rem;
        font-size: 0.69rem;
    }
}

@media (max-width: 420px) {
    .bmb-fixed-goal-mode .bmb-fixed-goal-card,
    .bmb-fixed-goal-mode .bmb-fixed-goal-card:disabled {
        gap: 0.52rem;
        padding-inline: 0.68rem;
    }

    .bmb-fixed-goal-mode .bmb-fixed-goal-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        font-size: 20px;
    }

    .bmb-fixed-goal-mode .bmb-fixed-goal-copy strong {
        font-size: 0.94rem;
    }

    .bmb-fixed-goal-mode .bmb-fixed-goal-copy small {
        font-size: 0.73rem;
    }

    .bmb-fixed-goal-mode .bmb-fixed-goal-status {
        padding-inline: 0.48rem;
        font-size: 0.66rem;
    }
}

/* 1.1.283 — High Protein meal compatibility presentation. */
.bmb-fixed-goal-mode .bmb-meal-type-card.bmb-fixed-goal-meal-unavailable,
.bmb-fixed-goal-mode .bmb-meal-type-card.bmb-fixed-goal-meal-unavailable:hover,
.bmb-fixed-goal-mode .bmb-meal-type-card.bmb-fixed-goal-meal-unavailable:focus,
.bmb-fixed-goal-mode .bmb-meal-type-card.bmb-fixed-goal-meal-unavailable:focus-visible,
.bmb-fixed-goal-mode .bmb-meal-type-card.bmb-fixed-goal-meal-unavailable:active,
.bmb-fixed-goal-mode .bmb-meal-type-card.bmb-fixed-goal-meal-unavailable:disabled {
    border-style: dashed;
    border-color: var(--bmb-adaptive-border, #ead8c1) !important;
    background: var(--bmb-adaptive-surface-soft, #fff8ef) !important;
    color: var(--bmb-adaptive-text-muted, #6d5037) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 0.62 !important;
    transform: none !important;
}

.bmb-fixed-goal-mode .bmb-meal-type-card.bmb-fixed-goal-meal-unavailable .bmb-meal-type-icon {
    opacity: 0.72;
    filter: grayscale(1);
}

.bmb-fixed-goal-mode .bmb-meal-type-card.bmb-fixed-goal-meal-unavailable .bmb-meal-type-copy small {
    display: block !important;
    color: inherit;
    font-weight: 800;
    white-space: normal;
    overflow: visible;
}

@media (max-width: 640px) {
    .bmb-fixed-goal-mode .bmb-meal-type-card.bmb-fixed-goal-meal-unavailable .bmb-meal-type-copy small {
        display: block !important;
        font-size: 0.74rem;
        line-height: 1.25;
    }
}

