/* The basket panel and masthead count (imd-basket.js). Inherits the page's type; draws only lines and spacing, in the design
   system's ink, paper and soft line (design-system/project/tokens.css). The add button is the one primary action. */
.imd-basket-open { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.imd-basket-add { font: inherit; display: block; width: 100%; text-align: left; padding: 18px; border: 0; border-radius: 0; background: #15241d; color: #f5f5ef; cursor: pointer; }
.imd-basket-add:disabled { opacity: 0.5; cursor: progress; }
.imd-basket-message:empty { display: none; }
.imd-basket { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(440px, 100vw); max-width: none; max-height: none; border-radius: 0; height: 100dvh; padding: 0; border: 0; border-left: 1px solid #15241d; background: #f5f5ef; color: #15241d; font: inherit; overflow-y: auto; }
.imd-basket::backdrop { background: rgba(21, 36, 29, 0.25); }
.imd-basket header { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 20px; border-bottom: 1px solid #15241d; }
.imd-basket h2 { margin: 0; font-size: 1.2em; font-weight: 400; }
.imd-basket button { font: inherit; color: inherit; cursor: pointer; }
.imd-basket-close, .imd-basket-remove, .imd-basket-code button { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.imd-basket-status { margin: 0; padding: 0 20px; }
.imd-basket-status[data-state="error"] { padding: 12px 20px; border-bottom: 1px solid #15241d; }
.imd-basket-body { padding: 12px 20px 28px; }
.imd-basket-lines { list-style: none; margin: 0; padding: 0; }
.imd-basket-lines li { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 14px 0; border-bottom: 1px solid #c9c7bf; }
.imd-basket-lines a { color: inherit; text-decoration: none; }
.imd-basket-qty { display: inline-flex; gap: 12px; align-items: center; }
.imd-basket-qty button { width: 28px; height: 28px; border: 1px solid #15241d; background: #f5f5ef; }
.imd-basket-price { text-align: right; }
.imd-basket-code { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0; }
.imd-basket-code label { width: 100%; }
.imd-basket-code input { flex: 1; font: inherit; padding: 8px 10px; border: 1px solid #15241d; border-radius: 0; min-width: 0; }
.imd-basket-totals { margin: 0; }
.imd-basket-totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.imd-basket-totals dt, .imd-basket-totals dd { margin: 0; }
.imd-basket-totals .total { font-weight: 500; border-top: 1px solid #15241d; margin-top: 6px; padding-top: 10px; }
.imd-basket-checkout { display: block; margin-top: 22px; padding: 18px; text-align: left; background: #15241d; color: #f5f5ef; text-decoration: none; }
.imd-basket-empty { margin: 24px 0; }
