/* Design v5 (Ayesha's Canva, 2026-10-21): changes layered over ysb-ui.css / ysb-v3.css. */

/* Account menu (p.30): coloured icons, blue on hover as before */
.ysb-dropdown .ysb-dd--teal .ysb-icon { color: #1FC1E0; }
.ysb-dropdown .ysb-dd--green .ysb-icon { color: #0CDD6B; }
.ysb-dropdown .ysb-dd--orange .ysb-icon { color: #ED8534; }
.ysb-dropdown .ysb-dd--pink .ysb-icon { color: #F15F91; }
.ysb-dropdown .ysb-dd--blue .ysb-icon { color: #1FC1E0; }

/* Home: the school-list filter sits lower so the banner's "Quick & Easy" shows, with a shadow to lift it (border kept) */
@media (min-width: 768px) { .ysb-home__hero .ysb-home__banner + .ysb-home__finder-card { margin: -.75rem 1.5rem 0; } }
@media (max-width: 767px) { .ysb-home__hero .ysb-home__banner + .ysb-home__finder-card { margin: -.25rem .5rem 0; } }
.ysb-home__hero .ysb-home__finder-card { box-shadow: 0 12px 30px rgba(17, 39, 85, .24), 0 3px 8px rgba(17, 39, 85, .12); }
html[data-theme="dark"] .ysb-home__hero .ysb-home__finder-card { box-shadow: 0 12px 30px rgba(0, 0, 0, .55); }

/* Free delivery card: the van picture instead of the truck icon */
.ysb-update--free { padding-right: 9.5rem; min-height: 8.5rem; }
.ysb-update__van { position: absolute; right: .6rem; bottom: .4rem; width: 8.5rem; height: auto; }
@media (max-width: 599px) { .ysb-update--free { padding-right: 7rem; } .ysb-update__van { width: 6rem; } }

/* "Trusted by Schools" is not a link for now */
span.ysb-reassure__item { cursor: default; }

/* Footer (p.51) */
.ysb-footer__logo { height: 64px; }
.ysb-footer__brand p { margin: 0 0 .5rem; color: #fff; font-weight: 600; }
.ysb-footer__brand .ysb-footer__brandsub { color: #b8c6dc; font-weight: 400; font-size: .9rem; }
.ysb-footer__followrow { display: flex; align-items: center; gap: .85rem; margin-top: 1rem; flex-wrap: wrap; }
.ysb-footer__followlabel { font-weight: 700; color: #fff; }
.ysb-footer__followrow .ysb-footer__social { margin-top: 0; }
@media (min-width: 768px) { .ysb-footer__groups { grid-template-columns: repeat(4, 1fr); } }
.ysb-footer__group summary { color: #ED8534; font-weight: 800; text-transform: none; letter-spacing: 0; font-size: 1rem; }
.ysb-footer__group summary::after { color: #ED8534; }
.ysb-footer__wa { display: inline-flex; align-items: center; gap: .4rem; background: #0CDD6B; color: #112755 !important; font-weight: 700; padding: .35rem .9rem; border-radius: 999px; }
.ysb-footer__wa:hover { color: #112755 !important; filter: brightness(1.08); }
.ysb-footer__paywrap { padding-bottom: 1.25rem; }
.ysb-footer__paylabel { margin: 0 0 .4rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.ysb-footer__paybody .ysb-footer__small { color: #b8c6dc; }
@media (min-width: 768px) { .ysb-footer__group[open] summary::after { content: none; } }

/* CMS banners at the top of Refer Your School / School Partnerships */
.ysb-pagebanner { border-radius: 20px; overflow: hidden; border: 1px solid var(--ysb-border); }
.ysb-pagebanner__img { display: block; width: 100%; height: auto; }
.ysb-pagebanner + .ysb-pagebanner__cta { margin-top: 1rem; }
.ysb-pagebanner__cta { display: flex; justify-content: center; }
/* anchored forms stop below the sticky header instead of being cut off */
#refer-your-school, #request, #enquiry { scroll-margin-top: 9.5rem; }

/* Upload your school list (p.59) */
.ysb-uploadlist { max-width: 46rem; margin: 1.5rem auto; }
.ysb-uploadlist__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.ysb-uploadlist__icon { flex: none; width: 3.5rem; height: 3.5rem; }
.ysb-uploadlist--done { text-align: center; }
.ysb-uploadlist--done .ysb-uploadlist__icon { margin: 0 auto .75rem; }
.ysb-uploadlist__actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }
.ysb-notice--orange { background: #fff4ea; border-color: rgba(237, 133, 52, .4); }
html[data-theme="dark"] .ysb-notice--orange { background: rgba(237, 133, 52, .12); }
.ysb-kit { align-items: center; margin: 1rem 0; }
.ysb-kit__face { flex: none; width: 3rem; height: 3rem; border-radius: 999px; background: #ED8534; color: #fff; display: grid; place-items: center; }
.ysb-field__error { display: block; color: #c0264f; font-size: .82rem; margin-top: .25rem; }
.ysb-field__error:empty { display: none; }
.ysb-consent { display: flex; gap: .75rem; align-items: flex-start; background: #fdeef3; border: 1px solid rgba(241, 95, 145, .35); border-radius: 12px; padding: .9rem 1rem; margin: 0 0 1rem; cursor: pointer; }
.ysb-consent input { margin-top: .25rem; accent-color: #F15F91; width: 1.1rem; height: 1.1rem; }
.ysb-consent small { display: block; color: var(--ysb-muted); }
html[data-theme="dark"] .ysb-consent { background: rgba(241, 95, 145, .1); }
@media (min-width: 640px) { .ysb-form__grid--wide { grid-template-columns: 2fr 1fr; } }

/* Dark/light switch: round sun/moon icon button (option A) */
.ysb-theme--icon { width: 40px; height: 40px; min-width: 40px; min-height: 40px; padding: 0; border-radius: 999px; background: #fff; border: 1px solid var(--ysb-border); color: #ED8534; box-shadow: 0 2px 6px rgba(17, 39, 85, .12); }
.ysb-theme--icon:hover { background: var(--ysb-blue-tint, #e6f8fc); }
.ysb-theme--icon .ysb-theme__moonicon { display: none; }
.ysb-theme--icon[aria-checked="true"] { background: #183570; border-color: #2b4271; color: #F6E27A; }
.ysb-theme--icon[aria-checked="true"] .ysb-theme__sunicon { display: none; }
.ysb-theme--icon[aria-checked="true"] .ysb-theme__moonicon { display: block; }
.ysb-actions__theme .ysb-theme--icon { width: 34px; height: 34px; min-width: 34px; min-height: 34px; }

/* School account pages: details list, users list, terms */
.ysb-kv { display: grid; grid-template-columns: 1fr; gap: .75rem 1.5rem; margin: 0 0 1.25rem; }
@media (min-width: 700px) { .ysb-kv { grid-template-columns: 1fr 1fr; } .ysb-kv__wide { grid-column: 1 / -1; } }
.ysb-kv dt { font-size: .8rem; font-weight: 700; color: var(--ysb-muted); text-transform: uppercase; letter-spacing: .04em; }
.ysb-kv dd { margin: .15rem 0 0; font-weight: 600; color: var(--ysb-navy); overflow-wrap: anywhere; }
.ysb-userlist { display: grid; gap: .6rem; }
.ysb-userlist__row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .75rem 1rem; border: 1px solid var(--ysb-border); border-radius: 12px; }
.ysb-userlist__row > div:first-child { flex: 1 1 14rem; min-width: 0; }
.ysb-userlist__email { display: block; color: var(--ysb-muted); font-size: .88rem; overflow-wrap: anywhere; }
.ysb-userlist__actions { display: flex; gap: .5rem; align-items: center; }
.ysb-userlist__actions form { margin: 0; }
.ysb-btn--outline-pink { background: transparent; color: #c0264f !important; border: 2px solid #F15F91; }
.ysb-btn--outline-pink:hover { background: #fdeef3; }
.ysb-termcard { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.25rem; border-radius: 14px; border: 1px solid var(--ysb-border); margin-bottom: 1rem; }
.ysb-termcard--ok { background: #effcf5; border-color: #bff3d5; }
.ysb-termcard--wait { background: #fff4ea; border-color: rgba(237, 133, 52, .4); }
.ysb-termcard--none { background: var(--ysb-blue-tint, #e6f8fc); border-color: rgba(31, 193, 224, .35); }
html[data-theme="dark"] .ysb-termcard { background: rgba(255, 255, 255, .05); }

/* Favourites overview (p.36): coloured header band per list */
.ysb-favcard2 { padding: 0; overflow: hidden; border-top: 0; }
.ysb-favcard2__head { display: flex; align-items: center; gap: .6rem; padding: .8rem 1.1rem; color: #fff !important; text-decoration: none !important; }
.ysb-favcard2__head strong { color: #fff; font-size: 1.05rem; overflow-wrap: anywhere; }
.ysb-favcard2__head--orange { background: #ED8534; }
.ysb-favcard2__head--blue { background: #1FC1E0; }
.ysb-favcard2__head--green { background: #0CDD6B; }
.ysb-favcard2__head--pink { background: #F15F91; }
.ysb-favcard2__body { display: grid; gap: .1rem; padding: 1rem 1.25rem 0; flex: 1; }
.ysb-favcard2__label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ysb-muted); margin-top: .5rem; }
.ysb-favcard2 .ysb-favcard__actions { margin: 1rem 1.25rem 1.1rem; }
.ysb-favcard--new { border: 2px dashed var(--ysb-border); border-top: 2px dashed var(--ysb-border); align-items: center; text-align: center; justify-content: center; scroll-margin-top: 9rem; }
.ysb-favempty { margin-top: 1rem; padding: 1.25rem; text-align: center; border: 2px dashed var(--ysb-border); border-radius: 14px; }
.ysb-favempty p { margin: .25rem 0 0; color: var(--ysb-muted); }
.ysb-acctbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }

/* Cart: alternatives under a school-list line (design v5) */
.ysb-cartalt { grid-column: 1 / -1; grid-area: auto; margin-top: .35rem; border-top: 1px dashed var(--ysb-border); padding-top: .4rem; }
.ysb-cartalt summary { cursor: pointer; font-weight: 600; font-size: .85rem; color: #0b7f96; }
.ysb-cartalt ul { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .5rem; }
.ysb-cartalt li { display: flex; align-items: center; gap: .6rem; }
.ysb-cartalt img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; border: 1px solid var(--ysb-border); background: #fff; }
.ysb-cartalt__name { flex: 1; min-width: 0; font-size: .88rem; }
.ysb-cartalt__name small { display: block; color: var(--ysb-muted); }
.ysb-cart__itemshead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin: 1.25rem 0 .75rem; }
.ysb-cart__itemshead h2 { margin: 0; font-size: 1.35rem; color: var(--ysb-navy); }
.ysb-cart__itemshead p { margin: .15rem 0 0; color: var(--ysb-muted); font-size: .9rem; }
.ysb-trust { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.5rem; padding: 1.1rem 1.25rem; border-radius: 16px; background: #112755; color: #fff; }
@media (min-width: 700px) { .ysb-trust { grid-template-columns: repeat(3, 1fr); } }
.ysb-trust > div { display: flex; align-items: center; gap: .75rem; }
.ysb-trust > div > span { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center; background: #fff; }
.ysb-trust strong { display: block; color: #fff; }
.ysb-trust small { color: #b8c6dc; }

/* Checkout: sign in or guest (p.49) and brand skin for the legacy delivery form */
.ysb-checkout__choose { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin: 1rem 0 2rem; }
@media (min-width: 800px) { .ysb-checkout__choose { grid-template-columns: 1fr 1fr; } }
.ysb-checkout__card { padding: 1.5rem; }
.ysb-checkout__card h2 { margin: 0 0 .25rem; font-size: 1.4rem; color: var(--ysb-navy); }
.ysb-checkout__card--signin { border-top: 5px solid #1FC1E0; }
.ysb-checkout__card--guest { border-top: 5px solid #ED8534; }
.ysb-checkout__card > p { margin: 0 0 1rem; color: var(--ysb-muted); }
.ysb-checkout__alt { text-align: center; margin: .75rem 0 0; font-size: .9rem; }
.ysb-checkout .input, .ysb-checkout .select select, .ysb-checkout .textarea { border-radius: 10px; border: 1px solid var(--ysb-border); box-shadow: none; min-height: 44px; }
.ysb-checkout .input:focus, .ysb-checkout .select select:focus { border-color: #1FC1E0; box-shadow: 0 0 0 3px rgba(31, 193, 224, .2); }
.ysb-checkout .label, .ysb-checkout .subtitle { color: var(--ysb-navy); font-weight: 600; }
.ysb-checkout .button.is-secondary, .ysb-checkout .button.secondary { background: #ED8534; border-color: #ED8534; color: #fff; border-radius: 999px; font-weight: 700; min-height: 46px; }
.ysb-checkout .card { border-radius: 14px; border: 1px solid var(--ysb-border) !important; box-shadow: none; }
.ysb-checkout .selectedcard { border: 2px solid #0CDD6B !important; background: #effcf5; }
.ysb-checkout .payment-method-label { border-radius: 12px; border: 2px solid var(--ysb-border); }
.ysb-checkout .payment-method-radio:checked + .payment-method-label { border-color: #0CDD6B; background: #effcf5; }

/* Help Centre accordions: every section closed until clicked, plus / minus */
.ysb-helpacc { border: 1.5px solid #9fd9e9; border-radius: 16px; background: var(--ysb-white); margin: 0 0 1rem; overflow: hidden; scroll-margin-top: 140px; }
.ysb-helpacc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; border: 0; background: transparent; cursor: pointer; font: inherit; font-weight: 800; font-size: 1.2rem; color: var(--ysb-navy); text-align: left; }
.ysb-helpacc__btn:hover { background: var(--ysb-blue-tint, #e6f8fc); }
.ysb-helpacc__plus { flex: none; width: 32px; height: 32px; border-radius: 999px; border: 2px solid var(--ysb-blue); position: relative; }
.ysb-helpacc__plus::before, .ysb-helpacc__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: var(--ysb-blue); transform: translate(-50%, -50%); }
.ysb-helpacc__plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .15s; }
.ysb-helpacc.is-open .ysb-helpacc__plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.ysb-helpacc__body { padding: .25rem 1.4rem 1.4rem; }
.ysb-help--acc .ysb-helppanel { margin-bottom: 1rem; }
.ysb-help--acc .ysb-helppanel__head h2 { display: none; }
html[data-theme="dark"] .ysb-helpacc { background: var(--ysb-d-surface); border-color: var(--ysb-d-border); }
html[data-theme="dark"] .ysb-helpacc__btn { color: var(--ysb-d-text); }

/* Upload confirmation (pp.60-62) */
.ysb-kitface { display: inline-grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 999px; margin: 0 auto .75rem; color: #fff; }
.ysb-kitface--green { background: #0CDD6B; } .ysb-kitface--orange { background: #ED8534; } .ysb-kitface--pink { background: #F15F91; }
.ysb-uploadlist__clever { text-align: left; align-items: center; margin: 1rem 0; }
.ysb-uploadlist__when { display: inline-block; background: #F15F91; color: #fff; font-weight: 700; border-radius: 999px; padding: .6rem 1.2rem; margin: 0 0 1rem; }
.ysb-uploadlist__steps { list-style: none; margin: 0 0 1rem; padding: 1rem; display: grid; gap: .9rem; background: var(--ysb-blue-tint, #e6f8fc); border-radius: 14px; text-align: left; }
@media (min-width: 700px) { .ysb-uploadlist__steps { grid-template-columns: repeat(3, 1fr); } }
.ysb-uploadlist__steps li { display: flex; gap: .6rem; align-items: flex-start; }
.ysb-uploadlist__steps small { display: block; color: var(--ysb-muted); }
.ysb-pill--orange { background: #fff4ea; color: #b85e14; }

/* Fix round: order summary never wraps its amounts; delivery step toggles and text in the brand look */
#cart-summary dd, #cart-summary dt, #cart-summary .ysb-cartsum__total { white-space: nowrap; }
#cart-summary { min-width: 0; }
#cart-summary p, #cart-summary small, .ysb-freebar small { overflow-wrap: anywhere; }
.ysb-checkout .orange-button-selected, .ysb-checkout .blue-button-selected { background: #112755 !important; border-color: #112755 !important; color: #fff !important; border-radius: 999px; }
.ysb-checkout .blue-button-unselected, .ysb-checkout .orange-button-unselected { background: #fff !important; border: 2px solid #112755 !important; color: #112755 !important; border-radius: 999px; }
.ysb-checkout .help.is-danger, .ysb-checkout .is-danger { color: #c0264f; }
.ysb-checkout h1, .ysb-checkout .title { color: var(--ysb-navy); }

/* Old Bulma controls inside account pages (Favourites list detail, order cards) in the brand look */
.ysb-acctpage__main .button.secondary, .ysb-acctpage__main .button.is-secondary, .ysb-acctpage__main .button.primary { background: #ED8534; border-color: #ED8534; color: #fff; border-radius: 999px; font-weight: 700; }
.ysb-acctpage__main .button.is-info, .ysb-acctpage__main .button.is-link { background: #112755; border-color: #112755; color: #fff; border-radius: 999px; }
.ysb-acctpage__main .input, .ysb-acctpage__main .select select, .ysb-acctpage__main .textarea { border-radius: 10px; border: 1px solid var(--ysb-border); box-shadow: none; }
.ysb-acctpage__main .table { background: transparent; }
.ysb-acctpage__main .table thead th { color: var(--ysb-navy); border-bottom: 2px solid #1FC1E0; }
.ysb-acctpage__main .title, .ysb-acctpage__main .subtitle { color: var(--ysb-navy); }

/* Favourites list page (p.37) */
.ysb-favdetail { display: grid; gap: 1rem; }
.ysb-favdetail__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: 1rem 1.25rem; border-radius: 16px; background: #fff4ea; border: 1px solid rgba(237, 133, 52, .3); }
.ysb-favdetail__title { display: grid; gap: .15rem; min-width: 0; flex: 1 1 16rem; }
.ysb-favdetail__name { font-size: 1.25rem; font-weight: 800; color: var(--ysb-navy); border: 0 !important; background: transparent !important; padding: 0 !important; box-shadow: none !important; min-height: 0; }
.ysb-favdetail__name:focus { outline: 2px solid #1FC1E0; border-radius: 6px; }
.ysb-favdetail__title small { color: var(--ysb-muted); }
.ysb-favdetail__actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
#UpdateButton { display: none; }
.ysb-favdetail__search { position: relative; }
.ysb-favdetail__search > .ysb-icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--ysb-muted); }
.ysb-favdetail__search .ysb-input { padding-left: 2.6rem; border-color: #1FC1E0; min-height: 48px; }
.ysb-favdetail__list { display: grid; gap: .85rem; }
.ysb-favline { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: .6rem 1rem; padding: 1rem; border: 1px solid var(--ysb-border); border-radius: 14px; background: var(--ysb-white, #fff); position: relative; }
.ysb-favline[hidden] { display: none; }
.ysb-favline__img { grid-row: span 2; display: grid; place-items: center; background: var(--ysb-blue-tint, #e6f8fc); border-radius: 12px; width: 72px; height: 72px; }
.ysb-favline__img img { max-width: 64px; max-height: 64px; object-fit: contain; }
.ysb-favline__info { display: grid; gap: .1rem; min-width: 0; padding-right: 4.5rem; }
.ysb-favline__name { color: var(--ysb-navy); font-size: 1.02rem; overflow-wrap: anywhere; }
.ysb-favline__meta { color: var(--ysb-muted); font-size: .85rem; }
.ysb-favline__price { font-size: 1.05rem; color: var(--ysb-navy); }
.ysb-favline__price s { color: var(--ysb-muted); margin-right: .4rem; }
.ysb-favline__buy { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.ysb-favline__total { margin-left: auto; font-weight: 700; color: var(--ysb-navy); }
.ysb-favline__remove { position: absolute; top: .75rem; right: 1rem; }
.ysb-favline__x { cursor: pointer; font-size: .82rem; font-weight: 700; color: #F15F91 !important; text-decoration: none !important; }
.ysb-favline__x--undo { display: none; color: #0b7f96 !important; }
.ysb-favline .ysb-stepper { display: inline-flex; align-items: center; border: 1px solid var(--ysb-border); border-radius: 999px; overflow: hidden; }
.ysb-favline .ysb-stepper__input { width: 3rem; text-align: center; border: 0; background: transparent; min-height: 36px; }
.faded > * { opacity: .3; }
.faded .ex-faded { opacity: 1; }
.ysb-favdetail__none { text-align: center; color: var(--ysb-muted); }
.ysb-favdetail__more { text-align: center; }
.ysb-favdetail__more p { margin: 0 0 .5rem; color: var(--ysb-muted); font-size: .88rem; }
.ysb-favdetail__sum { padding: 1rem 1.25rem; }
.ysb-favdetail__sum dl { margin: .5rem 0 0; display: grid; gap: .35rem; }
.ysb-favdetail__sum dl > div { display: flex; justify-content: space-between; gap: 1rem; }
.ysb-favdetail__sum dt { color: var(--ysb-muted); }
.ysb-favdetail__sum dd { margin: 0; font-weight: 700; color: var(--ysb-navy); }
.ysb-favsum__total { border-top: 1px solid var(--ysb-border); padding-top: .5rem; font-size: 1.1rem; }

/* Batch 7: form spacing and select styling (create school, refer school, partnerships, upload), light and dark */
.ysb-form .ysb-field { margin-bottom: 1.1rem; }
.ysb-form .ysb-field > label { margin-bottom: .4rem; line-height: 1.3; }
.ysb-field__opt { display: inline; white-space: nowrap; font-weight: 400; font-size: .82rem; color: var(--ysb-muted); }
.ysb-form .ysb-form__grid { gap: 0 1.25rem; }
.ysb-form .ysb-captcha, .ysb-form .ysb-recaptcha { margin: .25rem 0 1.1rem; }
.ysb-form .ysb-btn--block { margin-top: .5rem; }
.ysb-form .ysb-select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; background-repeat: no-repeat; background-position: right .9rem center; background-size: 14px; }
.ysb-form .ysb-input::placeholder { color: #8a97ad; opacity: 1; }
.ysb-conversation__intro > * + * { margin-top: .9rem; }
.ysb-conversation__intro h2 { line-height: 1.15; }
.ysb-conversation__intro .ysb-help__small { margin-top: 1.25rem; }
html[data-theme="dark"] .ysb-form .ysb-input, html[data-theme="dark"] .ysb-form .ysb-select { background-color: #0b1a3a; border-color: #3a5188; color: #f7f9fc; }
html[data-theme="dark"] .ysb-form .ysb-input::placeholder { color: #7f90b3; }
html[data-theme="dark"] .ysb-form .ysb-input:focus, html[data-theme="dark"] .ysb-form .ysb-select:focus { border-color: #1FC1E0; box-shadow: 0 0 0 3px rgba(31, 193, 224, .25); }
html[data-theme="dark"] .ysb-form .ysb-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dbe3ee' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
html[data-theme="dark"] .ysb-form .ysb-field > label, html[data-theme="dark"] .ysb-form legend { color: #f7f9fc; }
html[data-theme="dark"] .ysb-signup__tick, html[data-theme="dark"] .ysb-signup__hint { color: #dbe3ee; }

/* Batch 7: the legacy delivery-address form and the school approval tables in the brand look */
.ysb-checkout .field { margin-bottom: 1rem; }
.ysb-checkout .label { font-size: .92rem; margin-bottom: .35rem; }
.ysb-checkout .select, .ysb-checkout .select select { width: 100%; }
.ysb-checkout .columns { margin-left: 0; margin-right: 0; }
.ysb-checkout .addressCard .card-content { padding: 1rem 1.1rem; }
.ysb-checkout .editlink.button { background: transparent !important; border: 2px solid #112755 !important; color: #112755 !important; border-radius: 999px; font-size: .8rem; }
.ysb-checkout .pac-container, .ysb-checkout #map { border-radius: 12px; }
.ysb-checkout [id$="_button"].button { border-radius: 999px; }
.orders .new-table { width: 100%; border-collapse: separate; border-spacing: 0 .5rem; }
.orders .new-table thead th { color: var(--ysb-navy); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; border: 0; padding: .4rem .75rem; text-align: left; }
.orders .new-table tbody tr { background: var(--ysb-white, #fff); box-shadow: 0 0 0 1px var(--ysb-border); border-radius: 12px; }
.orders .new-table td { padding: .75rem; border: 0; }
.orders .new-table .button { border-radius: 999px; font-weight: 700; }
html[data-theme="dark"] .orders .new-table tbody tr { background: var(--ysb-d-surface); box-shadow: 0 0 0 1px var(--ysb-d-border); }
html[data-theme="dark"] .ysb-checkout .selectedcard { background: rgba(12, 221, 107, .12); }
html[data-theme="dark"] .ysb-checkout .card, html[data-theme="dark"] .ysb-checkout .input, html[data-theme="dark"] .ysb-checkout .select select { background: #0b1a3a; color: #f7f9fc; border-color: #3a5188 !important; }
.ysb-favempty[hidden] { display: none; }
.ysb-favdetail__add #SearchBoxResults { position: static; max-height: 22rem; overflow: auto; border: 1px solid var(--ysb-border); border-radius: 12px; background: var(--ysb-white, #fff); padding: .5rem .75rem; margin-top: .5rem; box-shadow: none; }
.ysb-favdetail__add .search-heading { font-weight: 800; color: var(--ysb-navy); margin: .5rem 0 .25rem; text-transform: capitalize; }
.ysb-favdetail__add .search-link { cursor: pointer; display: block; padding: .35rem 0; }
html[data-theme="dark"] .ysb-favdetail__add #SearchBoxResults { background: var(--ysb-d-surface); border-color: var(--ysb-d-border); }
html[data-theme="dark"] .ysb-favdetail__bar { background: #183570; border-color: #2b4271; }
html[data-theme="dark"] .ysb-favdetail__name, html[data-theme="dark"] .ysb-favdetail__title small, html[data-theme="dark"] .ysb-favline__name, html[data-theme="dark"] .ysb-favline__price, html[data-theme="dark"] .ysb-favline__total { color: #f7f9fc !important; }
html[data-theme="dark"] .ysb-favline { background: var(--ysb-d-surface); border-color: var(--ysb-d-border); }
html[data-theme="dark"] .ysb-favline__img { background: #fff; }

/* Cart / checkout progress (Canva p.42-43): breadcrumb, title, sub line, then 4 circles joined by a line, label under each */
.ysb-cart__head--steps { display: block; }
.ysb-cart__crumbs { font-size: .8rem; color: var(--ysb-muted); margin: 0 0 .6rem; }
.ysb-cart__crumbs a { color: var(--ysb-muted) !important; text-decoration: none; }
.ysb-cart__crumbs [aria-current] { color: var(--ysb-navy); font-weight: 600; }
.ysb-cart__sub { margin: .25rem 0 0; color: var(--ysb-muted); }
.ysb-progress { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 !important; width: 100%; max-width: 44rem; margin: 1.4rem auto .5rem !important; padding: 0; list-style: none; }
.ysb-progress li { position: relative; display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 0 !important; background: none !important; border-radius: 0 !important; font-size: .78rem !important; font-weight: 600; color: var(--ysb-muted) !important; text-align: center; }
.ysb-progress li a { display: flex; flex-direction: column; align-items: center; gap: .4rem; color: inherit !important; text-decoration: none !important; }
.ysb-progress li + li::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 3px; background: #dfe5ee; z-index: 0; }
.ysb-progress li.is-done + li::before, .ysb-progress li.is-current::before { background: #ED8534; }
.ysb-progress li:first-child::before { display: none; }
.ysb-progress li span { position: relative; z-index: 1; display: grid !important; place-items: center; width: 32px !important; height: 32px !important; border-radius: 50% !important; background: #fff !important; border: 2px solid #cfd8e6; color: var(--ysb-muted); font-weight: 800; font-size: .85rem; }
.ysb-progress li.is-current { color: var(--ysb-navy) !important; font-weight: 800; }
.ysb-progress li.is-current span { background: #ED8534 !important; border-color: #ED8534; color: #fff; }
.ysb-progress li.is-done { color: var(--ysb-navy) !important; }
.ysb-progress li.is-done span { background: #0CDD6B !important; border-color: #0CDD6B; color: #112755; font-size: 0 !important; }
.ysb-progress li.is-done span::after { content: "\2713"; font-size: 1rem; font-weight: 800; }
html[data-theme="dark"] .ysb-progress li span { background: var(--ysb-d-surface) !important; border-color: #3a5188; }
html[data-theme="dark"] .ysb-progress li.is-current, html[data-theme="dark"] .ysb-progress li.is-done { color: #f7f9fc !important; }
html[data-theme="dark"] .ysb-progress li + li::before { background: #3a5188; }
html[data-theme="dark"] .ysb-progress li.is-done + li::before, html[data-theme="dark"] .ysb-progress li.is-current::before { background: #ED8534; }
@media (max-width: 560px) { .ysb-progress li { font-size: .7rem !important; } .ysb-progress li:not(.is-current) { font-size: .7rem !important; } .ysb-progress li:not(.is-current) span { font-size: .85rem !important; } .ysb-progress li.is-done span { font-size: 0 !important; } }
.ysb-cartline > .ysb-cartalt { grid-area: auto / 1 / auto / -1 !important; }

/* Saved address cards: radio + address on one line, details beside, Edit at the end */
.ysb-checkout .addressCard .card-content > .columns { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; }
.ysb-checkout .addressCard .card-content > .columns > .column { flex: 1 1 12rem; width: auto; padding: 0; }
.ysb-checkout .addressCard .column .columns { display: flex; flex-wrap: nowrap; gap: .7rem; margin: 0; }
.ysb-checkout .addressCard .column.is-one-third { flex: 0 0 auto; width: auto; padding: 0; }
.ysb-checkout .addressCard .column.is-two-thirds { flex: 1 1 auto; width: auto; padding: 0; }
.ysb-checkout .addressCard .column.is-full { width: 100%; padding: 0; }
.ysb-checkout .addressCard .column .columns[style*="absolute"] { position: static !important; margin-top: .5rem; }

/* Cart page layout at laptop widths: lines take the main share, summary 380px; stack below 1100px */
.ysb-cart__grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .ysb-cart__grid { grid-template-columns: minmax(0, 1fr) 380px; } .ysb-cart__side { position: sticky; top: calc(var(--ysb-header-h, 120px) + 1rem); } }
@media (max-width: 1099px) { .ysb-cart__side { position: static; } }
.ysb-cart__items, .ysb-cartgroup { min-width: 0; }
/* free-delivery message: one inline sentence, amount never broken */
.ysb-freebar p { display: block; }
.ysb-freebar p > .ysb-icon { display: inline-block; vertical-align: -3px; margin-right: .35rem; }
.ysb-freebar p strong { white-space: nowrap; }
/* summary buttons: full width, text on one line where it fits, wrap otherwise */
.ysb-cart__summary .ysb-btn { white-space: normal; text-align: center; }
.ysb-cart__tools { display: flex; flex-wrap: wrap; gap: .5rem; }
.ysb-cart__tools .ysb-btn { flex: 1 1 9rem; }

/* Batch (2026-10-23): footer PayFast logo small, list-added finder, confirmation spacing */
.ysb-footer__paybody { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.ysb-footer__paylogo { display: inline-flex; align-items: center; background: #fff; border-radius: 8px; padding: .3rem .6rem; line-height: 0; }
.ysb-footer__paylogo img { height: 24px; width: auto; max-width: 90px; display: block; }
.ysb-listadded__finder { max-width: none; margin-top: 1.5rem; }
.ysb-listadded__finder .ysb-home__hero { gap: 0; }
.ysb-uploadlist--done { padding: 2.5rem 2rem 2.25rem; }
.ysb-uploadlist--done > .ysb-kitface { margin: 0 auto 1.25rem; display: grid; }
.ysb-uploadlist--done > .ysb-pill { margin: 0 0 1.5rem; }
.ysb-uploadlist--done > h1 { margin: 0 0 1.1rem; }
.ysb-uploadlist--done > p { margin: 0 0 1.25rem; }
.ysb-uploadlist--done > p + p { margin-top: -.25rem; margin-bottom: 1.75rem; }
.ysb-uploadlist--done .ysb-uploadlist__clever { margin: 0 0 1.75rem; padding: 1.1rem 1.25rem; gap: 1rem; }
.ysb-uploadlist--done .ysb-uploadlist__when { margin: 0 0 1.75rem; padding: .7rem 1.5rem; }
.ysb-uploadlist--done .ysb-uploadlist__steps { margin: 0 0 2rem; padding: 1.4rem 1.5rem; gap: 1.25rem; }
.ysb-uploadlist--done .ysb-uploadlist__actions { margin-top: 0; gap: 1rem; }

/* ============================ School list page (Canva p.45) ============================ */
.ysb-lp__crumbs { font-size: .8rem; color: var(--ysb-muted); padding: 1rem 0 .25rem; }
.ysb-lp__crumbs a { color: var(--ysb-muted) !important; text-decoration: none; }
.ysb-lp__crumbs [aria-current] { color: var(--ysb-navy); font-weight: 600; }
.ysb-lp__host { padding-bottom: 2rem; }
.ysb-lp h2 { margin: 0; font-size: 1.3rem; font-weight: 800; color: var(--ysb-navy); }
.ysb-lp h3 { margin: 0; font-size: 1.05rem; font-weight: 800; color: #fff; }
.ysb-lp__sub { margin: .2rem 0 1rem; color: var(--ysb-muted); font-size: .9rem; }
.ysb-lp__hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 1.25rem; align-items: center; padding: 1.25rem 1.5rem; border-radius: 18px; background: var(--ysb-blue-tint, #e8f7fb); border: 1px solid rgba(31, 193, 224, .3); margin-bottom: 1.5rem; }
@media (min-width: 900px) { .ysb-lp__hero { grid-template-columns: auto minmax(0, 1fr) 15rem; } }
.ysb-lp__crest { display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 50%; background: #fff; border: 2px solid #1FC1E0; color: var(--ysb-navy); font-weight: 800; font-size: 1.25rem; }
.ysb-lp__kicker { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ED8534; }
.ysb-lp__heroinfo h1 { margin: .15rem 0; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--ysb-navy); overflow-wrap: anywhere; }
.ysb-lp__heroinfo p { margin: 0 0 .7rem; color: var(--ysb-muted); font-size: .9rem; }
.ysb-lp__mini { grid-column: 1 / -1; margin: 0; padding: .8rem 1rem; background: #fff; border-radius: 12px; display: grid; gap: .25rem; }
@media (min-width: 900px) { .ysb-lp__mini { grid-column: auto; } }
.ysb-lp__mini dt { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ysb-muted); }
.ysb-lp__mini dd { margin: 0; display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; color: var(--ysb-muted); }
.ysb-lp__mini strong { color: var(--ysb-navy); }
.ysb-lp__sections { margin-bottom: 1.75rem; }
.ysb-lp__note { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 12px; background: #effcf5; border: 1px solid #bff3d5; margin: 0 0 1rem; }
.ysb-lp__note > .ysb-icon { color: #079a4a; flex: none; margin-top: .1rem; }
.ysb-lp__note strong { display: block; color: var(--ysb-navy); }
.ysb-lp__note span { color: var(--ysb-muted); font-size: .85rem; }
.ysb-lp__tiles { display: grid; gap: .6rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ysb-lp__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .ysb-lp__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ysb-lp__tile { display: flex; align-items: center; gap: .65rem; padding: .85rem 1rem; border: 1.5px solid var(--ysb-border); border-radius: 12px; background: var(--ysb-white, #fff); cursor: pointer; font-weight: 700; color: var(--ysb-navy); }
.ysb-lp__tile.is-on { background: #effcf5; border-color: #0CDD6B; }
.ysb-lp__tile input, .ysb-lp__check { width: 1.15rem; height: 1.15rem; accent-color: #0CDD6B; flex: none; }
.ysb-lp__grid { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .ysb-lp__grid { grid-template-columns: minmax(0, 1fr) 21rem; } .ysb-lp__side { position: sticky; top: calc(var(--ysb-header-h, 120px) + 1rem); } }
.ysb-lp__group { border: 1px solid var(--ysb-border); border-radius: 14px; overflow: hidden; margin-bottom: 1.1rem; background: var(--ysb-white, #fff); }
.ysb-lp__grouphead { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .7rem 1rem; background: #112755; }
.ysb-lp__grouphead h3 { flex: 1 1 10rem; }
.ysb-lp__count { color: #b8c6dc; font-size: .8rem; }
.ysb-lp__grouphead .ysb-btn { background: transparent; color: #fff !important; border: 1.5px solid rgba(255, 255, 255, .6); }
.ysb-lp__search { padding: .75rem 1rem; border-bottom: 1px solid var(--ysb-border); }
.ysb-lp__empty { margin: 0; padding: 1rem; color: var(--ysb-muted); text-align: center; font-size: .9rem; }
.ysb-lp__item { display: grid; grid-template-columns: auto 3.5rem minmax(0, 1fr) auto auto; gap: .5rem .85rem; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--ysb-border); }
.ysb-lp__item.is-off { opacity: .55; }
.ysb-lp__img { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 10px; background: #fff; border: 1px solid var(--ysb-border); overflow: hidden; }
.ysb-lp__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ysb-lp__name { min-width: 0; display: grid; gap: .15rem; }
.ysb-lp__name strong { color: var(--ysb-navy); font-size: .95rem; overflow-wrap: anywhere; }
.ysb-lp__altlink { justify-self: start; border: 0; background: none; padding: 0; cursor: pointer; font-weight: 700; font-size: .82rem; color: #0b7f96; }
.ysb-lp__altlink::after { content: " \2193"; }
.ysb-lp__qty { display: inline-flex; align-items: center; border: 1px solid var(--ysb-border); border-radius: 999px; overflow: hidden; }
.ysb-lp__qty button { border: 0; background: transparent; width: 2rem; height: 2.2rem; cursor: pointer; font-size: 1.05rem; color: var(--ysb-navy); }
.ysb-lp__qty input { width: 2.8rem; text-align: center; border: 0; background: transparent; font-weight: 700; min-height: 2.2rem; color: var(--ysb-navy); -moz-appearance: textfield; }
.ysb-lp__qty input::-webkit-outer-spin-button, .ysb-lp__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ysb-lp__price { text-align: right; min-width: 5.5rem; display: grid; }
.ysb-lp__price s { color: var(--ysb-muted); font-size: .8rem; }
.ysb-lp__price strong { color: var(--ysb-navy); white-space: nowrap; }
@media (max-width: 640px) {
  .ysb-lp__item { grid-template-columns: auto 3rem minmax(0, 1fr); }
  .ysb-lp__qty { grid-column: 2 / 4; justify-self: start; }
  .ysb-lp__price { grid-column: 2 / 4; text-align: left; display: flex; gap: .6rem; align-items: baseline; }
}
.ysb-lp__alts { padding: .9rem 1rem 1rem; background: #eaf8fc; border-bottom: 1px solid var(--ysb-border); display: grid; gap: .25rem; }
.ysb-lp__alts small { color: var(--ysb-muted); margin-bottom: .4rem; }
.ysb-lp__altcards { display: grid; gap: .6rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .ysb-lp__altcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ysb-lp__altcard { display: flex; gap: .7rem; align-items: flex-start; text-align: left; padding: .75rem .9rem; border-radius: 12px; border: 1.5px solid var(--ysb-border); background: #fff; cursor: pointer; font: inherit; color: var(--ysb-navy); }
.ysb-lp__altcard.is-on, .ysb-lp__altcard:hover { border-color: #1FC1E0; }
.ysb-lp__altcard em { display: block; font-style: normal; font-size: .8rem; color: var(--ysb-muted); }
.ysb-lp__radio { flex: none; width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 2px solid #1FC1E0; margin-top: .2rem; position: relative; }
.ysb-lp__altcard.is-on .ysb-lp__radio::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: #1FC1E0; }
.ysb-lp__summary { padding: 1.25rem; display: grid; gap: .75rem; }
.ysb-lp__summary dl { margin: 0; display: grid; gap: .35rem; }
.ysb-lp__summary dl > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; color: var(--ysb-muted); }
.ysb-lp__summary dd { margin: 0; color: var(--ysb-navy); font-weight: 700; text-align: right; }
.ysb-lp__total { border-top: 1px solid var(--ysb-border); padding-top: .6rem; font-size: 1.15rem !important; }
.ysb-lp__total dt, .ysb-lp__total dd { color: var(--ysb-navy) !important; font-weight: 800 !important; }
.ysb-lp__free { margin: 0; font-size: .8rem; color: var(--ysb-muted); }
.ysb-lp__voucher { font-size: .85rem; display: grid; gap: .4rem; }
.ysb-lp__voucherok { color: #067a3b; }
.ysb-lp__help { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 14px; background: #effcf5; border: 1px solid #bff3d5; font-size: .85rem; color: var(--ysb-muted); }
.ysb-lp__help strong { color: var(--ysb-navy); }
.ysb-lp__help p { margin: .35rem 0 0; }
html[data-theme="dark"] .ysb-lp__hero { background: #12306a; border-color: #2b4271; }
html[data-theme="dark"] .ysb-lp__crest, html[data-theme="dark"] .ysb-lp__mini { background: #0b1a3a; color: #f7f9fc; }
html[data-theme="dark"] .ysb-lp h2, html[data-theme="dark"] .ysb-lp__heroinfo h1, html[data-theme="dark"] .ysb-lp__name strong, html[data-theme="dark"] .ysb-lp__price strong, html[data-theme="dark"] .ysb-lp__tile, html[data-theme="dark"] .ysb-lp__summary dd, html[data-theme="dark"] .ysb-lp__mini strong, html[data-theme="dark"] .ysb-lp__crumbs [aria-current], html[data-theme="dark"] .ysb-lp__help strong, html[data-theme="dark"] .ysb-lp__note strong, html[data-theme="dark"] .ysb-lp__qty button, html[data-theme="dark"] .ysb-lp__qty input { color: #f7f9fc !important; }
html[data-theme="dark"] .ysb-lp__group, html[data-theme="dark"] .ysb-lp__tile { background: var(--ysb-d-surface); border-color: var(--ysb-d-border); }
html[data-theme="dark"] .ysb-lp__tile.is-on { background: rgba(12, 221, 107, .12); border-color: #0CDD6B; }
html[data-theme="dark"] .ysb-lp__alts { background: rgba(31, 193, 224, .1); }
html[data-theme="dark"] .ysb-lp__altcard { background: #0b1a3a; color: #f7f9fc; }
html[data-theme="dark"] .ysb-lp__note, html[data-theme="dark"] .ysb-lp__help { background: rgba(12, 221, 107, .1); border-color: rgba(12, 221, 107, .3); }
html[data-theme="dark"] .ysb-lp__altlink { color: #5FD4EE; }
