
.LunchCardSummaryBoxBalanceHigh{
    float:left; 
    clear:both; 
    /*padding: 12px 17px 12px 17px;*/ 
    /*font-family: Driod SansX, Sans-Serif;*/ 
    font-family: Segoe UI, Driod SansX, Sans-Serif;
    font-weight:bold; 
    font-size:12pt; 
    background-color:rgba(34,177,86,0.9); 
    color:white; 
    border-radius:0; 
    /*width: 375px;*/ 
}

/* Stage 2: action hierarchy + compact summary styling while preserving existing IDs/behavior */
/* NOTE: Do NOT force the background transparent here. The DB-driven school category
   color (SclOnlineCategoryBackgroundColor) is applied as an inline style in
   LunchCardSummary.ascx.cs and must be allowed to show, matching the banner used on
   the other popups. */
#SelectedStuWrap #LunchCardSummary_LunchCardSummaryBox {
    color: #172033;
    border-radius: 0 !important;
}

#LunchCardSummary_LunchCardAddMoneyWrap.meal-account-addmoney-region {
    width: 100%;
    margin-top: 0 !important;
    padding-top: 10px;
    border-top: 1px solid #e7edf4;
}

#LunchCardSummary_LunchCardAddMoneyWrap .sqp-am-popup-shell,
#LunchCardSummary_LunchCardAddMoneyWrap #pnlAddMoneyRoot {
    width: 100% !important;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

#LunchCardSummary_LunchCardAddMoneyWrap .sqp-am-popup-header,
#LunchCardSummary_LunchCardAddMoneyWrap .sqp-am-popup-body,
#LunchCardSummary_LunchCardAddMoneyWrap .sqp-am-popup-form {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#LunchCardSummary_LunchCardAddMoneyWrap .sqp-ac-section {
    margin-left: 0 !important;
    align-items: stretch !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

#LunchCardSummary_LunchCardAddMoneyWrap #pnlAddMoneyPresets,
#LunchCardSummary_LunchCardAddMoneyWrap .sqp-ac-presets {
    align-items: stretch !important;
    flex: 1 1 auto !important;
    max-width: none !important;
    gap: 12px !important;
    box-sizing: border-box !important;
}

#LunchCardSummary_LunchCardAddMoneyWrap .sqp-am-inputrow {
    align-items: stretch !important;
    flex: 0 0 calc((100% - 48px) / 5) !important;
    max-width: calc((100% - 48px) / 5) !important;
    box-sizing: border-box !important;
    display: flex !important;
}

#LunchCardSummary_LunchCardAddMoneyWrap .sqp-am-input,
#LunchCardSummary_LunchCardAddMoneyWrap .sqp-ac-input {
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
    flex: 1 1 auto !important;
    align-self: center !important;
    display: flex !important;
    align-items: center !important;
    height: 50px !important;
    min-height: 50px !important;
    padding: 0 12px !important;
    line-height: 22px !important;
    box-sizing: border-box !important;
}

#LunchCardSummary_LunchCardAddMoneyWrap .sqp-am-input input,
#LunchCardSummary_LunchCardAddMoneyWrap .sqp-ac-input input,
#LunchCardSummary_LunchCardAddMoneyWrap .sqp-am-input .sqp-am-currency,
#LunchCardSummary_LunchCardAddMoneyWrap .sqp-ac-input .sqp-ac-currency {
    font-size: 18px !important;
    line-height: 22px !important;
}

#LunchCardSummary_LunchCardAddMoneyWrap .sqp-ac-preset-btn,
#LunchCardSummary_LunchCardAddMoneyWrap .sqp-ac-preset-btn.sqp-ac-preset-amount {
    height: 50px !important;
    min-height: 50px !important;
    padding: 0 10px !important;
    line-height: 22px !important;
    box-sizing: border-box !important;
}

