/* Stickerhuis Shop UX - Elementor / WooCommerce mini-cart, global header component */
:root {
  --shux-black: #1d1d1d;
  --shux-accent: #ff4b22;
  --shux-accent-hover: #e8411c;
  --shux-light: #f7f7f7;
  --shux-border: #ebebeb;
  --shux-muted: #707070;
  --shux-round: 18px;
}
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__container.elementor-menu-cart--shown {
  background: rgba(10, 10, 10, .65) !important;
}
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main {
  background: #fff !important;
  color: var(--shux-black) !important;
  box-shadow: -12px 0 70px rgba(0, 0, 0, .12);
  width: min(440px, 100vw) !important;
  min-width: 0 !important;
  max-width: 100vw !important;
  padding: 0 !important;
}
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main .vamtam-elementor-menu-cart__header,
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main .elementor-menu-cart__header,
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main .elementor-menu-cart__close-container {
  padding: 24px 26px 20px !important;
  border-bottom: 1px solid var(--shux-border);
  color: var(--shux-black) !important;
  font-size: 19px;
  font-weight: 800;
}
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main .widget_shopping_cart_content {
  min-height: 100%;
}
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main .elementor-menu-cart__products,
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main .woocommerce-mini-cart {
  padding: 12px 22px !important;
  margin: 0 !important;
  overflow-y: auto;
}
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main .elementor-menu-cart__product,
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main .woocommerce-mini-cart-item,
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main .cart_item {
  border-bottom: 1px solid var(--shux-border) !important;
  padding-top: 18px !important;
  padding-bottom: 18px !important;
  color: var(--shux-black) !important;
  min-width: 0;
  gap: 14px;
}
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main .elementor-menu-cart__product-name a,
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main .woocommerce-mini-cart-item > a:not(.remove),
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main .product-name a {
  color: var(--shux-black) !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main .elementor-menu-cart__product-image img,
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main .woocommerce-mini-cart-item img {
  width: 80px !important;
  max-width: 80px !important;
  height: auto !important;
  border-radius: 12px;
  background: var(--shux-light);
  object-fit: contain;
}
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main .variation,
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main .elementor-menu-cart__product-price {
  font-size: 12px;
  line-height: 1.55;
  color: var(--shux-muted);
}
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main .variation dt,
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main .variation dd {
  display: inline;
  float: none;
  margin: 0 4px 0 0;
}
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main .elementor-menu-cart__product-remove a,
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main a.remove_from_cart_button,
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main a.remove {
  color: var(--shux-black) !important;
  border-radius: 999px;
  background: var(--shux-light) !important;
  transition: background .15s, color .15s;
}
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main a.remove:hover,
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main a.remove_from_cart_button:hover {
  background: var(--shux-accent) !important;
  color: #fff !important;
}
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main .elementor-menu-cart__subtotal,
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main .woocommerce-mini-cart__total {
  border-top: 1px solid var(--shux-border);
  margin: 0 !important;
  padding: 20px 26px !important;
  font-size: 17px;
  font-weight: 800;
  color: var(--shux-black);
}
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main .elementor-menu-cart__footer-buttons,
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main .woocommerce-mini-cart__buttons {
  gap: 10px !important;
  padding: 12px 26px 26px !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
}
body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__footer-buttons .elementor-button,
body .elementor-widget-woocommerce-menu-cart .woocommerce-mini-cart__buttons a.button {
  border-radius: 12px !important;
  min-width: 0;
  min-height: 48px;
  padding: 13px 10px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-align: center;
  box-sizing: border-box;
}
body .elementor-widget-woocommerce-menu-cart .elementor-button--view-cart,
body .elementor-widget-woocommerce-menu-cart .woocommerce-mini-cart__buttons a.wc-forward:not(.checkout) {
  background: var(--shux-light) !important;
  border: 1px solid var(--shux-border) !important;
  color: var(--shux-black) !important;
}
body .elementor-widget-woocommerce-menu-cart .elementor-button--checkout,
body .elementor-widget-woocommerce-menu-cart .woocommerce-mini-cart__buttons a.checkout {
  background: var(--shux-accent) !important;
  border: 1px solid var(--shux-accent) !important;
  color: #fff !important;
}
body .elementor-widget-woocommerce-menu-cart .elementor-button--checkout:hover,
body .elementor-widget-woocommerce-menu-cart .woocommerce-mini-cart__buttons a.checkout:hover {
  background: var(--shux-accent-hover) !important;
  color: #fff !important;
}
body .elementor-widget-woocommerce-menu-cart .woocommerce-mini-cart__empty-message {
  text-align: center;
  color: var(--shux-muted);
  background: var(--shux-light);
  border-radius: 16px;
  padding: 44px 20px !important;
  margin: 26px !important;
  line-height: 1.6;
}
/* The quantity controls are generated by the normal WooCommerce mini-cart filter. */
.shux-mini-price-quantity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  font-size: 13px;
}
.shux-mini-quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--shux-border);
  border-radius: 11px;
  background: var(--shux-light);
  overflow: hidden;
  height: 35px;
}
.shux-mini-quantity button {
  appearance: none;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--shux-black) !important;
  width: 34px;
  height: 34px;
  padding: 0 !important;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
}
.shux-mini-quantity button:hover { background: #e9e9e9 !important; }
.shux-mini-quantity button:disabled { cursor: not-allowed; opacity: .35; }
.shux-mini-qty-value {
  min-width: 24px;
  font-weight: 800;
  text-align: center;
  color: var(--shux-black);
}
.shux-mini-line-total { font-size: 13px; font-weight: 800; color: var(--shux-black); }
.shux-mini-quantity.is-loading { opacity: .6; pointer-events: none; }
.shux-mini-error {
  position: fixed;
  z-index: 999999;
  right: 20px;
  bottom: 20px;
  background: #fff;
  color: #8f1616;
  border: 1px solid #f2c6c6;
  border-radius: 12px;
  padding: 13px 18px;
  max-width: min(380px, calc(100vw - 40px));
  box-shadow: 0 10px 30px rgba(0,0,0,.16);
}
@media (max-width: 600px) {
  body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main { width: 100vw !important; }
  body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main .elementor-menu-cart__products { padding-left: 15px !important; padding-right: 15px !important; }
  body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main .elementor-menu-cart__footer-buttons { padding: 15px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .shux-mini-quantity button { transition: none; }
}

/* Version 1.1: compact mobile drawer with its own always-reachable close button. */
.shux-mobile-cart-header { display: none; }
.shux-options-details { margin: 8px 0 2px; }
.shux-options-details > summary { display: none; }
.shux-options-details > .variation,
.shux-options-details > .wc-item-meta { margin: 5px 0 0 !important; }
@media (max-width: 767px) {
  body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main.shux-has-mobile-header {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main.shux-has-mobile-header > .elementor-menu-cart__close-button,
  body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main.shux-has-mobile-header > .elementor-menu-cart__close-button-custom,
  body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main.shux-has-mobile-header > .elementor-menu-cart__close-container {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }
  body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main .shux-mobile-cart-header {
    display: flex !important;
    position: relative;
    z-index: 10;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    gap: 12px;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 14px !important;
    margin: 0 !important;
    border-bottom: 1px solid var(--shux-border);
    background: #fff;
    color: var(--shux-black);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
  }
  .shux-mobile-cart-close {
    appearance: none;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: grid;
    place-items: center;
    border: 0 !important;
    border-radius: 12px !important;
    background: #f3f3f3 !important;
    color: #1d1d1d !important;
    padding: 0 !important;
    cursor: pointer;
  }
  .shux-mobile-cart-close:focus-visible { outline: 2px solid var(--shux-accent); outline-offset: 2px; }
  body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main.shux-has-mobile-header > .widget_shopping_cart_content,
  body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main.shux-has-mobile-header > .elementor-menu-cart__container-inner {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main.shux-has-mobile-header .elementor-menu-cart__products,
  body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main.shux-has-mobile-header .woocommerce-mini-cart {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding: 8px 18px !important;
  }
  body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main.shux-has-mobile-header .elementor-menu-cart__subtotal,
  body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main.shux-has-mobile-header .woocommerce-mini-cart__total {
    flex: 0 0 auto;
    padding: 14px 18px !important;
  }
  body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main.shux-has-mobile-header .elementor-menu-cart__footer-buttons,
  body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main.shux-has-mobile-header .woocommerce-mini-cart__buttons {
    flex: 0 0 auto;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main .elementor-menu-cart__product-image img,
  body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main .woocommerce-mini-cart-item img {
    width: 70px !important;
    max-width: 70px !important;
    max-height: 90px;
    object-fit: contain;
  }
  .shux-options-details {
    width: 100%;
    margin: 9px 0 0;
    border: 1px solid var(--shux-border);
    border-radius: 10px;
    background: #fafafa;
    overflow: hidden;
    font-size: 12px;
  }
  .shux-options-details > summary {
    display: list-item;
    cursor: pointer;
    padding: 10px 13px;
    color: #1d1d1d;
    font-size: 12px;
    font-weight: 750;
    list-style-position: inside;
    user-select: none;
  }
  .shux-options-details > summary::marker { color: var(--shux-accent); }
  .shux-options-details > summary:focus-visible { outline: 2px solid var(--shux-accent); outline-offset: -2px; }
  .shux-options-details[open] > summary { border-bottom: 1px solid var(--shux-border); }
  .shux-options-details > .variation,
  .shux-options-details > .wc-item-meta {
    padding: 10px 13px 12px !important;
    margin: 0 !important;
    line-height: 1.55;
  }
  .shux-options-details .variation dt,
  .shux-options-details .variation dd { margin: 0 4px 2px 0 !important; font-size: 12px; }
  .shux-options-details .variation dd p { margin: 0 0 3px; }
}
