/* Panier : une liste simple, un seul bouton fort, pas d'effets. */
.bs-basket-open { overflow: hidden; }
.bs-basket { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(480px,100%); height: 100dvh; max-height: 100dvh; max-width: 100%; border: 0; padding: 0; background: #fffaf3; color: #25323c; font: 400 1rem/1.5 var(--bs-body-font,Arial,sans-serif); box-shadow: -10px 0 40px #0002; }
.bs-basket[open] { display: flex; flex-direction: column; }
.bs-basket::backdrop { background: #17232a88; }
.bs-basket *, .bs-basket *::before, .bs-basket *::after { box-sizing: border-box; }
.bs-basket [hidden] { display: none !important; }
.bs-basket button, .bs-basket a { font: inherit; }
.bs-basket button { cursor: pointer; }
.bs-basket button:disabled { opacity: .4; cursor: default; }
.bs-basket :focus-visible, .bs-basket-launcher:focus-visible { outline: 3px solid #385c80; outline-offset: 3px; }
.bs-basket-header { flex: 0 0 auto; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: max(20px,env(safe-area-inset-top)) 24px 16px; border-bottom: 1px solid #e8decf; }
.bs-basket-header > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; min-width: 0; }
.bs-basket-eyebrow { flex: 1 0 100%; color: #6c6258; font-size: .875rem; }
.bs-basket-header h2 { font: 400 2.2rem/1.2 var(--bs-heading-font,Arial,sans-serif); color: var(--bs-orange-dark,#bc3b1a); margin: 0; }
.bs-basket-count { color: #6c6258; font-size: .875rem; white-space: nowrap; }
.bs-basket-close { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #ddcfbd; border-radius: 50%; background: transparent; font-size: 1.7rem !important; line-height: 1; color: inherit; }
.bs-basket-close:hover { border-color: #25323c; }
.bs-basket-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px 24px; }
.bs-basket-status { margin: 12px 0; color: #6c6258; font-size: .875rem; }
.bs-basket-status:empty { display: none; }
.bs-basket-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bs-basket-delivery { margin: 16px 0 4px; padding: 10px 14px; border-radius: 8px; background: #f3ece2; font-size: .875rem; }
.bs-basket-delivery strong { font-weight: 650; }
.bs-basket-delivery p { display: inline; margin: 0; color: #6c6258; }
.bs-basket-delivery strong::after { content: " · "; font-weight: 400; color: #6c6258; }
.bs-basket-items { list-style: none; margin: 0; padding: 0; }
.bs-basket-item { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; grid-template-rows: auto 1fr; gap: 2px 14px; padding: 18px 0; border-bottom: 1px solid #e8decf; }
.bs-basket-photo { grid-row: 1 / span 2; width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #fff; }
.bs-basket-item-copy { min-width: 0; }
.bs-basket-item h3 { font: 650 1rem/1.35 var(--bs-body-font,Arial,sans-serif); margin: 0 0 2px; }
.bs-basket-tag { display: block; font-size: .75rem; font-weight: 650; color: var(--bs-orange-dark, #a93c1d); }
.bs-basket-item dl { font-size: .8125rem; line-height: 1.4; margin: 0; color: #6c6258; }
.bs-basket-item dt { font-weight: 600; }
.bs-basket-item dd { margin: 0 0 2px; }
.bs-basket-item dd p { margin: 0; }
.bs-basket-price { white-space: nowrap; font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.bs-basket-item-foot { grid-column: 2 / -1; align-self: end; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bs-basket-item-actions { display: flex; flex-wrap: wrap; gap: 0 14px; }
.bs-basket-item-actions button { background: none; border: 0; padding: 8px 0; min-height: 40px; color: #6c6258; font-size: .8125rem; text-decoration: underline; text-underline-offset: 3px; }
.bs-basket-item-actions button:hover { color: #25323c; }
.bs-basket-quantity { flex: 0 0 auto; display: flex; align-items: center; border: 1px solid #ddcfbd; border-radius: 20px; }
.bs-basket-quantity button { width: 38px; height: 36px; padding: 0; border: 0; background: transparent; color: inherit; font-size: 1.15rem; line-height: 1; }
.bs-basket-quantity button.is-trash { background: center / 16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c6258' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 12a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-12M9 7V4h6v3'/%3E%3C/svg%3E"); }
.bs-basket-quantity span { min-width: 22px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
/* Produit retiré : la ligne reste à sa place, barrée, avec « Annuler ». */
.bs-basket-removed { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e8decf; color: #6c6258; font-size: .875rem; }
.bs-basket-removed s { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-basket-removed button { flex: 0 0 auto; min-height: 40px; padding: 0; border: 0; background: none; color: #25323c; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.bs-basket-more { display: inline-block; margin: 14px 0 0; padding: 8px 0; color: var(--bs-orange-dark, #a93c1d); font-size: .9375rem; text-decoration: underline; text-underline-offset: 3px; }
.bs-basket-totals { margin: 18px 0 0; font-size: .9375rem; }
.bs-basket-totals > div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; color: #4d443b; }
.bs-basket-totals dt,.bs-basket-totals dd { margin: 0; }
.bs-basket-totals dd { text-align: right; font-variant-numeric: tabular-nums; }
.bs-basket-totals .bs-basket-saving { color: #2f5b2a; font-weight: 600; }
.bs-basket-totals .bs-basket-tax { padding-top: 0; font-size: .8125rem; color: #7a6f63; }
.bs-basket-grand-total { border-top: 1px solid #e8decf; margin-top: 8px; padding-top: 12px !important; color: #25323c !important; font-size: 1.0625rem; font-weight: 700; }
.bs-basket-footer { flex: 0 0 auto; padding: 12px 24px max(12px,env(safe-area-inset-bottom)); border-top: 1px solid #e8decf; background: #fffaf3; }
.bs-basket-footnote { text-align: center; font-size: .8125rem; color: #6c6258; margin: 0 0 10px; }
.bs-basket-primary { display: flex; align-items: center; justify-content: center; gap: 18px; background: var(--bs-button-orange, #bf421f); color: white !important; padding: 14px 20px; min-height: 54px; border-radius: 10px; text-decoration: none !important; font-weight: 650 !important; }
.bs-basket-primary:hover { background: var(--bs-orange-dark, #a93c1d); }
.bs-basket-checkout { justify-content: space-between; }
.bs-basket-checkout strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bs-basket-checkout[aria-disabled=true] { opacity: .45; cursor: default; }
.bs-basket-checkout[aria-disabled=true]:hover { background: var(--bs-button-orange, #bf421f); }
.bs-basket-continue { display: block; margin: 4px auto 0; min-height: 44px; background: none; border: 0; color: #6c6258; font-size: .875rem !important; }
.bs-basket-continue:hover { color: #25323c; text-decoration: underline; }
.bs-basket-empty { text-align: center; padding: 60px 8px; }
.bs-basket-empty img { display: block; margin: 0 auto 20px; }
.bs-basket-empty h3 { font-size: 1.5rem; margin: 0; }
.bs-basket-empty p { color: #6c6258; margin: 10px 0 26px; }
/* Problème (modification refusée, réponse perdue) : reste affiché jusqu'à la suite. */
.bs-basket-message { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 10px 24px; border-top: 1px solid #f0d3c3; background: #fff0e7; font-size: .875rem; }
.bs-basket-message button { min-height: 40px; padding: 0; border: 0; background: none; color: #25323c; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.bs-basket-warning { border-left: 3px solid var(--bs-orange-dark, #a93c1d); padding: 12px; background: #fff0e7; font-size: .875rem; }
.bs-basket-launcher { position: fixed; z-index: 1000; bottom: 24px; right: 24px; padding: 14px 22px; border-radius: 30px; background: #25323c; color: #fff !important; text-decoration: none !important; box-shadow: 0 4px 18px #0003; font: 650 .9375rem/1.5 var(--bs-body-font,Arial,sans-serif); text-align: center; }
@media(max-width:600px) {
  .bs-basket { width: 100%; }
  .bs-basket-header, .bs-basket-body, .bs-basket-footer, .bs-basket-message { padding-inline: 18px; }
  .bs-basket-header h2 { font-size: 2rem; }
  .bs-basket-launcher { bottom: max(12px,env(safe-area-inset-bottom)); right: 12px; left: 12px; border-radius: 10px; }
  body.bs-commande { padding-bottom: 84px; }
}
@media(max-width:380px) {
  .bs-basket-item { grid-template-columns: 52px minmax(0,1fr) auto; gap: 2px 10px; }
  .bs-basket-photo { width: 52px; height: 52px; grid-row: 1; }
  .bs-basket-item-foot { grid-column: 1 / -1; }
}
/* Lecture du panier en cours : blocs gris à la place du contenu. */
.bs-basket-skeleton { display: grid; gap: 12px; padding-top: 16px; }
.bs-basket-skeleton i { display: block; height: 64px; border-radius: 8px; background: #efe6da; }
.bs-basket-skeleton i:first-child { height: 40px; }
/* Minimum de livraison pas atteint : jauge et produits à ajouter. */
.bs-basket-boost { margin: 16px 0 4px; padding: 14px; border-radius: 8px; background: #f3ece2; }
.bs-basket-boost-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bs-basket-boost-head strong { font-size: 1rem; font-weight: 650; }
.bs-basket-boost-head span { flex: 0 0 auto; font-size: .8125rem; color: #6c6258; font-variant-numeric: tabular-nums; }
.bs-basket-boost-bar { margin: 8px 0; height: 6px; border-radius: 6px; background: #e3d6c5; overflow: hidden; }
.bs-basket-boost-bar i { display: block; height: 100%; background: var(--bs-button-orange, #bf421f); }
.bs-basket-boost > p { margin: 0; font-size: .8125rem; color: #6c6258; }
.bs-basket-boost > h3 { margin: 14px 0 4px; font: 650 .875rem/1.4 var(--bs-body-font, Arial, sans-serif); }
.bs-basket-boost-list { list-style: none; margin: 0; padding: 0; }
.bs-basket-boost-list li { position: relative; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid #e8decf; }
.bs-basket-boost-list li:last-child { border-bottom: 0; }
/* Classes reprises de la carte (pour la fenêtre du plat) : on neutralise ici ses grandes vignettes rondes. */
.bs-basket .bs-basket-boost-list .bs-dish-picture { display: block; width: 48px; height: 48px; border-radius: 6px; overflow: hidden; background: #fff; }
.bs-basket .bs-basket-boost-list .bs-dish-picture img { display: block; width: 100%; height: 100%; object-fit: cover; padding: 0; opacity: 1; }
.bs-basket-boost-list .bs-dish-copy { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.bs-basket .bs-basket-boost-list h3 { flex: 1 0 100%; margin: 0; font: 600 .9375rem/1.3 var(--bs-body-font, Arial, sans-serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-basket .bs-basket-boost-list .bs-dish-price { font-size: .875rem; font-weight: 400; line-height: 1.4; color: #6c6258; }
.bs-basket-boost-tag { font-size: .75rem; font-weight: 600; color: #2e6b3f; }
.bs-basket-boost-add { width: 36px; height: 36px; border: 1px solid var(--bs-button-orange, #bf421f); border-radius: 50%; background: transparent; color: var(--bs-button-orange, #bf421f); font-size: 1.3rem !important; line-height: 1; }
.bs-basket-boost-add:hover { background: var(--bs-button-orange, #bf421f); color: #fff; }
/* Toute la ligne est cliquable, le bouton reste le seul élément actif pour le clavier. */
.bs-basket-boost-add::after { content: ""; position: absolute; inset: 0; }
.bs-basket-checkout.is-held span { font-size: .9375rem; }
.bs-basket-boost-add.is-adding { opacity: .4; }
/* « Avec ceci ? » : sucré et boisson proposés au moment de passer commande. */
.bs-basket-finish { padding: 20px 0 8px; }
.bs-basket .bs-basket-finish > h3 { margin: 0; font: 400 1.6rem/1.2 var(--bs-heading-font, Arial, sans-serif); color: var(--bs-orange-dark, #a93c1d); }
.bs-basket-finish > h3:focus { outline: none; }
.bs-basket-finish > h4 { margin: 18px 0 0; font: 650 .9375rem/1.4 var(--bs-body-font, Arial, sans-serif); }