#LunchCardSummary_LunchCardAddMoneyWrap .sqp-am-okbtn:focus-visible,
#LunchCardSummary_LunchCardAddMoneyWrap .sqp-am-secondarybtn:focus-visible,
#LunchCardSummary_LunchCardAddMoneyWrap .sqp-ac-preset-btn:focus-visible,
#SelectedStuWrap #LunchCardSummary_lnkLunchCardAddMoney:focus-visible,
#SelectedStuWrap #LunchCardSummary_lnkLunchCardHistory:focus-visible,
#SelectedStuWrap #LunchCardSummary_lnkAutochargeStatus:focus-visible,
#SelectedStuWrap #LunchCardSummary_lnkNotificationStatus:focus-visible,
#SelectedStuWrap #LunchCardSummary_lnkSpendingLimitStatus:focus-visible {
    outline: 2px solid #1d63b8;
    outline-offset: 2px;
}

@media only screen and (max-device-width: 640px), (max-width: 900px) {
    #LunchCardSummary_LunchCardAddMoneyWrap .sqp-ac-section,
    #LunchCardSummary_LunchCardAddMoneyWrap .sqp-am-inline .sqp-ac-section,
    #LunchCardSummary_LunchCardAddMoneyWrap .sqp-am-inline-form .sqp-ac-section {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    #LunchCardSummary_LunchCardAddMoneyWrap #pnlAddMoneyPresets,
    #LunchCardSummary_LunchCardAddMoneyWrap .sqp-ac-presets,
    #LunchCardSummary_LunchCardAddMoneyWrap .sqp-am-inputrow,
    #LunchCardSummary_LunchCardAddMoneyWrap .sqp-am-inline-actions {
        width: 100%;
        margin-left: 0 !important;
    }

    #LunchCardSummary_LunchCardAddMoneyWrap .sqp-am-inline-actions {
        justify-content: flex-start;
    }

    #LunchCardSummary_LunchCardAddMoneyWrap .sqp-am-balance-note {
        width: 100%;
        text-align: left;
    }
}

#SelectedStuWrap #LunchCardSummary_LunchBalanceLabel {
    color: #e3edf9;
    font-size: 18px;
    line-height: normal;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
}

#SelectedStuWrap #LunchCardSummary_LunchBalanceDiv,
#SelectedStuWrap #LunchCardSummary_LunchBalance {
    color: #ffffff;
    font-size: 28px;
    line-height: normal;
    font-weight: 600;
}

#SelectedStuWrap #LunchCardSummary_LunchCardImage img {
    max-height: 60px;
    max-width: 130px;
    width: auto;
    object-fit: contain;
}

#SelectedStuWrap #LunchCardSummary_LunchBalanceNegative {
    color: #b42318 !important;
    font-size: 13px !important;
    line-height: 18px;
    font-weight: 600;
}

#SelectedStuWrap #LunchCardSummary_lnkLunchCardHistory,
#SelectedStuWrap #LunchCardSummary_lnkAutochargeStatus,
#SelectedStuWrap #LunchCardSummary_lnkNotificationStatus,
#SelectedStuWrap #LunchCardSummary_lnkLunchCardRefund,
#SelectedStuWrap #LunchCardSummary_lnkLunchCardTransfer,
#SelectedStuWrap #LunchCardSummary_lnkSpendingLimitStatus {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #ffffff !important;
    padding: 12px !important;
    border-radius: 9999px !important;
    gap: 8px !important;
}

#SelectedStuWrap #LunchCardSummary_lnkLunchCardHistory:hover,
#SelectedStuWrap #LunchCardSummary_lnkAutochargeStatus:hover,
#SelectedStuWrap #LunchCardSummary_lnkNotificationStatus:hover,
#SelectedStuWrap #LunchCardSummary_lnkLunchCardRefund:hover,
#SelectedStuWrap #LunchCardSummary_lnkLunchCardTransfer:hover,
#SelectedStuWrap #LunchCardSummary_lnkSpendingLimitStatus:hover {
    background: rgba(255,255,255,0.12) !important;
    border: 0 !important;
}

