/* Respect native visibility: the theme's img { display:block } revealed both
   the linked and unlinked versions of WooCommerce's product thumbnail. */
.wc-block-mini-cart__drawer [hidden], .fba-sweets [hidden], .fba-sweets[hidden] { display: none !important; }
.wc-block-mini-cart__drawer .wc-block-components-product-metadata__description { display: none; }
.wc-block-mini-cart__drawer .wc-block-cart-item__image img { width: 56px; max-height: 64px; object-fit: cover; }
.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-items__row td { padding-top: 12px; padding-bottom: 12px; }
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer { flex-shrink: 0; }
.fba-sweets, .fba-sweets-dialog { color: #252a26; font-family: 'Poppins', system-ui, sans-serif; }
.fba-sweets { border-bottom: 1px solid #e4e8e2; margin: -4px 0 12px; padding: 0 0 10px; }
.fba-sweets__heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.fba-sweets .fba-sweets__heading h3 { margin: 0; font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1.3; text-transform: none; letter-spacing: -.02em; }
.fba-sweets button.fba-sweets__browse { flex: 0 0 auto; min-height: 44px; padding: 4px 0 4px 8px; border: 0; background: transparent; color: #476c55; font: inherit; font-size: 11px; text-decoration: underline; cursor: pointer; }
.fba-sweets__list { display: grid; gap: 6px; }
.fba-sweets__card { display: grid; grid-template-columns: 44px minmax(0, 1fr) 68px; align-items: center; gap: 10px; min-width: 0; }
.fba-sweets__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fba-sweets__name { font-size: 12px; line-height: 1.35; font-weight: 500; }
.fba-sweets__price { display: block; font-size: 12px; line-height: 1.3; }
.fba-sweets__price del { opacity: .6; }
.fba-sweets__price ins { background: transparent; }
.fba-sweets button.fba-sweets__thumbnail, .fba-sweets-dialog button.fba-sweets__thumbnail { display: block; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: #f6f6f2; cursor: zoom-in; }
.fba-sweets__thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fba-sweets button.fba-sweets__add, .fba-sweets-dialog button.fba-sweets__add { display: block; width: 100%; min-height: 44px; padding: 8px 6px; border: 1px solid #69967d; border-radius: 4px; background: #69967d; color: white; font: inherit; font-size: 12px; font-weight: 500; line-height: 1.4; text-align: center; cursor: pointer; box-shadow: none; }
.fba-sweets button.fba-sweets__add:hover, .fba-sweets-dialog button.fba-sweets__add:hover { background: #4e775f; border-color: #4e775f; }
.fba-sweets button:focus-visible, .fba-sweets-dialog button:focus-visible { outline: 2px solid #284b36; outline-offset: 2px; }
.fba-sweets__add[aria-disabled="true"] { cursor: wait !important; opacity: .65; }
.fba-sweets .fba-sweets__status, .fba-sweets-dialog .fba-sweets__status { display: block; margin: 6px 0 0; color: #3b654a; font-size: 11px; line-height: 1.4; max-height: 3em; overflow-y: auto; }
.fba-sweets .fba-sweets__status:empty, .fba-sweets-dialog .fba-sweets__status:empty { display: none; }
.fba-sweets .fba-sweets__status.is-error, .fba-sweets-dialog .fba-sweets__status.is-error { color: #a02c2c; }
.fba-sweets-dialog { box-sizing: border-box; position: fixed; inset: 0; width: min(480px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 18px; border: 0; border-radius: 10px; background: white; box-shadow: 0 16px 80px #0005; }
.fba-sweets-dialog:not([open]) { display: none; }
.fba-sweets-dialog[open] { display: flex; flex-direction: column; }
.fba-sweets-dialog::backdrop { background: #0008; }
.fba-sweets-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-shrink: 0; }
.fba-sweets-dialog .fba-sweets-dialog__header h2 { margin: 0; font: inherit; font-size: 19px; font-weight: 500; line-height: 1.4; text-transform: none; }
.fba-sweets-dialog button.fba-sweets-dialog__close { width: 44px; height: 44px; padding: 0; flex-shrink: 0; border: 0; background: transparent; color: #252a26; font-size: 28px; cursor: pointer; }
.fba-sweets-dialog__content { overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 8px 2px; }
.fba-sweets-dialog .fba-sweets__card { padding: 10px 0; border-bottom: 1px solid #edf0eb; grid-template-columns: 52px minmax(0, 1fr) 68px; }
.fba-sweets-dialog button.fba-sweets__thumbnail { width: 52px; height: 52px; }
.fba-sweets-dialog button.fba-sweets-dialog__done { flex-shrink: 0; width: 100%; min-height: 44px; padding: 10px; margin-top: 12px; border: 1px solid #69967d; border-radius: 4px; background: white; color: #476c55; font: inherit; font-size: 13px; cursor: pointer; }
.fba-sweets-dialog button.fba-sweets-dialog__all { display: block; min-height: 44px; padding: 6px 0; border: 0; background: transparent; color: #476c55; font: inherit; font-size: 13px; cursor: pointer; }
.fba-sweets-dialog__photo { display: block; width: 100%; height: min(240px, 30dvh); object-fit: contain; background: #f7f7f3; border-radius: 5px; }
.fba-sweets-dialog .fba-sweets-dialog__detail h3 { font: inherit; font-size: 17px; font-weight: 500; margin: 14px 0 6px; }
.fba-sweets-dialog .fba-sweets-dialog__detail p { font-size: 13px; line-height: 1.5; margin: 10px 0; }
/* Short phone screens keep room for cart items as well as both Add buttons. */
@media (max-height: 700px) {
 .wc-block-mini-cart__drawer .wc-block-mini-cart__footer { padding-top: 10px; padding-bottom: 10px; }
 .wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions { gap: 8px; }
 .wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions a { min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
 .fba-sweets { margin-bottom: 8px; padding-bottom: 8px; }
}
@media (max-width: 480px) {
 .wc-block-mini-cart__drawer h2.wc-block-mini-cart__title { font-size: 18px; line-height: 1.4; padding-right: 40px; }
 .wc-block-mini-cart__drawer table.wc-block-cart-items { width: 100%; table-layout: fixed; }
 .wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-items__row { grid-template-columns: 48px minmax(0, 1fr) auto; column-gap: 10px; padding: 10px 0; }
 .wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-item__image { width: auto; grid-column: 1; grid-row: 1; padding: 0; }
 .wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-item__image img { width: 48px; height: 52px; }
 .wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-item__product { min-width: 0; grid-column: 2; grid-row: 1; padding: 0; }
 .wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-item__total { grid-column: 3; grid-row: 1; padding: 0; font-size: 12px; }
 .wc-block-mini-cart__drawer .wc-block-components-product-name { overflow-wrap: anywhere; }
}
/* Explicit continuation cue sits outside the scrolling list. It also scrolls
   the list when tapped, and disappears only when there are no more rows below. */
.fba-sweets-dialog .fba-sweets-dialog__scroll-cue { display: block; flex: 0 0 34px; width: 100%; min-height: 34px; margin: 0; padding: 6px; border: 0; border-top: 1px solid #dce5dc; background: #f2f6f1; color: #476c55; font: inherit; font-size: 12px; text-align: center; cursor: pointer; }
.fba-sweets-dialog .fba-sweets-dialog__scroll-cue[hidden] { display: none; }
.fba-sweets-dialog__content.has-more-below { mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent); }
