/* Mayabunon cart drawer. Slides in from the right; full width on small screens.
   Tokens come from mb-header.css. */

.mb-drawer-overlay{position:fixed;inset:0;background:rgba(59,46,42,.5);z-index:9998;
opacity:0;transition:opacity .28s ease}
.mb-drawer-open .mb-drawer-overlay{opacity:1}
.mb-drawer-overlay[hidden]{display:none}

.mb-drawer{position:fixed;top:0;right:0;bottom:0;width:400px;max-width:100%;
background:var(--mb-cream-soft);z-index:9999;display:flex;flex-direction:column;
box-shadow:-8px 0 32px rgba(59,46,42,.16);transform:translateX(100%);
transition:transform .28s cubic-bezier(.4,0,.2,1)}
.mb-drawer-open .mb-drawer{transform:translateX(0)}
.mb-drawer[hidden]{display:none}
.mb-drawer.is-busy{pointer-events:none}
.mb-drawer.is-busy .mb-drawer-body{opacity:.6;transition:opacity .15s ease}

/* head */
/* Head and foot take the warm off-white used by the homepage bands so the cart
   reads as three parts: title, the white list of items, then the totals. */
.mb-drawer-head{display:flex;align-items:center;gap:10px;flex:0 0 auto;
padding:18px 20px;border-bottom:1px solid var(--mb-line);background:#faf7f3}
.mb-drawer-title{margin:0;font-size:17px;font-weight:600;color:var(--mb-ink);line-height:1.3}
.mb-drawer .mb-count{position:static;min-width:22px;height:22px;padding:0 6px;
display:inline-flex;align-items:center;justify-content:center;border-radius:11px;
background:var(--mb-clay);color:#fff;font-size:12px;font-weight:600;transform:none}
.mb-drawer .mb-count[data-empty="1"]{display:none}
.mb-drawer-close{margin-left:auto;width:32px;height:32px;flex:0 0 auto;padding:0;
border:1px solid var(--mb-line);border-radius:50%;background:#fff;cursor:pointer;
display:inline-flex;align-items:center;justify-content:center;
transition:background-color .16s ease,border-color .16s ease}
.mb-drawer-close span{width:13px;height:13px;display:block;
background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a3b33' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/contain no-repeat}
.mb-drawer-close:hover{background:rgba(90,46,39,.06);border-color:var(--mb-cocoa)}

/* body */
.mb-drawer-body{flex:1 1 auto;display:flex;flex-direction:column;min-height:0}
.mb-drawer-list{flex:1 1 auto;overflow-y:auto;padding:16px 20px;
-webkit-overflow-scrolling:touch}

.mb-drawer-line{display:flex;align-items:flex-start;gap:12px;padding:0 0 14px;
margin:0 0 14px;border-bottom:1px solid var(--mb-line)}
.mb-drawer-line:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.mb-drawer-line.is-going{opacity:.35;transition:opacity .18s ease}
.mb-drawer-thumb{flex:0 0 auto;display:block;line-height:0;width:66px;height:66px;
border-radius:9px;overflow:hidden;border:1px solid var(--mb-line);background:#fff}
.mb-drawer-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.mb-drawer-line-main{flex:1 1 auto;min-width:0}
.mb-drawer-name{display:block;font-size:13.8px;line-height:1.45;color:var(--mb-ink);
font-weight:500;text-decoration:none}
.mb-drawer-name:hover{color:var(--mb-terracotta-ink)}
.mb-drawer-line dl.variation{margin:3px 0 0;font-size:12.3px;color:var(--mb-muted)}
.mb-drawer-line dl.variation dt,.mb-drawer-line dl.variation dd,
.mb-drawer-line dl.variation dd p{display:inline;margin:0}

.mb-drawer-row{display:flex;align-items:center;gap:10px;margin-top:9px}
.mb-drawer-qty{display:inline-flex;align-items:center;flex:0 0 auto;background:#fff;
border:1px solid #d9c8b6;border-radius:8px;overflow:hidden}
.mb-drawer-step{width:28px;height:28px;flex:0 0 auto;padding:0;border:0;
background:transparent;color:var(--mb-cocoa);font-size:16px;line-height:1;
font-family:inherit;cursor:pointer;display:flex;align-items:center;justify-content:center;
transition:background-color .16s ease}
.mb-drawer-step:hover{background:rgba(90,46,39,.07)}
.mb-drawer-input{width:36px;height:28px;flex:0 0 auto;border:0;
border-left:1px solid var(--mb-line);border-right:1px solid var(--mb-line);
text-align:center;font-size:13.5px;font-family:inherit;color:var(--mb-ink);
background:#fff;padding:0;border-radius:0;-moz-appearance:textfield}
.mb-drawer-input:focus{outline:none;box-shadow:none}
.mb-drawer-input::-webkit-outer-spin-button,
.mb-drawer-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.mb-drawer-price{margin-left:auto;font-size:14px;font-weight:600;
color:var(--mb-terracotta-ink);white-space:nowrap}

.mb-drawer-remove{width:26px;height:26px;flex:0 0 auto;padding:0;
border:1px solid var(--mb-line);border-radius:50%;background:var(--mb-cream-hi);
cursor:pointer;display:inline-flex;align-items:center;justify-content:center;
transition:background-color .16s ease,border-color .16s ease}
.mb-drawer-remove span{width:11px;height:11px;display:block;
background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2375604f' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/contain no-repeat}
.mb-drawer-remove:hover{background:rgba(138,74,60,.1);border-color:var(--mb-clay)}
.mb-drawer-remove:hover span{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a4a3c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E")}

/* foot */
.mb-drawer-foot{flex:0 0 auto;padding:16px 20px 20px;border-top:1px solid var(--mb-line);
background:#faf7f3}
.mb-drawer-sub{display:flex;justify-content:space-between;align-items:baseline;
font-size:15px;color:var(--mb-ink);font-weight:500}
.mb-drawer-sub-amt{color:var(--mb-terracotta-ink);font-weight:600;font-size:19px}
.mb-drawer-note{margin:6px 0 13px;font-size:12.3px;color:var(--mb-muted);line-height:1.6}
.mb-drawer-checkout{display:flex;align-items:center;justify-content:center;
width:100%;background:var(--mb-cocoa);color:#f4ebe0;border-radius:999px;
padding:15px 20px;font-size:15.5px;font-weight:600;text-decoration:none;
transition:background-color .2s ease,transform .15s ease,box-shadow .2s ease;
animation:mb-drawer-pulse 2s ease-in-out infinite}
.mb-drawer-checkout:hover,.mb-drawer-checkout:focus{
background:var(--mb-cocoa-deep);color:#f4ebe0;transform:translateY(-2px);
animation-play-state:paused;box-shadow:0 8px 20px rgba(90,46,39,.28)}
.mb-drawer-checkout:active{background:var(--mb-cocoa-deep);color:#f4ebe0;transform:translateY(0)}

/* Same ring as the checkout button. Keyframes repeated here because
   mb-checkout.css only loads on the checkout page. */
@keyframes mb-drawer-pulse{
  0%{box-shadow:0 0 0 0 rgba(90,46,39,.40)}
  70%{box-shadow:0 0 0 12px rgba(90,46,39,0)}
  100%{box-shadow:0 0 0 0 rgba(90,46,39,0)}
}
@media (prefers-reduced-motion:reduce){
  .mb-drawer-checkout{animation:none}
}

/* empty */
.mb-drawer-empty{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;
justify-content:center;gap:14px;padding:40px 24px;text-align:center}
.mb-drawer-empty p{margin:0;font-size:15px;color:var(--mb-muted)}
.mb-drawer-shop{background:var(--mb-cocoa);color:#f4ebe0;border-radius:999px;
padding:12px 26px;font-size:14.5px;font-weight:500;text-decoration:none;
transition:background-color .2s ease}
.mb-drawer-shop:hover,.mb-drawer-shop:focus{background:var(--mb-cocoa-deep);color:#f4ebe0}


@media (max-width:480px){
	.mb-drawer{width:100%}
	.mb-drawer-list{padding:14px 16px}
	.mb-drawer-head{padding:15px 16px}
	.mb-drawer-foot{padding:14px 16px 18px}
	.mb-drawer-thumb{width:60px;height:60px}
	.mb-drawer-step{width:30px;height:30px}
	.mb-drawer-input{height:30px}
	.mb-drawer-remove{width:28px;height:28px}
}
/* --------------------------------------------- drawer button state lock
 * Kadence styles every button:hover / :focus / :active from its global button
 * palette - cocoa fill, cream text. Our rules only set backgrounds, so the
 * close button turned into a filled cocoa circle once it took focus, and the
 * quantity glyphs went cream against near-white and vanished. Each state now
 * names its own background, colour and border. */

.mb-drawer .mb-drawer-close,
.mb-drawer .mb-drawer-close:hover,
.mb-drawer .mb-drawer-close:focus,
body.mb-kb .mb-drawer .mb-drawer-close:focus-visible,
.mb-drawer .mb-drawer-close:active{color:var(--mb-ink);box-shadow:none}
.mb-drawer .mb-drawer-close{background:#fff;border:1px solid var(--mb-line)}
.mb-drawer .mb-drawer-close:hover,
.mb-drawer .mb-drawer-close:active{background:rgba(90,46,39,.07);border-color:var(--mb-cocoa)}
/* Focus alone must not look pressed - the panel focuses this on open. */
.mb-drawer .mb-drawer-close:focus:not(:focus-visible){background:#fff;border-color:var(--mb-line)}
body.mb-kb .mb-drawer .mb-drawer-close:focus-visible{background:#fff;border-color:var(--mb-terracotta);
outline:none;box-shadow:0 0 0 2px rgba(154,104,89,.45)}

.mb-drawer .mb-drawer-step,
.mb-drawer .mb-drawer-step:hover,
.mb-drawer .mb-drawer-step:focus,
body.mb-kb .mb-drawer .mb-drawer-step:focus-visible,
.mb-drawer .mb-drawer-step:active{color:var(--mb-cocoa);border:0;box-shadow:none}
.mb-drawer .mb-drawer-step{background:transparent}
.mb-drawer .mb-drawer-step:hover,
.mb-drawer .mb-drawer-step:active{background:rgba(90,46,39,.09)}
.mb-drawer .mb-drawer-step:focus:not(:focus-visible){background:transparent}
body.mb-kb .mb-drawer .mb-drawer-step:focus-visible{background:rgba(90,46,39,.09);
outline:none;box-shadow:inset 0 0 0 2px rgba(154,104,89,.45)}

.mb-drawer .mb-drawer-remove,
.mb-drawer .mb-drawer-remove:hover,
.mb-drawer .mb-drawer-remove:focus,
body.mb-kb .mb-drawer .mb-drawer-remove:focus-visible,
.mb-drawer .mb-drawer-remove:active{color:var(--mb-muted);box-shadow:none}
.mb-drawer .mb-drawer-remove{background:var(--mb-cream-hi);border:1px solid var(--mb-line)}
.mb-drawer .mb-drawer-remove:hover,
.mb-drawer .mb-drawer-remove:active{background:rgba(138,74,60,.1);border-color:var(--mb-clay)}
.mb-drawer .mb-drawer-remove:focus:not(:focus-visible){background:var(--mb-cream-hi);border-color:var(--mb-line)}
body.mb-kb .mb-drawer .mb-drawer-remove:focus-visible{outline:none;box-shadow:0 0 0 2px rgba(154,104,89,.45)}
/* The panel takes focus on open; it is a container, not a control. */
.mb-drawer:focus,
body.mb-kb .mb-drawer:focus-visible{outline:none;box-shadow:-8px 0 32px rgba(59,46,42,.16)}


.mb-drawer-list,
.mb-drawer-empty{background:#fff}


/* Close button in the footer cocoa. Every state is listed because the rules above
   reset the background to white on hover, focus and active. */
.mb-drawer .mb-drawer-close,
.mb-drawer .mb-drawer-close:focus,
.mb-drawer .mb-drawer-close:active,
.mb-drawer .mb-drawer-close:focus:not(:focus-visible){
  background:var(--mb-clay);border-color:var(--mb-clay)}

.mb-drawer .mb-drawer-close:hover,
.mb-drawer .mb-drawer-close:focus-visible{
  background:#733d32;border-color:#733d32}

.mb-drawer .mb-drawer-close:focus-visible{
  outline:none;box-shadow:0 0 0 3px rgba(154,104,89,.45)}

.mb-drawer .mb-drawer-close span{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4ebe0' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/contain no-repeat}