#SelectedStuWrap #LunchCardSummary_lnkLunchCardHistory .lunchLinkIcon,
#SelectedStuWrap #LunchCardSummary_lnkAutochargeStatus .lunchLinkIcon,
#SelectedStuWrap #LunchCardSummary_lnkNotificationStatus .lunchLinkIcon,
#SelectedStuWrap #LunchCardSummary_lnkLunchCardRefund .lunchLinkIcon,
#SelectedStuWrap #LunchCardSummary_lnkLunchCardTransfer .lunchLinkIcon,
#SelectedStuWrap #LunchCardSummary_lnkSpendingLimitStatus .lunchLinkIcon {
    background: #e3edf9;
    color: #74A6E2;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}

#SelectedStuWrap #LunchCardSummary_lnkLunchCardHistory .lunchLinkIcon svg,
#SelectedStuWrap #LunchCardSummary_lnkAutochargeStatus .lunchLinkIcon svg,
#SelectedStuWrap #LunchCardSummary_lnkNotificationStatus .lunchLinkIcon svg,
#SelectedStuWrap #LunchCardSummary_lnkLunchCardRefund .lunchLinkIcon svg,
#SelectedStuWrap #LunchCardSummary_lnkLunchCardTransfer .lunchLinkIcon svg,
#SelectedStuWrap #LunchCardSummary_lnkSpendingLimitStatus .lunchLinkIcon svg {
    width: 16px;
    height: 16px;
}

#SelectedStuWrap #LunchCardSummary_lnkLunchCardHistory .lunchLinkLabel,
#SelectedStuWrap #LunchCardSummary_lnkAutochargeStatus .lunchLinkLabel,
#SelectedStuWrap #LunchCardSummary_lnkNotificationStatus .lunchLinkLabel,
#SelectedStuWrap #LunchCardSummary_lnkLunchCardRefund .lunchLinkLabel,
#SelectedStuWrap #LunchCardSummary_lnkLunchCardTransfer .lunchLinkLabel,
#SelectedStuWrap #LunchCardSummary_lnkSpendingLimitStatus .lunchLinkLabel {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

/* Green "ON" status badge to match the mockup */
#SelectedStuWrap #LunchCardSummary_lnkLunchCardHistory .lunchLinkBadge--on,
#SelectedStuWrap #LunchCardSummary_lnkAutochargeStatus .lunchLinkBadge--on,
#SelectedStuWrap #LunchCardSummary_lnkNotificationStatus .lunchLinkBadge--on,
#SelectedStuWrap #LunchCardSummary_lnkLunchCardRefund .lunchLinkBadge--on,
#SelectedStuWrap #LunchCardSummary_lnkLunchCardTransfer .lunchLinkBadge--on,
#SelectedStuWrap #LunchCardSummary_lnkSpendingLimitStatus .lunchLinkBadge--on {
    background: #87cc67;
    color: #ffffff;
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.24px;
}

/* OFF status badge – AutoPay / Notifications (Figma #5D85B5) */
#SelectedStuWrap #LunchCardSummary_lnkLunchCardHistory .lunchLinkBadge--off,
#SelectedStuWrap #LunchCardSummary_lnkAutochargeStatus .lunchLinkBadge--off,
#SelectedStuWrap #LunchCardSummary_lnkNotificationStatus .lunchLinkBadge--off,
#SelectedStuWrap #LunchCardSummary_lnkLunchCardRefund .lunchLinkBadge--off,
#SelectedStuWrap #LunchCardSummary_lnkLunchCardTransfer .lunchLinkBadge--off,
#SelectedStuWrap #LunchCardSummary_lnkSpendingLimitStatus .lunchLinkBadge--off {
    background: #5D85B5;
    color: #ffffff;
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.24px;
}

/* Prominent Add Money CTA: keep the white pill + green circular icon (see
   LunchLinkRenderer.lunchLinkPill--addmoney) instead of the secondary treatment. */
#SelectedStuWrap #LunchCardSummary_lnkLunchCardAddMoney {
    background: #ffffff !important;
    border: 1px solid #ffffff !important;
    color: #1c211f !important;
}

#SelectedStuWrap #LunchCardSummary_lnkLunchCardAddMoney .lunchLinkIcon {
    background: #87cc67;
    color: #ffffff;
}

#SelectedStuWrap #LunchCardSummary_lnkLunchCardAddMoney .lunchLinkLabel {
    color: #1c211f;
    font-weight: 600;
}

