/* EM zijwinkelwagen volgens de opzet (.drawer) */
.emr-drawer { --emr-ink: var(--e-global-color-primary, #1A1A18); --emr-blue-dark: var(--e-global-color-secondary, #006C99); --emr-tint: var(--e-global-color-emtint, #DCEFF9);
  --emr-display: var(--e-global-typography-secondary-font-family, "Archivo"), Arial, sans-serif; --emr-text: var(--e-global-typography-text-font-family, "Public Sans"), Arial, sans-serif;
  position: fixed; inset: 0; z-index: 99990; font-family: var(--emr-text); color: var(--emr-ink); }
.emr-drawer[hidden] { display: none; }
.emr-drawer__backdrop { position: absolute; inset: 0; background: rgba(26, 26, 24, .5); opacity: 0; transition: opacity .25s cubic-bezier(.2, 0, 0, 1); }
.emr-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.65, 0, .35, 1); }
.emr-drawer.is-open .emr-drawer__backdrop { opacity: 1; }
.emr-drawer.is-open .emr-drawer__panel { transform: none; }
.emr-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; }
.emr-drawer .emr-drawer__head h2 { margin: 0; font-family: var(--emr-display); font-weight: 900; font-size: 24px; line-height: 1.15; color: var(--emr-ink); }
.emr-drawer .emr-drawer__close { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0;
  background: none !important; color: var(--emr-ink) !important; cursor: pointer; box-shadow: none; }
.emr-drawer__close svg { width: 22px; height: 22px; }
.emr-drawer__inner { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.emr-drawer__free { padding: 0 24px; }
.emr-drawer__lines { flex: 1; overflow-y: auto; padding: 8px 24px; }
.emr-drawer__lines ul { list-style: none; margin: 0; padding: 0; }
.emr-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--emr-tint); transition: opacity .2s; }
.emr-line.is-busy { opacity: .5; pointer-events: none; }
.emr-line__img img { display: block; width: 64px; height: 64px; object-fit: contain; }
.emr-line__body { display: grid; gap: 6px; }
.emr-drawer a.emr-line__name { font-weight: 700; color: var(--emr-ink); text-decoration: none; line-height: 1.35; }
.emr-drawer a.emr-line__name:hover { color: var(--emr-blue-dark); }
.emr-line__unit { font-size: 14px; }
.emr-line__end { display: grid; gap: 8px; justify-items: end; }
.emr-line__end strong { font-family: var(--emr-display); font-weight: 900; font-size: 17px; white-space: nowrap; }
.emr-drawer .emr-line__remove { padding: 0; border: 0; background: none !important; color: var(--emr-blue-dark) !important; font: 700 14px/1.2 var(--emr-text); cursor: pointer; box-shadow: none; }
.emr-drawer .emr-line__remove:hover { color: var(--emr-ink) !important; }
.emr-qty { display: inline-flex; align-items: center; justify-self: start; border-radius: 4px; background: var(--emr-tint); }
.emr-drawer .emr-qty button { min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none !important; color: var(--emr-ink) !important; font: 700 18px/1 var(--emr-text); cursor: pointer; box-shadow: none; }
.emr-drawer .emr-qty button:hover { color: var(--emr-blue-dark) !important; }
.emr-drawer .emr-qty input { width: 44px; box-shadow: none; min-height: 44px; padding: 0; border: 0 !important; background: transparent; text-align: center; font: 700 16px/1 var(--emr-text); color: var(--emr-ink); -moz-appearance: textfield; }
.emr-qty input::-webkit-outer-spin-button, .emr-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.emr-drawer__empty { padding: 24px 0; display: grid; gap: 12px; justify-items: start; }
.emr-drawer__empty p { margin: 0; }
.emr-drawer__foot { padding: 20px 24px calc(20px + env(safe-area-inset-bottom)); background: var(--emr-tint); display: grid; gap: 12px; }
.emr-drawer__total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; }
.emr-drawer__foot .emr-btn { width: 100%; }
.emr-drawer__link { display: flex; justify-content: center; min-height: 44px; align-items: center; color: var(--emr-blue-dark); font-weight: 700; text-decoration: none; }
.emr-drawer__link:hover { color: var(--emr-ink); }
@media (prefers-reduced-motion: reduce) { .emr-drawer__panel, .emr-drawer__backdrop { transition: none; } }
/* Toegevoegd-staat op kaarten zonder extra Woo-link of vinkje */
.emr-card .added_to_cart { display: none !important; }
.emr-card .emr-btn.added::after { content: none; }
/* Aantalblok: 44px hoog, lichtblauw loopt door onder het invoerveld (kit-velden zijn wit met rand) */
.emr-drawer .emr-qty { height: 44px; overflow: hidden; }
.emr-drawer .emr-qty button, .emr-drawer .emr-qty input[type="number"] { height: 44px !important; min-height: 44px !important; margin: 0 !important; padding: 0 !important;
  border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; line-height: 44px !important; }
