/* Isolated from Journal's .form-group/.input-group/.btn layout rules. */
#mcd-root { position:fixed; inset:0; z-index:2147483000; color:#141414; font:14px/1.45 Arial,Helvetica,sans-serif; text-align:left; direction:ltr; }
#mcd-root[hidden], #mcd-root [hidden] { display:none !important; }
#mcd-root *, #mcd-root *::before, #mcd-root *::after { box-sizing:border-box; }
#mcd-root button, #mcd-root input, #mcd-root a { font:inherit; letter-spacing:normal; text-transform:none; }
#mcd-root button { appearance:none; float:none; position:static; width:auto; height:auto; min-width:0; margin:0; padding:0; border:0; border-radius:0; background:transparent; color:inherit; cursor:pointer; box-shadow:none; text-shadow:none; }
#mcd-root button::before, #mcd-root button::after, #mcd-root a::before, #mcd-root a::after { content:none; }
#mcd-root a { color:inherit; text-decoration:none; }
#mcd-root button:disabled { opacity:.35; cursor:default; }
#mcd-root :focus-visible { outline:2px solid #111; outline-offset:3px; }
#mcd-root .mcd-backdrop { position:absolute; inset:0; background:rgba(15,23,35,.55); opacity:0; transition:opacity .22s; }
#mcd-root .mcd-panel { position:absolute; top:0; right:0; width:600px; max-width:100%; height:100%; height:100dvh; display:flex; flex-direction:column; background:#fff; box-shadow:-12px 0 48px #0002; transform:translateX(100%); transition:transform .25s ease; overflow:hidden; }
#mcd-root.mcd-open .mcd-panel { transform:translateX(0); }
#mcd-root.mcd-open .mcd-backdrop { opacity:1; }
/* Use scoped div wrappers: Journal targets every header/footer as site chrome. */
#mcd-root .mcd-header { position:relative; inset:auto; z-index:1; flex:0 0 auto; display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; height:auto; min-height:0; margin:0; padding:calc(10px + env(safe-area-inset-top,0px)) 20px 10px; border:0; border-bottom:1px solid #ededed; background:#fff; color:#141414; box-shadow:none; transform:none; }
#mcd-root .mcd-header::before, #mcd-root .mcd-header::after, #mcd-root #mcd-title::before, #mcd-root #mcd-title::after { content:none; display:none; }
/* Also repair cached v100/v101 Twig that still uses the native header tag. */
#mcd-root header.mcd-header { position:relative !important; inset:auto !important; display:flex !important; width:100% !important; height:auto !important; min-height:0 !important; background:#fff !important; color:#141414 !important; transform:none !important; }
#mcd-root header.mcd-header::before, #mcd-root header.mcd-header::after { content:none !important; display:none !important; }
#mcd-root #mcd-title { position:static; float:none; flex:1 1 auto; width:auto; height:auto; min-width:0; margin:0; padding:0; font:700 18px/1.3 Arial,Helvetica,sans-serif; text-align:left; text-transform:none; letter-spacing:normal; color:#141414; display:flex; align-items:center; flex-wrap:wrap; gap:6px 9px; border:0; background:none; box-shadow:none; }
#mcd-root .mcd-title-text { white-space:nowrap; }
#mcd-root .mcd-bag { display:block; flex:0 0 20px; width:20px; height:20px; }
#mcd-root .mcd-count { flex:0 0 auto; font:400 11px/1.4 Arial,Helvetica,sans-serif; color:#666; background:#f3f3f3; border-radius:12px; padding:3px 8px; white-space:nowrap; }
#mcd-root .mcd-close { display:flex; align-items:center; justify-content:center; flex:0 0 44px; width:44px; height:44px; min-height:44px; font:28px/1 Arial,sans-serif; color:#666; border-radius:50%; }
#mcd-root .mcd-close:hover { background:#f4f4f4; color:#111; }
#mcd-root .mcd-shipping { flex:0 0 auto; padding:14px 22px; border-bottom:1px solid #eee; }
#mcd-root .mcd-shipping p { margin:0 0 10px; padding:0; font-size:12px; font-weight:600; }
#mcd-root .mcd-track { height:5px; border-radius:6px; overflow:hidden; background:#e9e9e9; }
#mcd-root .mcd-track span { display:block; height:100%; background:#111; border-radius:6px; transition:width .25s; }
#mcd-root .mcd-notice { flex:0 0 auto; max-height:84px; overflow:auto; margin:0; padding:10px 22px; background:#f4f4f4; color:#333; font-size:12px; }
#mcd-root .mcd-notice.mcd-error { background:#fff2f1; color:#98372e; }
#mcd-root .mcd-items { flex:1 1 auto; min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#bbb #f5f5f5; padding:0 20px; -webkit-overflow-scrolling:touch; }
#mcd-root .mcd-item { display:grid; grid-template-columns:66px minmax(0,1fr) auto; gap:8px 12px; padding:20px 0; border-bottom:1px solid #eee; margin:0; align-items:start; }
#mcd-root .mcd-thumb { grid-row:1 / 3; display:flex; align-items:center; justify-content:center; min-height:76px; border-radius:8px; overflow:hidden; background:#fafafa; }
#mcd-root .mcd-thumb img { display:block; max-width:100%; width:66px; height:76px; object-fit:contain; }
#mcd-root .mcd-info { min-width:0; }
#mcd-root .mcd-name { display:block; font-size:13px; line-height:1.45; font-weight:600; overflow-wrap:anywhere; }
#mcd-root .mcd-name:hover { text-decoration:underline; }
#mcd-root .mcd-option { font-size:11px; line-height:1.5; color:#777; overflow-wrap:anywhere; margin-top:4px; }
#mcd-root .mcd-price { font-size:13px; font-weight:700; text-align:right; white-space:nowrap; max-width:145px; }
#mcd-root .mcd-controls { grid-column:2 / 4; display:flex; align-items:center; justify-content:space-between; gap:12px; }
#mcd-root .mcd-quantity { display:flex; align-items:center; justify-content:space-between; border:1px solid #e9e9e9; border-radius:8px; background:#fafafa; min-width:108px; }
#mcd-root .mcd-quantity button { width:36px; height:36px; font-size:20px; }
#mcd-root .mcd-quantity span { min-width:24px; text-align:center; font-size:12px; font-weight:600; }
#mcd-root .mcd-remove { font-size:12px; color:#777; text-decoration:underline; padding:10px 2px; min-height:36px; }
#mcd-root .mcd-remove:hover { color:#111; }
#mcd-root .mcd-gift { margin:0 -8px; padding:14px 8px; background:#f7f7f7; border-bottom-color:#eee; grid-template-columns:54px minmax(0,1fr) auto; border-left:2px solid #ddd; }
#mcd-root .mcd-gift .mcd-thumb { min-height:54px; background:transparent; }
#mcd-root .mcd-gift img { width:48px; height:54px; }
#mcd-root .mcd-gift .mcd-name { font-size:11px; }
#mcd-root .mcd-gift .mcd-price { font-size:11px; font-weight:400; color:#666; }
#mcd-root .mcd-gift-badge { display:inline-block; margin-top:6px; padding:2px 7px; border:1px solid #ddd; border-radius:10px; font-size:10px; color:#555; }
#mcd-root .mcd-gift-qty { font-size:10px; color:#777; }
#mcd-root .mcd-stock { display:block; color:#98372e; font-size:11px; margin-top:5px; }
#mcd-root .mcd-voucher { padding:18px 0; border-bottom:1px solid #eee; display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
#mcd-root .mcd-voucher div { flex:1 1 60%; }
#mcd-root .mcd-empty { padding:45px 12px; text-align:center; }
#mcd-root .mcd-empty-icon { font-size:46px; color:#bbb; }
#mcd-root .mcd-empty h3 { font-size:19px; margin:16px 0 10px; }
#mcd-root .mcd-empty p { color:#777; font-size:13px; margin:0 0 24px; }
#mcd-root .mcd-continue { background:#111; color:#fff; padding:12px 20px; border-radius:8px; }
#mcd-root .mcd-footer { flex:0 0 auto; min-height:0; border-top:1px solid #e9e9e9; background:#fff; padding:14px 20px calc(10px + env(safe-area-inset-bottom,0px)); box-shadow:0 -8px 22px #00000004; }
#mcd-root .mcd-footer-top { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:14px; }
#mcd-root .mcd-discount-toggle { font-size:12px; color:#555; display:flex; align-items:center; gap:7px; text-align:left; min-height:32px; }
#mcd-root .mcd-total-toggle { display:flex; align-items:center; justify-content:flex-end; gap:6px; flex-wrap:wrap; margin-left:auto; font-size:12px; }
#mcd-root .mcd-total-toggle strong { font-size:17px; font-weight:700; white-space:nowrap; }
#mcd-root .mcd-extras { max-height:27vh; max-height:27dvh; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; }
#mcd-root .mcd-code-form { display:block; margin:0 0 12px; padding:0; }
#mcd-root .mcd-code-form label { display:block; margin:0 0 6px; width:auto; font-size:12px; font-weight:400; padding:0; }
#mcd-root .mcd-code-field { display:grid; grid-template-columns:minmax(0,1fr) 82px; gap:8px; }
#mcd-root .mcd-code-field input { display:block; width:100%; min-width:0; height:44px; min-height:44px; max-height:44px; margin:0; padding:0 12px; background:#fff; border:1px solid #ddd; border-radius:7px; box-shadow:none; color:#111; font-size:16px; line-height:normal; }
#mcd-root .mcd-code-field input:focus { border-color:#111; }
#mcd-root .mcd-code-field .mcd-apply { width:82px; height:44px; border-radius:7px; background:#111; color:#fff; font-size:12px; }
#mcd-root .mcd-applied { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:11px; margin-top:6px; color:#555; }
#mcd-root .mcd-applied span { overflow-wrap:anywhere; min-width:0; }
#mcd-root .mcd-clear { padding:5px 0; flex-shrink:0; text-decoration:underline; font-size:11px; }
#mcd-root .mcd-total-line { display:flex; justify-content:space-between; gap:12px; padding:7px 0; font-size:12px; border-bottom:1px solid #f1f1f1; }
#mcd-root .mcd-total-line span { overflow-wrap:anywhere; }
#mcd-root .mcd-total-line strong { white-space:nowrap; font-weight:600; }
#mcd-root #mcd-totals { margin-bottom:14px; }
#mcd-root .mcd-checkout { display:flex; align-items:center; justify-content:center; gap:14px; width:100%; min-height:48px; padding:12px; border:0; border-radius:8px; background:#111; color:#fff; font-size:14px; font-weight:700; text-align:center; }
#mcd-root .mcd-checkout:hover { background:#292929; }
#mcd-root .mcd-checkout[aria-disabled="true"] { opacity:.4; cursor:default; }
#mcd-root .mcd-cart-link { display:block; width:100%; padding:9px 0 0; color:#777; font-size:11px; text-align:center; text-decoration:underline; }
#mcd-root .mcd-retry { display:block; margin:8px auto 0; font-size:12px; text-decoration:underline; }
html.mcd-enabled #cart-content, html.mcd-enabled #cart > .dropdown-menu, html.mcd-enabled .mobile-cart-content-container { display:none !important; }
@media (max-width:540px) {
  #mcd-root .mcd-panel { width:100%; }
  #mcd-root .mcd-header { padding:calc(8px + env(safe-area-inset-top,0px)) 14px 8px; }
  #mcd-root .mcd-items { padding:0 14px; }
  #mcd-root .mcd-item { gap:8px 10px; grid-template-columns:58px minmax(0,1fr) auto; padding:16px 0; }
  #mcd-root .mcd-thumb img { width:58px; height:68px; }
  #mcd-root .mcd-footer { padding-right:14px; padding-left:14px; }
  #mcd-root .mcd-footer-top { gap:8px; }
  #mcd-root .mcd-total-toggle strong { font-size:16px; }
  #mcd-root .mcd-gift { padding:12px 8px; }
}
@media (max-width:380px) {
  #mcd-root .mcd-item { grid-template-columns:54px minmax(0,1fr); }
  #mcd-root .mcd-price { grid-column:2; text-align:left; }
  #mcd-root .mcd-controls { grid-column:2; }
  #mcd-root .mcd-thumb { grid-row:1 / 4; }
  #mcd-root .mcd-name { font-size:12px; }
  #mcd-root .mcd-discount-toggle { max-width:118px; }
}
@media (max-height:500px) {
  #mcd-root .mcd-shipping { padding-top:6px; padding-bottom:6px; }
  #mcd-root .mcd-shipping p { margin-bottom:5px; }
  #mcd-root .mcd-header { padding-top:calc(2px + env(safe-area-inset-top,0px)); padding-bottom:2px; }
  #mcd-root .mcd-notice { max-height:44px; padding-top:5px; padding-bottom:5px; }
  #mcd-root .mcd-footer { padding-top:7px; padding-bottom:7px; }
  #mcd-root .mcd-footer-top { margin-bottom:7px; }
  #mcd-root .mcd-checkout { min-height:40px; padding:8px; }
}
@media (prefers-reduced-motion:reduce) {
  #mcd-root .mcd-panel, #mcd-root .mcd-backdrop, #mcd-root .mcd-track span { transition:none; }
}