.LunchCardSummaryBoxBalanceLow{
    float:left; 
    clear:both; 
    /*padding: 12px 17px 12px 17px;*/ 
    font-family: Segoe UI, Driod SansX, Sans-Serif; 
    font-weight:bold; 
    font-size:12pt; 
    background-color:rgba(255,127,39,0.8); 
    color:white; 
    border-radius:0; 
    /*width: 375px;*/ 
}


.LunchCardSummaryBoxBalanceVeryLow{
    float:left; 
    clear:both; 
    /*padding: 12px 17px 12px 17px;*/ 
    font-family: Segoe UI, Driod SansX, Sans-Serif; 
    font-weight:bold; 
    font-size:12pt; 
    background-color:rgba(178,34,34,0.8);
    color:white; 
    border-radius:0; 
    /*width: 375px;*/ 
}


/* =========================================================================
   RESPONSIVE: keep the banner design intact at any frame/container width.
   The markup uses fixed 210px columns + 32px gaps via inline styles; these
   rules relax those constraints so the layout reflows instead of clipping
   or overflowing. Uses !important to override the inline widths/gaps.
   ========================================================================= */

/* Always keep the three action columns side-by-side (Figma 77:2008), no
   matter the screen size. The grid never wraps and each column shares the
   available width equally, shrinking rather than stacking. */
#SelectedStuWrap #LunchCardSummary_LunchCardSummaryBox .meal-account-grid {
    flex-wrap: nowrap !important;
}

#SelectedStuWrap #LunchCardSummary_LunchCardSummaryBox .meal-account-col {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
}

/* Below ~1200px: tighten the action gaps so everything fits. */
@media only screen and (max-width: 1200px) {
    #SelectedStuWrap #LunchCardSummary_LunchCardSummaryBox .meal-account-layout {
        gap: 20px !important;
    }

    #SelectedStuWrap #LunchCardSummary_LunchCardSummaryBox .meal-account-actions {
        gap: 20px !important;
    }
}

/* Below ~900px: stack the identity (logo + balance) above the actions and
   let the action grid keep its three columns. */
@media only screen and (max-width: 900px) {
    #SelectedStuWrap #LunchCardSummary_LunchCardSummaryBox .meal-account-layout {
        gap: 16px !important;
    }

    #SelectedStuWrap #LunchCardSummary_LunchCardSummaryBox .meal-account-identity {
        flex: 1 1 100% !important;
    }

    #SelectedStuWrap #LunchCardSummary_LunchCardSummaryBox .meal-account-main {
        flex: 1 1 100% !important;
    }

    #SelectedStuWrap #LunchCardSummary_LunchCardSummaryBox .meal-account-actions {
        gap: 16px !important;
    }

    /* The vertical divider makes little sense once the content wraps. */
    #SelectedStuWrap #LunchCardSummary_LunchCardSummaryBox .meal-account-divider {
        display: none !important;
    }
}

/* Below ~600px: the three fixed-width columns can't fit on a phone without
   overflowing, so flatten the column wrappers and let every pill reflow into
   an even two-across grid that fills the card width. */
@media only screen and (max-width: 600px) {
    #SelectedStuWrap #LunchCardSummary_LunchCardSummaryBox .meal-account-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        column-gap: 12px !important;
        row-gap: 10px !important;
        width: 100% !important;
        align-items: stretch !important;
    }

    /* Dissolve the column wrappers so their pills become direct grid items. */
    #SelectedStuWrap #LunchCardSummary_LunchCardSummaryBox .meal-account-col {
        display: contents !important;
    }

    /* Each pill fills its own grid cell and left-aligns its icon + label. */
    #SelectedStuWrap #LunchCardSummary_LunchCardSummaryBox .meal-account-col .lunchLinkPill {
        width: 100% !important;
        min-width: 0 !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
    }

    #SelectedStuWrap #LunchCardSummary_LunchBalanceDiv,
    #SelectedStuWrap #LunchCardSummary_LunchBalance {
        font-size: 24px;
    }
}


