/* Primary planning actions stay visible; original settings open on demand. */
html body #app.bbnext-plan .bbnext-plan-budget[data-bb-simple-budget]{display:block!important;min-height:0!important;padding:0!important;margin:0 0 12px!important;overflow:hidden}
html body #app #bbSimpleBudget{margin:0;border:0;background:transparent;min-width:0}
html body #app #bbSimpleBudget>summary{display:grid;grid-template-columns:60px minmax(0,1fr);align-items:center;gap:12px;min-height:96px;padding:13px 15px;cursor:pointer;list-style:none}
html body #app #bbSimpleBudget>summary::-webkit-details-marker{display:none}
html body #app #bbSimpleBudget .bb-myweek-emblem{position:relative!important;grid-column:1!important;grid-row:1!important;align-self:center!important;justify-self:center!important;width:60px!important;height:60px!important;margin:0!important;transform:none!important}
html body #app #bbSimpleBudget .bb-myweek-emblem>.bbnext-plan-donut{position:relative!important;width:60px!important;height:60px!important;margin:0!important;inset:auto!important;transform:none!important}
html body #app #bbSimpleBudget .bb-myweek-emblem .bbnext-plan-donut-core{width:45px!important;height:45px!important}
html body #app #bbSimpleBudget .bbnext-plan-donut-core strong{font:750 10px/1.2 system-ui!important;white-space:nowrap!important}
html body #app #bbSimpleBudget .bbnext-plan-donut-core small{font-size:7px!important;letter-spacing:0!important}
html body #app #bbSimpleBudget .bbnext-plan-budget-text{grid-column:2!important;grid-row:1!important;width:auto!important;min-width:0!important;text-align:left!important}
html body #app #bbSimpleBudget .bbnext-plan-kicker{display:none!important}
html body #app #bbSimpleBudget .bbnext-plan-budget-text h2{font-size:23px!important;line-height:1.15!important;margin:0 0 5px!important;letter-spacing:-.6px!important}
html body #app #bbSimpleBudget .bbnext-plan-budget-text>p{font-size:11px!important;line-height:1.4!important;margin:0!important}
html body #app #bbSimpleBudget .bbs-budget-hint{display:block!important;margin:6px 0 0!important;font-size:10px!important;font-weight:750!important;color:#4c7555!important}
html body #app #bbSimpleBudget .bbs-budget-hint:after{content:' ⌄'}
html body #app #bbSimpleBudget[open] .bbs-budget-hint:after{content:' ⌃'}
html body #app #bbSimpleBudget .bbs-budget-body{padding:14px 16px;border-top:1px solid #dce5d4;background:#fffdf8}
html body #app #bbSimpleBudget .bb77-budget-form{margin:10px 0!important;display:block!important}
html body #app #bbSimpleBudget .bbfeed-global{justify-content:flex-start!important;min-height:44px;margin:0 0 10px!important}
html body #app #bbSimpleBudget .bbfeed-global button{min-width:44px!important;min-height:44px!important}
html body #app #bbSimpleBudget .bbnext-plan-budget-line{display:block!important;margin:5px 0;font-size:13px!important}
html body #app #bbSimpleBudget .bbs-budget-body>small{font-size:10px;line-height:1.5;color:#61765a}
html body #app #bbSimpleBudget summary:focus-visible,html body #app .bbs-disclosure>summary:focus-visible{outline:3px solid #c19b4c;outline-offset:-3px}
html body #app.bbnext-plan #bbpolAutofillCard{padding:13px!important;margin-bottom:12px!important}
html body #app #bbSimpleMealPreferences{margin:5px 0 10px;border:0;border-radius:10px;background:transparent}
html body #app #bbSimpleMealPreferences>summary{min-height:44px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 0;font-size:12px;font-weight:750;color:#41664b;cursor:pointer;list-style:none}
html body #app #bbSimpleMealPreferences>summary:after{content:'⌄';font-size:18px}
html body #app #bbSimpleMealPreferences[open]>summary:after{content:'⌃'}
html body #app #bbSimpleMealPreferences>summary::-webkit-details-marker{display:none}
html body #app #bbSimpleMealPreferences .bb81-pro-pills{margin:3px 0 12px!important}
html body #app #bbpolAutofillCard .bb81-pro-filters-heading strong{font-size:16px!important}
html body #app #bbpolAutofillCard>.bbnext-plan-autofill>summary{min-height:44px;padding:11px 0!important}
html body #app #bb1756PlannerExtras .bb1756-extras-header{margin-bottom:8px}
html body #app #bb1756PlannerExtras .bb1756-extras-header h2{font-size:19px;margin:3px 0 5px}
html body #app #bbSimplePantry{margin:12px 0 0;border:1px solid #c5d8c8;border-radius:15px;background:#f0f7ef;scroll-margin-top:20px;overflow:hidden}
html body #app #bbSimplePantry>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:64px;padding:14px;cursor:pointer;list-style:none;font-size:18px;font-weight:800;color:#295c3d}
html body #app #bbSimplePantry>summary::-webkit-details-marker{display:none}
html body #app #bbSimplePantry>summary:after{content:'⌄';font-size:23px}
html body #app #bbSimplePantry[open]>summary:after{content:'⌃'}
html body #app #bbSimplePantry .bbs-pantry-count{margin-left:auto;font-size:11px;font-weight:650;color:#5f7b66}
html body #app #bbSimplePantry #bb8WhatIHave{margin:0!important;border:0!important;border-top:1px solid #d4e1d0!important;border-radius:0!important}
html body #app #bb173ShopFridge .bb76-kitchen-intro h2{font-size:26px;line-height:1.18;margin:5px 0 9px}
html body #app #bb173ShopFridge .bb76-kitchen-intro p{font-size:12px;line-height:1.5}
@media(max-width:360px){html body #app #bbSimpleBudget>summary{gap:10px;padding:12px;grid-template-columns:55px minmax(0,1fr)}html body #app #bbSimpleBudget .bbnext-plan-budget-text h2{font-size:21px!important}html body #app #bbSimplePantry>summary{font-size:16px;padding:12px}.bbs-pantry-count{font-size:10px}}
/* Keep the original pantry jump control aligned with its two compact peers. */
html body #app #bbKitchenSections>#bb76JumpPantry{white-space:normal!important;min-width:0!important;margin:0!important;padding:9px 6px!important;font:750 11px/1.3 system-ui!important}

/* Shopping: give names and quantities room; keep price estimates together below. */
#app:not(.bb172-store-mode) #bb321Printable .shop-row.bb321-buy-row{display:flex!important;flex-direction:column!important;gap:10px!important;padding:14px!important}
#app:not(.bb172-store-mode) #bb321Printable .bb321-buy-row .bb321-shop-main{width:100%!important;min-width:0!important}
#app:not(.bb172-store-mode) #bb321Printable .bb321-buy-row .bb321-shop-info{min-width:0!important;flex:1!important}
#app:not(.bb172-store-mode) #bb321Printable .bb321-buy-row .bb172-got-it{min-height:44px!important;margin:7px 8px 0 0!important;padding:6px 12px!important;font-size:12px!important}
#app:not(.bb172-store-mode) #bb321Printable .bb321-buy-row .bb172-row-tools{display:inline-block!important;vertical-align:top!important;margin:7px 0 0!important}
#app:not(.bb172-store-mode) #bb321Printable .bb321-buy-row .bb172-row-tools>summary{min-height:44px!important;border-radius:10px!important;padding:6px 12px!important}
#app:not(.bb172-store-mode) #bb321Printable .bb321-buy-row .bb172-row-tools[open]{display:block!important;width:100%!important}
#app:not(.bb172-store-mode) #bb321Printable .bb321-buy-row .bb321-shop-price{width:100%!important;min-width:0!important;max-width:none!important;border-top:1px solid #e6ece5;padding-top:8px!important;text-align:left!important;align-items:stretch!important}
#app:not(.bb172-store-mode) #bb321Printable .bb321-buy-row .bb321-shop-price .bb80-price-lines{max-width:none!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px!important}
#app:not(.bb172-store-mode) #bb321Printable .bb321-buy-row .bb321-shop-price .bb80-price-line{flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:5px!important}
#app:not(.bb172-store-mode) #bb321Printable .bb321-buy-row .bb321-shop-price .bb80-price-line span{white-space:normal!important;font-size:11px!important}
#app:not(.bb172-store-mode) #bb321Printable .bb321-buy-row .bb321-shop-price .bb80-price-line strong{padding:0!important;background:transparent!important;font-size:13px!important}
#app:not(.bb172-store-mode) #bb321Printable .bb321-buy-row .bb321-shop-price .bb80-price-lines .bb79-rough-tag,
#app:not(.bb172-store-mode) #bb321Printable .bb321-buy-row .bb321-shop-price .bb80-price-lines .bb79-local-tag{grid-column:1/-1;justify-self:start!important;border:0!important;background:transparent!important;padding:0!important;font-size:10px!important;font-weight:500!important;color:#667466!important}
#app:not(.bb172-store-mode) #bb321Printable .bb321-buy-row .bb321-shop-price .bb79-price-tap{min-height:44px!important;padding:5px 8px!important;border-radius:9px!important}
@media(max-width:360px){#app:not(.bb172-store-mode) #bb321Printable .bb321-buy-row .bb321-shop-price .bb80-price-line{flex-direction:column!important;align-items:flex-start!important}}

/* My Week: a clear budget focal point with the existing live figures. */
html body #app.bbnext-plan .bbnext-plan-budget[data-bb-simple-budget]{background:linear-gradient(125deg,#123f30,#246449)!important;border:1px solid #c9ad62!important;box-shadow:0 8px 24px #17433222!important;border-radius:22px!important}
html body #app #bbSimpleBudget>summary{grid-template-columns:88px minmax(0,1fr)!important;gap:16px!important;padding:22px 18px!important;min-height:150px!important}
html body #app #bbSimpleBudget .bb-myweek-emblem,
html body #app #bbSimpleBudget .bb-myweek-emblem>.bbnext-plan-donut{width:88px!important;height:88px!important}
html body #app #bbSimpleBudget .bb-myweek-emblem .bbnext-plan-donut-core{width:68px!important;height:68px!important;background:#fffdf5!important}
html body #app #bbSimpleBudget .bbnext-plan-donut-core strong{font-size:15px!important;color:#194c35!important}
html body #app #bbSimpleBudget .bbnext-plan-donut-core small{font-size:9px!important;color:#526b5a!important}
html body #app #bbSimpleBudget .bbnext-plan-budget-text h2{color:#fffdf5!important;font-size:30px!important;letter-spacing:-.8px!important;margin-bottom:8px!important}
html body #app #bbSimpleBudget .bbnext-plan-budget-text>p{font-size:13px!important;line-height:1.45!important;color:#e0ecdf!important}
html body #app #bbSimpleBudget .bbs-budget-hint{display:inline-block!important;min-height:44px!important;box-sizing:border-box!important;margin-top:12px!important;padding:11px 10px!important;border:1px solid #d6bf7980!important;border-radius:10px!important;background:#ffffff0c!important;color:#f4dfa4!important;font-size:11px!important}
html body #app #bbSimpleBudget .bbs-budget-body{color:#244d37!important}
@media(max-width:360px){html body #app #bbSimpleBudget>summary{gap:12px!important;padding:18px 12px!important;grid-template-columns:76px minmax(0,1fr)!important}html body #app #bbSimpleBudget .bbnext-plan-budget-text h2{font-size:27px!important}html body #app #bbSimpleBudget .bb-myweek-emblem,html body #app #bbSimpleBudget .bb-myweek-emblem>.bbnext-plan-donut{width:76px!important;height:76px!important}html body #app #bbSimpleBudget .bb-myweek-emblem .bbnext-plan-donut-core{width:60px!important;height:60px!important}html body #app #bbSimpleBudget .bbnext-plan-donut-core strong{font-size:13px!important}}

/* Keep the page centred without capturing Discover's intentional card swipes. */
html,body{max-width:100%;overflow-x:hidden;overscroll-behavior-x:none}
@supports(overflow:clip){html,body{overflow-x:clip}}
html body #app.bbnext-plan,
html body #app.bbnext-plan #bb1759MealsSummary,
html body #app.bbnext-plan .bb1759-days,
html body #app.bbnext-plan .bbnext-day,
html body #app.bbnext-plan .bbnext-day-toggle{box-sizing:border-box!important;min-width:0!important;max-width:100%!important;width:100%!important}
html body #app.bbnext-plan .bbnext-day.has-meal .bbnext-day-description{grid-template-columns:minmax(0,1fr)!important;min-width:0!important;max-width:100%!important}
html body #app.bbnext-plan .bbnext-day.has-meal .bbnext-day-description strong{min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important}
html body #app.bbnext-plan .bbnext-day.has-meal .bbfeed-meta{min-width:0!important;max-width:100%!important;flex-wrap:wrap!important}

/* Compact removal boxes keep a full touch target beside each planned day. */
html body #app.bbnext-plan .bbnext-day-toggle>button.bb77-clear-corner{
 position:absolute!important;top:6px!important;right:6px!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 box-sizing:border-box!important;flex:0 0 44px!important;
 width:44px!important;min-width:44px!important;max-width:44px!important;
 height:44px!important;min-height:44px!important;max-height:44px!important;
 margin:0!important;padding:0!important;border:1px solid #efb5ae!important;
 border-radius:10px!important;background:#fff1f0!important;box-shadow:none!important;
 color:#b42318!important;-webkit-text-fill-color:#b42318!important;
 font:600 20px/1 system-ui,-apple-system,sans-serif!important;
}
html body #app.bbnext-plan .bbnext-day-toggle>button.bb77-clear-corner:hover,
html body #app.bbnext-plan .bbnext-day-toggle>button.bb77-clear-corner:active{
 background:#ffe4e1!important;border-color:#d25346!important;
 color:#981b10!important;-webkit-text-fill-color:#981b10!important;
}
html body #app.bbnext-plan .bbnext-day-toggle>button.bb77-clear-corner:focus-visible{
 outline:2px solid #b42318!important;outline-offset:2px!important;
}

/* Taller framing reveals more of portrait food photos on the swipe card.
   Photo sources and the compact gallery/planner crops remain unchanged. */
html body #app .bb-featured-card #swipeCard[data-bb-food-frame="portrait"]{
 aspect-ratio:1/1!important;max-height:460px!important;
}
html body #app .bb-featured-card #swipeCard[data-bb-food-frame="square"]{
 aspect-ratio:6/5!important;max-height:430px!important;
}
html body #app .bb-featured-card #swipeCard>img,
html body #app .bb-featured-card #swipeCard:hover>img{
 transform:none!important;filter:none!important;object-position:center!important;
}
