/* Preserve existing button boxes; extend only the pointer target. */
#cart-root .cart-item-remove,
#minicart-content .minicart-item-remove {
  position: relative;
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  text-decoration-color: transparent !important;
  cursor: pointer;
}
#cart-root .cart-item-remove > svg { visibility: hidden; }
#cart-root .cart-item-remove::before,
#minicart-content .minicart-item-remove::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 20px; height: 20px;
  background-color: #b7b7b7;
  pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M9 6V4h6v2M5 6l1 14h12l1-14M10 10v6M14 10v6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M9 6V4h6v2M5 6l1 14h12l1-14M10 10v6M14 10v6'/%3E%3C/svg%3E") center / contain no-repeat;
}
#cart-root .cart-item-remove::after,
#minicart-content .minicart-item-remove::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: max(100%, 44px); height: max(100%, 44px);
  background: transparent;
}
#cart-root .cart-item-remove:hover::before,
#cart-root .cart-item-remove:focus-visible::before,
#minicart-content .minicart-item-remove:hover::before,
#minicart-content .minicart-item-remove:focus-visible::before { background-color: #ef4444; }
#cart-root .cart-item-remove:focus-visible,
#minicart-content .minicart-item-remove:focus-visible { outline: none !important; }
#cart-root .cart-item-remove:focus-visible::after,
#minicart-content .minicart-item-remove:focus-visible::after { outline: 2px solid #ef4444; outline-offset: 2px; }
